ENH: fix bug where sharedforward would not work if there was a space in the path...
[cmake.git] / Utilities / cmcurl-7.19.0 / configure
blob0086c5da59cce9b8064806404cb54a12bffdd411
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for curl -.
5 # Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 1998 - 2008 Daniel Stenberg, <daniel@haxx.se>
13 # This configure script may be copied, distributed and modified under the
14 # terms of the curl license; see COPYING for more details
15 ## --------------------- ##
16 ## M4sh Initialization. ##
17 ## --------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 emulate sh
23 NULLCMD=:
24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in
30 *posix*) set -o posix ;;
31 esac
38 # PATH needs CR
39 # Avoid depending upon Character Ranges.
40 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43 as_cr_digits='0123456789'
44 as_cr_alnum=$as_cr_Letters$as_cr_digits
46 # The user is always right.
47 if test "${PATH_SEPARATOR+set}" != set; then
48 echo "#! /bin/sh" >conf$$.sh
49 echo "exit 0" >>conf$$.sh
50 chmod +x conf$$.sh
51 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 PATH_SEPARATOR=';'
53 else
54 PATH_SEPARATOR=:
56 rm -f conf$$.sh
59 # Support unset when possible.
60 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 as_unset=unset
62 else
63 as_unset=false
67 # IFS
68 # We need space, tab and new line, in precisely that order. Quoting is
69 # there to prevent editors from complaining about space-tab.
70 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
71 # splitting by setting IFS to empty value.)
72 as_nl='
74 IFS=" "" $as_nl"
76 # Find who we are. Look in the path if we contain no directory separator.
77 case $0 in
78 *[\\/]* ) as_myself=$0 ;;
79 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 for as_dir in $PATH
82 IFS=$as_save_IFS
83 test -z "$as_dir" && as_dir=.
84 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 done
86 IFS=$as_save_IFS
89 esac
90 # We did not find ourselves, most probably we were run as `sh COMMAND'
91 # in which case we are not to be found in the path.
92 if test "x$as_myself" = x; then
93 as_myself=$0
95 if test ! -f "$as_myself"; then
96 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 { (exit 1); exit 1; }
100 # Work around bugs in pre-3.0 UWIN ksh.
101 for as_var in ENV MAIL MAILPATH
102 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 done
104 PS1='$ '
105 PS2='> '
106 PS4='+ '
108 # NLS nuisances.
109 for as_var in \
110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 LC_TELEPHONE LC_TIME
114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
115 eval $as_var=C; export $as_var
116 else
117 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 done
121 # Required to use basename.
122 if expr a : '\(a\)' >/dev/null 2>&1 &&
123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 as_expr=expr
125 else
126 as_expr=false
129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 as_basename=basename
131 else
132 as_basename=false
136 # Name of the executable.
137 as_me=`$as_basename -- "$0" ||
138 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
139 X"$0" : 'X\(//\)$' \| \
140 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 echo X/"$0" |
142 sed '/^.*\/\([^/][^/]*\)\/*$/{
143 s//\1/
146 /^X\/\(\/\/\)$/{
147 s//\1/
150 /^X\/\(\/\).*/{
151 s//\1/
154 s/.*/./; q'`
156 # CDPATH.
157 $as_unset CDPATH
160 if test "x$CONFIG_SHELL" = x; then
161 if (eval ":") 2>/dev/null; then
162 as_have_required=yes
163 else
164 as_have_required=no
167 if test $as_have_required = yes && (eval ":
168 (as_func_return () {
169 (exit \$1)
171 as_func_success () {
172 as_func_return 0
174 as_func_failure () {
175 as_func_return 1
177 as_func_ret_success () {
178 return 0
180 as_func_ret_failure () {
181 return 1
184 exitcode=0
185 if as_func_success; then
187 else
188 exitcode=1
189 echo as_func_success failed.
192 if as_func_failure; then
193 exitcode=1
194 echo as_func_failure succeeded.
197 if as_func_ret_success; then
199 else
200 exitcode=1
201 echo as_func_ret_success failed.
204 if as_func_ret_failure; then
205 exitcode=1
206 echo as_func_ret_failure succeeded.
209 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 else
212 exitcode=1
213 echo positional parameters were not saved.
216 test \$exitcode = 0) || { (exit 1); exit 1; }
219 as_lineno_1=\$LINENO
220 as_lineno_2=\$LINENO
221 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
222 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
223 ") 2> /dev/null; then
225 else
226 as_candidate_shells=
227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
228 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 IFS=$as_save_IFS
231 test -z "$as_dir" && as_dir=.
232 case $as_dir in
234 for as_base in sh bash ksh sh5; do
235 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 done;;
237 esac
238 done
239 IFS=$as_save_IFS
242 for as_shell in $as_candidate_shells $SHELL; do
243 # Try only shells that exist, to save several forks.
244 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
245 { ("$as_shell") 2> /dev/null <<\_ASEOF
246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 emulate sh
248 NULLCMD=:
249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
250 # is contrary to our usage. Disable this feature.
251 alias -g '${1+"$@"}'='"$@"'
252 setopt NO_GLOB_SUBST
253 else
254 case `(set -o) 2>/dev/null` in
255 *posix*) set -o posix ;;
256 esac
262 _ASEOF
263 }; then
264 CONFIG_SHELL=$as_shell
265 as_have_required=yes
266 if { "$as_shell" 2> /dev/null <<\_ASEOF
267 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 emulate sh
269 NULLCMD=:
270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
271 # is contrary to our usage. Disable this feature.
272 alias -g '${1+"$@"}'='"$@"'
273 setopt NO_GLOB_SUBST
274 else
275 case `(set -o) 2>/dev/null` in
276 *posix*) set -o posix ;;
277 esac
283 (as_func_return () {
284 (exit $1)
286 as_func_success () {
287 as_func_return 0
289 as_func_failure () {
290 as_func_return 1
292 as_func_ret_success () {
293 return 0
295 as_func_ret_failure () {
296 return 1
299 exitcode=0
300 if as_func_success; then
302 else
303 exitcode=1
304 echo as_func_success failed.
307 if as_func_failure; then
308 exitcode=1
309 echo as_func_failure succeeded.
312 if as_func_ret_success; then
314 else
315 exitcode=1
316 echo as_func_ret_success failed.
319 if as_func_ret_failure; then
320 exitcode=1
321 echo as_func_ret_failure succeeded.
324 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 else
327 exitcode=1
328 echo positional parameters were not saved.
331 test $exitcode = 0) || { (exit 1); exit 1; }
334 as_lineno_1=$LINENO
335 as_lineno_2=$LINENO
336 test "x$as_lineno_1" != "x$as_lineno_2" &&
337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 _ASEOF
340 }; then
341 break
346 done
348 if test "x$CONFIG_SHELL" != x; then
349 for as_var in BASH_ENV ENV
350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 done
352 export CONFIG_SHELL
353 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
357 if test $as_have_required = no; then
358 echo This script requires a shell more modern than all the
359 echo shells that I found on your system. Please install a
360 echo modern shell, or manually run the script under such a
361 echo shell if you do have one.
362 { (exit 1); exit 1; }
372 (eval "as_func_return () {
373 (exit \$1)
375 as_func_success () {
376 as_func_return 0
378 as_func_failure () {
379 as_func_return 1
381 as_func_ret_success () {
382 return 0
384 as_func_ret_failure () {
385 return 1
388 exitcode=0
389 if as_func_success; then
391 else
392 exitcode=1
393 echo as_func_success failed.
396 if as_func_failure; then
397 exitcode=1
398 echo as_func_failure succeeded.
401 if as_func_ret_success; then
403 else
404 exitcode=1
405 echo as_func_ret_success failed.
408 if as_func_ret_failure; then
409 exitcode=1
410 echo as_func_ret_failure succeeded.
413 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 else
416 exitcode=1
417 echo positional parameters were not saved.
420 test \$exitcode = 0") || {
421 echo No shell found that supports shell functions.
422 echo Please tell autoconf@gnu.org about your system,
423 echo including any error possibly output before this
424 echo message
429 as_lineno_1=$LINENO
430 as_lineno_2=$LINENO
431 test "x$as_lineno_1" != "x$as_lineno_2" &&
432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
435 # uniformly replaced by the line number. The first 'sed' inserts a
436 # line-number line after each line using $LINENO; the second 'sed'
437 # does the real work. The second script uses 'N' to pair each
438 # line-number line with the line containing $LINENO, and appends
439 # trailing '-' during substitution so that $LINENO is not a special
440 # case at line end.
441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
442 # scripts with optimization help from Paolo Bonzini. Blame Lee
443 # E. McMahon (1931-1989) for sed's syntax. :-)
444 sed -n '
446 /[$]LINENO/=
447 ' <$as_myself |
448 sed '
449 s/[$]LINENO.*/&-/
450 t lineno
452 :lineno
454 :loop
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 t loop
457 s/-\n.*//
458 ' >$as_me.lineno &&
459 chmod +x "$as_me.lineno" ||
460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
461 { (exit 1); exit 1; }; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
472 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 as_dirname=dirname
474 else
475 as_dirname=false
478 ECHO_C= ECHO_N= ECHO_T=
479 case `echo -n x` in
480 -n*)
481 case `echo 'x\c'` in
482 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 *) ECHO_C='\c';;
484 esac;;
486 ECHO_N='-n';;
487 esac
489 if expr a : '\(a\)' >/dev/null 2>&1 &&
490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 as_expr=expr
492 else
493 as_expr=false
496 rm -f conf$$ conf$$.exe conf$$.file
497 if test -d conf$$.dir; then
498 rm -f conf$$.dir/conf$$.file
499 else
500 rm -f conf$$.dir
501 mkdir conf$$.dir
503 echo >conf$$.file
504 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s='ln -s'
506 # ... but there are two gotchas:
507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
509 # In both cases, we have to default to `cp -p'.
510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 as_ln_s='cp -p'
512 elif ln conf$$.file conf$$ 2>/dev/null; then
513 as_ln_s=ln
514 else
515 as_ln_s='cp -p'
517 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
518 rmdir conf$$.dir 2>/dev/null
520 if mkdir -p . 2>/dev/null; then
521 as_mkdir_p=:
522 else
523 test -d ./-p && rmdir ./-p
524 as_mkdir_p=false
527 if test -x / >/dev/null 2>&1; then
528 as_test_x='test -x'
529 else
530 if ls -dL / >/dev/null 2>&1; then
531 as_ls_L_option=L
532 else
533 as_ls_L_option=
535 as_test_x='
536 eval sh -c '\''
537 if test -d "$1"; then
538 test -d "$1/.";
539 else
540 case $1 in
541 -*)set "./$1";;
542 esac;
543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
544 ???[sx]*):;;*)false;;esac;fi
545 '\'' sh
548 as_executable_p=$as_test_x
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 # Check that we are running under the correct shell.
560 SHELL=${CONFIG_SHELL-/bin/sh}
562 case X$ECHO in
563 X*--fallback-echo)
564 # Remove one level of quotation (which was required for Make).
565 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
567 esac
569 echo=${ECHO-echo}
570 if test "X$1" = X--no-reexec; then
571 # Discard the --no-reexec flag, and continue.
572 shift
573 elif test "X$1" = X--fallback-echo; then
574 # Avoid inline document here, it may be left over
576 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
577 # Yippee, $echo works!
579 else
580 # Restart under the correct shell.
581 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 if test "X$1" = X--fallback-echo; then
585 # used as fallback echo
586 shift
587 cat <<EOF
590 exit 0
593 # The HP-UX ksh and POSIX shell print the target directory to stdout
594 # if CDPATH is set.
595 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
597 if test -z "$ECHO"; then
598 if test "X${echo_test_string+set}" != Xset; then
599 # find a string as large as possible, as long as the shell can cope with it
600 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
601 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
602 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
603 echo_test_string=`eval $cmd` &&
604 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 then
606 break
608 done
611 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
612 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
613 test "X$echo_testing_string" = "X$echo_test_string"; then
615 else
616 # The Solaris, AIX, and Digital Unix default echo programs unquote
617 # backslashes. This makes it impossible to quote backslashes using
618 # echo "$something" | sed 's/\\/\\\\/g'
620 # So, first we look for a working echo in the user's PATH.
622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
623 for dir in $PATH /usr/ucb; do
624 IFS="$lt_save_ifs"
625 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
626 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 echo="$dir/echo"
630 break
632 done
633 IFS="$lt_save_ifs"
635 if test "X$echo" = Xecho; then
636 # We didn't find a better echo, so look for alternatives.
637 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
638 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 # This shell has a builtin print -r that does the trick.
641 echo='print -r'
642 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
643 test "X$CONFIG_SHELL" != X/bin/ksh; then
644 # If we have ksh, try running configure again with it.
645 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
646 export ORIGINAL_CONFIG_SHELL
647 CONFIG_SHELL=/bin/ksh
648 export CONFIG_SHELL
649 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
650 else
651 # Try using printf.
652 echo='printf %s\n'
653 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
654 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 # Cool, printf works
658 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
659 test "X$echo_testing_string" = 'X\t' &&
660 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
661 test "X$echo_testing_string" = "X$echo_test_string"; then
662 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
663 export CONFIG_SHELL
664 SHELL="$CONFIG_SHELL"
665 export SHELL
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
668 test "X$echo_testing_string" = 'X\t' &&
669 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 echo="$CONFIG_SHELL $0 --fallback-echo"
672 else
673 # maybe with a smaller string...
674 prev=:
676 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
677 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 then
679 break
681 prev="$cmd"
682 done
684 if test "$prev" != 'sed 50q "$0"'; then
685 echo_test_string=`eval $prev`
686 export echo_test_string
687 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
688 else
689 # Oops. We lost completely, so just stick with echo.
690 echo=echo
698 # Copy echo and quote the copy suitably for passing to libtool from
699 # the Makefile, instead of quoting the original, which is used later.
700 ECHO=$echo
701 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
702 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
708 exec 7<&0 </dev/null 6>&1
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 # Initializations.
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='curl'
730 PACKAGE_TARNAME='curl'
731 PACKAGE_VERSION='-'
732 PACKAGE_STRING='curl -'
733 PACKAGE_BUGREPORT='a suitable curl mailing list => http://curl.haxx.se/mail/'
735 ac_unique_file="lib/urldata.h"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 MAINTAINER_MODE_TRUE
810 MAINTAINER_MODE_FALSE
811 MAINT
813 GREP
814 EGREP
816 libext
817 INSTALL_PROGRAM
818 INSTALL_SCRIPT
819 INSTALL_DATA
820 CYGPATH_W
821 PACKAGE
822 VERSION
823 ACLOCAL
824 AUTOCONF
825 AUTOMAKE
826 AUTOHEADER
827 MAKEINFO
828 install_sh
829 STRIP
830 INSTALL_STRIP_PROGRAM
831 mkdir_p
833 SET_MAKE
834 am__leading_dot
835 AMTAR
836 am__tar
837 am__untar
838 VERSIONNUM
839 PKGADD_PKG
840 PKGADD_NAME
841 PKGADD_VENDOR
842 build
843 build_cpu
844 build_vendor
845 build_os
846 host
847 host_cpu
848 host_vendor
849 host_os
851 CFLAGS
852 LDFLAGS
853 CPPFLAGS
854 ac_ct_CC
855 EXEEXT
856 OBJEXT
857 DEPDIR
858 am__include
859 am__quote
860 AMDEP_TRUE
861 AMDEP_FALSE
862 AMDEPBACKSLASH
863 CCDEPMODE
864 am__fastdepCC_TRUE
865 am__fastdepCC_FALSE
867 LN_S
868 ECHO
869 RANLIB
870 DSYMUTIL
871 NMEDIT
872 DLLTOOL
874 OBJDUMP
875 LIBTOOL
876 NO_UNDEFINED_TRUE
877 NO_UNDEFINED_FALSE
878 MIMPURE_TRUE
879 MIMPURE_FALSE
880 STATICLIB_TRUE
881 STATICLIB_FALSE
882 REQUIRE_LIB_DEPS
883 CURL_DISABLE_HTTP
884 CURL_DISABLE_FTP
885 CURL_DISABLE_FILE
886 CURL_DISABLE_LDAP
887 CURL_DISABLE_LDAPS
888 CURL_DISABLE_DICT
889 CURL_DISABLE_TELNET
890 CURL_DISABLE_TFTP
891 KRB4_ENABLED
892 PKGCONFIG
893 USE_SSLEAY
894 HAVE_LIBZ
895 HAVE_LIBZ_TRUE
896 HAVE_LIBZ_FALSE
897 USE_LIBSSH2
898 RANDOM_FILE
899 USE_GNUTLS
900 HAVE_PK11_CREATEGENERICOBJECT
901 USE_NSS
902 SSL_ENABLED
903 CURL_CA_BUNDLE
904 IDN_ENABLED
905 IPV6_ENABLED
906 PERL
907 NROFF
908 MANOPT
909 USE_MANUAL_TRUE
910 USE_MANUAL_FALSE
911 HAVE_ARES
912 subdirs
913 USE_WINDOWS_SSPI
914 SONAME_BUMP_TRUE
915 SONAME_BUMP_FALSE
916 LIBCURL_LIBS
917 CURL_LIBS
918 TEST_SERVER_LIBS
919 CROSSCOMPILING_TRUE
920 CROSSCOMPILING_FALSE
921 LIBOBJS
922 LTLIBOBJS'
923 ac_subst_files=''
924 ac_precious_vars='build_alias
925 host_alias
926 target_alias
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP'
933 ac_subdirs_all='ares'
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 # The variables have the same names as the options, with
939 # dashes changed to underlines.
940 cache_file=/dev/null
941 exec_prefix=NONE
942 no_create=
943 no_recursion=
944 prefix=NONE
945 program_prefix=NONE
946 program_suffix=NONE
947 program_transform_name=s,x,x,
948 silent=
949 site=
950 srcdir=
951 verbose=
952 x_includes=NONE
953 x_libraries=NONE
955 # Installation directory options.
956 # These are left unexpanded so users can "make install exec_prefix=/foo"
957 # and all the variables that are supposed to be based on exec_prefix
958 # by default will actually change.
959 # Use braces instead of parens because sh, perl, etc. also accept them.
960 # (The list follows the same order as the GNU Coding Standards.)
961 bindir='${exec_prefix}/bin'
962 sbindir='${exec_prefix}/sbin'
963 libexecdir='${exec_prefix}/libexec'
964 datarootdir='${prefix}/share'
965 datadir='${datarootdir}'
966 sysconfdir='${prefix}/etc'
967 sharedstatedir='${prefix}/com'
968 localstatedir='${prefix}/var'
969 includedir='${prefix}/include'
970 oldincludedir='/usr/include'
971 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
972 infodir='${datarootdir}/info'
973 htmldir='${docdir}'
974 dvidir='${docdir}'
975 pdfdir='${docdir}'
976 psdir='${docdir}'
977 libdir='${exec_prefix}/lib'
978 localedir='${datarootdir}/locale'
979 mandir='${datarootdir}/man'
981 ac_prev=
982 ac_dashdash=
983 for ac_option
985 # If the previous option needs an argument, assign it.
986 if test -n "$ac_prev"; then
987 eval $ac_prev=\$ac_option
988 ac_prev=
989 continue
992 case $ac_option in
993 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 *) ac_optarg=yes ;;
995 esac
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1001 ac_dashdash=yes ;;
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1035 -disable-* | --disable-*)
1036 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_$ac_feature=no ;;
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1054 -enable-* | --enable-*)
1055 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1061 eval enable_$ac_feature=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1074 with_gas=yes ;;
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089 ac_prev=htmldir ;;
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091 | --ht=*)
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1102 ac_prev=infodir ;;
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1107 ac_prev=libdir ;;
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131 ac_prev=mandir ;;
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1137 with_fp=no ;;
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1141 no_create=yes ;;
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 no_recursion=yes ;;
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157 ac_prev=prefix ;;
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193 ac_prev=pdfdir ;;
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1198 ac_prev=psdir ;;
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 psdir=$ac_optarg ;;
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1204 silent=yes ;;
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207 ac_prev=sbindir ;;
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209 | --sbi=* | --sb=*)
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1215 | --sha | --sh)
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220 | --sha=* | --sh=*)
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1224 ac_prev=site ;;
1225 -site=* | --site=* | --sit=*)
1226 site=$ac_optarg ;;
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229 ac_prev=srcdir ;;
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 verbose=yes ;;
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1251 -with-* | --with-*)
1252 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1255 { echo "$as_me: error: invalid package name: $ac_package" >&2
1256 { (exit 1); exit 1; }; }
1257 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1258 eval with_$ac_package=\$ac_optarg ;;
1260 -without-* | --without-*)
1261 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid package name: $ac_package" >&2
1265 { (exit 1); exit 1; }; }
1266 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1267 eval with_$ac_package=no ;;
1269 --x)
1270 # Obsolete; use --with-x.
1271 with_x=yes ;;
1273 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1274 | --x-incl | --x-inc | --x-in | --x-i)
1275 ac_prev=x_includes ;;
1276 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1277 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1278 x_includes=$ac_optarg ;;
1280 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1281 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1282 ac_prev=x_libraries ;;
1283 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1284 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1285 x_libraries=$ac_optarg ;;
1287 -*) { echo "$as_me: error: unrecognized option: $ac_option
1288 Try \`$0 --help' for more information." >&2
1289 { (exit 1); exit 1; }; }
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1296 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1297 { (exit 1); exit 1; }; }
1298 eval $ac_envvar=\$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309 esac
1310 done
1312 if test -n "$ac_prev"; then
1313 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1314 { echo "$as_me: error: missing argument to $ac_option" >&2
1315 { (exit 1); exit 1; }; }
1318 # Be sure to have absolute directory names.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1330 { (exit 1); exit 1; }; }
1331 done
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used." >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1351 ac_tool_prefix=
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354 test "$silent" = yes && exec 6>/dev/null
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360 { echo "$as_me: error: Working directory cannot be determined" >&2
1361 { (exit 1); exit 1; }; }
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 { echo "$as_me: error: pwd does not report name of working directory" >&2
1364 { (exit 1); exit 1; }; }
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$0" ||
1372 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$0" : 'X\(//\)[^/]' \| \
1374 X"$0" : 'X\(//\)$' \| \
1375 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1376 echo X"$0" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1385 /^X\(\/\/\)$/{
1386 s//\1/
1389 /^X\(\/\).*/{
1390 s//\1/
1393 s/.*/./; q'`
1394 srcdir=$ac_confdir
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 srcdir=..
1398 else
1399 ac_srcdir_defaulted=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1404 { (exit 1); exit 1; }; }
1406 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 ac_abs_confdir=`(
1408 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1409 { (exit 1); exit 1; }; }
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures curl - to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1490 cat <<\_ACEOF
1492 Program names:
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1497 System types:
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of curl -:";;
1506 esac
1507 cat <<\_ACEOF
1509 Optional Features:
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-maintainer-mode enable make rules and dependencies not useful
1513 (and sometimes confusing) to the casual installer
1514 --disable-dependency-tracking speeds up one-time build
1515 --enable-dependency-tracking do not reject slow dependency extractors
1516 --disable-largefile omit support for large files
1517 --enable-shared[=PKGS] build shared libraries [default=yes]
1518 --enable-static[=PKGS] build static libraries [default=yes]
1519 --enable-fast-install[=PKGS]
1520 optimize for fast installation [default=yes]
1521 --disable-libtool-lock avoid locking (might break parallel builds)
1522 --enable-http Enable HTTP support
1523 --disable-http Disable HTTP support
1524 --enable-ftp Enable FTP support
1525 --disable-ftp Disable FTP support
1526 --enable-file Enable FILE support
1527 --disable-file Disable FILE support
1528 --enable-ldap Enable LDAP support
1529 --disable-ldap Disable LDAP support
1530 --enable-ldaps Enable LDAPS support
1531 --disable-ldaps Disable LDAPS support
1532 --enable-dict Enable DICT support
1533 --disable-dict Disable DICT support
1534 --enable-telnet Enable TELNET support
1535 --disable-telnet Disable TELNET support
1536 --enable-tftp Enable TFTP support
1537 --disable-tftp Disable TFTP support
1538 --enable-manual Enable built-in manual
1539 --disable-manual Disable built-in manual
1540 --enable-libgcc use libgcc when linking
1541 --enable-ipv6 Enable ipv6 (with ipv4) support
1542 --disable-ipv6 Disable ipv6 support
1543 --enable-nonblocking Enable detecting how to do it
1544 --disable-nonblocking Disable non-blocking socket detection
1545 --disable-thread don't look for thread-safe functions
1546 --enable-thread look for thread-safe functions
1547 --enable-ares=PATH Enable c-ares for name lookups
1548 --disable-ares Disable c-ares for name lookups
1549 --enable-verbose Enable verbose strings
1550 --disable-verbose Disable verbose strings
1551 --enable-sspi Enable SSPI
1552 --disable-sspi Disable SSPI
1553 --enable-debug Enable pedantic debug options
1554 --disable-debug Disable debug options
1555 --enable-crypto-auth Enable cryptographic authentication
1556 --disable-crypto-auth Disable cryptographic authentication
1557 --enable-cookies Enable cookies support
1558 --disable-cookies Disable cookies support
1559 --enable-hidden-symbols Hide internal symbols in library
1560 --disable-hidden-symbols
1561 Leave all symbols with default visibility in library
1562 --enable-soname-bump Enable enforced SONAME bump
1563 --disable-soname-bump Disable enforced SONAME bump
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1569 --with-pic try to use only PIC/non-PIC objects [default=use
1570 both]
1571 --with-tags[=TAGS] include additional configurations [automatic]
1572 --with-ldap-lib=libname Specify name of ldap lib file
1573 --with-lber-lib=libname Specify name of lber lib file
1574 --with-krb4-includes=DIR
1575 Specify location of kerberos4 headers
1576 --with-krb4-libs=DIR Specify location of kerberos4 libs
1577 --with-krb4=DIR where to look for Kerberos4
1578 --with-spnego=DIR Specify location of SPNEGO library fbopenssl
1579 --with-gssapi-includes=DIR
1580 Specify location of GSSAPI header
1581 --with-gssapi-libs=DIR Specify location of GSSAPI libs
1582 --with-gssapi=DIR Where to look for GSSAPI
1583 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1584 installation (default: /usr/local/ssl); when
1585 possible, set the PKG_CONFIG_PATH environment
1586 variable instead of using this option
1587 --without-ssl disable OpenSSL
1588 --with-zlib=PATH search for zlib in PATH
1589 --without-zlib disable use of zlib
1590 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1591 LIBSSH2 installation (default: /usr/local/lib); when
1592 possible, set the PKG_CONFIG_PATH environment
1593 variable instead of using this option
1594 --without-libssh2 disable LIBSSH2
1595 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1596 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1597 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1598 installation root (default: /usr/local/)
1599 --without-gnutls disable GnuTLS detection
1600 --with-nss=PATH where to look for NSS, PATH points to the
1601 installation root (default: /usr/local/)
1602 --without-nss disable NSS detection
1603 --with-ca-bundle=FILE File name to use as CA bundle
1604 --without-ca-bundle Don't use a default CA bundle
1605 --with-ca-path=DIRECTORY
1606 Directory to use as CA path
1607 --without-ca-path Don't use a default CA path
1608 --with-libidn=PATH Enable libidn usage
1609 --without-libidn Disable libidn usage
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1621 Use these variables to override the choices made by `configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1624 Report bugs to <a suitable curl mailing list => http://curl.haxx.se/mail/>.
1625 _ACEOF
1626 ac_status=$?
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1633 ac_builddir=.
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644 esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1651 case $srcdir in
1652 .) # We are building in place.
1653 ac_srcdir=.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1660 *) # Relative name.
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1675 else
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 fi || ac_status=$?
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1679 done
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684 cat <<\_ACEOF
1685 curl configure -
1686 generated by GNU Autoconf 2.61
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1693 Copyright (c) 1998 - 2008 Daniel Stenberg, <daniel@haxx.se>
1694 This configure script may be copied, distributed and modified under the
1695 terms of the curl license; see COPYING for more details
1696 _ACEOF
1697 exit
1699 cat >config.log <<_ACEOF
1700 This file contains any messages produced by compilers while
1701 running configure, to aid debugging if configure makes a mistake.
1703 It was created by curl $as_me -, which was
1704 generated by GNU Autoconf 2.61. Invocation command line was
1706 $ $0 $@
1708 _ACEOF
1709 exec 5>>config.log
1711 cat <<_ASUNAME
1712 ## --------- ##
1713 ## Platform. ##
1714 ## --------- ##
1716 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1717 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1718 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1719 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1720 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1722 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1723 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1725 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1726 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1727 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1728 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1729 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1730 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1731 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1733 _ASUNAME
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 echo "PATH: $as_dir"
1741 done
1742 IFS=$as_save_IFS
1744 } >&5
1746 cat >&5 <<_ACEOF
1749 ## ----------- ##
1750 ## Core tests. ##
1751 ## ----------- ##
1753 _ACEOF
1756 # Keep a trace of the command line.
1757 # Strip out --no-create and --no-recursion so they do not pile up.
1758 # Strip out --silent because we don't want to record it for future runs.
1759 # Also quote any args containing shell meta-characters.
1760 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_configure_args=
1762 ac_configure_args0=
1763 ac_configure_args1=
1764 ac_must_keep_next=false
1765 for ac_pass in 1 2
1767 for ac_arg
1769 case $ac_arg in
1770 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1771 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1772 | -silent | --silent | --silen | --sile | --sil)
1773 continue ;;
1774 *\'*)
1775 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 esac
1777 case $ac_pass in
1778 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1780 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1781 if test $ac_must_keep_next = true; then
1782 ac_must_keep_next=false # Got value, back to normal.
1783 else
1784 case $ac_arg in
1785 *=* | --config-cache | -C | -disable-* | --disable-* \
1786 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1787 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1788 | -with-* | --with-* | -without-* | --without-* | --x)
1789 case "$ac_configure_args0 " in
1790 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1791 esac
1793 -* ) ac_must_keep_next=true ;;
1794 esac
1796 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 esac
1799 done
1800 done
1801 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1802 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1804 # When interrupted or exit'd, cleanup temporary files, and complete
1805 # config.log. We remove comments because anyway the quotes in there
1806 # would cause problems or look ugly.
1807 # WARNING: Use '\'' to represent an apostrophe within the trap.
1808 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1809 trap 'exit_status=$?
1810 # Save into config.log some information that might help in debugging.
1812 echo
1814 cat <<\_ASBOX
1815 ## ---------------- ##
1816 ## Cache variables. ##
1817 ## ---------------- ##
1818 _ASBOX
1819 echo
1820 # The following way of writing the cache mishandles newlines in values,
1822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in #(
1825 *${as_nl}*)
1826 case $ac_var in #(
1827 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1828 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1829 esac
1830 case $ac_var in #(
1831 _ | IFS | as_nl) ;; #(
1832 *) $as_unset $ac_var ;;
1833 esac ;;
1834 esac
1835 done
1836 (set) 2>&1 |
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1839 sed -n \
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1842 ;; #(
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1846 esac |
1847 sort
1849 echo
1851 cat <<\_ASBOX
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1855 _ASBOX
1856 echo
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1860 case $ac_val in
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 esac
1863 echo "$ac_var='\''$ac_val'\''"
1864 done | sort
1865 echo
1867 if test -n "$ac_subst_files"; then
1868 cat <<\_ASBOX
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1872 _ASBOX
1873 echo
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 echo "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1885 if test -s confdefs.h; then
1886 cat <<\_ASBOX
1887 ## ----------- ##
1888 ## confdefs.h. ##
1889 ## ----------- ##
1890 _ASBOX
1891 echo
1892 cat confdefs.h
1893 echo
1895 test "$ac_signal" != 0 &&
1896 echo "$as_me: caught signal $ac_signal"
1897 echo "$as_me: exit $exit_status"
1898 } >&5
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1901 exit $exit_status
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 done
1906 ac_signal=0
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 # Predefined preprocessor variables.
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 _ACEOF
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 _ACEOF
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 _ACEOF
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 _ACEOF
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer explicitly selected file to automatically selected ones.
1940 if test -n "$CONFIG_SITE"; then
1941 set x "$CONFIG_SITE"
1942 elif test "x$prefix" != xNONE; then
1943 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1944 else
1945 set x "$ac_default_prefix/share/config.site" \
1946 "$ac_default_prefix/etc/config.site"
1948 shift
1949 for ac_site_file
1951 if test -r "$ac_site_file"; then
1952 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1953 echo "$as_me: loading site script $ac_site_file" >&6;}
1954 sed 's/^/| /' "$ac_site_file" >&5
1955 . "$ac_site_file"
1957 done
1959 if test -r "$cache_file"; then
1960 # Some versions of bash will fail to source /dev/null (special
1961 # files actually), so we avoid doing that.
1962 if test -f "$cache_file"; then
1963 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1964 echo "$as_me: loading cache $cache_file" >&6;}
1965 case $cache_file in
1966 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1967 *) . "./$cache_file";;
1968 esac
1970 else
1971 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1972 echo "$as_me: creating cache $cache_file" >&6;}
1973 >$cache_file
1976 # Check that the precious variables saved in the cache have kept the same
1977 # value.
1978 ac_cache_corrupted=false
1979 for ac_var in $ac_precious_vars; do
1980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1981 eval ac_new_set=\$ac_env_${ac_var}_set
1982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1983 eval ac_new_val=\$ac_env_${ac_var}_value
1984 case $ac_old_set,$ac_new_set in
1985 set,)
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1989 ,set)
1990 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1991 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1992 ac_cache_corrupted=: ;;
1993 ,);;
1995 if test "x$ac_old_val" != "x$ac_new_val"; then
1996 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1997 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1998 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1999 echo "$as_me: former value: $ac_old_val" >&2;}
2000 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2001 echo "$as_me: current value: $ac_new_val" >&2;}
2002 ac_cache_corrupted=:
2003 fi;;
2004 esac
2005 # Pass precious variables to config.status.
2006 if test "$ac_new_set" = set; then
2007 case $ac_new_val in
2008 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2009 *) ac_arg=$ac_var=$ac_new_val ;;
2010 esac
2011 case " $ac_configure_args " in
2012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2013 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 esac
2016 done
2017 if $ac_cache_corrupted; then
2018 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2019 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2020 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2021 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2022 { (exit 1); exit 1; }; }
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 ac_config_headers="$ac_config_headers lib/config.h src/config.h include/curl/curlbuild.h"
2062 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2063 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2064 # Check whether --enable-maintainer-mode was given.
2065 if test "${enable_maintainer_mode+set}" = set; then
2066 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2067 else
2068 USE_MAINTAINER_MODE=no
2071 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2072 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2075 if test $USE_MAINTAINER_MODE = yes; then
2076 MAINTAINER_MODE_TRUE=
2077 MAINTAINER_MODE_FALSE='#'
2078 else
2079 MAINTAINER_MODE_TRUE='#'
2080 MAINTAINER_MODE_FALSE=
2083 MAINT=$MAINTAINER_MODE_TRUE
2087 # Extract the first word of "sed", so it can be a program name with args.
2088 set dummy sed; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_SED+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094 case $SED in
2095 [\\/]* | ?:[\\/]*)
2096 ac_cv_path_SED="$SED" # Let the user override the test with a path.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2101 for as_dir in $as_dummy
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2111 done
2112 done
2113 IFS=$as_save_IFS
2115 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
2117 esac
2119 SED=$ac_cv_path_SED
2120 if test -n "$SED"; then
2121 { echo "$as_me:$LINENO: result: $SED" >&5
2122 echo "${ECHO_T}$SED" >&6; }
2123 else
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2129 if test -z "$SED" || test "$SED" = "not_found"; then
2130 { { echo "$as_me:$LINENO: error: sed not found in PATH. Cannot continue without sed." >&5
2131 echo "$as_me: error: sed not found in PATH. Cannot continue without sed." >&2;}
2132 { (exit 1); exit 1; }; }
2136 # Extract the first word of "grep", so it can be a program name with args.
2137 set dummy grep; ac_word=$2
2138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2140 if test "${ac_cv_path_GREP+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143 case $GREP in
2144 [\\/]* | ?:[\\/]*)
2145 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2150 for as_dir in $as_dummy
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2160 done
2161 done
2162 IFS=$as_save_IFS
2164 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
2166 esac
2168 GREP=$ac_cv_path_GREP
2169 if test -n "$GREP"; then
2170 { echo "$as_me:$LINENO: result: $GREP" >&5
2171 echo "${ECHO_T}$GREP" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2178 if test -z "$GREP" || test "$GREP" = "not_found"; then
2179 { { echo "$as_me:$LINENO: error: grep not found in PATH. Cannot continue without grep." >&5
2180 echo "$as_me: error: grep not found in PATH. Cannot continue without grep." >&2;}
2181 { (exit 1); exit 1; }; }
2185 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
2186 { echo "$as_me:$LINENO: checking for egrep" >&5
2187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2188 EGREP="$GREP -E"
2189 { echo "$as_me:$LINENO: result: $EGREP" >&5
2190 echo "${ECHO_T}$EGREP" >&6; }
2191 else
2192 # Extract the first word of "egrep", so it can be a program name with args.
2193 set dummy egrep; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_path_EGREP+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 case $EGREP in
2200 [\\/]* | ?:[\\/]*)
2201 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2206 for as_dir in $as_dummy
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2218 IFS=$as_save_IFS
2220 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
2222 esac
2224 EGREP=$ac_cv_path_EGREP
2225 if test -n "$EGREP"; then
2226 { echo "$as_me:$LINENO: result: $EGREP" >&5
2227 echo "${ECHO_T}$EGREP" >&6; }
2228 else
2229 { echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6; }
2235 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
2236 { { echo "$as_me:$LINENO: error: egrep not found in PATH. Cannot continue without egrep." >&5
2237 echo "$as_me: error: egrep not found in PATH. Cannot continue without egrep." >&2;}
2238 { (exit 1); exit 1; }; }
2242 if test -n "$ac_tool_prefix"; then
2243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}ar; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_path_AR+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 case $AR in
2251 [\\/]* | ?:[\\/]*)
2252 ac_cv_path_AR="$AR" # Let the user override the test with a path.
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2257 for as_dir in $as_dummy
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
2264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2265 break 2
2267 done
2268 done
2269 IFS=$as_save_IFS
2272 esac
2274 AR=$ac_cv_path_AR
2275 if test -n "$AR"; then
2276 { echo "$as_me:$LINENO: result: $AR" >&5
2277 echo "${ECHO_T}$AR" >&6; }
2278 else
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2285 if test -z "$ac_cv_path_AR"; then
2286 ac_pt_AR=$AR
2287 # Extract the first word of "ar", so it can be a program name with args.
2288 set dummy ar; ac_word=$2
2289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2291 if test "${ac_cv_path_ac_pt_AR+set}" = set; then
2292 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294 case $ac_pt_AR in
2295 [\\/]* | ?:[\\/]*)
2296 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 as_dummy="$PATH:/usr/bin:/usr/local/bin"
2301 for as_dir in $as_dummy
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2316 esac
2318 ac_pt_AR=$ac_cv_path_ac_pt_AR
2319 if test -n "$ac_pt_AR"; then
2320 { echo "$as_me:$LINENO: result: $ac_pt_AR" >&5
2321 echo "${ECHO_T}$ac_pt_AR" >&6; }
2322 else
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2327 if test "x$ac_pt_AR" = x; then
2328 AR="not_found"
2329 else
2330 case $cross_compiling:$ac_tool_warned in
2331 yes:)
2332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet. If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&5
2335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet. If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2338 ac_tool_warned=yes ;;
2339 esac
2340 AR=$ac_pt_AR
2342 else
2343 AR="$ac_cv_path_AR"
2346 if test -z "$AR" || test "$AR" = "not_found"; then
2347 { { echo "$as_me:$LINENO: error: ar not found in PATH. Cannot continue without ar." >&5
2348 echo "$as_me: error: ar not found in PATH. Cannot continue without ar." >&2;}
2349 { (exit 1); exit 1; }; }
2355 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
2356 am__api_version="1.9"
2357 ac_aux_dir=
2358 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359 if test -f "$ac_dir/install-sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install-sh -c"
2362 break
2363 elif test -f "$ac_dir/install.sh"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/install.sh -c"
2366 break
2367 elif test -f "$ac_dir/shtool"; then
2368 ac_aux_dir=$ac_dir
2369 ac_install_sh="$ac_aux_dir/shtool install -c"
2370 break
2372 done
2373 if test -z "$ac_aux_dir"; then
2374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2375 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2376 { (exit 1); exit 1; }; }
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Find a good install program. We prefer a C program (faster),
2389 # so one script is as good as another. But avoid the broken or
2390 # incompatible versions:
2391 # SysV /etc/install, /usr/sbin/install
2392 # SunOS /usr/etc/install
2393 # IRIX /sbin/install
2394 # AIX /bin/install
2395 # AmigaOS /C/install, which installs bootblocks on floppy discs
2396 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2397 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2398 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2399 # OS/2's system install, which has a completely different semantic
2400 # ./install, which can be erroneously created by make from ./install.sh.
2401 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2402 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2403 if test -z "$INSTALL"; then
2404 if test "${ac_cv_path_install+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 for as_dir in $PATH
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 # Account for people who put trailing slashes in PATH elements.
2413 case $as_dir/ in
2414 ./ | .// | /cC/* | \
2415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2416 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2417 /usr/ucb/* ) ;;
2419 # OSF1 and SCO ODT 3.0 have their own names for install.
2420 # Don't use installbsd from OSF since it installs stuff as root
2421 # by default.
2422 for ac_prog in ginstall scoinst install; do
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2425 if test $ac_prog = install &&
2426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427 # AIX install. It has an incompatible calling convention.
2429 elif test $ac_prog = install &&
2430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2431 # program-specific install script used by HP pwplus--don't use.
2433 else
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2435 break 3
2438 done
2439 done
2441 esac
2442 done
2443 IFS=$as_save_IFS
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2457 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2458 echo "${ECHO_T}$INSTALL" >&6; }
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2469 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2470 # Just in case
2471 sleep 1
2472 echo timestamp > conftest.file
2473 # Do `set' in a subshell so we don't clobber the current shell's
2474 # arguments. Must try -L first in case configure is actually a
2475 # symlink; some systems play weird games with the mod time of symlinks
2476 # (eg FreeBSD returns the mod time of the symlink's containing
2477 # directory).
2478 if (
2479 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2481 # -L didn't work.
2482 set X `ls -t $srcdir/configure conftest.file`
2484 rm -f conftest.file
2485 if test "$*" != "X $srcdir/configure conftest.file" \
2486 && test "$*" != "X conftest.file $srcdir/configure"; then
2488 # If neither matched, then we have a broken ls. This can happen
2489 # if, for instance, CONFIG_SHELL is bash and it inherits a
2490 # broken ls alias from the environment. This has actually
2491 # happened. Such a system could not be considered "sane".
2492 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2493 alias in your environment" >&5
2494 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2495 alias in your environment" >&2;}
2496 { (exit 1); exit 1; }; }
2499 test "$2" = conftest.file
2501 then
2502 # Ok.
2504 else
2505 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2506 Check your system clock" >&5
2507 echo "$as_me: error: newly created file is older than distributed files!
2508 Check your system clock" >&2;}
2509 { (exit 1); exit 1; }; }
2511 { echo "$as_me:$LINENO: result: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2513 test "$program_prefix" != NONE &&
2514 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2515 # Use a double $ so make ignores it.
2516 test "$program_suffix" != NONE &&
2517 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2518 # Double any \ or $. echo might interpret backslashes.
2519 # By default was `s,x,x', remove it if useless.
2520 cat <<\_ACEOF >conftest.sed
2521 s/[\\$]/&&/g;s/;s,x,x,$//
2522 _ACEOF
2523 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2524 rm -f conftest.sed
2526 # expand $ac_aux_dir to an absolute path
2527 am_aux_dir=`cd $ac_aux_dir && pwd`
2529 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --run true"; then
2532 am_missing_run="$MISSING --run "
2533 else
2534 am_missing_run=
2535 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2536 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2539 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2540 # We used to keeping the `.' as first argument, in order to
2541 # allow $(mkdir_p) to be used without argument. As in
2542 # $(mkdir_p) $(somedir)
2543 # where $(somedir) is conditionally defined. However this is wrong
2544 # for two reasons:
2545 # 1. if the package is installed by a user who cannot write `.'
2546 # make install will fail,
2547 # 2. the above comment should most certainly read
2548 # $(mkdir_p) $(DESTDIR)$(somedir)
2549 # so it does not work when $(somedir) is undefined and
2550 # $(DESTDIR) is not.
2551 # To support the latter case, we have to write
2552 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2553 # so the `.' trick is pointless.
2554 mkdir_p='mkdir -p --'
2555 else
2556 # On NextStep and OpenStep, the `mkdir' command does not
2557 # recognize any option. It will interpret all options as
2558 # directories to create, and then abort because `.' already
2559 # exists.
2560 for d in ./-p ./--version;
2562 test -d $d && rmdir $d
2563 done
2564 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2565 if test -f "$ac_aux_dir/mkinstalldirs"; then
2566 mkdir_p='$(mkinstalldirs)'
2567 else
2568 mkdir_p='$(install_sh) -d'
2572 for ac_prog in gawk mawk nawk awk
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2578 if test "${ac_cv_prog_AWK+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 else
2581 if test -n "$AWK"; then
2582 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2583 else
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 ac_cv_prog_AWK="$ac_prog"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2595 done
2596 done
2597 IFS=$as_save_IFS
2601 AWK=$ac_cv_prog_AWK
2602 if test -n "$AWK"; then
2603 { echo "$as_me:$LINENO: result: $AWK" >&5
2604 echo "${ECHO_T}$AWK" >&6; }
2605 else
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2611 test -n "$AWK" && break
2612 done
2614 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2615 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2616 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 else
2620 cat >conftest.make <<\_ACEOF
2621 SHELL = /bin/sh
2622 all:
2623 @echo '@@@%%%=$(MAKE)=@@@%%%'
2624 _ACEOF
2625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2627 *@@@%%%=?*=@@@%%%*)
2628 eval ac_cv_prog_make_${ac_make}_set=yes;;
2630 eval ac_cv_prog_make_${ac_make}_set=no;;
2631 esac
2632 rm -f conftest.make
2634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2635 { echo "$as_me:$LINENO: result: yes" >&5
2636 echo "${ECHO_T}yes" >&6; }
2637 SET_MAKE=
2638 else
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2641 SET_MAKE="MAKE=${MAKE-make}"
2644 rm -rf .tst 2>/dev/null
2645 mkdir .tst 2>/dev/null
2646 if test -d .tst; then
2647 am__leading_dot=.
2648 else
2649 am__leading_dot=_
2651 rmdir .tst 2>/dev/null
2653 # test to see if srcdir already configured
2654 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2655 test -f $srcdir/config.status; then
2656 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2657 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2658 { (exit 1); exit 1; }; }
2661 # test whether we have cygpath
2662 if test -z "$CYGPATH_W"; then
2663 if (cygpath --version) >/dev/null 2>/dev/null; then
2664 CYGPATH_W='cygpath -w'
2665 else
2666 CYGPATH_W=echo
2671 # Define the identity of the package.
2672 PACKAGE=curl
2673 VERSION=$VERSION
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE "$PACKAGE"
2678 _ACEOF
2681 cat >>confdefs.h <<_ACEOF
2682 #define VERSION "$VERSION"
2683 _ACEOF
2685 # Some tools Automake needs.
2687 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2690 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2693 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2696 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2699 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2701 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2703 # Installed binaries are usually stripped using `strip' when the user
2704 # run `make install-strip'. However `strip' might not be the right
2705 # tool to use in cross-compilation environments, therefore Automake
2706 # will honor the `STRIP' environment variable to overrule this program.
2707 if test "$cross_compiling" != no; then
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}strip; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_STRIP+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$STRIP"; then
2717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 STRIP=$ac_cv_prog_STRIP
2737 if test -n "$STRIP"; then
2738 { echo "$as_me:$LINENO: result: $STRIP" >&5
2739 echo "${ECHO_T}$STRIP" >&6; }
2740 else
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_STRIP"; then
2748 ac_ct_STRIP=$STRIP
2749 # Extract the first word of "strip", so it can be a program name with args.
2750 set dummy strip; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_STRIP"; then
2757 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_STRIP="strip"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2770 done
2771 done
2772 IFS=$as_save_IFS
2776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2777 if test -n "$ac_ct_STRIP"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2779 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_STRIP" = x; then
2786 STRIP=":"
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 STRIP=$ac_ct_STRIP
2800 else
2801 STRIP="$ac_cv_prog_STRIP"
2805 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2807 # We need awk for the "check" target. The system "awk" is bad on
2808 # some platforms.
2809 # Always define AMTAR for backward compatibility.
2811 AMTAR=${AMTAR-"${am_missing_run}tar"}
2813 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2819 { echo "$as_me:$LINENO: checking curl version" >&5
2820 echo $ECHO_N "checking curl version... $ECHO_C" >&6; }
2821 { echo "$as_me:$LINENO: result: $VERSION" >&5
2822 echo "${ECHO_T}$VERSION" >&6; }
2824 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
2827 PKGADD_PKG="HAXXcurl"
2828 PKGADD_NAME="cURL - a client that groks URLs"
2829 PKGADD_VENDOR="curl.haxx.se"
2834 curl_ssl_msg="no (--with-ssl / --with-gnutls)"
2835 curl_ssh_msg="no (--with-libssh2)"
2836 curl_zlib_msg="no (--with-zlib)"
2837 curl_krb4_msg="no (--with-krb4*)"
2838 curl_gss_msg="no (--with-gssapi)"
2839 curl_spnego_msg="no (--with-spnego)"
2840 curl_ares_msg="no (--enable-ares)"
2841 curl_ipv6_msg="no (--enable-ipv6)"
2842 curl_idn_msg="no (--with-libidn)"
2843 curl_manual_msg="no (--enable-manual)"
2844 curl_verbose_msg="enabled (--disable-verbose)"
2845 curl_sspi_msg="no (--enable-sspi)"
2846 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
2847 curl_ldaps_msg="no (--enable-ldaps)"
2849 ALL_LIBS=$LIBS
2852 # Make sure we can run config.sub.
2853 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2854 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2855 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2856 { (exit 1); exit 1; }; }
2858 { echo "$as_me:$LINENO: checking build system type" >&5
2859 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2860 if test "${ac_cv_build+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_build_alias=$build_alias
2864 test "x$ac_build_alias" = x &&
2865 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2866 test "x$ac_build_alias" = x &&
2867 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2868 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2869 { (exit 1); exit 1; }; }
2870 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2871 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2873 { (exit 1); exit 1; }; }
2876 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2877 echo "${ECHO_T}$ac_cv_build" >&6; }
2878 case $ac_cv_build in
2879 *-*-*) ;;
2880 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2881 echo "$as_me: error: invalid value of canonical build" >&2;}
2882 { (exit 1); exit 1; }; };;
2883 esac
2884 build=$ac_cv_build
2885 ac_save_IFS=$IFS; IFS='-'
2886 set x $ac_cv_build
2887 shift
2888 build_cpu=$1
2889 build_vendor=$2
2890 shift; shift
2891 # Remember, the first character of IFS is used to create $*,
2892 # except with old shells:
2893 build_os=$*
2894 IFS=$ac_save_IFS
2895 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2898 { echo "$as_me:$LINENO: checking host system type" >&5
2899 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2900 if test "${ac_cv_host+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903 if test "x$host_alias" = x; then
2904 ac_cv_host=$ac_cv_build
2905 else
2906 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2907 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2908 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2909 { (exit 1); exit 1; }; }
2913 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2914 echo "${ECHO_T}$ac_cv_host" >&6; }
2915 case $ac_cv_host in
2916 *-*-*) ;;
2917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2918 echo "$as_me: error: invalid value of canonical host" >&2;}
2919 { (exit 1); exit 1; }; };;
2920 esac
2921 host=$ac_cv_host
2922 ac_save_IFS=$IFS; IFS='-'
2923 set x $ac_cv_host
2924 shift
2925 host_cpu=$1
2926 host_vendor=$2
2927 shift; shift
2928 # Remember, the first character of IFS is used to create $*,
2929 # except with old shells:
2930 host_os=$*
2931 IFS=$ac_save_IFS
2932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936 cat >>confdefs.h <<_ACEOF
2937 #define OS "${host}"
2938 _ACEOF
2941 ac_ext=c
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_CC+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2968 done
2969 done
2970 IFS=$as_save_IFS
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { echo "$as_me:$LINENO: result: $CC" >&5
2977 echo "${ECHO_T}$CC" >&6; }
2978 else
2979 { echo "$as_me:$LINENO: result: no" >&5
2980 echo "${ECHO_T}no" >&6; }
2985 if test -z "$ac_cv_prog_CC"; then
2986 ac_ct_CC=$CC
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988 set dummy gcc; ac_word=$2
2989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2991 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3017 echo "${ECHO_T}$ac_ct_CC" >&6; }
3018 else
3019 { echo "$as_me:$LINENO: result: no" >&5
3020 echo "${ECHO_T}no" >&6; }
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3038 else
3039 CC="$ac_cv_prog_CC"
3042 if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045 set dummy ${ac_tool_prefix}cc; ac_word=$2
3046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="${ac_tool_prefix}cc"
3062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3065 done
3066 done
3067 IFS=$as_save_IFS
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { echo "$as_me:$LINENO: result: $CC" >&5
3074 echo "${ECHO_T}$CC" >&6; }
3075 else
3076 { echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6; }
3083 if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085 set dummy cc; ac_word=$2
3086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_CC+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 ac_prog_rejected=no
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected=yes
3104 continue
3106 ac_cv_prog_CC="cc"
3107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3110 done
3111 done
3112 IFS=$as_save_IFS
3114 if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy $ac_cv_prog_CC
3117 shift
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3122 shift
3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130 { echo "$as_me:$LINENO: result: $CC" >&5
3131 echo "${ECHO_T}$CC" >&6; }
3132 else
3133 { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3139 if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in cl.exe
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3147 if test "${ac_cv_prog_CC+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3164 done
3165 done
3166 IFS=$as_save_IFS
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { echo "$as_me:$LINENO: result: $CC" >&5
3173 echo "${ECHO_T}$CC" >&6; }
3174 else
3175 { echo "$as_me:$LINENO: result: no" >&5
3176 echo "${ECHO_T}no" >&6; }
3180 test -n "$CC" && break
3181 done
3183 if test -z "$CC"; then
3184 ac_ct_CC=$CC
3185 for ac_prog in cl.exe
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188 set dummy $ac_prog; ac_word=$2
3189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3191 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CC="$ac_prog"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3210 IFS=$as_save_IFS
3214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215 if test -n "$ac_ct_CC"; then
3216 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3217 echo "${ECHO_T}$ac_ct_CC" >&6; }
3218 else
3219 { echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6; }
3224 test -n "$ac_ct_CC" && break
3225 done
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231 yes:)
3232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3233 whose name does not start with the host triplet. If you think this
3234 configuration is useful to you, please write to autoconf@gnu.org." >&5
3235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3236 whose name does not start with the host triplet. If you think this
3237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240 CC=$ac_ct_CC
3247 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }
3253 # Provide some information about the compiler.
3254 echo "$as_me:$LINENO: checking for C compiler version" >&5
3255 ac_compiler=`set X $ac_compile; echo $2`
3256 { (ac_try="$ac_compiler --version >&5"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compiler --version >&5") 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 { (ac_try="$ac_compiler -v >&5"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compiler -v >&5") 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3276 { (ac_try="$ac_compiler -V >&5"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compiler -V >&5") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3295 main ()
3299 return 0;
3301 _ACEOF
3302 ac_clean_files_save=$ac_clean_files
3303 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3304 # Try to create an executable without -o first, disregard a.out.
3305 # It will help us diagnose broken compilers, and finding out an intuition
3306 # of exeext.
3307 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3308 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3309 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311 # List of possible output files, starting from the most likely.
3312 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3313 # only as a last resort. b.out is created by i960 compilers.
3314 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3316 # The IRIX 6 linker writes into existing files which may not be
3317 # executable, retaining their permissions. Remove them first so a
3318 # subsequent execution test works.
3319 ac_rmfiles=
3320 for ac_file in $ac_files
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3324 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3325 esac
3326 done
3327 rm -f $ac_rmfiles
3329 if { (ac_try="$ac_link_default"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_link_default") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; then
3339 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3340 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3341 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3342 # so that the user can short-circuit this test for compilers unknown to
3343 # Autoconf.
3344 for ac_file in $ac_files ''
3346 test -f "$ac_file" || continue
3347 case $ac_file in
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3350 [ab].out )
3351 # We found the default executable, but exeext='' is most
3352 # certainly right.
3353 break;;
3354 *.* )
3355 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3356 then :; else
3357 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 # We set ac_cv_exeext here because the later test for it is not
3360 # safe: cross compilers may not add the suffix if given an `-o'
3361 # argument, so we may need to know it at that point already.
3362 # Even if this section looks crufty: it has the advantage of
3363 # actually working.
3364 break;;
3366 break;;
3367 esac
3368 done
3369 test "$ac_cv_exeext" = no && ac_cv_exeext=
3371 else
3372 ac_file=''
3375 { echo "$as_me:$LINENO: result: $ac_file" >&5
3376 echo "${ECHO_T}$ac_file" >&6; }
3377 if test -z "$ac_file"; then
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3382 See \`config.log' for more details." >&5
3383 echo "$as_me: error: C compiler cannot create executables
3384 See \`config.log' for more details." >&2;}
3385 { (exit 77); exit 77; }; }
3388 ac_exeext=$ac_cv_exeext
3390 # Check that the compiler produces executables we can run. If not, either
3391 # the compiler is broken, or we cross compile.
3392 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3393 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3394 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3395 # If not cross compiling, check that we can run a simple program.
3396 if test "$cross_compiling" != yes; then
3397 if { ac_try='./$ac_file'
3398 { (case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details." >&5
3415 echo "$as_me: error: cannot run C compiled programs.
3416 If you meant to cross compile, use \`--host'.
3417 See \`config.log' for more details." >&2;}
3418 { (exit 1); exit 1; }; }
3422 { echo "$as_me:$LINENO: result: yes" >&5
3423 echo "${ECHO_T}yes" >&6; }
3425 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3426 ac_clean_files=$ac_clean_files_save
3427 # Check that the compiler produces executables we can run. If not, either
3428 # the compiler is broken, or we cross compile.
3429 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3430 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3431 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3432 echo "${ECHO_T}$cross_compiling" >&6; }
3434 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3435 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3436 if { (ac_try="$ac_link"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_link") 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; then
3446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3448 # work properly (i.e., refer to `conftest.exe'), while it won't with
3449 # `rm'.
3450 for ac_file in conftest.exe conftest conftest.*; do
3451 test -f "$ac_file" || continue
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 break;;
3456 * ) break;;
3457 esac
3458 done
3459 else
3460 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
3467 rm -f conftest$ac_cv_exeext
3468 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3469 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3471 rm -f conftest.$ac_ext
3472 EXEEXT=$ac_cv_exeext
3473 ac_exeext=$EXEEXT
3474 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3475 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3476 if test "${ac_cv_objext+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 else
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3487 main ()
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.o conftest.obj
3495 if { (ac_try="$ac_compile"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>&5
3502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; then
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 break;;
3511 esac
3512 done
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3527 echo "${ECHO_T}$ac_cv_objext" >&6; }
3528 OBJEXT=$ac_cv_objext
3529 ac_objext=$OBJEXT
3530 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3531 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3532 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535 cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h. */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3543 main ()
3545 #ifndef __GNUC__
3546 choke me
3547 #endif
3550 return 0;
3552 _ACEOF
3553 rm -f conftest.$ac_objext
3554 if { (ac_try="$ac_compile"
3555 case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560 (eval "$ac_compile") 2>conftest.er1
3561 ac_status=$?
3562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } && {
3567 test -z "$ac_c_werror_flag" ||
3568 test ! -s conftest.err
3569 } && test -s conftest.$ac_objext; then
3570 ac_compiler_gnu=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 ac_compiler_gnu=no
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3582 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3584 GCC=`test $ac_compiler_gnu = yes && echo yes`
3585 ac_test_CFLAGS=${CFLAGS+set}
3586 ac_save_CFLAGS=$CFLAGS
3587 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_cc_g+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 ac_save_c_werror_flag=$ac_c_werror_flag
3593 ac_c_werror_flag=yes
3594 ac_cv_prog_cc_g=no
3595 CFLAGS="-g"
3596 cat >conftest.$ac_ext <<_ACEOF
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_prog_cc_g=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 CFLAGS=""
3634 cat >conftest.$ac_ext <<_ACEOF
3635 /* confdefs.h. */
3636 _ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3642 main ()
3646 return 0;
3648 _ACEOF
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3657 ac_status=$?
3658 grep -v '^ *+' conftest.er1 >conftest.err
3659 rm -f conftest.er1
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3667 else
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3672 CFLAGS="-g"
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3681 main ()
3685 return 0;
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (ac_try="$ac_compile"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_compile") 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } && {
3702 test -z "$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 } && test -s conftest.$ac_objext; then
3705 ac_cv_prog_cc_g=yes
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_c_werror_flag=$ac_save_c_werror_flag
3722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3723 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3724 if test "$ac_test_CFLAGS" = set; then
3725 CFLAGS=$ac_save_CFLAGS
3726 elif test $ac_cv_prog_cc_g = yes; then
3727 if test "$GCC" = yes; then
3728 CFLAGS="-g -O2"
3729 else
3730 CFLAGS="-g"
3732 else
3733 if test "$GCC" = yes; then
3734 CFLAGS="-O2"
3735 else
3736 CFLAGS=
3739 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3740 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3741 if test "${ac_cv_prog_cc_c89+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 ac_cv_prog_cc_c89=no
3745 ac_save_CC=$CC
3746 cat >conftest.$ac_ext <<_ACEOF
3747 /* confdefs.h. */
3748 _ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3752 #include <stdarg.h>
3753 #include <stdio.h>
3754 #include <sys/types.h>
3755 #include <sys/stat.h>
3756 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3757 struct buf { int x; };
3758 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3759 static char *e (p, i)
3760 char **p;
3761 int i;
3763 return p[i];
3765 static char *f (char * (*g) (char **, int), char **p, ...)
3767 char *s;
3768 va_list v;
3769 va_start (v,p);
3770 s = g (p, va_arg (v,int));
3771 va_end (v);
3772 return s;
3775 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3776 function prototypes and stuff, but not '\xHH' hex character constants.
3777 These don't provoke an error unfortunately, instead are silently treated
3778 as 'x'. The following induces an error, until -std is added to get
3779 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3780 array size at least. It's necessary to write '\x00'==0 to get something
3781 that's true only with -std. */
3782 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3785 inside strings and character constants. */
3786 #define FOO(x) 'x'
3787 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789 int test (int i, double x);
3790 struct s1 {int (*f) (int a);};
3791 struct s2 {int (*f) (double a);};
3792 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3793 int argc;
3794 char **argv;
3796 main ()
3798 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3800 return 0;
3802 _ACEOF
3803 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3804 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 CC="$ac_save_CC $ac_arg"
3807 rm -f conftest.$ac_objext
3808 if { (ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
3824 ac_cv_prog_cc_c89=$ac_arg
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3832 rm -f core conftest.err conftest.$ac_objext
3833 test "x$ac_cv_prog_cc_c89" != "xno" && break
3834 done
3835 rm -f conftest.$ac_ext
3836 CC=$ac_save_CC
3839 # AC_CACHE_VAL
3840 case "x$ac_cv_prog_cc_c89" in
3842 { echo "$as_me:$LINENO: result: none needed" >&5
3843 echo "${ECHO_T}none needed" >&6; } ;;
3844 xno)
3845 { echo "$as_me:$LINENO: result: unsupported" >&5
3846 echo "${ECHO_T}unsupported" >&6; } ;;
3848 CC="$CC $ac_cv_prog_cc_c89"
3849 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3850 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3851 esac
3854 ac_ext=c
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 DEPDIR="${am__leading_dot}deps"
3861 ac_config_commands="$ac_config_commands depfiles"
3864 am_make=${MAKE-make}
3865 cat > confinc << 'END'
3866 am__doit:
3867 @echo done
3868 .PHONY: am__doit
3870 # If we don't find an include directive, just comment out the code.
3871 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3872 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3873 am__include="#"
3874 am__quote=
3875 _am_result=none
3876 # First try GNU make style include.
3877 echo "include confinc" > confmf
3878 # We grep out `Entering directory' and `Leaving directory'
3879 # messages which can occur if `w' ends up in MAKEFLAGS.
3880 # In particular we don't look at `^make:' because GNU make might
3881 # be invoked under some other name (usually "gmake"), in which
3882 # case it prints its new name instead of `make'.
3883 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3884 am__include=include
3885 am__quote=
3886 _am_result=GNU
3888 # Now try BSD make style include.
3889 if test "$am__include" = "#"; then
3890 echo '.include "confinc"' > confmf
3891 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3892 am__include=.include
3893 am__quote="\""
3894 _am_result=BSD
3899 { echo "$as_me:$LINENO: result: $_am_result" >&5
3900 echo "${ECHO_T}$_am_result" >&6; }
3901 rm -f confinc confmf
3903 # Check whether --enable-dependency-tracking was given.
3904 if test "${enable_dependency_tracking+set}" = set; then
3905 enableval=$enable_dependency_tracking;
3908 if test "x$enable_dependency_tracking" != xno; then
3909 am_depcomp="$ac_aux_dir/depcomp"
3910 AMDEPBACKSLASH='\'
3914 if test "x$enable_dependency_tracking" != xno; then
3915 AMDEP_TRUE=
3916 AMDEP_FALSE='#'
3917 else
3918 AMDEP_TRUE='#'
3919 AMDEP_FALSE=
3925 depcc="$CC" am_compiler_list=
3927 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3928 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3929 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933 # We make a subdir and do the tests there. Otherwise we can end up
3934 # making bogus files that we don't know about and never remove. For
3935 # instance it was reported that on HP-UX the gcc test will end up
3936 # making a dummy file named `D' -- because `-MD' means `put the output
3937 # in D'.
3938 mkdir conftest.dir
3939 # Copy depcomp to subdir because otherwise we won't find it if we're
3940 # using a relative directory.
3941 cp "$am_depcomp" conftest.dir
3942 cd conftest.dir
3943 # We will build objects and dependencies in a subdirectory because
3944 # it helps to detect inapplicable dependency modes. For instance
3945 # both Tru64's cc and ICC support -MD to output dependencies as a
3946 # side effect of compilation, but ICC will put the dependencies in
3947 # the current directory while Tru64 will put them in the object
3948 # directory.
3949 mkdir sub
3951 am_cv_CC_dependencies_compiler_type=none
3952 if test "$am_compiler_list" = ""; then
3953 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3955 for depmode in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3963 : > sub/conftest.c
3964 for i in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967 # Solaris 8's {/usr,}/bin/sh.
3968 touch sub/conftst$i.h
3969 done
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972 case $depmode in
3973 nosideeffect)
3974 # after this tag, mechanisms are not by side-effect, so they'll
3975 # only be used when explicitly requested
3976 if test "x$enable_dependency_tracking" = xyes; then
3977 continue
3978 else
3979 break
3982 none) break ;;
3983 esac
3984 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985 # mode. It turns out that the SunPro C++ compiler does not properly
3986 # handle `-M -o', and we need to detect this.
3987 if depmode=$depmode \
3988 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3991 >/dev/null 2>conftest.err &&
3992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995 # icc doesn't choke on unknown options, it will just issue warnings
3996 # or remarks (even with -Werror). So we grep stderr for any message
3997 # that says an option was ignored or not supported.
3998 # When given -MP, icc 7.0 and 7.1 complain thusly:
3999 # icc: Command line warning: ignoring option '-M'; no argument required
4000 # The diagnosis changed in icc 8.0:
4001 # icc: Command line remark: option '-MP' not supported
4002 if (grep 'ignoring option' conftest.err ||
4003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004 am_cv_CC_dependencies_compiler_type=$depmode
4005 break
4008 done
4010 cd ..
4011 rm -rf conftest.dir
4012 else
4013 am_cv_CC_dependencies_compiler_type=none
4017 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4018 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4019 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCC_TRUE=
4027 am__fastdepCC_FALSE='#'
4028 else
4029 am__fastdepCC_TRUE='#'
4030 am__fastdepCC_FALSE=
4037 curl_includes_inttypes="\
4038 /* includes start */
4039 #ifdef HAVE_SYS_TYPES_H
4040 # include <sys/types.h>
4041 #endif
4042 #ifdef HAVE_STDINT_H
4043 # include <stdint.h>
4044 #endif
4045 #ifdef HAVE_INTTYPES_H
4046 # include <inttypes.h>
4047 #endif
4048 /* includes end */"
4052 for ac_header in sys/types.h stdint.h inttypes.h
4054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 $curl_includes_inttypes
4068 #include <$ac_header>
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4072 case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_compile") 2>conftest.er1
4078 ac_status=$?
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest.$ac_objext; then
4087 eval "$as_ac_Header=yes"
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 eval "$as_ac_Header=no"
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_res=`eval echo '${'$as_ac_Header'}'`
4098 { echo "$as_me:$LINENO: result: $ac_res" >&5
4099 echo "${ECHO_T}$ac_res" >&6; }
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4107 done
4110 ac_ext=c
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4117 # On Suns, sometimes $CPP names a directory.
4118 if test -n "$CPP" && test -d "$CPP"; then
4119 CPP=
4121 if test -z "$CPP"; then
4122 if test "${ac_cv_prog_CPP+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 # Double quotes because CPP needs to be expanded
4126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4128 ac_preproc_ok=false
4129 for ac_c_preproc_warn_flag in '' yes
4131 # Use a header file that comes with gcc, so configuring glibc
4132 # with a fresh cross-compiler works.
4133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4134 # <limits.h> exists even on freestanding compilers.
4135 # On the NeXT, cc -E runs the code through the compiler's parser,
4136 # not just through cpp. "Syntax error" is here to catch this case.
4137 cat >conftest.$ac_ext <<_ACEOF
4138 /* confdefs.h. */
4139 _ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148 Syntax error
4149 _ACEOF
4150 if { (ac_try="$ac_cpp conftest.$ac_ext"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } >/dev/null && {
4163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4164 test ! -s conftest.err
4165 }; then
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 # Broken: fails on valid input.
4172 continue
4175 rm -f conftest.err conftest.$ac_ext
4177 # OK, works on sane cases. Now check whether nonexistent headers
4178 # can be detected and how.
4179 cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h. */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h. */
4185 #include <ac_nonexistent.h>
4186 _ACEOF
4187 if { (ac_try="$ac_cpp conftest.$ac_ext"
4188 case "(($ac_try" in
4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4191 esac
4192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4194 ac_status=$?
4195 grep -v '^ *+' conftest.er1 >conftest.err
4196 rm -f conftest.er1
4197 cat conftest.err >&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); } >/dev/null && {
4200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4201 test ! -s conftest.err
4202 }; then
4203 # Broken: success on invalid input.
4204 continue
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 # Passes both tests.
4210 ac_preproc_ok=:
4211 break
4214 rm -f conftest.err conftest.$ac_ext
4216 done
4217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4218 rm -f conftest.err conftest.$ac_ext
4219 if $ac_preproc_ok; then
4220 break
4223 done
4224 ac_cv_prog_CPP=$CPP
4227 CPP=$ac_cv_prog_CPP
4228 else
4229 ac_cv_prog_CPP=$CPP
4231 { echo "$as_me:$LINENO: result: $CPP" >&5
4232 echo "${ECHO_T}$CPP" >&6; }
4233 ac_preproc_ok=false
4234 for ac_c_preproc_warn_flag in '' yes
4236 # Use a header file that comes with gcc, so configuring glibc
4237 # with a fresh cross-compiler works.
4238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4239 # <limits.h> exists even on freestanding compilers.
4240 # On the NeXT, cc -E runs the code through the compiler's parser,
4241 # not just through cpp. "Syntax error" is here to catch this case.
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h. */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #ifdef __STDC__
4249 # include <limits.h>
4250 #else
4251 # include <assert.h>
4252 #endif
4253 Syntax error
4254 _ACEOF
4255 if { (ac_try="$ac_cpp conftest.$ac_ext"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null && {
4268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 }; then
4272 else
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Broken: fails on valid input.
4277 continue
4280 rm -f conftest.err conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h. */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4290 #include <ac_nonexistent.h>
4291 _ACEOF
4292 if { (ac_try="$ac_cpp conftest.$ac_ext"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4299 ac_status=$?
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } >/dev/null && {
4305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4306 test ! -s conftest.err
4307 }; then
4308 # Broken: success on invalid input.
4309 continue
4310 else
4311 echo "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4314 # Passes both tests.
4315 ac_preproc_ok=:
4316 break
4319 rm -f conftest.err conftest.$ac_ext
4321 done
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.err conftest.$ac_ext
4324 if $ac_preproc_ok; then
4326 else
4327 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4328 See \`config.log' for more details." >&5
4329 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details." >&2;}
4331 { (exit 1); exit 1; }; }
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4342 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4343 if test "${ac_cv_path_GREP+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 # Extract the first word of "grep ggrep" to use in msg output
4347 if test -z "$GREP"; then
4348 set dummy grep ggrep; ac_prog_name=$2
4349 if test "${ac_cv_path_GREP+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$ac_path_GREP" --version 2>&1` in
4366 *GNU*)
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4369 ac_count=0
4370 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4371 while :
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 ac_count=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4392 $ac_path_GREP_found && break 3
4393 done
4394 done
4396 done
4397 IFS=$as_save_IFS
4402 GREP="$ac_cv_path_GREP"
4403 if test -z "$GREP"; then
4404 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4405 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4406 { (exit 1); exit 1; }; }
4409 else
4410 ac_cv_path_GREP=$GREP
4415 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4416 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4417 GREP="$ac_cv_path_GREP"
4420 { echo "$as_me:$LINENO: checking for egrep" >&5
4421 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_EGREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4426 then ac_cv_path_EGREP="$GREP -E"
4427 else
4428 # Extract the first word of "egrep" to use in msg output
4429 if test -z "$EGREP"; then
4430 set dummy egrep; ac_prog_name=$2
4431 if test "${ac_cv_path_EGREP+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 ac_path_EGREP_found=false
4435 # Loop through the user's path and test for each of PROGNAME-LIST
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_prog in egrep; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4444 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4445 # Check for GNU ac_path_EGREP and select it if it is found.
4446 # Check for GNU $ac_path_EGREP
4447 case `"$ac_path_EGREP" --version 2>&1` in
4448 *GNU*)
4449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4451 ac_count=0
4452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4453 while :
4455 cat "conftest.in" "conftest.in" >"conftest.tmp"
4456 mv "conftest.tmp" "conftest.in"
4457 cp "conftest.in" "conftest.nl"
4458 echo 'EGREP' >> "conftest.nl"
4459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4461 ac_count=`expr $ac_count + 1`
4462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4463 # Best one so far, save it but keep looking for a better one
4464 ac_cv_path_EGREP="$ac_path_EGREP"
4465 ac_path_EGREP_max=$ac_count
4467 # 10*(2^10) chars as input seems more than enough
4468 test $ac_count -gt 10 && break
4469 done
4470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471 esac
4474 $ac_path_EGREP_found && break 3
4475 done
4476 done
4478 done
4479 IFS=$as_save_IFS
4484 EGREP="$ac_cv_path_EGREP"
4485 if test -z "$EGREP"; then
4486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4488 { (exit 1); exit 1; }; }
4491 else
4492 ac_cv_path_EGREP=$EGREP
4498 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4499 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4503 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4505 if test "${ac_cv_header_stdc+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <stdlib.h>
4515 #include <stdarg.h>
4516 #include <string.h>
4517 #include <float.h>
4520 main ()
4524 return 0;
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (ac_try="$ac_compile"
4529 case "(($ac_try" in
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4532 esac
4533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534 (eval "$ac_compile") 2>conftest.er1
4535 ac_status=$?
4536 grep -v '^ *+' conftest.er1 >conftest.err
4537 rm -f conftest.er1
4538 cat conftest.err >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); } && {
4541 test -z "$ac_c_werror_flag" ||
4542 test ! -s conftest.err
4543 } && test -s conftest.$ac_objext; then
4544 ac_cv_header_stdc=yes
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 ac_cv_header_stdc=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 if test $ac_cv_header_stdc = yes; then
4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <string.h>
4564 _ACEOF
4565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4566 $EGREP "memchr" >/dev/null 2>&1; then
4568 else
4569 ac_cv_header_stdc=no
4571 rm -f conftest*
4575 if test $ac_cv_header_stdc = yes; then
4576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <stdlib.h>
4585 _ACEOF
4586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "free" >/dev/null 2>&1; then
4589 else
4590 ac_cv_header_stdc=no
4592 rm -f conftest*
4596 if test $ac_cv_header_stdc = yes; then
4597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4598 if test "$cross_compiling" = yes; then
4600 else
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 #include <ctype.h>
4608 #include <stdlib.h>
4609 #if ((' ' & 0x0FF) == 0x020)
4610 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4611 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4612 #else
4613 # define ISLOWER(c) \
4614 (('a' <= (c) && (c) <= 'i') \
4615 || ('j' <= (c) && (c) <= 'r') \
4616 || ('s' <= (c) && (c) <= 'z'))
4617 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4618 #endif
4620 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4622 main ()
4624 int i;
4625 for (i = 0; i < 256; i++)
4626 if (XOR (islower (i), ISLOWER (i))
4627 || toupper (i) != TOUPPER (i))
4628 return 2;
4629 return 0;
4631 _ACEOF
4632 rm -f conftest$ac_exeext
4633 if { (ac_try="$ac_link"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_link") 2>&5
4640 ac_status=$?
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4643 { (case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_try") 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; }; then
4653 else
4654 echo "$as_me: program exited with status $ac_status" >&5
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ( exit $ac_status )
4659 ac_cv_header_stdc=no
4661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4667 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4668 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4669 if test $ac_cv_header_stdc = yes; then
4671 cat >>confdefs.h <<\_ACEOF
4672 #define STDC_HEADERS 1
4673 _ACEOF
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4687 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4688 inttypes.h stdint.h unistd.h
4690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4704 #include <$ac_header>
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (ac_try="$ac_compile"
4708 case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 eval "$as_ac_Header=yes"
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 eval "$as_ac_Header=no"
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_res=`eval echo '${'$as_ac_Header'}'`
4734 { echo "$as_me:$LINENO: result: $ac_res" >&5
4735 echo "${ECHO_T}$ac_res" >&6; }
4736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4737 cat >>confdefs.h <<_ACEOF
4738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4739 _ACEOF
4743 done
4749 if test -z "$SED"; then
4750 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
4751 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
4752 { (exit 1); exit 1; }; }
4755 { echo "$as_me:$LINENO: checking for long" >&5
4756 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
4757 if test "${ac_cv_type_long+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 cat >conftest.$ac_ext <<_ACEOF
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4767 typedef long ac__type_new_;
4769 main ()
4771 if ((ac__type_new_ *) 0)
4772 return 0;
4773 if (sizeof (ac__type_new_))
4774 return 0;
4776 return 0;
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4781 case "(($ac_try" in
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 ac_cv_type_long=yes
4797 else
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 ac_cv_type_long=no
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4807 echo "${ECHO_T}$ac_cv_type_long" >&6; }
4809 # The cast to long int works around a bug in the HP C Compiler
4810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4812 # This bug is HP SR number 8606223364.
4813 { echo "$as_me:$LINENO: checking size of long" >&5
4814 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
4815 if test "${ac_cv_sizeof_long+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818 if test "$cross_compiling" = yes; then
4819 # Depending upon the size, compute the lo and hi bounds.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 $ac_includes_default
4827 typedef long ac__type_sizeof_;
4829 main ()
4831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4832 test_array [0] = 0
4835 return 0;
4837 _ACEOF
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_lo=0 ac_mid=0
4856 while :; do
4857 cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h. */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4863 $ac_includes_default
4864 typedef long ac__type_sizeof_;
4866 main ()
4868 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4869 test_array [0] = 0
4872 return 0;
4874 _ACEOF
4875 rm -f conftest.$ac_objext
4876 if { (ac_try="$ac_compile"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_compile") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } && {
4889 test -z "$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 } && test -s conftest.$ac_objext; then
4892 ac_hi=$ac_mid; break
4893 else
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 ac_lo=`expr $ac_mid + 1`
4898 if test $ac_lo -le $ac_mid; then
4899 ac_lo= ac_hi=
4900 break
4902 ac_mid=`expr 2 '*' $ac_mid + 1`
4905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 done
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 $ac_includes_default
4918 typedef long ac__type_sizeof_;
4920 main ()
4922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4923 test_array [0] = 0
4926 return 0;
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compile") 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && {
4943 test -z "$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 } && test -s conftest.$ac_objext; then
4946 ac_hi=-1 ac_mid=-1
4947 while :; do
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4955 typedef long ac__type_sizeof_;
4957 main ()
4959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4960 test_array [0] = 0
4963 return 0;
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 ac_lo=$ac_mid; break
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_hi=`expr '(' $ac_mid ')' - 1`
4989 if test $ac_mid -le $ac_hi; then
4990 ac_lo= ac_hi=
4991 break
4993 ac_mid=`expr 2 '*' $ac_mid`
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 done
4998 else
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_lo= ac_hi=
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 # Binary search between lo and hi bounds.
5010 while test "x$ac_lo" != "x$ac_hi"; do
5011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 typedef long ac__type_sizeof_;
5021 main ()
5023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5024 test_array [0] = 0
5027 return 0;
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (ac_try="$ac_compile"
5032 case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035 esac
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_compile") 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && {
5044 test -z "$ac_c_werror_flag" ||
5045 test ! -s conftest.err
5046 } && test -s conftest.$ac_objext; then
5047 ac_hi=$ac_mid
5048 else
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5052 ac_lo=`expr '(' $ac_mid ')' + 1`
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 case $ac_lo in
5058 ?*) ac_cv_sizeof_long=$ac_lo;;
5059 '') if test "$ac_cv_type_long" = yes; then
5060 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5061 See \`config.log' for more details." >&5
5062 echo "$as_me: error: cannot compute sizeof (long)
5063 See \`config.log' for more details." >&2;}
5064 { (exit 77); exit 77; }; }
5065 else
5066 ac_cv_sizeof_long=0
5067 fi ;;
5068 esac
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5077 typedef long ac__type_sizeof_;
5078 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5079 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5080 #include <stdio.h>
5081 #include <stdlib.h>
5083 main ()
5086 FILE *f = fopen ("conftest.val", "w");
5087 if (! f)
5088 return 1;
5089 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5091 long int i = longval ();
5092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5093 return 1;
5094 fprintf (f, "%ld\n", i);
5096 else
5098 unsigned long int i = ulongval ();
5099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5100 return 1;
5101 fprintf (f, "%lu\n", i);
5103 return ferror (f) || fclose (f) != 0;
5106 return 0;
5108 _ACEOF
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_link") 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (case "(($ac_try" in
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_try") 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_sizeof_long=`cat conftest.val`
5130 else
5131 echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5135 ( exit $ac_status )
5136 if test "$ac_cv_type_long" = yes; then
5137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
5138 See \`config.log' for more details." >&5
5139 echo "$as_me: error: cannot compute sizeof (long)
5140 See \`config.log' for more details." >&2;}
5141 { (exit 77); exit 77; }; }
5142 else
5143 ac_cv_sizeof_long=0
5146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5148 rm -f conftest.val
5150 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5151 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
5155 cat >>confdefs.h <<_ACEOF
5156 #define SIZEOF_LONG $ac_cv_sizeof_long
5157 _ACEOF
5160 { echo "$as_me:$LINENO: checking for void*" >&5
5161 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
5162 if test "${ac_cv_type_voidp+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 $ac_includes_default
5172 typedef void* ac__type_new_;
5174 main ()
5176 if ((ac__type_new_ *) 0)
5177 return 0;
5178 if (sizeof (ac__type_new_))
5179 return 0;
5181 return 0;
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
5201 ac_cv_type_voidp=yes
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5206 ac_cv_type_voidp=no
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
5212 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
5214 # The cast to long int works around a bug in the HP C Compiler
5215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217 # This bug is HP SR number 8606223364.
5218 { echo "$as_me:$LINENO: checking size of void*" >&5
5219 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
5220 if test "${ac_cv_sizeof_voidp+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223 if test "$cross_compiling" = yes; then
5224 # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5232 typedef void* ac__type_sizeof_;
5234 main ()
5236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5237 test_array [0] = 0
5240 return 0;
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 ac_lo=0 ac_mid=0
5261 while :; do
5262 cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5269 typedef void* ac__type_sizeof_;
5271 main ()
5273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5274 test_array [0] = 0
5277 return 0;
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 ac_hi=$ac_mid; break
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_lo=`expr $ac_mid + 1`
5303 if test $ac_lo -le $ac_mid; then
5304 ac_lo= ac_hi=
5305 break
5307 ac_mid=`expr 2 '*' $ac_mid + 1`
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 done
5312 else
5313 echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5323 typedef void* ac__type_sizeof_;
5325 main ()
5327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5328 test_array [0] = 0
5331 return 0;
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_compile") 2>conftest.er1
5342 ac_status=$?
5343 grep -v '^ *+' conftest.er1 >conftest.err
5344 rm -f conftest.er1
5345 cat conftest.err >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } && {
5348 test -z "$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5350 } && test -s conftest.$ac_objext; then
5351 ac_hi=-1 ac_mid=-1
5352 while :; do
5353 cat >conftest.$ac_ext <<_ACEOF
5354 /* confdefs.h. */
5355 _ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 $ac_includes_default
5360 typedef void* ac__type_sizeof_;
5362 main ()
5364 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5365 test_array [0] = 0
5368 return 0;
5370 _ACEOF
5371 rm -f conftest.$ac_objext
5372 if { (ac_try="$ac_compile"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_lo=$ac_mid; break
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_hi=`expr '(' $ac_mid ')' - 1`
5394 if test $ac_mid -le $ac_hi; then
5395 ac_lo= ac_hi=
5396 break
5398 ac_mid=`expr 2 '*' $ac_mid`
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 done
5403 else
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5407 ac_lo= ac_hi=
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 # Binary search between lo and hi bounds.
5415 while test "x$ac_lo" != "x$ac_hi"; do
5416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef void* ac__type_sizeof_;
5426 main ()
5428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5429 test_array [0] = 0
5432 return 0;
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5443 ac_status=$?
5444 grep -v '^ *+' conftest.er1 >conftest.err
5445 rm -f conftest.er1
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5452 ac_hi=$ac_mid
5453 else
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_lo=`expr '(' $ac_mid ')' + 1`
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 done
5462 case $ac_lo in
5463 ?*) ac_cv_sizeof_voidp=$ac_lo;;
5464 '') if test "$ac_cv_type_voidp" = yes; then
5465 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
5466 See \`config.log' for more details." >&5
5467 echo "$as_me: error: cannot compute sizeof (void*)
5468 See \`config.log' for more details." >&2;}
5469 { (exit 77); exit 77; }; }
5470 else
5471 ac_cv_sizeof_voidp=0
5472 fi ;;
5473 esac
5474 else
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h. */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 typedef void* ac__type_sizeof_;
5483 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5484 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5485 #include <stdio.h>
5486 #include <stdlib.h>
5488 main ()
5491 FILE *f = fopen ("conftest.val", "w");
5492 if (! f)
5493 return 1;
5494 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5496 long int i = longval ();
5497 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5498 return 1;
5499 fprintf (f, "%ld\n", i);
5501 else
5503 unsigned long int i = ulongval ();
5504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5505 return 1;
5506 fprintf (f, "%lu\n", i);
5508 return ferror (f) || fclose (f) != 0;
5511 return 0;
5513 _ACEOF
5514 rm -f conftest$ac_exeext
5515 if { (ac_try="$ac_link"
5516 case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_link") 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5525 { (case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_try") 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 ac_cv_sizeof_voidp=`cat conftest.val`
5535 else
5536 echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ( exit $ac_status )
5541 if test "$ac_cv_type_voidp" = yes; then
5542 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
5543 See \`config.log' for more details." >&5
5544 echo "$as_me: error: cannot compute sizeof (void*)
5545 See \`config.log' for more details." >&2;}
5546 { (exit 77); exit 77; }; }
5547 else
5548 ac_cv_sizeof_voidp=0
5551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5553 rm -f conftest.val
5555 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
5556 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
5560 cat >>confdefs.h <<_ACEOF
5561 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5562 _ACEOF
5566 if test -z "$ac_cv_sizeof_long" ||
5567 test "$ac_cv_sizeof_long" -eq "0"; then
5568 { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
5569 echo "$as_me: error: cannot find out size of long." >&2;}
5570 { (exit 1); exit 1; }; }
5572 if test -z "$ac_cv_sizeof_voidp" ||
5573 test "$ac_cv_sizeof_voidp" -eq "0"; then
5574 { { echo "$as_me:$LINENO: error: cannot find out size of void*." >&5
5575 echo "$as_me: error: cannot find out size of void*." >&2;}
5576 { (exit 1); exit 1; }; }
5579 x_LP64_long=""
5580 x_LP32_long=""
5581 x_LP16_long=""
5583 if test "$ac_cv_sizeof_long" -eq "8" &&
5584 test "$ac_cv_sizeof_voidp" -ge "8"; then
5585 x_LP64_long="long"
5586 elif test "$ac_cv_sizeof_long" -eq "4" &&
5587 test "$ac_cv_sizeof_voidp" -ge "4"; then
5588 x_LP32_long="long"
5589 elif test "$ac_cv_sizeof_long" -eq "2" &&
5590 test "$ac_cv_sizeof_voidp" -ge "2"; then
5591 x_LP16_long="long"
5595 curl_typeof_curl_off_t="unknown"
5596 curl_sizeof_curl_off_t="unknown"
5597 curl_format_curl_off_t="unknown"
5598 curl_format_curl_off_tu="unknown"
5600 if test "$curl_typeof_curl_off_t" = "unknown"; then
5601 { echo "$as_me:$LINENO: checking for 64-bit curl_off_t data type" >&5
5602 echo $ECHO_N "checking for 64-bit curl_off_t data type... $ECHO_C" >&6; }
5603 for t8 in \
5604 "$x_LP64_long" \
5605 'int64_t' \
5606 '__int64' \
5607 'long long' \
5608 '__longlong' \
5609 '__longlong_t' ; do
5611 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
5612 tmp_includes=""
5613 tmp_source=""
5614 tmp_fmt=""
5615 case `echo "$t8" | $as_tr_sh` in
5616 int64_t)
5617 tmp_includes="$curl_includes_inttypes"
5618 tmp_source="char f[] = PRId64;"
5619 tmp_fmt="PRId64"
5621 int32_t)
5622 tmp_includes="$curl_includes_inttypes"
5623 tmp_source="char f[] = PRId32;"
5624 tmp_fmt="PRId32"
5626 int16_t)
5627 tmp_includes="$curl_includes_inttypes"
5628 tmp_source="char f[] = PRId16;"
5629 tmp_fmt="PRId16"
5631 esac
5632 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5640 $tmp_includes
5641 typedef $t8 curl_off_t;
5642 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
5645 main ()
5648 $tmp_source
5649 curl_off_t dummy;
5652 return 0;
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5674 if test -z "$tmp_fmt"; then
5675 curl_typeof_curl_off_t="$t8"
5676 curl_sizeof_curl_off_t="8"
5677 else
5679 as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5680 as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5681 if test -z "$SED"; then
5682 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
5683 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
5684 { (exit 1); exit 1; }; }
5686 if test -z "$GREP"; then
5687 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
5688 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
5689 { (exit 1); exit 1; }; }
5692 tmp_exp=""
5693 cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $curl_includes_inttypes
5701 #ifdef $tmp_fmt
5702 CURL_DEF_TOKEN $tmp_fmt
5703 #endif
5706 _ACEOF
5707 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 ac_status=$?
5715 grep -v '^ *+' conftest.er1 >conftest.err
5716 rm -f conftest.er1
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } >/dev/null && {
5720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5721 test ! -s conftest.err
5722 }; then
5724 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5725 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5726 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5727 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5728 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5729 tmp_exp=""
5732 else
5733 echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5739 rm -f conftest.err conftest.$ac_ext
5740 if test -z "$tmp_exp"; then
5741 eval "$as_ac_HaveDef=no"
5743 else
5744 eval "$as_ac_HaveDef=yes"
5745 eval "$as_ac_Def=\$tmp_exp"
5749 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5750 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5751 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
5752 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
5753 curl_typeof_curl_off_t="$t8"
5754 curl_sizeof_curl_off_t="8"
5758 else
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768 done
5769 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
5770 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
5772 if test "$curl_typeof_curl_off_t" = "unknown"; then
5773 { echo "$as_me:$LINENO: checking for 32-bit curl_off_t data type" >&5
5774 echo $ECHO_N "checking for 32-bit curl_off_t data type... $ECHO_C" >&6; }
5775 for t4 in \
5776 "$x_LP32_long" \
5777 'int32_t' \
5778 '__int32' \
5779 'int' ; do
5781 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
5782 tmp_includes=""
5783 tmp_source=""
5784 tmp_fmt=""
5785 case `echo "$t4" | $as_tr_sh` in
5786 int64_t)
5787 tmp_includes="$curl_includes_inttypes"
5788 tmp_source="char f[] = PRId64;"
5789 tmp_fmt="PRId64"
5791 int32_t)
5792 tmp_includes="$curl_includes_inttypes"
5793 tmp_source="char f[] = PRId32;"
5794 tmp_fmt="PRId32"
5796 int16_t)
5797 tmp_includes="$curl_includes_inttypes"
5798 tmp_source="char f[] = PRId16;"
5799 tmp_fmt="PRId16"
5801 esac
5802 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5810 $tmp_includes
5811 typedef $t4 curl_off_t;
5812 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
5815 main ()
5818 $tmp_source
5819 curl_off_t dummy;
5822 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5844 if test -z "$tmp_fmt"; then
5845 curl_typeof_curl_off_t="$t4"
5846 curl_sizeof_curl_off_t="4"
5847 else
5849 as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5850 as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5851 if test -z "$SED"; then
5852 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
5853 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
5854 { (exit 1); exit 1; }; }
5856 if test -z "$GREP"; then
5857 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
5858 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
5859 { (exit 1); exit 1; }; }
5862 tmp_exp=""
5863 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 $curl_includes_inttypes
5871 #ifdef $tmp_fmt
5872 CURL_DEF_TOKEN $tmp_fmt
5873 #endif
5876 _ACEOF
5877 if { (ac_try="$ac_cpp conftest.$ac_ext"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } >/dev/null && {
5890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 }; then
5894 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
5895 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
5896 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
5897 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
5898 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
5899 tmp_exp=""
5902 else
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f conftest.err conftest.$ac_ext
5910 if test -z "$tmp_exp"; then
5911 eval "$as_ac_HaveDef=no"
5913 else
5914 eval "$as_ac_HaveDef=yes"
5915 eval "$as_ac_Def=\$tmp_exp"
5919 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
5920 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
5921 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
5922 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
5923 curl_typeof_curl_off_t="$t4"
5924 curl_sizeof_curl_off_t="4"
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938 done
5939 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
5940 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
5942 if test "$curl_typeof_curl_off_t" = "unknown"; then
5943 { echo "$as_me:$LINENO: checking for 16-bit curl_off_t data type" >&5
5944 echo $ECHO_N "checking for 16-bit curl_off_t data type... $ECHO_C" >&6; }
5945 for t2 in \
5946 "$x_LP16_long" \
5947 'int16_t' \
5948 '__int16' \
5949 'int' ; do
5951 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
5952 tmp_includes=""
5953 tmp_source=""
5954 tmp_fmt=""
5955 case `echo "$t2" | $as_tr_sh` in
5956 int64_t)
5957 tmp_includes="$curl_includes_inttypes"
5958 tmp_source="char f[] = PRId64;"
5959 tmp_fmt="PRId64"
5961 int32_t)
5962 tmp_includes="$curl_includes_inttypes"
5963 tmp_source="char f[] = PRId32;"
5964 tmp_fmt="PRId32"
5966 int16_t)
5967 tmp_includes="$curl_includes_inttypes"
5968 tmp_source="char f[] = PRId16;"
5969 tmp_fmt="PRId16"
5971 esac
5972 cat >conftest.$ac_ext <<_ACEOF
5974 /* confdefs.h. */
5975 _ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5980 $tmp_includes
5981 typedef $t2 curl_off_t;
5982 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
5985 main ()
5988 $tmp_source
5989 curl_off_t dummy;
5992 return 0;
5995 _ACEOF
5996 rm -f conftest.$ac_objext
5997 if { (ac_try="$ac_compile"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_compile") 2>conftest.er1
6004 ac_status=$?
6005 grep -v '^ *+' conftest.er1 >conftest.err
6006 rm -f conftest.er1
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest.$ac_objext; then
6014 if test -z "$tmp_fmt"; then
6015 curl_typeof_curl_off_t="$t2"
6016 curl_sizeof_curl_off_t="2"
6017 else
6019 as_ac_HaveDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6020 as_ac_Def=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6021 if test -z "$SED"; then
6022 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
6023 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
6024 { (exit 1); exit 1; }; }
6026 if test -z "$GREP"; then
6027 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
6028 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
6029 { (exit 1); exit 1; }; }
6032 tmp_exp=""
6033 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $curl_includes_inttypes
6041 #ifdef $tmp_fmt
6042 CURL_DEF_TOKEN $tmp_fmt
6043 #endif
6046 _ACEOF
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6048 case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051 esac
6052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6054 ac_status=$?
6055 grep -v '^ *+' conftest.er1 >conftest.err
6056 rm -f conftest.er1
6057 cat conftest.err >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } >/dev/null && {
6060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6061 test ! -s conftest.err
6062 }; then
6064 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6065 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6066 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
6067 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6068 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6069 tmp_exp=""
6072 else
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6079 rm -f conftest.err conftest.$ac_ext
6080 if test -z "$tmp_exp"; then
6081 eval "$as_ac_HaveDef=no"
6083 else
6084 eval "$as_ac_HaveDef=yes"
6085 eval "$as_ac_Def=\$tmp_exp"
6089 as_tmp_HaveFmtDef=`echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6090 as_tmp_FmtDef=`echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6091 if test `eval echo '${'$as_tmp_HaveFmtDef'}'` = "yes"; then
6092 curl_format_curl_off_t=`eval echo '${'$as_tmp_FmtDef'}'`
6093 curl_typeof_curl_off_t="$t2"
6094 curl_sizeof_curl_off_t="2"
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 done
6109 { echo "$as_me:$LINENO: result: $curl_typeof_curl_off_t" >&5
6110 echo "${ECHO_T}$curl_typeof_curl_off_t" >&6; }
6112 if test "$curl_typeof_curl_off_t" = "unknown"; then
6113 { { echo "$as_me:$LINENO: error: cannot find data type for curl_off_t." >&5
6114 echo "$as_me: error: cannot find data type for curl_off_t." >&2;}
6115 { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking size of curl_off_t" >&5
6119 echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6; }
6120 { echo "$as_me:$LINENO: result: $curl_sizeof_curl_off_t" >&5
6121 echo "${ECHO_T}$curl_sizeof_curl_off_t" >&6; }
6123 { echo "$as_me:$LINENO: checking formatting string directive for curl_off_t" >&5
6124 echo $ECHO_N "checking formatting string directive for curl_off_t... $ECHO_C" >&6; }
6125 if test "$curl_format_curl_off_t" != "unknown"; then
6126 x_pull_headers="yes"
6127 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6128 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6129 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6130 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6131 else
6132 x_pull_headers="no"
6133 case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
6134 long_long | __longlong | __longlong_t)
6135 curl_format_curl_off_t="lld"
6136 curl_format_curl_off_tu="llu"
6138 long)
6139 curl_format_curl_off_t="ld"
6140 curl_format_curl_off_tu="lu"
6142 int)
6143 curl_format_curl_off_t="d"
6144 curl_format_curl_off_tu="u"
6146 __int64)
6147 curl_format_curl_off_t="I64d"
6148 curl_format_curl_off_tu="I64u"
6150 __int32)
6151 curl_format_curl_off_t="I32d"
6152 curl_format_curl_off_tu="I32u"
6154 __int16)
6155 curl_format_curl_off_t="I16d"
6156 curl_format_curl_off_tu="I16u"
6159 { { echo "$as_me:$LINENO: error: cannot find print format string for curl_off_t." >&5
6160 echo "$as_me: error: cannot find print format string for curl_off_t." >&2;}
6161 { (exit 1); exit 1; }; }
6163 esac
6165 { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_t\"" >&5
6166 echo "${ECHO_T}\"$curl_format_curl_off_t\"" >&6; }
6168 { echo "$as_me:$LINENO: checking formatting string directive for unsigned curl_off_t" >&5
6169 echo $ECHO_N "checking formatting string directive for unsigned curl_off_t... $ECHO_C" >&6; }
6170 { echo "$as_me:$LINENO: result: \"$curl_format_curl_off_tu\"" >&5
6171 echo "${ECHO_T}\"$curl_format_curl_off_tu\"" >&6; }
6174 { echo "$as_me:$LINENO: checking constant suffix string for curl_off_t" >&5
6175 echo $ECHO_N "checking constant suffix string for curl_off_t... $ECHO_C" >&6; }
6177 curl_suffix_curl_off_t="unknown"
6178 curl_suffix_curl_off_tu="unknown"
6180 case `echo "$curl_typeof_curl_off_t" | $as_tr_sh` in
6181 long_long | __longlong | __longlong_t)
6182 tst_suffixes="LL::"
6184 long)
6185 tst_suffixes="L::"
6187 int)
6188 tst_suffixes="::"
6190 __int64 | int64_t)
6191 tst_suffixes="LL:i64::"
6193 __int32 | int32_t)
6194 tst_suffixes="L:i32::"
6196 __int16 | int16_t)
6197 tst_suffixes="L:i16::"
6200 { { echo "$as_me:$LINENO: error: unexpected data type $curl_typeof_curl_off_t" >&5
6201 echo "$as_me: error: unexpected data type $curl_typeof_curl_off_t" >&2;}
6202 { (exit 1); exit 1; }; }
6204 esac
6206 old_IFS=$IFS; IFS=':'
6207 for tmp_ssuf in $tst_suffixes ; do
6208 IFS=$old_IFS
6209 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6210 case $tmp_ssuf in
6211 i64 | i32 | i16)
6212 tmp_usuf="u$tmp_ssuf"
6214 LL | L)
6215 tmp_usuf="U$tmp_ssuf"
6218 tmp_usuf=""
6220 esac
6221 cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h. */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6229 $curl_includes_inttypes
6230 typedef $curl_typeof_curl_off_t new_t;
6233 main ()
6236 new_t s1;
6237 new_t s2;
6238 s1 = -10$tmp_ssuf ;
6239 s2 = 20$tmp_ssuf ;
6240 if(s1 > s2)
6241 return 1;
6244 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (ac_try="$ac_compile"
6250 case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compile") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest.$ac_objext; then
6266 curl_suffix_curl_off_t="$tmp_ssuf"
6267 curl_suffix_curl_off_tu="$tmp_usuf"
6269 else
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 done
6279 IFS=$old_IFS
6281 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6282 { { echo "$as_me:$LINENO: error: cannot find constant suffix string for curl_off_t." >&5
6283 echo "$as_me: error: cannot find constant suffix string for curl_off_t." >&2;}
6284 { (exit 1); exit 1; }; }
6285 else
6286 { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_t" >&5
6287 echo "${ECHO_T}$curl_suffix_curl_off_t" >&6; }
6288 { echo "$as_me:$LINENO: checking constant suffix string for unsigned curl_off_t" >&5
6289 echo $ECHO_N "checking constant suffix string for unsigned curl_off_t... $ECHO_C" >&6; }
6290 { echo "$as_me:$LINENO: result: $curl_suffix_curl_off_tu" >&5
6291 echo "${ECHO_T}$curl_suffix_curl_off_tu" >&6; }
6296 if test "$x_pull_headers" = "yes"; then
6297 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6299 cat >>confdefs.h <<_EOF
6300 #define CURL_PULL_SYS_TYPES_H 1
6301 _EOF
6304 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6306 cat >>confdefs.h <<_EOF
6307 #define CURL_PULL_STDINT_H 1
6308 _EOF
6311 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6313 cat >>confdefs.h <<_EOF
6314 #define CURL_PULL_INTTYPES_H 1
6315 _EOF
6321 cat >>confdefs.h <<_EOF
6322 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6323 _EOF
6326 cat >>confdefs.h <<_EOF
6327 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6328 _EOF
6331 cat >>confdefs.h <<_EOF
6332 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6333 _EOF
6336 cat >>confdefs.h <<_EOF
6337 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6338 _EOF
6341 cat >>confdefs.h <<_EOF
6342 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6343 _EOF
6346 cat >>confdefs.h <<_EOF
6347 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6348 _EOF
6351 cat >>confdefs.h <<_EOF
6352 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6353 _EOF
6361 { echo "$as_me:$LINENO: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6362 echo $ECHO_N "checking if OS is AIX (to define _ALL_SOURCE)... $ECHO_C" >&6; }
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6370 #ifdef _AIX
6371 yes_this_is_aix
6372 #endif
6374 _ACEOF
6375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then
6378 { echo "$as_me:$LINENO: result: yes" >&5
6379 echo "${ECHO_T}yes" >&6; }
6380 cat >>confdefs.h <<\_ACEOF
6381 #define _ALL_SOURCE 1
6382 _ACEOF
6385 else
6387 { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6391 rm -f conftest*
6397 { echo "$as_me:$LINENO: checking if _REENTRANT is already defined" >&5
6398 echo $ECHO_N "checking if _REENTRANT is already defined... $ECHO_C" >&6; }
6399 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6409 main ()
6412 #ifdef _REENTRANT
6413 int dummy=1;
6414 #else
6415 force compilation error
6416 #endif
6419 return 0;
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6441 { echo "$as_me:$LINENO: result: yes" >&5
6442 echo "${ECHO_T}yes" >&6; }
6443 tmp_reentrant_initially_defined="yes"
6445 else
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6450 { echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6; }
6452 tmp_reentrant_initially_defined="no"
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$tmp_reentrant_initially_defined" = "no"; then
6459 { echo "$as_me:$LINENO: checking if _REENTRANT is actually needed" >&5
6460 echo $ECHO_N "checking if _REENTRANT is actually needed... $ECHO_C" >&6; }
6463 tmp_need_reentrant="no"
6465 if test "$tmp_need_reentrant" = "no"; then
6467 cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h. */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
6475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6476 #define gmtime_r innocuous_gmtime_r
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char gmtime_r (); below.
6480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6481 <limits.h> exists even on freestanding compilers. */
6483 #ifdef __STDC__
6484 # include <limits.h>
6485 #else
6486 # include <assert.h>
6487 #endif
6489 #undef gmtime_r
6491 /* Override any GCC internal prototype to avoid an error.
6492 Use char because int might match the return type of a GCC
6493 builtin and then its argument prototype would still apply. */
6494 #ifdef __cplusplus
6495 extern "C"
6496 #endif
6497 char gmtime_r ();
6498 /* The GNU C library defines this for functions which it implements
6499 to always fail with ENOSYS. Some functions are actually named
6500 something starting with __ and the normal name is an alias. */
6501 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6502 choke me
6503 #endif
6506 main ()
6508 return gmtime_r ();
6510 return 0;
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (ac_try="$ac_link"
6516 case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519 esac
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_link") 2>conftest.er1
6522 ac_status=$?
6523 grep -v '^ *+' conftest.er1 >conftest.err
6524 rm -f conftest.er1
6525 cat conftest.err >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && {
6528 test -z "$ac_c_werror_flag" ||
6529 test ! -s conftest.err
6530 } && test -s conftest$ac_exeext &&
6531 $as_test_x conftest$ac_exeext; then
6533 tmp_gmtime_r="yes"
6535 else
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6540 tmp_gmtime_r="no"
6544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6545 conftest$ac_exeext conftest.$ac_ext
6546 if test "$tmp_gmtime_r" = "yes"; then
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6554 #include <sys/types.h>
6555 #include <time.h>
6557 _ACEOF
6558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6559 $EGREP "gmtime_r" >/dev/null 2>&1; then
6561 tmp_gmtime_r="proto_declared"
6563 else
6565 cat >conftest.$ac_ext <<_ACEOF
6566 /* confdefs.h. */
6567 _ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6572 #define _REENTRANT
6573 #include <sys/types.h>
6574 #include <time.h>
6576 _ACEOF
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "gmtime_r" >/dev/null 2>&1; then
6580 tmp_gmtime_r="proto_needs_reentrant"
6581 tmp_need_reentrant="yes"
6584 rm -f conftest*
6588 rm -f conftest*
6593 if test "$tmp_need_reentrant" = "no"; then
6595 cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h. */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
6603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6604 #define localtime_r innocuous_localtime_r
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char localtime_r (); below.
6608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6609 <limits.h> exists even on freestanding compilers. */
6611 #ifdef __STDC__
6612 # include <limits.h>
6613 #else
6614 # include <assert.h>
6615 #endif
6617 #undef localtime_r
6619 /* Override any GCC internal prototype to avoid an error.
6620 Use char because int might match the return type of a GCC
6621 builtin and then its argument prototype would still apply. */
6622 #ifdef __cplusplus
6623 extern "C"
6624 #endif
6625 char localtime_r ();
6626 /* The GNU C library defines this for functions which it implements
6627 to always fail with ENOSYS. Some functions are actually named
6628 something starting with __ and the normal name is an alias. */
6629 #if defined __stub_localtime_r || defined __stub___localtime_r
6630 choke me
6631 #endif
6634 main ()
6636 return localtime_r ();
6638 return 0;
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (ac_try="$ac_link"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_link") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } && {
6656 test -z "$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 } && test -s conftest$ac_exeext &&
6659 $as_test_x conftest$ac_exeext; then
6661 tmp_localtime_r="yes"
6663 else
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6668 tmp_localtime_r="no"
6672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6673 conftest$ac_exeext conftest.$ac_ext
6674 if test "$tmp_localtime_r" = "yes"; then
6675 cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h. */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6682 #include <sys/types.h>
6683 #include <time.h>
6685 _ACEOF
6686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "localtime_r" >/dev/null 2>&1; then
6689 tmp_localtime_r="proto_declared"
6691 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6700 #define _REENTRANT
6701 #include <sys/types.h>
6702 #include <time.h>
6704 _ACEOF
6705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6706 $EGREP "localtime_r" >/dev/null 2>&1; then
6708 tmp_localtime_r="proto_needs_reentrant"
6709 tmp_need_reentrant="yes"
6712 rm -f conftest*
6716 rm -f conftest*
6721 if test "$tmp_need_reentrant" = "no"; then
6723 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r.
6731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6732 #define strerror_r innocuous_strerror_r
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char strerror_r (); below.
6736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737 <limits.h> exists even on freestanding compilers. */
6739 #ifdef __STDC__
6740 # include <limits.h>
6741 #else
6742 # include <assert.h>
6743 #endif
6745 #undef strerror_r
6747 /* Override any GCC internal prototype to avoid an error.
6748 Use char because int might match the return type of a GCC
6749 builtin and then its argument prototype would still apply. */
6750 #ifdef __cplusplus
6751 extern "C"
6752 #endif
6753 char strerror_r ();
6754 /* The GNU C library defines this for functions which it implements
6755 to always fail with ENOSYS. Some functions are actually named
6756 something starting with __ and the normal name is an alias. */
6757 #if defined __stub_strerror_r || defined __stub___strerror_r
6758 choke me
6759 #endif
6762 main ()
6764 return strerror_r ();
6766 return 0;
6769 _ACEOF
6770 rm -f conftest.$ac_objext conftest$ac_exeext
6771 if { (ac_try="$ac_link"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_link") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 } && test -s conftest$ac_exeext &&
6787 $as_test_x conftest$ac_exeext; then
6789 tmp_strerror_r="yes"
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6796 tmp_strerror_r="no"
6800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6801 conftest$ac_exeext conftest.$ac_ext
6802 if test "$tmp_strerror_r" = "yes"; then
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6810 #include <sys/types.h>
6811 #include <string.h>
6813 _ACEOF
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "strerror_r" >/dev/null 2>&1; then
6817 tmp_strerror_r="proto_declared"
6819 else
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6828 #define _REENTRANT
6829 #include <sys/types.h>
6830 #include <string.h>
6832 _ACEOF
6833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6834 $EGREP "strerror_r" >/dev/null 2>&1; then
6836 tmp_strerror_r="proto_needs_reentrant"
6837 tmp_need_reentrant="yes"
6840 rm -f conftest*
6844 rm -f conftest*
6849 if test "$tmp_need_reentrant" = "no"; then
6851 cat >conftest.$ac_ext <<_ACEOF
6853 /* confdefs.h. */
6854 _ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6858 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
6859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6860 #define strtok_r innocuous_strtok_r
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char strtok_r (); below.
6864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865 <limits.h> exists even on freestanding compilers. */
6867 #ifdef __STDC__
6868 # include <limits.h>
6869 #else
6870 # include <assert.h>
6871 #endif
6873 #undef strtok_r
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6878 #ifdef __cplusplus
6879 extern "C"
6880 #endif
6881 char strtok_r ();
6882 /* The GNU C library defines this for functions which it implements
6883 to always fail with ENOSYS. Some functions are actually named
6884 something starting with __ and the normal name is an alias. */
6885 #if defined __stub_strtok_r || defined __stub___strtok_r
6886 choke me
6887 #endif
6890 main ()
6892 return strtok_r ();
6894 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext &&
6915 $as_test_x conftest$ac_exeext; then
6917 tmp_strtok_r="yes"
6919 else
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6924 tmp_strtok_r="no"
6928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6929 conftest$ac_exeext conftest.$ac_ext
6930 if test "$tmp_strtok_r" = "yes"; then
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6938 #include <sys/types.h>
6939 #include <string.h>
6941 _ACEOF
6942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6943 $EGREP "strtok_r" >/dev/null 2>&1; then
6945 tmp_strtok_r="proto_declared"
6947 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6956 #define _REENTRANT
6957 #include <sys/types.h>
6958 #include <string.h>
6960 _ACEOF
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962 $EGREP "strtok_r" >/dev/null 2>&1; then
6964 tmp_strtok_r="proto_needs_reentrant"
6965 tmp_need_reentrant="yes"
6968 rm -f conftest*
6972 rm -f conftest*
6977 if test "$tmp_need_reentrant" = "no"; then
6979 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h. */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r.
6987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6988 #define inet_ntoa_r innocuous_inet_ntoa_r
6990 /* System header to define __stub macros and hopefully few prototypes,
6991 which can conflict with char inet_ntoa_r (); below.
6992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 <limits.h> exists even on freestanding compilers. */
6995 #ifdef __STDC__
6996 # include <limits.h>
6997 #else
6998 # include <assert.h>
6999 #endif
7001 #undef inet_ntoa_r
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 char inet_ntoa_r ();
7010 /* The GNU C library defines this for functions which it implements
7011 to always fail with ENOSYS. Some functions are actually named
7012 something starting with __ and the normal name is an alias. */
7013 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7014 choke me
7015 #endif
7018 main ()
7020 return inet_ntoa_r ();
7022 return 0;
7025 _ACEOF
7026 rm -f conftest.$ac_objext conftest$ac_exeext
7027 if { (ac_try="$ac_link"
7028 case "(($ac_try" in
7029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030 *) ac_try_echo=$ac_try;;
7031 esac
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033 (eval "$ac_link") 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } && {
7040 test -z "$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7042 } && test -s conftest$ac_exeext &&
7043 $as_test_x conftest$ac_exeext; then
7045 tmp_inet_ntoa_r="yes"
7047 else
7048 echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7052 tmp_inet_ntoa_r="no"
7056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7057 conftest$ac_exeext conftest.$ac_ext
7058 if test "$tmp_inet_ntoa_r" = "yes"; then
7059 cat >conftest.$ac_ext <<_ACEOF
7060 /* confdefs.h. */
7061 _ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 #include <sys/socket.h>
7068 #include <netinet/in.h>
7069 #include <arpa/inet.h>
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
7075 tmp_inet_ntoa_r="proto_declared"
7077 else
7079 cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h. */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7086 #define _REENTRANT
7087 #include <sys/types.h>
7088 #include <sys/socket.h>
7089 #include <netinet/in.h>
7090 #include <arpa/inet.h>
7092 _ACEOF
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
7096 tmp_inet_ntoa_r="proto_needs_reentrant"
7097 tmp_need_reentrant="yes"
7100 rm -f conftest*
7104 rm -f conftest*
7109 if test "$tmp_need_reentrant" = "no"; then
7111 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r.
7119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7120 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7122 /* System header to define __stub macros and hopefully few prototypes,
7123 which can conflict with char gethostbyaddr_r (); below.
7124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125 <limits.h> exists even on freestanding compilers. */
7127 #ifdef __STDC__
7128 # include <limits.h>
7129 #else
7130 # include <assert.h>
7131 #endif
7133 #undef gethostbyaddr_r
7135 /* Override any GCC internal prototype to avoid an error.
7136 Use char because int might match the return type of a GCC
7137 builtin and then its argument prototype would still apply. */
7138 #ifdef __cplusplus
7139 extern "C"
7140 #endif
7141 char gethostbyaddr_r ();
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7146 choke me
7147 #endif
7150 main ()
7152 return gethostbyaddr_r ();
7154 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext conftest$ac_exeext
7159 if { (ac_try="$ac_link"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_link") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest$ac_exeext &&
7175 $as_test_x conftest$ac_exeext; then
7177 tmp_gethostbyaddr_r="yes"
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7184 tmp_gethostbyaddr_r="no"
7188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7189 conftest$ac_exeext conftest.$ac_ext
7190 if test "$tmp_gethostbyaddr_r" = "yes"; then
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <netdb.h>
7201 _ACEOF
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7205 tmp_gethostbyaddr_r="proto_declared"
7207 else
7209 cat >conftest.$ac_ext <<_ACEOF
7210 /* confdefs.h. */
7211 _ACEOF
7212 cat confdefs.h >>conftest.$ac_ext
7213 cat >>conftest.$ac_ext <<_ACEOF
7214 /* end confdefs.h. */
7216 #define _REENTRANT
7217 #include <sys/types.h>
7218 #include <netdb.h>
7220 _ACEOF
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
7224 tmp_gethostbyaddr_r="proto_needs_reentrant"
7225 tmp_need_reentrant="yes"
7228 rm -f conftest*
7232 rm -f conftest*
7237 if test "$tmp_need_reentrant" = "no"; then
7239 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
7247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7248 #define gethostbyname_r innocuous_gethostbyname_r
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char gethostbyname_r (); below.
7252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 <limits.h> exists even on freestanding compilers. */
7255 #ifdef __STDC__
7256 # include <limits.h>
7257 #else
7258 # include <assert.h>
7259 #endif
7261 #undef gethostbyname_r
7263 /* Override any GCC internal prototype to avoid an error.
7264 Use char because int might match the return type of a GCC
7265 builtin and then its argument prototype would still apply. */
7266 #ifdef __cplusplus
7267 extern "C"
7268 #endif
7269 char gethostbyname_r ();
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7274 choke me
7275 #endif
7278 main ()
7280 return gethostbyname_r ();
7282 return 0;
7285 _ACEOF
7286 rm -f conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7288 case "(($ac_try" in
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7291 esac
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_link") 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest$ac_exeext &&
7303 $as_test_x conftest$ac_exeext; then
7305 tmp_gethostbyname_r="yes"
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7312 tmp_gethostbyname_r="no"
7316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7317 conftest$ac_exeext conftest.$ac_ext
7318 if test "$tmp_gethostbyname_r" = "yes"; then
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 #include <sys/types.h>
7327 #include <netdb.h>
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331 $EGREP "gethostbyname_r" >/dev/null 2>&1; then
7333 tmp_gethostbyname_r="proto_declared"
7335 else
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7344 #define _REENTRANT
7345 #include <sys/types.h>
7346 #include <netdb.h>
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350 $EGREP "gethostbyname_r" >/dev/null 2>&1; then
7352 tmp_gethostbyname_r="proto_needs_reentrant"
7353 tmp_need_reentrant="yes"
7356 rm -f conftest*
7360 rm -f conftest*
7365 if test "$tmp_need_reentrant" = "no"; then
7367 cat >conftest.$ac_ext <<_ACEOF
7369 /* confdefs.h. */
7370 _ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r.
7375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7376 #define getprotobyname_r innocuous_getprotobyname_r
7378 /* System header to define __stub macros and hopefully few prototypes,
7379 which can conflict with char getprotobyname_r (); below.
7380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7381 <limits.h> exists even on freestanding compilers. */
7383 #ifdef __STDC__
7384 # include <limits.h>
7385 #else
7386 # include <assert.h>
7387 #endif
7389 #undef getprotobyname_r
7391 /* Override any GCC internal prototype to avoid an error.
7392 Use char because int might match the return type of a GCC
7393 builtin and then its argument prototype would still apply. */
7394 #ifdef __cplusplus
7395 extern "C"
7396 #endif
7397 char getprotobyname_r ();
7398 /* The GNU C library defines this for functions which it implements
7399 to always fail with ENOSYS. Some functions are actually named
7400 something starting with __ and the normal name is an alias. */
7401 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7402 choke me
7403 #endif
7406 main ()
7408 return getprotobyname_r ();
7410 return 0;
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (ac_try="$ac_link"
7416 case "(($ac_try" in
7417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418 *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421 (eval "$ac_link") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext &&
7431 $as_test_x conftest$ac_exeext; then
7433 tmp_getprotobyname_r="yes"
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7440 tmp_getprotobyname_r="no"
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7446 if test "$tmp_getprotobyname_r" = "yes"; then
7447 cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7454 #include <sys/types.h>
7455 #include <netdb.h>
7457 _ACEOF
7458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7459 $EGREP "getprotobyname_r" >/dev/null 2>&1; then
7461 tmp_getprotobyname_r="proto_declared"
7463 else
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h. */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7472 #define _REENTRANT
7473 #include <sys/types.h>
7474 #include <netdb.h>
7476 _ACEOF
7477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7478 $EGREP "getprotobyname_r" >/dev/null 2>&1; then
7480 tmp_getprotobyname_r="proto_needs_reentrant"
7481 tmp_need_reentrant="yes"
7484 rm -f conftest*
7488 rm -f conftest*
7493 if test "$tmp_need_reentrant" = "no"; then
7495 cat >conftest.$ac_ext <<_ACEOF
7497 /* confdefs.h. */
7498 _ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define getservbyport_r innocuous_getservbyport_r
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char getservbyport_r (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7511 #ifdef __STDC__
7512 # include <limits.h>
7513 #else
7514 # include <assert.h>
7515 #endif
7517 #undef getservbyport_r
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7522 #ifdef __cplusplus
7523 extern "C"
7524 #endif
7525 char getservbyport_r ();
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7530 choke me
7531 #endif
7534 main ()
7536 return getservbyport_r ();
7538 return 0;
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (ac_try="$ac_link"
7544 case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_link") 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest$ac_exeext &&
7559 $as_test_x conftest$ac_exeext; then
7561 tmp_getservbyport_r="yes"
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7568 tmp_getservbyport_r="no"
7572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7573 conftest$ac_exeext conftest.$ac_ext
7574 if test "$tmp_getservbyport_r" = "yes"; then
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h. */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7582 #include <sys/types.h>
7583 #include <netdb.h>
7585 _ACEOF
7586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7587 $EGREP "getservbyport_r" >/dev/null 2>&1; then
7589 tmp_getservbyport_r="proto_declared"
7591 else
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7600 #define _REENTRANT
7601 #include <sys/types.h>
7602 #include <netdb.h>
7604 _ACEOF
7605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7606 $EGREP "getservbyport_r" >/dev/null 2>&1; then
7608 tmp_getservbyport_r="proto_needs_reentrant"
7609 tmp_need_reentrant="yes"
7612 rm -f conftest*
7616 rm -f conftest*
7622 if test "$tmp_need_reentrant" = "yes"; then
7623 { echo "$as_me:$LINENO: result: yes" >&5
7624 echo "${ECHO_T}yes" >&6; }
7625 else
7626 { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7631 { echo "$as_me:$LINENO: checking if _REENTRANT is onwards defined" >&5
7632 echo $ECHO_N "checking if _REENTRANT is onwards defined... $ECHO_C" >&6; }
7633 if test "$tmp_reentrant_initially_defined" = "yes" ||
7634 test "$tmp_need_reentrant" = "yes"; then
7637 cat >>confdefs.h <<\_ACEOF
7638 #define NEED_REENTRANT 1
7639 _ACEOF
7641 cat >>confdefs.h <<_EOF
7642 #ifndef _REENTRANT
7643 # define _REENTRANT
7644 #endif
7645 _EOF
7647 { echo "$as_me:$LINENO: result: yes" >&5
7648 echo "${ECHO_T}yes" >&6; }
7649 else
7650 { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7656 # Check whether --enable-largefile was given.
7657 if test "${enable_largefile+set}" = set; then
7658 enableval=$enable_largefile;
7661 if test "$enable_largefile" != no; then
7663 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7664 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
7665 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 ac_cv_sys_largefile_CC=no
7669 if test "$GCC" != yes; then
7670 ac_save_CC=$CC
7671 while :; do
7672 # IRIX 6.2 and later do not support large files by default,
7673 # so use the C compiler's -n32 option if that helps.
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #include <sys/types.h>
7681 /* Check that off_t can represent 2**63 - 1 correctly.
7682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7683 since some C++ compilers masquerading as C compilers
7684 incorrectly reject 9223372036854775807. */
7685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7687 && LARGE_OFF_T % 2147483647 == 1)
7688 ? 1 : -1];
7690 main ()
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (ac_try="$ac_compile"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7714 break
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7722 rm -f core conftest.err conftest.$ac_objext
7723 CC="$CC -n32"
7724 rm -f conftest.$ac_objext
7725 if { (ac_try="$ac_compile"
7726 case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729 esac
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_compile") 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest.$ac_objext; then
7741 ac_cv_sys_largefile_CC=' -n32'; break
7742 else
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7749 rm -f core conftest.err conftest.$ac_objext
7750 break
7751 done
7752 CC=$ac_save_CC
7753 rm -f conftest.$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
7757 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
7758 if test "$ac_cv_sys_largefile_CC" != no; then
7759 CC=$CC$ac_cv_sys_largefile_CC
7762 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7763 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
7764 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 while :; do
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 /* Check that off_t can represent 2**63 - 1 correctly.
7776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7777 since some C++ compilers masquerading as C compilers
7778 incorrectly reject 9223372036854775807. */
7779 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7781 && LARGE_OFF_T % 2147483647 == 1)
7782 ? 1 : -1];
7784 main ()
7788 return 0;
7790 _ACEOF
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7793 case "(($ac_try" in
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7796 esac
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7808 ac_cv_sys_file_offset_bits=no; break
7809 else
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h. */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #define _FILE_OFFSET_BITS 64
7824 #include <sys/types.h>
7825 /* Check that off_t can represent 2**63 - 1 correctly.
7826 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7827 since some C++ compilers masquerading as C compilers
7828 incorrectly reject 9223372036854775807. */
7829 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7830 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7831 && LARGE_OFF_T % 2147483647 == 1)
7832 ? 1 : -1];
7834 main ()
7838 return 0;
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7843 case "(($ac_try" in
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7846 esac
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7858 ac_cv_sys_file_offset_bits=64; break
7859 else
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 ac_cv_sys_file_offset_bits=unknown
7868 break
7869 done
7871 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7872 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
7873 case $ac_cv_sys_file_offset_bits in #(
7874 no | unknown) ;;
7876 cat >>confdefs.h <<_ACEOF
7877 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7878 _ACEOF
7880 esac
7881 rm -f conftest*
7882 if test $ac_cv_sys_file_offset_bits = unknown; then
7883 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
7884 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
7885 if test "${ac_cv_sys_large_files+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 while :; do
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7896 /* Check that off_t can represent 2**63 - 1 correctly.
7897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7898 since some C++ compilers masquerading as C compilers
7899 incorrectly reject 9223372036854775807. */
7900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7902 && LARGE_OFF_T % 2147483647 == 1)
7903 ? 1 : -1];
7905 main ()
7909 return 0;
7911 _ACEOF
7912 rm -f conftest.$ac_objext
7913 if { (ac_try="$ac_compile"
7914 case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_compile") 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest.$ac_objext; then
7929 ac_cv_sys_large_files=no; break
7930 else
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 #define _LARGE_FILES 1
7945 #include <sys/types.h>
7946 /* Check that off_t can represent 2**63 - 1 correctly.
7947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7948 since some C++ compilers masquerading as C compilers
7949 incorrectly reject 9223372036854775807. */
7950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7952 && LARGE_OFF_T % 2147483647 == 1)
7953 ? 1 : -1];
7955 main ()
7959 return 0;
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_cv_sys_large_files=1; break
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 ac_cv_sys_large_files=unknown
7989 break
7990 done
7992 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7993 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
7994 case $ac_cv_sys_large_files in #(
7995 no | unknown) ;;
7997 cat >>confdefs.h <<_ACEOF
7998 #define _LARGE_FILES $ac_cv_sys_large_files
7999 _ACEOF
8001 esac
8002 rm -f conftest*
8024 { echo "$as_me:$LINENO: checking if arch-OS host is AMD64-linux (to build static libraries with PIC)" >&5
8025 echo $ECHO_N "checking if arch-OS host is AMD64-linux (to build static libraries with PIC)... $ECHO_C" >&6; }
8026 case $host in
8027 x86_64*linux*)
8028 { echo "$as_me:$LINENO: result: yes" >&5
8029 echo "${ECHO_T}yes" >&6; }
8030 with_pic=yes
8033 { echo "$as_me:$LINENO: result: no" >&5
8034 echo "${ECHO_T}no" >&6; }
8036 esac
8038 # Check whether --enable-shared was given.
8039 if test "${enable_shared+set}" = set; then
8040 enableval=$enable_shared; p=${PACKAGE-default}
8041 case $enableval in
8042 yes) enable_shared=yes ;;
8043 no) enable_shared=no ;;
8045 enable_shared=no
8046 # Look at the argument we got. We use all the common list separators.
8047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8048 for pkg in $enableval; do
8049 IFS="$lt_save_ifs"
8050 if test "X$pkg" = "X$p"; then
8051 enable_shared=yes
8053 done
8054 IFS="$lt_save_ifs"
8056 esac
8057 else
8058 enable_shared=yes
8062 # Check whether --enable-static was given.
8063 if test "${enable_static+set}" = set; then
8064 enableval=$enable_static; p=${PACKAGE-default}
8065 case $enableval in
8066 yes) enable_static=yes ;;
8067 no) enable_static=no ;;
8069 enable_static=no
8070 # Look at the argument we got. We use all the common list separators.
8071 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8072 for pkg in $enableval; do
8073 IFS="$lt_save_ifs"
8074 if test "X$pkg" = "X$p"; then
8075 enable_static=yes
8077 done
8078 IFS="$lt_save_ifs"
8080 esac
8081 else
8082 enable_static=yes
8086 # Check whether --enable-fast-install was given.
8087 if test "${enable_fast_install+set}" = set; then
8088 enableval=$enable_fast_install; p=${PACKAGE-default}
8089 case $enableval in
8090 yes) enable_fast_install=yes ;;
8091 no) enable_fast_install=no ;;
8093 enable_fast_install=no
8094 # Look at the argument we got. We use all the common list separators.
8095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8096 for pkg in $enableval; do
8097 IFS="$lt_save_ifs"
8098 if test "X$pkg" = "X$p"; then
8099 enable_fast_install=yes
8101 done
8102 IFS="$lt_save_ifs"
8104 esac
8105 else
8106 enable_fast_install=yes
8110 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
8111 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
8112 if test "${lt_cv_path_SED+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 else
8115 # Loop through the user's path and test for sed and gsed.
8116 # Then use that list of sed's as ones to test for truncation.
8117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 for as_dir in $PATH
8120 IFS=$as_save_IFS
8121 test -z "$as_dir" && as_dir=.
8122 for lt_ac_prog in sed gsed; do
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
8125 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8127 done
8128 done
8129 done
8130 IFS=$as_save_IFS
8131 lt_ac_max=0
8132 lt_ac_count=0
8133 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8134 # along with /bin/sed that truncates output.
8135 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8136 test ! -f $lt_ac_sed && continue
8137 cat /dev/null > conftest.in
8138 lt_ac_count=0
8139 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8140 # Check for GNU sed and select it if it is found.
8141 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8142 lt_cv_path_SED=$lt_ac_sed
8143 break
8145 while true; do
8146 cat conftest.in conftest.in >conftest.tmp
8147 mv conftest.tmp conftest.in
8148 cp conftest.in conftest.nl
8149 echo >>conftest.nl
8150 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8151 cmp -s conftest.out conftest.nl || break
8152 # 10000 chars as input seems more than enough
8153 test $lt_ac_count -gt 10 && break
8154 lt_ac_count=`expr $lt_ac_count + 1`
8155 if test $lt_ac_count -gt $lt_ac_max; then
8156 lt_ac_max=$lt_ac_count
8157 lt_cv_path_SED=$lt_ac_sed
8159 done
8160 done
8164 SED=$lt_cv_path_SED
8166 { echo "$as_me:$LINENO: result: $SED" >&5
8167 echo "${ECHO_T}$SED" >&6; }
8170 # Check whether --with-gnu-ld was given.
8171 if test "${with_gnu_ld+set}" = set; then
8172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8173 else
8174 with_gnu_ld=no
8177 ac_prog=ld
8178 if test "$GCC" = yes; then
8179 # Check if gcc -print-prog-name=ld gives a path.
8180 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8181 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
8182 case $host in
8183 *-*-mingw*)
8184 # gcc leaves a trailing carriage return which upsets mingw
8185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8188 esac
8189 case $ac_prog in
8190 # Accept absolute paths.
8191 [\\/]* | ?:[\\/]*)
8192 re_direlt='/[^/][^/]*/\.\./'
8193 # Canonicalize the pathname of ld
8194 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8195 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8196 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8197 done
8198 test -z "$LD" && LD="$ac_prog"
8201 # If it fails, then pretend we aren't using GCC.
8202 ac_prog=ld
8205 # If it is relative, then search for the first ld in PATH.
8206 with_gnu_ld=unknown
8208 esac
8209 elif test "$with_gnu_ld" = yes; then
8210 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8211 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8212 else
8213 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8214 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8216 if test "${lt_cv_path_LD+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 else
8219 if test -z "$LD"; then
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 for ac_dir in $PATH; do
8222 IFS="$lt_save_ifs"
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8225 lt_cv_path_LD="$ac_dir/$ac_prog"
8226 # Check to see if the program is GNU ld. I'd rather use --version,
8227 # but apparently some variants of GNU ld only accept -v.
8228 # Break only if it was the GNU/non-GNU ld that we prefer.
8229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8230 *GNU* | *'with BFD'*)
8231 test "$with_gnu_ld" != no && break
8234 test "$with_gnu_ld" != yes && break
8236 esac
8238 done
8239 IFS="$lt_save_ifs"
8240 else
8241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8245 LD="$lt_cv_path_LD"
8246 if test -n "$LD"; then
8247 { echo "$as_me:$LINENO: result: $LD" >&5
8248 echo "${ECHO_T}$LD" >&6; }
8249 else
8250 { echo "$as_me:$LINENO: result: no" >&5
8251 echo "${ECHO_T}no" >&6; }
8253 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8254 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8255 { (exit 1); exit 1; }; }
8256 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8257 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8258 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8262 case `$LD -v 2>&1 </dev/null` in
8263 *GNU* | *'with BFD'*)
8264 lt_cv_prog_gnu_ld=yes
8267 lt_cv_prog_gnu_ld=no
8269 esac
8271 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8272 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8273 with_gnu_ld=$lt_cv_prog_gnu_ld
8276 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8277 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8278 if test "${lt_cv_ld_reload_flag+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 else
8281 lt_cv_ld_reload_flag='-r'
8283 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8284 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8285 reload_flag=$lt_cv_ld_reload_flag
8286 case $reload_flag in
8287 "" | " "*) ;;
8288 *) reload_flag=" $reload_flag" ;;
8289 esac
8290 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8291 case $host_os in
8292 darwin*)
8293 if test "$GCC" = yes; then
8294 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8295 else
8296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8299 esac
8301 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8302 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
8303 if test "${lt_cv_path_NM+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 if test -n "$NM"; then
8307 # Let the user override the test.
8308 lt_cv_path_NM="$NM"
8309 else
8310 lt_nm_to_check="${ac_tool_prefix}nm"
8311 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8312 lt_nm_to_check="$lt_nm_to_check nm"
8314 for lt_tmp_nm in $lt_nm_to_check; do
8315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8316 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8317 IFS="$lt_save_ifs"
8318 test -z "$ac_dir" && ac_dir=.
8319 tmp_nm="$ac_dir/$lt_tmp_nm"
8320 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8321 # Check to see if the nm accepts a BSD-compat flag.
8322 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8323 # nm: unknown option "B" ignored
8324 # Tru64's nm complains that /dev/null is an invalid object file
8325 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8326 */dev/null* | *'Invalid file or object type'*)
8327 lt_cv_path_NM="$tmp_nm -B"
8328 break
8331 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8332 */dev/null*)
8333 lt_cv_path_NM="$tmp_nm -p"
8334 break
8337 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8338 continue # so that we can try to find one that supports BSD flags
8340 esac
8342 esac
8344 done
8345 IFS="$lt_save_ifs"
8346 done
8347 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8350 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8351 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8352 NM="$lt_cv_path_NM"
8354 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
8355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8356 LN_S=$as_ln_s
8357 if test "$LN_S" = "ln -s"; then
8358 { echo "$as_me:$LINENO: result: yes" >&5
8359 echo "${ECHO_T}yes" >&6; }
8360 else
8361 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8362 echo "${ECHO_T}no, using $LN_S" >&6; }
8365 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8366 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
8367 if test "${lt_cv_deplibs_check_method+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370 lt_cv_file_magic_cmd='$MAGIC_CMD'
8371 lt_cv_file_magic_test_file=
8372 lt_cv_deplibs_check_method='unknown'
8373 # Need to set the preceding variable on all platforms that support
8374 # interlibrary dependencies.
8375 # 'none' -- dependencies not supported.
8376 # `unknown' -- same as none, but documents that we really don't know.
8377 # 'pass_all' -- all dependencies passed with no checks.
8378 # 'test_compile' -- check by making test program.
8379 # 'file_magic [[regex]]' -- check by looking for files in library path
8380 # which responds to the $file_magic_cmd with a given extended regex.
8381 # If you have `file' or equivalent on your system and you're not sure
8382 # whether `pass_all' will *always* work, you probably want this one.
8384 case $host_os in
8385 aix[4-9]*)
8386 lt_cv_deplibs_check_method=pass_all
8389 beos*)
8390 lt_cv_deplibs_check_method=pass_all
8393 bsdi[45]*)
8394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8395 lt_cv_file_magic_cmd='/usr/bin/file -L'
8396 lt_cv_file_magic_test_file=/shlib/libc.so
8399 cygwin*)
8400 # func_win32_libid is a shell function defined in ltmain.sh
8401 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8402 lt_cv_file_magic_cmd='func_win32_libid'
8405 mingw* | pw32*)
8406 # Base MSYS/MinGW do not provide the 'file' command needed by
8407 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8408 # unless we find 'file', for example because we are cross-compiling.
8409 if ( file / ) >/dev/null 2>&1; then
8410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8411 lt_cv_file_magic_cmd='func_win32_libid'
8412 else
8413 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8414 lt_cv_file_magic_cmd='$OBJDUMP -f'
8418 darwin* | rhapsody*)
8419 lt_cv_deplibs_check_method=pass_all
8422 freebsd* | dragonfly*)
8423 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8424 case $host_cpu in
8425 i*86 )
8426 # Not sure whether the presence of OpenBSD here was a mistake.
8427 # Let's accept both of them until this is cleared up.
8428 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8429 lt_cv_file_magic_cmd=/usr/bin/file
8430 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8432 esac
8433 else
8434 lt_cv_deplibs_check_method=pass_all
8438 gnu*)
8439 lt_cv_deplibs_check_method=pass_all
8442 hpux10.20* | hpux11*)
8443 lt_cv_file_magic_cmd=/usr/bin/file
8444 case $host_cpu in
8445 ia64*)
8446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8447 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8449 hppa*64*)
8450 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8451 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8454 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8455 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8457 esac
8460 interix[3-9]*)
8461 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8465 irix5* | irix6* | nonstopux*)
8466 case $LD in
8467 *-32|*"-32 ") libmagic=32-bit;;
8468 *-n32|*"-n32 ") libmagic=N32;;
8469 *-64|*"-64 ") libmagic=64-bit;;
8470 *) libmagic=never-match;;
8471 esac
8472 lt_cv_deplibs_check_method=pass_all
8475 # This must be Linux ELF.
8476 linux* | k*bsd*-gnu)
8477 lt_cv_deplibs_check_method=pass_all
8480 netbsd* | netbsdelf*-gnu)
8481 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8483 else
8484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8488 newos6*)
8489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8490 lt_cv_file_magic_cmd=/usr/bin/file
8491 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8494 nto-qnx*)
8495 lt_cv_deplibs_check_method=unknown
8498 openbsd*)
8499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8501 else
8502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8506 osf3* | osf4* | osf5*)
8507 lt_cv_deplibs_check_method=pass_all
8510 rdos*)
8511 lt_cv_deplibs_check_method=pass_all
8514 solaris*)
8515 lt_cv_deplibs_check_method=pass_all
8518 sysv4 | sysv4.3*)
8519 case $host_vendor in
8520 motorola)
8521 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]'
8522 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8524 ncr)
8525 lt_cv_deplibs_check_method=pass_all
8527 sequent)
8528 lt_cv_file_magic_cmd='/bin/file'
8529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8531 sni)
8532 lt_cv_file_magic_cmd='/bin/file'
8533 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8534 lt_cv_file_magic_test_file=/lib/libc.so
8536 siemens)
8537 lt_cv_deplibs_check_method=pass_all
8540 lt_cv_deplibs_check_method=pass_all
8542 esac
8545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8546 lt_cv_deplibs_check_method=pass_all
8548 esac
8551 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8552 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8553 file_magic_cmd=$lt_cv_file_magic_cmd
8554 deplibs_check_method=$lt_cv_deplibs_check_method
8555 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8560 # If no C compiler was specified, use CC.
8561 LTCC=${LTCC-"$CC"}
8563 # If no C compiler flags were specified, use CFLAGS.
8564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8566 # Allow CC to be a program name with arguments.
8567 compiler=$CC
8569 # Check whether --enable-libtool-lock was given.
8570 if test "${enable_libtool_lock+set}" = set; then
8571 enableval=$enable_libtool_lock;
8574 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8576 # Some flags need to be propagated to the compiler or linker for good
8577 # libtool support.
8578 case $host in
8579 ia64-*-hpux*)
8580 # Find out which ABI we are using.
8581 echo 'int i;' > conftest.$ac_ext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; then
8587 case `/usr/bin/file conftest.$ac_objext` in
8588 *ELF-32*)
8589 HPUX_IA64_MODE="32"
8591 *ELF-64*)
8592 HPUX_IA64_MODE="64"
8594 esac
8596 rm -rf conftest*
8598 *-*-irix6*)
8599 # Find out which ABI we are using.
8600 echo '#line 8600 "configure"' > conftest.$ac_ext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; then
8606 if test "$lt_cv_prog_gnu_ld" = yes; then
8607 case `/usr/bin/file conftest.$ac_objext` in
8608 *32-bit*)
8609 LD="${LD-ld} -melf32bsmip"
8611 *N32*)
8612 LD="${LD-ld} -melf32bmipn32"
8614 *64-bit*)
8615 LD="${LD-ld} -melf64bmip"
8617 esac
8618 else
8619 case `/usr/bin/file conftest.$ac_objext` in
8620 *32-bit*)
8621 LD="${LD-ld} -32"
8623 *N32*)
8624 LD="${LD-ld} -n32"
8626 *64-bit*)
8627 LD="${LD-ld} -64"
8629 esac
8632 rm -rf conftest*
8635 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8636 s390*-*linux*|sparc*-*linux*)
8637 # Find out which ABI we are using.
8638 echo 'int i;' > conftest.$ac_ext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; then
8644 case `/usr/bin/file conftest.o` in
8645 *32-bit*)
8646 case $host in
8647 x86_64-*kfreebsd*-gnu)
8648 LD="${LD-ld} -m elf_i386_fbsd"
8650 x86_64-*linux*)
8651 LD="${LD-ld} -m elf_i386"
8653 ppc64-*linux*|powerpc64-*linux*)
8654 LD="${LD-ld} -m elf32ppclinux"
8656 s390x-*linux*)
8657 LD="${LD-ld} -m elf_s390"
8659 sparc64-*linux*)
8660 LD="${LD-ld} -m elf32_sparc"
8662 esac
8664 *64-bit*)
8665 case $host in
8666 x86_64-*kfreebsd*-gnu)
8667 LD="${LD-ld} -m elf_x86_64_fbsd"
8669 x86_64-*linux*)
8670 LD="${LD-ld} -m elf_x86_64"
8672 ppc*-*linux*|powerpc*-*linux*)
8673 LD="${LD-ld} -m elf64ppc"
8675 s390*-*linux*)
8676 LD="${LD-ld} -m elf64_s390"
8678 sparc*-*linux*)
8679 LD="${LD-ld} -m elf64_sparc"
8681 esac
8683 esac
8685 rm -rf conftest*
8688 *-*-sco3.2v5*)
8689 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8690 SAVE_CFLAGS="$CFLAGS"
8691 CFLAGS="$CFLAGS -belf"
8692 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8693 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8694 if test "${lt_cv_cc_needs_belf+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697 ac_ext=c
8698 ac_cpp='$CPP $CPPFLAGS'
8699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8711 main ()
8715 return 0;
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (ac_try="$ac_link"
8720 case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8723 esac
8724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_link") 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } && {
8732 test -z "$ac_c_werror_flag" ||
8733 test ! -s conftest.err
8734 } && test -s conftest$ac_exeext &&
8735 $as_test_x conftest$ac_exeext; then
8736 lt_cv_cc_needs_belf=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 lt_cv_cc_needs_belf=no
8744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8745 conftest$ac_exeext conftest.$ac_ext
8746 ac_ext=c
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8754 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8757 CFLAGS="$SAVE_CFLAGS"
8760 sparc*-*solaris*)
8761 # Find out which ABI we are using.
8762 echo 'int i;' > conftest.$ac_ext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8764 (eval $ac_compile) 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; then
8768 case `/usr/bin/file conftest.o` in
8769 *64-bit*)
8770 case $lt_cv_prog_gnu_ld in
8771 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8773 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8774 LD="${LD-ld} -64"
8777 esac
8779 esac
8781 rm -rf conftest*
8784 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
8785 if test -n "$ac_tool_prefix"; then
8786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8787 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8790 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 if test -n "$DLLTOOL"; then
8794 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8813 DLLTOOL=$ac_cv_prog_DLLTOOL
8814 if test -n "$DLLTOOL"; then
8815 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8816 echo "${ECHO_T}$DLLTOOL" >&6; }
8817 else
8818 { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8824 if test -z "$ac_cv_prog_DLLTOOL"; then
8825 ac_ct_DLLTOOL=$DLLTOOL
8826 # Extract the first word of "dlltool", so it can be a program name with args.
8827 set dummy dlltool; ac_word=$2
8828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8830 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833 if test -n "$ac_ct_DLLTOOL"; then
8834 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8843 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8847 done
8848 done
8849 IFS=$as_save_IFS
8853 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8854 if test -n "$ac_ct_DLLTOOL"; then
8855 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8856 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
8857 else
8858 { echo "$as_me:$LINENO: result: no" >&5
8859 echo "${ECHO_T}no" >&6; }
8862 if test "x$ac_ct_DLLTOOL" = x; then
8863 DLLTOOL="false"
8864 else
8865 case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8868 whose name does not start with the host triplet. If you think this
8869 configuration is useful to you, please write to autoconf@gnu.org." >&5
8870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8871 whose name does not start with the host triplet. If you think this
8872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8873 ac_tool_warned=yes ;;
8874 esac
8875 DLLTOOL=$ac_ct_DLLTOOL
8877 else
8878 DLLTOOL="$ac_cv_prog_DLLTOOL"
8881 if test -n "$ac_tool_prefix"; then
8882 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8883 set dummy ${ac_tool_prefix}as; ac_word=$2
8884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886 if test "${ac_cv_prog_AS+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 if test -n "$AS"; then
8890 ac_cv_prog_AS="$AS" # Let the user override the test.
8891 else
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_prog_AS="${ac_tool_prefix}as"
8900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8909 AS=$ac_cv_prog_AS
8910 if test -n "$AS"; then
8911 { echo "$as_me:$LINENO: result: $AS" >&5
8912 echo "${ECHO_T}$AS" >&6; }
8913 else
8914 { echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6; }
8920 if test -z "$ac_cv_prog_AS"; then
8921 ac_ct_AS=$AS
8922 # Extract the first word of "as", so it can be a program name with args.
8923 set dummy as; ac_word=$2
8924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8926 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929 if test -n "$ac_ct_AS"; then
8930 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8931 else
8932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 for as_dir in $PATH
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8939 ac_cv_prog_ac_ct_AS="as"
8940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 break 2
8943 done
8944 done
8945 IFS=$as_save_IFS
8949 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8950 if test -n "$ac_ct_AS"; then
8951 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
8952 echo "${ECHO_T}$ac_ct_AS" >&6; }
8953 else
8954 { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8958 if test "x$ac_ct_AS" = x; then
8959 AS="false"
8960 else
8961 case $cross_compiling:$ac_tool_warned in
8962 yes:)
8963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8964 whose name does not start with the host triplet. If you think this
8965 configuration is useful to you, please write to autoconf@gnu.org." >&5
8966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8967 whose name does not start with the host triplet. If you think this
8968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8969 ac_tool_warned=yes ;;
8970 esac
8971 AS=$ac_ct_AS
8973 else
8974 AS="$ac_cv_prog_AS"
8977 if test -n "$ac_tool_prefix"; then
8978 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8979 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8982 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985 if test -n "$OBJDUMP"; then
8986 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8987 else
8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 for as_dir in $PATH
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8999 done
9000 done
9001 IFS=$as_save_IFS
9005 OBJDUMP=$ac_cv_prog_OBJDUMP
9006 if test -n "$OBJDUMP"; then
9007 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9008 echo "${ECHO_T}$OBJDUMP" >&6; }
9009 else
9010 { echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6; }
9016 if test -z "$ac_cv_prog_OBJDUMP"; then
9017 ac_ct_OBJDUMP=$OBJDUMP
9018 # Extract the first word of "objdump", so it can be a program name with args.
9019 set dummy objdump; ac_word=$2
9020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9022 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 if test -n "$ac_ct_OBJDUMP"; then
9026 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9039 done
9040 done
9041 IFS=$as_save_IFS
9045 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9046 if test -n "$ac_ct_OBJDUMP"; then
9047 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9048 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
9049 else
9050 { echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6; }
9054 if test "x$ac_ct_OBJDUMP" = x; then
9055 OBJDUMP="false"
9056 else
9057 case $cross_compiling:$ac_tool_warned in
9058 yes:)
9059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9060 whose name does not start with the host triplet. If you think this
9061 configuration is useful to you, please write to autoconf@gnu.org." >&5
9062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9063 whose name does not start with the host triplet. If you think this
9064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9065 ac_tool_warned=yes ;;
9066 esac
9067 OBJDUMP=$ac_ct_OBJDUMP
9069 else
9070 OBJDUMP="$ac_cv_prog_OBJDUMP"
9075 esac
9077 need_locks="$enable_libtool_lock"
9081 for ac_header in dlfcn.h
9083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 ac_res=`eval echo '${'$as_ac_Header'}'`
9091 { echo "$as_me:$LINENO: result: $ac_res" >&5
9092 echo "${ECHO_T}$ac_res" >&6; }
9093 else
9094 # Is the header compilable?
9095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 $ac_includes_default
9104 #include <$ac_header>
9105 _ACEOF
9106 rm -f conftest.$ac_objext
9107 if { (ac_try="$ac_compile"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_compile") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest.$ac_objext; then
9123 ac_header_compiler=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_header_compiler=no
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6; }
9135 # Is the header present?
9136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <$ac_header>
9145 _ACEOF
9146 if { (ac_try="$ac_cpp conftest.$ac_ext"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } >/dev/null && {
9159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 }; then
9162 ac_header_preproc=yes
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9176 yes:no: )
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9181 ac_header_preproc=yes
9183 no:yes:* )
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9196 ( cat <<\_ASBOX
9197 ## ------------------------------------------------------------------------ ##
9198 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
9199 ## ------------------------------------------------------------------------ ##
9200 _ASBOX
9201 ) | sed "s/^/$as_me: WARNING: /" >&2
9203 esac
9204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 eval "$as_ac_Header=\$ac_header_preproc"
9211 ac_res=`eval echo '${'$as_ac_Header'}'`
9212 { echo "$as_me:$LINENO: result: $ac_res" >&5
9213 echo "${ECHO_T}$ac_res" >&6; }
9216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9217 cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 _ACEOF
9223 done
9228 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9229 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9230 (test "X$CXX" != "Xg++"))) ; then
9231 true
9238 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9239 # find the maximum length of command line arguments
9240 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9241 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9242 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9246 teststring="ABCD"
9248 case $build_os in
9249 msdosdjgpp*)
9250 # On DJGPP, this test can blow up pretty badly due to problems in libc
9251 # (any single argument exceeding 2000 bytes causes a buffer overrun
9252 # during glob expansion). Even if it were fixed, the result of this
9253 # check would be larger than it should be.
9254 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9257 gnu*)
9258 # Under GNU Hurd, this test is not required because there is
9259 # no limit to the length of command line arguments.
9260 # Libtool will interpret -1 as no limit whatsoever
9261 lt_cv_sys_max_cmd_len=-1;
9264 cygwin* | mingw*)
9265 # On Win9x/ME, this test blows up -- it succeeds, but takes
9266 # about 5 minutes as the teststring grows exponentially.
9267 # Worse, since 9x/ME are not pre-emptively multitasking,
9268 # you end up with a "frozen" computer, even though with patience
9269 # the test eventually succeeds (with a max line length of 256k).
9270 # Instead, let's just punt: use the minimum linelength reported by
9271 # all of the supported platforms: 8192 (on NT/2K/XP).
9272 lt_cv_sys_max_cmd_len=8192;
9275 amigaos*)
9276 # On AmigaOS with pdksh, this test takes hours, literally.
9277 # So we just punt and use a minimum line length of 8192.
9278 lt_cv_sys_max_cmd_len=8192;
9281 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9282 # This has been around since 386BSD, at least. Likely further.
9283 if test -x /sbin/sysctl; then
9284 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9285 elif test -x /usr/sbin/sysctl; then
9286 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9287 else
9288 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9290 # And add a safety zone
9291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9295 interix*)
9296 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9297 lt_cv_sys_max_cmd_len=196608
9300 osf*)
9301 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9302 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9303 # nice to cause kernel panics so lets avoid the loop below.
9304 # First set a reasonable default.
9305 lt_cv_sys_max_cmd_len=16384
9307 if test -x /sbin/sysconfig; then
9308 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9309 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9310 esac
9313 sco3.2v5*)
9314 lt_cv_sys_max_cmd_len=102400
9316 sysv5* | sco5v6* | sysv4.2uw2*)
9317 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9318 if test -n "$kargmax"; then
9319 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9320 else
9321 lt_cv_sys_max_cmd_len=32768
9325 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9326 if test -n "$lt_cv_sys_max_cmd_len"; then
9327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9329 else
9330 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9331 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9332 = "XX$teststring") >/dev/null 2>&1 &&
9333 new_result=`expr "X$teststring" : ".*" 2>&1` &&
9334 lt_cv_sys_max_cmd_len=$new_result &&
9335 test $i != 17 # 1/2 MB should be enough
9337 i=`expr $i + 1`
9338 teststring=$teststring$teststring
9339 done
9340 teststring=
9341 # Add a significant safety factor because C++ compilers can tack on massive
9342 # amounts of additional arguments before passing them to the linker.
9343 # It appears as though 1/2 is a usable value.
9344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9347 esac
9351 if test -n $lt_cv_sys_max_cmd_len ; then
9352 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9353 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9354 else
9355 { echo "$as_me:$LINENO: result: none" >&5
9356 echo "${ECHO_T}none" >&6; }
9363 # Check for command to grab the raw symbol name followed by C symbol from nm.
9364 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9365 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9366 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9370 # These are sane defaults that work on at least a few old systems.
9371 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9373 # Character class describing NM global symbol codes.
9374 symcode='[BCDEGRST]'
9376 # Regexp to match symbols that can be accessed directly from C.
9377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9379 # Transform an extracted symbol line into a proper C declaration
9380 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9382 # Transform an extracted symbol line into symbol name and symbol address
9383 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9385 # Define system-specific variables.
9386 case $host_os in
9387 aix*)
9388 symcode='[BCDT]'
9390 cygwin* | mingw* | pw32*)
9391 symcode='[ABCDGISTW]'
9393 hpux*) # Its linker distinguishes data from code symbols
9394 if test "$host_cpu" = ia64; then
9395 symcode='[ABCDEGRST]'
9397 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9398 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9400 linux* | k*bsd*-gnu)
9401 if test "$host_cpu" = ia64; then
9402 symcode='[ABCDGIRSTW]'
9403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9407 irix* | nonstopux*)
9408 symcode='[BCDEGRST]'
9410 osf*)
9411 symcode='[BCDEGQRST]'
9413 solaris*)
9414 symcode='[BDRT]'
9416 sco3.2v5*)
9417 symcode='[DT]'
9419 sysv4.2uw2*)
9420 symcode='[DT]'
9422 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9423 symcode='[ABDT]'
9425 sysv4)
9426 symcode='[DFNSTU]'
9428 esac
9430 # Handle CRLF in mingw tool chain
9431 opt_cr=
9432 case $build_os in
9433 mingw*)
9434 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9436 esac
9438 # If we're using GNU nm, then use its standard symbol codes.
9439 case `$NM -V 2>&1` in
9440 *GNU* | *'with BFD'*)
9441 symcode='[ABCDGIRSTW]' ;;
9442 esac
9444 # Try without a prefix undercore, then with it.
9445 for ac_symprfx in "" "_"; do
9447 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9448 symxfrm="\\1 $ac_symprfx\\2 \\2"
9450 # Write the raw and C identifiers.
9451 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9453 # Check to see that the pipe works correctly.
9454 pipe_works=no
9456 rm -f conftest*
9457 cat > conftest.$ac_ext <<EOF
9458 #ifdef __cplusplus
9459 extern "C" {
9460 #endif
9461 char nm_test_var;
9462 void nm_test_func(){}
9463 #ifdef __cplusplus
9465 #endif
9466 int main(){nm_test_var='a';nm_test_func();return(0);}
9469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9470 (eval $ac_compile) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; then
9474 # Now try to grab the symbols.
9475 nlist=conftest.nm
9476 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9477 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && test -s "$nlist"; then
9481 # Try sorting and uniquifying the output.
9482 if sort "$nlist" | uniq > "$nlist"T; then
9483 mv -f "$nlist"T "$nlist"
9484 else
9485 rm -f "$nlist"T
9488 # Make sure that we snagged all the symbols we need.
9489 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9490 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9491 cat <<EOF > conftest.$ac_ext
9492 #ifdef __cplusplus
9493 extern "C" {
9494 #endif
9497 # Now generate the symbol file.
9498 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9500 cat <<EOF >> conftest.$ac_ext
9501 #if defined (__STDC__) && __STDC__
9502 # define lt_ptr_t void *
9503 #else
9504 # define lt_ptr_t char *
9505 # define const
9506 #endif
9508 /* The mapping between symbol names and symbols. */
9509 const struct {
9510 const char *name;
9511 lt_ptr_t address;
9513 lt_preloaded_symbols[] =
9516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9517 cat <<\EOF >> conftest.$ac_ext
9518 {0, (lt_ptr_t) 0}
9521 #ifdef __cplusplus
9523 #endif
9525 # Now try linking the two files.
9526 mv conftest.$ac_objext conftstm.$ac_objext
9527 lt_save_LIBS="$LIBS"
9528 lt_save_CFLAGS="$CFLAGS"
9529 LIBS="conftstm.$ac_objext"
9530 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9536 pipe_works=yes
9538 LIBS="$lt_save_LIBS"
9539 CFLAGS="$lt_save_CFLAGS"
9540 else
9541 echo "cannot find nm_test_func in $nlist" >&5
9543 else
9544 echo "cannot find nm_test_var in $nlist" >&5
9546 else
9547 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9549 else
9550 echo "$progname: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9553 rm -rf conftest* conftst*
9555 # Do not use the global_symbol_pipe unless it works.
9556 if test "$pipe_works" = yes; then
9557 break
9558 else
9559 lt_cv_sys_global_symbol_pipe=
9561 done
9565 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9566 lt_cv_sys_global_symbol_to_cdecl=
9568 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9569 { echo "$as_me:$LINENO: result: failed" >&5
9570 echo "${ECHO_T}failed" >&6; }
9571 else
9572 { echo "$as_me:$LINENO: result: ok" >&5
9573 echo "${ECHO_T}ok" >&6; }
9576 { echo "$as_me:$LINENO: checking for objdir" >&5
9577 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9578 if test "${lt_cv_objdir+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581 rm -f .libs 2>/dev/null
9582 mkdir .libs 2>/dev/null
9583 if test -d .libs; then
9584 lt_cv_objdir=.libs
9585 else
9586 # MS-DOS does not allow filenames that begin with a dot.
9587 lt_cv_objdir=_libs
9589 rmdir .libs 2>/dev/null
9591 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9592 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9593 objdir=$lt_cv_objdir
9599 case $host_os in
9600 aix3*)
9601 # AIX sometimes has problems with the GCC collect2 program. For some
9602 # reason, if we set the COLLECT_NAMES environment variable, the problems
9603 # vanish in a puff of smoke.
9604 if test "X${COLLECT_NAMES+set}" != Xset; then
9605 COLLECT_NAMES=
9606 export COLLECT_NAMES
9609 esac
9611 # Sed substitution that helps us do robust quoting. It backslashifies
9612 # metacharacters that are still active within double-quoted strings.
9613 Xsed='sed -e 1s/^X//'
9614 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9616 # Same as above, but do not quote variable references.
9617 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9619 # Sed substitution to delay expansion of an escaped shell variable in a
9620 # double_quote_subst'ed string.
9621 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9623 # Sed substitution to avoid accidental globbing in evaled expressions
9624 no_glob_subst='s/\*/\\\*/g'
9626 # Constants:
9627 rm="rm -f"
9629 # Global variables:
9630 default_ofile=libtool
9631 can_build_shared=yes
9633 # All known linkers require a `.a' archive for static linking (except MSVC,
9634 # which needs '.lib').
9635 libext=a
9636 ltmain="$ac_aux_dir/ltmain.sh"
9637 ofile="$default_ofile"
9638 with_gnu_ld="$lt_cv_prog_gnu_ld"
9640 if test -n "$ac_tool_prefix"; then
9641 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9642 set dummy ${ac_tool_prefix}ar; ac_word=$2
9643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9645 if test "${ac_cv_prog_AR+set}" = set; then
9646 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 else
9648 if test -n "$AR"; then
9649 ac_cv_prog_AR="$AR" # Let the user override the test.
9650 else
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652 for as_dir in $PATH
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9658 ac_cv_prog_AR="${ac_tool_prefix}ar"
9659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9660 break 2
9662 done
9663 done
9664 IFS=$as_save_IFS
9668 AR=$ac_cv_prog_AR
9669 if test -n "$AR"; then
9670 { echo "$as_me:$LINENO: result: $AR" >&5
9671 echo "${ECHO_T}$AR" >&6; }
9672 else
9673 { echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6; }
9679 if test -z "$ac_cv_prog_AR"; then
9680 ac_ct_AR=$AR
9681 # Extract the first word of "ar", so it can be a program name with args.
9682 set dummy ar; ac_word=$2
9683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9685 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688 if test -n "$ac_ct_AR"; then
9689 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9690 else
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_prog_ac_ct_AR="ar"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9702 done
9703 done
9704 IFS=$as_save_IFS
9708 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9709 if test -n "$ac_ct_AR"; then
9710 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9711 echo "${ECHO_T}$ac_ct_AR" >&6; }
9712 else
9713 { echo "$as_me:$LINENO: result: no" >&5
9714 echo "${ECHO_T}no" >&6; }
9717 if test "x$ac_ct_AR" = x; then
9718 AR="false"
9719 else
9720 case $cross_compiling:$ac_tool_warned in
9721 yes:)
9722 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9723 whose name does not start with the host triplet. If you think this
9724 configuration is useful to you, please write to autoconf@gnu.org." >&5
9725 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9726 whose name does not start with the host triplet. If you think this
9727 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9728 ac_tool_warned=yes ;;
9729 esac
9730 AR=$ac_ct_AR
9732 else
9733 AR="$ac_cv_prog_AR"
9736 if test -n "$ac_tool_prefix"; then
9737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9739 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9741 if test "${ac_cv_prog_RANLIB+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744 if test -n "$RANLIB"; then
9745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9746 else
9747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 for as_dir in $PATH
9750 IFS=$as_save_IFS
9751 test -z "$as_dir" && as_dir=.
9752 for ac_exec_ext in '' $ac_executable_extensions; do
9753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9756 break 2
9758 done
9759 done
9760 IFS=$as_save_IFS
9764 RANLIB=$ac_cv_prog_RANLIB
9765 if test -n "$RANLIB"; then
9766 { echo "$as_me:$LINENO: result: $RANLIB" >&5
9767 echo "${ECHO_T}$RANLIB" >&6; }
9768 else
9769 { echo "$as_me:$LINENO: result: no" >&5
9770 echo "${ECHO_T}no" >&6; }
9775 if test -z "$ac_cv_prog_RANLIB"; then
9776 ac_ct_RANLIB=$RANLIB
9777 # Extract the first word of "ranlib", so it can be a program name with args.
9778 set dummy ranlib; ac_word=$2
9779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9781 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784 if test -n "$ac_ct_RANLIB"; then
9785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9786 else
9787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 for as_dir in $PATH
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9794 ac_cv_prog_ac_ct_RANLIB="ranlib"
9795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 break 2
9798 done
9799 done
9800 IFS=$as_save_IFS
9804 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9805 if test -n "$ac_ct_RANLIB"; then
9806 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9807 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9808 else
9809 { echo "$as_me:$LINENO: result: no" >&5
9810 echo "${ECHO_T}no" >&6; }
9813 if test "x$ac_ct_RANLIB" = x; then
9814 RANLIB=":"
9815 else
9816 case $cross_compiling:$ac_tool_warned in
9817 yes:)
9818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9819 whose name does not start with the host triplet. If you think this
9820 configuration is useful to you, please write to autoconf@gnu.org." >&5
9821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9822 whose name does not start with the host triplet. If you think this
9823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9824 ac_tool_warned=yes ;;
9825 esac
9826 RANLIB=$ac_ct_RANLIB
9828 else
9829 RANLIB="$ac_cv_prog_RANLIB"
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9834 set dummy ${ac_tool_prefix}strip; ac_word=$2
9835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9837 if test "${ac_cv_prog_STRIP+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 else
9840 if test -n "$STRIP"; then
9841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9842 else
9843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844 for as_dir in $PATH
9846 IFS=$as_save_IFS
9847 test -z "$as_dir" && as_dir=.
9848 for ac_exec_ext in '' $ac_executable_extensions; do
9849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 break 2
9854 done
9855 done
9856 IFS=$as_save_IFS
9860 STRIP=$ac_cv_prog_STRIP
9861 if test -n "$STRIP"; then
9862 { echo "$as_me:$LINENO: result: $STRIP" >&5
9863 echo "${ECHO_T}$STRIP" >&6; }
9864 else
9865 { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9871 if test -z "$ac_cv_prog_STRIP"; then
9872 ac_ct_STRIP=$STRIP
9873 # Extract the first word of "strip", so it can be a program name with args.
9874 set dummy strip; ac_word=$2
9875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 if test -n "$ac_ct_STRIP"; then
9881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9882 else
9883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 for as_dir in $PATH
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9890 ac_cv_prog_ac_ct_STRIP="strip"
9891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9892 break 2
9894 done
9895 done
9896 IFS=$as_save_IFS
9900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9901 if test -n "$ac_ct_STRIP"; then
9902 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9903 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9904 else
9905 { echo "$as_me:$LINENO: result: no" >&5
9906 echo "${ECHO_T}no" >&6; }
9909 if test "x$ac_ct_STRIP" = x; then
9910 STRIP=":"
9911 else
9912 case $cross_compiling:$ac_tool_warned in
9913 yes:)
9914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9915 whose name does not start with the host triplet. If you think this
9916 configuration is useful to you, please write to autoconf@gnu.org." >&5
9917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9918 whose name does not start with the host triplet. If you think this
9919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9920 ac_tool_warned=yes ;;
9921 esac
9922 STRIP=$ac_ct_STRIP
9924 else
9925 STRIP="$ac_cv_prog_STRIP"
9929 old_CC="$CC"
9930 old_CFLAGS="$CFLAGS"
9932 # Set sane defaults for various variables
9933 test -z "$AR" && AR=ar
9934 test -z "$AR_FLAGS" && AR_FLAGS=cru
9935 test -z "$AS" && AS=as
9936 test -z "$CC" && CC=cc
9937 test -z "$LTCC" && LTCC=$CC
9938 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9939 test -z "$DLLTOOL" && DLLTOOL=dlltool
9940 test -z "$LD" && LD=ld
9941 test -z "$LN_S" && LN_S="ln -s"
9942 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9943 test -z "$NM" && NM=nm
9944 test -z "$SED" && SED=sed
9945 test -z "$OBJDUMP" && OBJDUMP=objdump
9946 test -z "$RANLIB" && RANLIB=:
9947 test -z "$STRIP" && STRIP=:
9948 test -z "$ac_objext" && ac_objext=o
9950 # Determine commands to create old-style static archives.
9951 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9952 old_postinstall_cmds='chmod 644 $oldlib'
9953 old_postuninstall_cmds=
9955 if test -n "$RANLIB"; then
9956 case $host_os in
9957 openbsd*)
9958 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9963 esac
9964 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9967 for cc_temp in $compiler""; do
9968 case $cc_temp in
9969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9971 \-*) ;;
9972 *) break;;
9973 esac
9974 done
9975 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9978 # Only perform the check for file, if the check method requires it
9979 case $deplibs_check_method in
9980 file_magic*)
9981 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9982 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9983 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 case $MAGIC_CMD in
9988 [\\/*] | ?:[\\/]*)
9989 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9992 lt_save_MAGIC_CMD="$MAGIC_CMD"
9993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9994 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9995 for ac_dir in $ac_dummy; do
9996 IFS="$lt_save_ifs"
9997 test -z "$ac_dir" && ac_dir=.
9998 if test -f $ac_dir/${ac_tool_prefix}file; then
9999 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10000 if test -n "$file_magic_test_file"; then
10001 case $deplibs_check_method in
10002 "file_magic "*)
10003 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10005 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10006 $EGREP "$file_magic_regex" > /dev/null; then
10008 else
10009 cat <<EOF 1>&2
10011 *** Warning: the command libtool uses to detect shared libraries,
10012 *** $file_magic_cmd, produces output that libtool cannot recognize.
10013 *** The result is that libtool may fail to recognize shared libraries
10014 *** as such. This will affect the creation of libtool libraries that
10015 *** depend on shared libraries, but programs linked with such libtool
10016 *** libraries will work regardless of this problem. Nevertheless, you
10017 *** may want to report the problem to your system manager and/or to
10018 *** bug-libtool@gnu.org
10021 fi ;;
10022 esac
10024 break
10026 done
10027 IFS="$lt_save_ifs"
10028 MAGIC_CMD="$lt_save_MAGIC_CMD"
10030 esac
10033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10034 if test -n "$MAGIC_CMD"; then
10035 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10036 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10037 else
10038 { echo "$as_me:$LINENO: result: no" >&5
10039 echo "${ECHO_T}no" >&6; }
10042 if test -z "$lt_cv_path_MAGIC_CMD"; then
10043 if test -n "$ac_tool_prefix"; then
10044 { echo "$as_me:$LINENO: checking for file" >&5
10045 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
10046 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 case $MAGIC_CMD in
10050 [\\/*] | ?:[\\/]*)
10051 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10054 lt_save_MAGIC_CMD="$MAGIC_CMD"
10055 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10056 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10057 for ac_dir in $ac_dummy; do
10058 IFS="$lt_save_ifs"
10059 test -z "$ac_dir" && ac_dir=.
10060 if test -f $ac_dir/file; then
10061 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10062 if test -n "$file_magic_test_file"; then
10063 case $deplibs_check_method in
10064 "file_magic "*)
10065 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10066 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10067 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10068 $EGREP "$file_magic_regex" > /dev/null; then
10070 else
10071 cat <<EOF 1>&2
10073 *** Warning: the command libtool uses to detect shared libraries,
10074 *** $file_magic_cmd, produces output that libtool cannot recognize.
10075 *** The result is that libtool may fail to recognize shared libraries
10076 *** as such. This will affect the creation of libtool libraries that
10077 *** depend on shared libraries, but programs linked with such libtool
10078 *** libraries will work regardless of this problem. Nevertheless, you
10079 *** may want to report the problem to your system manager and/or to
10080 *** bug-libtool@gnu.org
10083 fi ;;
10084 esac
10086 break
10088 done
10089 IFS="$lt_save_ifs"
10090 MAGIC_CMD="$lt_save_MAGIC_CMD"
10092 esac
10095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10096 if test -n "$MAGIC_CMD"; then
10097 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10098 echo "${ECHO_T}$MAGIC_CMD" >&6; }
10099 else
10100 { echo "$as_me:$LINENO: result: no" >&5
10101 echo "${ECHO_T}no" >&6; }
10104 else
10105 MAGIC_CMD=:
10111 esac
10114 case $host_os in
10115 rhapsody* | darwin*)
10116 if test -n "$ac_tool_prefix"; then
10117 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10118 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10121 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 if test -n "$DSYMUTIL"; then
10125 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10126 else
10127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128 for as_dir in $PATH
10130 IFS=$as_save_IFS
10131 test -z "$as_dir" && as_dir=.
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10134 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10136 break 2
10138 done
10139 done
10140 IFS=$as_save_IFS
10144 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10145 if test -n "$DSYMUTIL"; then
10146 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10147 echo "${ECHO_T}$DSYMUTIL" >&6; }
10148 else
10149 { echo "$as_me:$LINENO: result: no" >&5
10150 echo "${ECHO_T}no" >&6; }
10155 if test -z "$ac_cv_prog_DSYMUTIL"; then
10156 ac_ct_DSYMUTIL=$DSYMUTIL
10157 # Extract the first word of "dsymutil", so it can be a program name with args.
10158 set dummy dsymutil; ac_word=$2
10159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10161 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164 if test -n "$ac_ct_DSYMUTIL"; then
10165 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10166 else
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10184 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10185 if test -n "$ac_ct_DSYMUTIL"; then
10186 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10187 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
10188 else
10189 { echo "$as_me:$LINENO: result: no" >&5
10190 echo "${ECHO_T}no" >&6; }
10193 if test "x$ac_ct_DSYMUTIL" = x; then
10194 DSYMUTIL=":"
10195 else
10196 case $cross_compiling:$ac_tool_warned in
10197 yes:)
10198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10199 whose name does not start with the host triplet. If you think this
10200 configuration is useful to you, please write to autoconf@gnu.org." >&5
10201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10202 whose name does not start with the host triplet. If you think this
10203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10204 ac_tool_warned=yes ;;
10205 esac
10206 DSYMUTIL=$ac_ct_DSYMUTIL
10208 else
10209 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10212 if test -n "$ac_tool_prefix"; then
10213 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10214 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10217 if test "${ac_cv_prog_NMEDIT+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 if test -n "$NMEDIT"; then
10221 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10222 else
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10226 IFS=$as_save_IFS
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10230 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 break 2
10234 done
10235 done
10236 IFS=$as_save_IFS
10240 NMEDIT=$ac_cv_prog_NMEDIT
10241 if test -n "$NMEDIT"; then
10242 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
10243 echo "${ECHO_T}$NMEDIT" >&6; }
10244 else
10245 { echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6; }
10251 if test -z "$ac_cv_prog_NMEDIT"; then
10252 ac_ct_NMEDIT=$NMEDIT
10253 # Extract the first word of "nmedit", so it can be a program name with args.
10254 set dummy nmedit; ac_word=$2
10255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10257 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 if test -n "$ac_ct_NMEDIT"; then
10261 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10262 else
10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264 for as_dir in $PATH
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10274 done
10275 done
10276 IFS=$as_save_IFS
10280 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10281 if test -n "$ac_ct_NMEDIT"; then
10282 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10283 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
10284 else
10285 { echo "$as_me:$LINENO: result: no" >&5
10286 echo "${ECHO_T}no" >&6; }
10289 if test "x$ac_ct_NMEDIT" = x; then
10290 NMEDIT=":"
10291 else
10292 case $cross_compiling:$ac_tool_warned in
10293 yes:)
10294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10295 whose name does not start with the host triplet. If you think this
10296 configuration is useful to you, please write to autoconf@gnu.org." >&5
10297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10298 whose name does not start with the host triplet. If you think this
10299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10300 ac_tool_warned=yes ;;
10301 esac
10302 NMEDIT=$ac_ct_NMEDIT
10304 else
10305 NMEDIT="$ac_cv_prog_NMEDIT"
10309 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10310 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
10311 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 lt_cv_apple_cc_single_mod=no
10315 if test -z "${LT_MULTI_MODULE}"; then
10316 # By default we will add the -single_module flag. You can override
10317 # by either setting the environment variable LT_MULTI_MODULE
10318 # non-empty at configure time, or by adding -multi_module to the
10319 # link flags.
10320 echo "int foo(void){return 1;}" > conftest.c
10321 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10322 -dynamiclib ${wl}-single_module conftest.c
10323 if test -f libconftest.dylib; then
10324 lt_cv_apple_cc_single_mod=yes
10325 rm -rf libconftest.dylib*
10327 rm conftest.c
10330 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10331 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
10332 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10333 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
10334 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337 lt_cv_ld_exported_symbols_list=no
10338 save_LDFLAGS=$LDFLAGS
10339 echo "_main" > conftest.sym
10340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h. */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10349 main ()
10353 return 0;
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (ac_try="$ac_link"
10358 case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10364 ac_status=$?
10365 grep -v '^ *+' conftest.er1 >conftest.err
10366 rm -f conftest.er1
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 lt_cv_ld_exported_symbols_list=yes
10375 else
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 lt_cv_ld_exported_symbols_list=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LDFLAGS="$save_LDFLAGS"
10387 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10388 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
10389 case $host_os in
10390 rhapsody* | darwin1.[0123])
10391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10392 darwin1.*)
10393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10394 darwin*)
10395 # if running on 10.5 or later, the deployment target defaults
10396 # to the OS version, if on x86, and 10.4, the deployment
10397 # target defaults to 10.4. Don't you love it?
10398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10401 10.[012]*)
10402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10403 10.*)
10404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10405 esac
10407 esac
10408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10409 _lt_dar_single_mod='$single_module'
10411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10413 else
10414 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
10416 if test "$DSYMUTIL" != ":"; then
10417 _lt_dsymutil="~$DSYMUTIL \$lib || :"
10418 else
10419 _lt_dsymutil=
10422 esac
10425 enable_dlopen=no
10426 enable_win32_dll=yes
10428 # Check whether --enable-libtool-lock was given.
10429 if test "${enable_libtool_lock+set}" = set; then
10430 enableval=$enable_libtool_lock;
10433 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10436 # Check whether --with-pic was given.
10437 if test "${with_pic+set}" = set; then
10438 withval=$with_pic; pic_mode="$withval"
10439 else
10440 pic_mode=default
10443 test -z "$pic_mode" && pic_mode=default
10445 # Use C for the default configuration in the libtool script
10446 tagname=
10447 lt_save_CC="$CC"
10448 ac_ext=c
10449 ac_cpp='$CPP $CPPFLAGS'
10450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10455 # Source file extension for C test sources.
10456 ac_ext=c
10458 # Object file extension for compiled C test sources.
10459 objext=o
10460 objext=$objext
10462 # Code to be used in simple compile tests
10463 lt_simple_compile_test_code="int some_variable = 0;"
10465 # Code to be used in simple link tests
10466 lt_simple_link_test_code='int main(){return(0);}'
10469 # If no C compiler was specified, use CC.
10470 LTCC=${LTCC-"$CC"}
10472 # If no C compiler flags were specified, use CFLAGS.
10473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10475 # Allow CC to be a program name with arguments.
10476 compiler=$CC
10479 # save warnings/boilerplate of simple test code
10480 ac_outfile=conftest.$ac_objext
10481 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10482 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10483 _lt_compiler_boilerplate=`cat conftest.err`
10484 $rm conftest*
10486 ac_outfile=conftest.$ac_objext
10487 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10489 _lt_linker_boilerplate=`cat conftest.err`
10490 $rm -r conftest*
10494 lt_prog_compiler_no_builtin_flag=
10496 if test "$GCC" = yes; then
10497 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10500 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10501 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10502 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505 lt_cv_prog_compiler_rtti_exceptions=no
10506 ac_outfile=conftest.$ac_objext
10507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10508 lt_compiler_flag="-fno-rtti -fno-exceptions"
10509 # Insert the option either (1) after the last *FLAGS variable, or
10510 # (2) before a word containing "conftest.", or (3) at the end.
10511 # Note that $ac_compile itself does not contain backslashes and begins
10512 # with a dollar sign (not a hyphen), so the echo should work correctly.
10513 # The option is referenced via a variable to avoid confusing sed.
10514 lt_compile=`echo "$ac_compile" | $SED \
10515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10517 -e 's:$: $lt_compiler_flag:'`
10518 (eval echo "\"\$as_me:10518: $lt_compile\"" >&5)
10519 (eval "$lt_compile" 2>conftest.err)
10520 ac_status=$?
10521 cat conftest.err >&5
10522 echo "$as_me:10522: \$? = $ac_status" >&5
10523 if (exit $ac_status) && test -s "$ac_outfile"; then
10524 # The compiler can only warn and ignore the option if not recognized
10525 # So say no if there are warnings other than the usual output.
10526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10529 lt_cv_prog_compiler_rtti_exceptions=yes
10532 $rm conftest*
10535 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10536 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10538 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10539 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10540 else
10546 lt_prog_compiler_wl=
10547 lt_prog_compiler_pic=
10548 lt_prog_compiler_static=
10550 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10551 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10553 if test "$GCC" = yes; then
10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_static='-static'
10557 case $host_os in
10558 aix*)
10559 # All AIX code is PIC.
10560 if test "$host_cpu" = ia64; then
10561 # AIX 5 now supports IA64 processor
10562 lt_prog_compiler_static='-Bstatic'
10566 amigaos*)
10567 # FIXME: we need at least 68020 code to build shared libraries, but
10568 # adding the `-m68020' flag to GCC prevents building anything better,
10569 # like `-m68040'.
10570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10574 # PIC is the default for these OSes.
10577 mingw* | cygwin* | pw32* | os2*)
10578 # This hack is so that the source file can tell whether it is being
10579 # built for inclusion in a dll (and should export symbols for example).
10580 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10581 # (--disable-auto-import) libraries
10582 lt_prog_compiler_pic='-DDLL_EXPORT'
10585 darwin* | rhapsody*)
10586 # PIC is the default on this platform
10587 # Common symbols not allowed in MH_DYLIB files
10588 lt_prog_compiler_pic='-fno-common'
10591 interix[3-9]*)
10592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10593 # Instead, we relocate shared libraries at runtime.
10596 msdosdjgpp*)
10597 # Just because we use GCC doesn't mean we suddenly get shared libraries
10598 # on systems that don't support them.
10599 lt_prog_compiler_can_build_shared=no
10600 enable_shared=no
10603 sysv4*MP*)
10604 if test -d /usr/nec; then
10605 lt_prog_compiler_pic=-Kconform_pic
10609 hpux*)
10610 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10611 # not for PA HP-UX.
10612 case $host_cpu in
10613 hppa*64*|ia64*)
10614 # +Z the default
10617 lt_prog_compiler_pic='-fPIC'
10619 esac
10623 lt_prog_compiler_pic='-fPIC'
10625 esac
10626 else
10627 # PORTME Check for flag to pass linker flags through the system compiler.
10628 case $host_os in
10629 aix*)
10630 lt_prog_compiler_wl='-Wl,'
10631 if test "$host_cpu" = ia64; then
10632 # AIX 5 now supports IA64 processor
10633 lt_prog_compiler_static='-Bstatic'
10634 else
10635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10638 darwin*)
10639 # PIC is the default on this platform
10640 # Common symbols not allowed in MH_DYLIB files
10641 case $cc_basename in
10642 xlc*)
10643 lt_prog_compiler_pic='-qnocommon'
10644 lt_prog_compiler_wl='-Wl,'
10646 esac
10649 mingw* | cygwin* | pw32* | os2*)
10650 # This hack is so that the source file can tell whether it is being
10651 # built for inclusion in a dll (and should export symbols for example).
10652 lt_prog_compiler_pic='-DDLL_EXPORT'
10655 hpux9* | hpux10* | hpux11*)
10656 lt_prog_compiler_wl='-Wl,'
10657 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10658 # not for PA HP-UX.
10659 case $host_cpu in
10660 hppa*64*|ia64*)
10661 # +Z the default
10664 lt_prog_compiler_pic='+Z'
10666 esac
10667 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10668 lt_prog_compiler_static='${wl}-a ${wl}archive'
10671 irix5* | irix6* | nonstopux*)
10672 lt_prog_compiler_wl='-Wl,'
10673 # PIC (with -KPIC) is the default.
10674 lt_prog_compiler_static='-non_shared'
10677 newsos6)
10678 lt_prog_compiler_pic='-KPIC'
10679 lt_prog_compiler_static='-Bstatic'
10682 linux* | k*bsd*-gnu)
10683 case $cc_basename in
10684 icc* | ecc*)
10685 lt_prog_compiler_wl='-Wl,'
10686 lt_prog_compiler_pic='-KPIC'
10687 lt_prog_compiler_static='-static'
10689 pgcc* | pgf77* | pgf90* | pgf95*)
10690 # Portland Group compilers (*not* the Pentium gcc compiler,
10691 # which looks to be a dead project)
10692 lt_prog_compiler_wl='-Wl,'
10693 lt_prog_compiler_pic='-fpic'
10694 lt_prog_compiler_static='-Bstatic'
10696 ccc*)
10697 lt_prog_compiler_wl='-Wl,'
10698 # All Alpha code is PIC.
10699 lt_prog_compiler_static='-non_shared'
10702 case `$CC -V 2>&1 | sed 5q` in
10703 *Sun\ C*)
10704 # Sun C 5.9
10705 lt_prog_compiler_pic='-KPIC'
10706 lt_prog_compiler_static='-Bstatic'
10707 lt_prog_compiler_wl='-Wl,'
10709 *Sun\ F*)
10710 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10711 lt_prog_compiler_pic='-KPIC'
10712 lt_prog_compiler_static='-Bstatic'
10713 lt_prog_compiler_wl=''
10715 esac
10717 esac
10720 osf3* | osf4* | osf5*)
10721 lt_prog_compiler_wl='-Wl,'
10722 # All OSF/1 code is PIC.
10723 lt_prog_compiler_static='-non_shared'
10726 rdos*)
10727 lt_prog_compiler_static='-non_shared'
10730 solaris*)
10731 lt_prog_compiler_pic='-KPIC'
10732 lt_prog_compiler_static='-Bstatic'
10733 case $cc_basename in
10734 f77* | f90* | f95*)
10735 lt_prog_compiler_wl='-Qoption ld ';;
10737 lt_prog_compiler_wl='-Wl,';;
10738 esac
10741 sunos4*)
10742 lt_prog_compiler_wl='-Qoption ld '
10743 lt_prog_compiler_pic='-PIC'
10744 lt_prog_compiler_static='-Bstatic'
10747 sysv4 | sysv4.2uw2* | sysv4.3*)
10748 lt_prog_compiler_wl='-Wl,'
10749 lt_prog_compiler_pic='-KPIC'
10750 lt_prog_compiler_static='-Bstatic'
10753 sysv4*MP*)
10754 if test -d /usr/nec ;then
10755 lt_prog_compiler_pic='-Kconform_pic'
10756 lt_prog_compiler_static='-Bstatic'
10760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10761 lt_prog_compiler_wl='-Wl,'
10762 lt_prog_compiler_pic='-KPIC'
10763 lt_prog_compiler_static='-Bstatic'
10766 unicos*)
10767 lt_prog_compiler_wl='-Wl,'
10768 lt_prog_compiler_can_build_shared=no
10771 uts4*)
10772 lt_prog_compiler_pic='-pic'
10773 lt_prog_compiler_static='-Bstatic'
10777 lt_prog_compiler_can_build_shared=no
10779 esac
10782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10786 # Check to make sure the PIC flag actually works.
10788 if test -n "$lt_prog_compiler_pic"; then
10790 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10792 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795 lt_cv_prog_compiler_pic_works=no
10796 ac_outfile=conftest.$ac_objext
10797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10799 # Insert the option either (1) after the last *FLAGS variable, or
10800 # (2) before a word containing "conftest.", or (3) at the end.
10801 # Note that $ac_compile itself does not contain backslashes and begins
10802 # with a dollar sign (not a hyphen), so the echo should work correctly.
10803 # The option is referenced via a variable to avoid confusing sed.
10804 lt_compile=`echo "$ac_compile" | $SED \
10805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10807 -e 's:$: $lt_compiler_flag:'`
10808 (eval echo "\"\$as_me:10808: $lt_compile\"" >&5)
10809 (eval "$lt_compile" 2>conftest.err)
10810 ac_status=$?
10811 cat conftest.err >&5
10812 echo "$as_me:10812: \$? = $ac_status" >&5
10813 if (exit $ac_status) && test -s "$ac_outfile"; then
10814 # The compiler can only warn and ignore the option if not recognized
10815 # So say no if there are warnings other than the usual output.
10816 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10819 lt_cv_prog_compiler_pic_works=yes
10822 $rm conftest*
10825 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10826 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
10828 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10829 case $lt_prog_compiler_pic in
10830 "" | " "*) ;;
10831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10832 esac
10833 else
10834 lt_prog_compiler_pic=
10835 lt_prog_compiler_can_build_shared=no
10839 case $host_os in
10840 # For platforms which do not support PIC, -DPIC is meaningless:
10841 *djgpp*)
10842 lt_prog_compiler_pic=
10845 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10847 esac
10850 # Check to make sure the static flag actually works.
10852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10853 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10854 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
10855 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 lt_cv_prog_compiler_static_works=no
10859 save_LDFLAGS="$LDFLAGS"
10860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10863 # The linker can only warn and ignore the option if not recognized
10864 # So say no if there are warnings
10865 if test -s conftest.err; then
10866 # Append any errors to the config.log.
10867 cat conftest.err 1>&5
10868 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10870 if diff conftest.exp conftest.er2 >/dev/null; then
10871 lt_cv_prog_compiler_static_works=yes
10873 else
10874 lt_cv_prog_compiler_static_works=yes
10877 $rm -r conftest*
10878 LDFLAGS="$save_LDFLAGS"
10881 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10882 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
10884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10886 else
10887 lt_prog_compiler_static=
10891 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10892 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10893 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896 lt_cv_prog_compiler_c_o=no
10897 $rm -r conftest 2>/dev/null
10898 mkdir conftest
10899 cd conftest
10900 mkdir out
10901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10903 lt_compiler_flag="-o out/conftest2.$ac_objext"
10904 # Insert the option either (1) after the last *FLAGS variable, or
10905 # (2) before a word containing "conftest.", or (3) at the end.
10906 # Note that $ac_compile itself does not contain backslashes and begins
10907 # with a dollar sign (not a hyphen), so the echo should work correctly.
10908 lt_compile=`echo "$ac_compile" | $SED \
10909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10911 -e 's:$: $lt_compiler_flag:'`
10912 (eval echo "\"\$as_me:10912: $lt_compile\"" >&5)
10913 (eval "$lt_compile" 2>out/conftest.err)
10914 ac_status=$?
10915 cat out/conftest.err >&5
10916 echo "$as_me:10916: \$? = $ac_status" >&5
10917 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10918 then
10919 # The compiler can only warn and ignore the option if not recognized
10920 # So say no if there are warnings
10921 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10922 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10923 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10924 lt_cv_prog_compiler_c_o=yes
10927 chmod u+w . 2>&5
10928 $rm conftest*
10929 # SGI C++ compiler will create directory out/ii_files/ for
10930 # template instantiation
10931 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10932 $rm out/* && rmdir out
10933 cd ..
10934 rmdir conftest
10935 $rm conftest*
10938 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10939 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10942 hard_links="nottested"
10943 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10944 # do not overwrite the value of need_locks provided by the user
10945 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10947 hard_links=yes
10948 $rm conftest*
10949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10950 touch conftest.a
10951 ln conftest.a conftest.b 2>&5 || hard_links=no
10952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10953 { echo "$as_me:$LINENO: result: $hard_links" >&5
10954 echo "${ECHO_T}$hard_links" >&6; }
10955 if test "$hard_links" = no; then
10956 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10957 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10958 need_locks=warn
10960 else
10961 need_locks=no
10964 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10965 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10967 runpath_var=
10968 allow_undefined_flag=
10969 enable_shared_with_static_runtimes=no
10970 archive_cmds=
10971 archive_expsym_cmds=
10972 old_archive_From_new_cmds=
10973 old_archive_from_expsyms_cmds=
10974 export_dynamic_flag_spec=
10975 whole_archive_flag_spec=
10976 thread_safe_flag_spec=
10977 hardcode_libdir_flag_spec=
10978 hardcode_libdir_flag_spec_ld=
10979 hardcode_libdir_separator=
10980 hardcode_direct=no
10981 hardcode_minus_L=no
10982 hardcode_shlibpath_var=unsupported
10983 link_all_deplibs=unknown
10984 hardcode_automatic=no
10985 module_cmds=
10986 module_expsym_cmds=
10987 always_export_symbols=no
10988 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10989 # include_expsyms should be a list of space-separated symbols to be *always*
10990 # included in the symbol list
10991 include_expsyms=
10992 # exclude_expsyms can be an extended regexp of symbols to exclude
10993 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10994 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10995 # as well as any symbol that contains `d'.
10996 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10997 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10998 # platforms (ab)use it in PIC code, but their linkers get confused if
10999 # the symbol is explicitly referenced. Since portable code cannot
11000 # rely on this symbol name, it's probably fine to never include it in
11001 # preloaded symbol tables.
11002 # Exclude shared library initialization/finalization symbols.
11003 extract_expsyms_cmds=
11004 # Just being paranoid about ensuring that cc_basename is set.
11005 for cc_temp in $compiler""; do
11006 case $cc_temp in
11007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11009 \-*) ;;
11010 *) break;;
11011 esac
11012 done
11013 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11015 case $host_os in
11016 cygwin* | mingw* | pw32*)
11017 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11018 # When not using gcc, we currently assume that we are using
11019 # Microsoft Visual C++.
11020 if test "$GCC" != yes; then
11021 with_gnu_ld=no
11024 interix*)
11025 # we just hope/assume this is gcc and not c89 (= MSVC++)
11026 with_gnu_ld=yes
11028 openbsd*)
11029 with_gnu_ld=no
11031 esac
11033 ld_shlibs=yes
11034 if test "$with_gnu_ld" = yes; then
11035 # If archive_cmds runs LD, not CC, wlarc should be empty
11036 wlarc='${wl}'
11038 # Set some defaults for GNU ld with shared library support. These
11039 # are reset later if shared libraries are not supported. Putting them
11040 # here allows them to be overridden if necessary.
11041 runpath_var=LD_RUN_PATH
11042 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
11043 export_dynamic_flag_spec='${wl}--export-dynamic'
11044 # ancient GNU ld didn't support --whole-archive et. al.
11045 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11046 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11047 else
11048 whole_archive_flag_spec=
11050 supports_anon_versioning=no
11051 case `$LD -v 2>/dev/null` in
11052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11055 *\ 2.11.*) ;; # other 2.11 versions
11056 *) supports_anon_versioning=yes ;;
11057 esac
11059 # See if GNU ld supports shared libraries.
11060 case $host_os in
11061 aix[3-9]*)
11062 # On AIX/PPC, the GNU linker is very broken
11063 if test "$host_cpu" != ia64; then
11064 ld_shlibs=no
11065 cat <<EOF 1>&2
11067 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11068 *** to be unable to reliably create shared libraries on AIX.
11069 *** Therefore, libtool is disabling shared libraries support. If you
11070 *** really care for shared libraries, you may want to modify your PATH
11071 *** so that a non-GNU linker is found, and then restart.
11077 amigaos*)
11078 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)'
11079 hardcode_libdir_flag_spec='-L$libdir'
11080 hardcode_minus_L=yes
11082 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11083 # that the semantics of dynamic libraries on AmigaOS, at least up
11084 # to version 4, is to share data among multiple programs linked
11085 # with the same dynamic library. Since this doesn't match the
11086 # behavior of shared libraries on other platforms, we can't use
11087 # them.
11088 ld_shlibs=no
11091 beos*)
11092 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11093 allow_undefined_flag=unsupported
11094 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11095 # support --undefined. This deserves some investigation. FIXME
11096 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097 else
11098 ld_shlibs=no
11102 cygwin* | mingw* | pw32*)
11103 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11104 # as there is no search path for DLLs.
11105 hardcode_libdir_flag_spec='-L$libdir'
11106 allow_undefined_flag=unsupported
11107 always_export_symbols=no
11108 enable_shared_with_static_runtimes=yes
11109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11111 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11113 # If the export-symbols file already is a .def file (1st line
11114 # is EXPORTS), use it as is; otherwise, prepend...
11115 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11116 cp $export_symbols $output_objdir/$soname.def;
11117 else
11118 echo EXPORTS > $output_objdir/$soname.def;
11119 cat $export_symbols >> $output_objdir/$soname.def;
11121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11122 else
11123 ld_shlibs=no
11127 interix[3-9]*)
11128 hardcode_direct=no
11129 hardcode_shlibpath_var=no
11130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11131 export_dynamic_flag_spec='${wl}-E'
11132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11133 # Instead, shared libraries are loaded at an image base (0x10000000 by
11134 # default) and relocated if they conflict, which is a slow very memory
11135 # consuming and fragmenting process. To avoid this, we pick a random,
11136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11139 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'
11142 gnu* | linux* | k*bsd*-gnu)
11143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11144 tmp_addflag=
11145 case $cc_basename,$host_cpu in
11146 pgcc*) # Portland Group C compiler
11147 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11148 tmp_addflag=' $pic_flag'
11150 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11151 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11152 tmp_addflag=' $pic_flag -Mnomain' ;;
11153 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11154 tmp_addflag=' -i_dynamic' ;;
11155 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11156 tmp_addflag=' -i_dynamic -nofor_main' ;;
11157 ifc* | ifort*) # Intel Fortran compiler
11158 tmp_addflag=' -nofor_main' ;;
11159 esac
11160 case `$CC -V 2>&1 | sed 5q` in
11161 *Sun\ C*) # Sun C 5.9
11162 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11163 tmp_sharedflag='-G' ;;
11164 *Sun\ F*) # Sun Fortran 8.3
11165 tmp_sharedflag='-G' ;;
11167 tmp_sharedflag='-shared' ;;
11168 esac
11169 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11171 if test $supports_anon_versioning = yes; then
11172 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11174 $echo "local: *; };" >> $output_objdir/$libname.ver~
11175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11177 link_all_deplibs=no
11178 else
11179 ld_shlibs=no
11183 netbsd* | netbsdelf*-gnu)
11184 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11185 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11186 wlarc=
11187 else
11188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11193 solaris*)
11194 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11195 ld_shlibs=no
11196 cat <<EOF 1>&2
11198 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11199 *** create shared libraries on Solaris systems. Therefore, libtool
11200 *** is disabling shared libraries support. We urge you to upgrade GNU
11201 *** binutils to release 2.9.1 or newer. Another option is to modify
11202 *** your PATH or compiler configuration so that the native linker is
11203 *** used, and then restart.
11206 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11207 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11208 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11209 else
11210 ld_shlibs=no
11214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11215 case `$LD -v 2>&1` in
11216 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11217 ld_shlibs=no
11218 cat <<_LT_EOF 1>&2
11220 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11221 *** reliably create shared libraries on SCO systems. Therefore, libtool
11222 *** is disabling shared libraries support. We urge you to upgrade GNU
11223 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11224 *** your PATH or compiler configuration so that the native linker is
11225 *** used, and then restart.
11227 _LT_EOF
11230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11231 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11234 else
11235 ld_shlibs=no
11238 esac
11241 sunos4*)
11242 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11243 wlarc=
11244 hardcode_direct=yes
11245 hardcode_shlibpath_var=no
11249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11252 else
11253 ld_shlibs=no
11256 esac
11258 if test "$ld_shlibs" = no; then
11259 runpath_var=
11260 hardcode_libdir_flag_spec=
11261 export_dynamic_flag_spec=
11262 whole_archive_flag_spec=
11264 else
11265 # PORTME fill in a description of your system's linker (not GNU ld)
11266 case $host_os in
11267 aix3*)
11268 allow_undefined_flag=unsupported
11269 always_export_symbols=yes
11270 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'
11271 # Note: this linker hardcodes the directories in LIBPATH if there
11272 # are no directories specified by -L.
11273 hardcode_minus_L=yes
11274 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11275 # Neither direct hardcoding nor static linking is supported with a
11276 # broken collect2.
11277 hardcode_direct=unsupported
11281 aix[4-9]*)
11282 if test "$host_cpu" = ia64; then
11283 # On IA64, the linker does run time linking by default, so we don't
11284 # have to do anything special.
11285 aix_use_runtimelinking=no
11286 exp_sym_flag='-Bexport'
11287 no_entry_flag=""
11288 else
11289 # If we're using GNU nm, then we don't want the "-C" option.
11290 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11291 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11292 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11293 else
11294 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11296 aix_use_runtimelinking=no
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11302 for ld_flag in $LDFLAGS; do
11303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11304 aix_use_runtimelinking=yes
11305 break
11307 done
11309 esac
11311 exp_sym_flag='-bexport'
11312 no_entry_flag='-bnoentry'
11315 # When large executables or shared objects are built, AIX ld can
11316 # have problems creating the table of contents. If linking a library
11317 # or program results in "error TOC overflow" add -mminimal-toc to
11318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321 archive_cmds=''
11322 hardcode_direct=yes
11323 hardcode_libdir_separator=':'
11324 link_all_deplibs=yes
11326 if test "$GCC" = yes; then
11327 case $host_os in aix4.[012]|aix4.[012].*)
11328 # We only want to do this on AIX 4.2 and lower, the check
11329 # below for broken collect2 doesn't work under 4.3+
11330 collect2name=`${CC} -print-prog-name=collect2`
11331 if test -f "$collect2name" && \
11332 strings "$collect2name" | grep resolve_lib_name >/dev/null
11333 then
11334 # We have reworked collect2
11336 else
11337 # We have old collect2
11338 hardcode_direct=unsupported
11339 # It fails to find uninstalled libraries when the uninstalled
11340 # path is not listed in the libpath. Setting hardcode_minus_L
11341 # to unsupported forces relinking
11342 hardcode_minus_L=yes
11343 hardcode_libdir_flag_spec='-L$libdir'
11344 hardcode_libdir_separator=
11347 esac
11348 shared_flag='-shared'
11349 if test "$aix_use_runtimelinking" = yes; then
11350 shared_flag="$shared_flag "'${wl}-G'
11352 else
11353 # not using gcc
11354 if test "$host_cpu" = ia64; then
11355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11356 # chokes on -Wl,-G. The following line is correct:
11357 shared_flag='-G'
11358 else
11359 if test "$aix_use_runtimelinking" = yes; then
11360 shared_flag='${wl}-G'
11361 else
11362 shared_flag='${wl}-bM:SRE'
11367 # It seems that -bexpall does not export symbols beginning with
11368 # underscore (_), so it is better to generate a list of symbols to export.
11369 always_export_symbols=yes
11370 if test "$aix_use_runtimelinking" = yes; then
11371 # Warning - without using the other runtime loading flags (-brtl),
11372 # -berok will link without error, but may produce a broken library.
11373 allow_undefined_flag='-berok'
11374 # Determine the default libpath from the value encoded in an empty executable.
11375 cat >conftest.$ac_ext <<_ACEOF
11376 /* confdefs.h. */
11377 _ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11383 main ()
11387 return 0;
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395 esac
11396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397 (eval "$ac_link") 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } && {
11404 test -z "$ac_c_werror_flag" ||
11405 test ! -s conftest.err
11406 } && test -s conftest$ac_exeext &&
11407 $as_test_x conftest$ac_exeext; then
11409 lt_aix_libpath_sed='
11410 /Import File Strings/,/^$/ {
11411 /^0/ {
11412 s/^0 *\(.*\)$/\1/
11416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11417 # Check for a 64-bit object if we didn't find anything.
11418 if test -z "$aix_libpath"; then
11419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421 else
11422 echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11429 conftest$ac_exeext conftest.$ac_ext
11430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11432 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11433 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11434 else
11435 if test "$host_cpu" = ia64; then
11436 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11437 allow_undefined_flag="-z nodefs"
11438 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"
11439 else
11440 # Determine the default libpath from the value encoded in an empty executable.
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11449 main ()
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest$ac_exeext &&
11473 $as_test_x conftest$ac_exeext; then
11475 lt_aix_libpath_sed='
11476 /Import File Strings/,/^$/ {
11477 /^0/ {
11478 s/^0 *\(.*\)$/\1/
11482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11483 # Check for a 64-bit object if we didn't find anything.
11484 if test -z "$aix_libpath"; then
11485 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11487 else
11488 echo "$as_me: failed program was:" >&5
11489 sed 's/^/| /' conftest.$ac_ext >&5
11494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11495 conftest$ac_exeext conftest.$ac_ext
11496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11499 # Warning - without using the other run time loading flags,
11500 # -berok will link without error, but may produce a broken library.
11501 no_undefined_flag=' ${wl}-bernotok'
11502 allow_undefined_flag=' ${wl}-berok'
11503 # Exported symbols can be pulled into shared objects from archives
11504 whole_archive_flag_spec='$convenience'
11505 archive_cmds_need_lc=yes
11506 # This is similar to how AIX traditionally builds its shared libraries.
11507 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11512 amigaos*)
11513 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)'
11514 hardcode_libdir_flag_spec='-L$libdir'
11515 hardcode_minus_L=yes
11516 # see comment about different semantics on the GNU ld section
11517 ld_shlibs=no
11520 bsdi[45]*)
11521 export_dynamic_flag_spec=-rdynamic
11524 cygwin* | mingw* | pw32*)
11525 # When not using gcc, we currently assume that we are using
11526 # Microsoft Visual C++.
11527 # hardcode_libdir_flag_spec is actually meaningless, as there is
11528 # no search path for DLLs.
11529 hardcode_libdir_flag_spec=' '
11530 allow_undefined_flag=unsupported
11531 # Tell ltmain to make .lib files, not .a files.
11532 libext=lib
11533 # Tell ltmain to make .dll files, not .so files.
11534 shrext_cmds=".dll"
11535 # FIXME: Setting linknames here is a bad hack.
11536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11537 # The linker will automatically build a .lib file if we build a DLL.
11538 old_archive_From_new_cmds='true'
11539 # FIXME: Should let the user specify the lib program.
11540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11541 fix_srcfile_path='`cygpath -w "$srcfile"`'
11542 enable_shared_with_static_runtimes=yes
11545 darwin* | rhapsody*)
11546 case $host_os in
11547 rhapsody* | darwin1.[012])
11548 allow_undefined_flag='${wl}-undefined ${wl}suppress'
11550 *) # Darwin 1.3 on
11551 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11552 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11553 else
11554 case ${MACOSX_DEPLOYMENT_TARGET} in
11555 10.[012])
11556 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11558 10.*)
11559 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11561 esac
11564 esac
11565 archive_cmds_need_lc=no
11566 hardcode_direct=no
11567 hardcode_automatic=yes
11568 hardcode_shlibpath_var=unsupported
11569 whole_archive_flag_spec=''
11570 link_all_deplibs=yes
11571 if test "$GCC" = yes ; then
11572 output_verbose_link_cmd='echo'
11573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11575 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}"
11576 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}"
11577 else
11578 case $cc_basename in
11579 xlc*)
11580 output_verbose_link_cmd='echo'
11581 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11582 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11584 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11585 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11588 ld_shlibs=no
11590 esac
11594 dgux*)
11595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11596 hardcode_libdir_flag_spec='-L$libdir'
11597 hardcode_shlibpath_var=no
11600 freebsd1*)
11601 ld_shlibs=no
11604 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11605 # support. Future versions do this automatically, but an explicit c++rt0.o
11606 # does not break anything, and helps significantly (at the cost of a little
11607 # extra space).
11608 freebsd2.2*)
11609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11610 hardcode_libdir_flag_spec='-R$libdir'
11611 hardcode_direct=yes
11612 hardcode_shlibpath_var=no
11615 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11616 freebsd2*)
11617 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11618 hardcode_direct=yes
11619 hardcode_minus_L=yes
11620 hardcode_shlibpath_var=no
11623 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11624 freebsd* | dragonfly*)
11625 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11626 hardcode_libdir_flag_spec='-R$libdir'
11627 hardcode_direct=yes
11628 hardcode_shlibpath_var=no
11631 hpux9*)
11632 if test "$GCC" = yes; then
11633 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11634 else
11635 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11637 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11638 hardcode_libdir_separator=:
11639 hardcode_direct=yes
11641 # hardcode_minus_L: Not really in the search PATH,
11642 # but as the default location of the library.
11643 hardcode_minus_L=yes
11644 export_dynamic_flag_spec='${wl}-E'
11647 hpux10*)
11648 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11649 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11650 else
11651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11653 if test "$with_gnu_ld" = no; then
11654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11655 hardcode_libdir_separator=:
11657 hardcode_direct=yes
11658 export_dynamic_flag_spec='${wl}-E'
11660 # hardcode_minus_L: Not really in the search PATH,
11661 # but as the default location of the library.
11662 hardcode_minus_L=yes
11666 hpux11*)
11667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11668 case $host_cpu in
11669 hppa*64*)
11670 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11672 ia64*)
11673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11678 esac
11679 else
11680 case $host_cpu in
11681 hppa*64*)
11682 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11684 ia64*)
11685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11690 esac
11692 if test "$with_gnu_ld" = no; then
11693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11694 hardcode_libdir_separator=:
11696 case $host_cpu in
11697 hppa*64*|ia64*)
11698 hardcode_libdir_flag_spec_ld='+b $libdir'
11699 hardcode_direct=no
11700 hardcode_shlibpath_var=no
11703 hardcode_direct=yes
11704 export_dynamic_flag_spec='${wl}-E'
11706 # hardcode_minus_L: Not really in the search PATH,
11707 # but as the default location of the library.
11708 hardcode_minus_L=yes
11710 esac
11714 irix5* | irix6* | nonstopux*)
11715 if test "$GCC" = yes; then
11716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11717 else
11718 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11719 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11722 hardcode_libdir_separator=:
11723 link_all_deplibs=yes
11726 netbsd* | netbsdelf*-gnu)
11727 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11729 else
11730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11732 hardcode_libdir_flag_spec='-R$libdir'
11733 hardcode_direct=yes
11734 hardcode_shlibpath_var=no
11737 newsos6)
11738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11739 hardcode_direct=yes
11740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11741 hardcode_libdir_separator=:
11742 hardcode_shlibpath_var=no
11745 openbsd*)
11746 if test -f /usr/libexec/ld.so; then
11747 hardcode_direct=yes
11748 hardcode_shlibpath_var=no
11749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11751 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11753 export_dynamic_flag_spec='${wl}-E'
11754 else
11755 case $host_os in
11756 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11758 hardcode_libdir_flag_spec='-R$libdir'
11761 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11764 esac
11766 else
11767 ld_shlibs=no
11771 os2*)
11772 hardcode_libdir_flag_spec='-L$libdir'
11773 hardcode_minus_L=yes
11774 allow_undefined_flag=unsupported
11775 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11776 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11779 osf3*)
11780 if test "$GCC" = yes; then
11781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11782 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11783 else
11784 allow_undefined_flag=' -expect_unresolved \*'
11785 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11788 hardcode_libdir_separator=:
11791 osf4* | osf5*) # as osf3* with the addition of -msym flag
11792 if test "$GCC" = yes; then
11793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11794 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11796 else
11797 allow_undefined_flag=' -expect_unresolved \*'
11798 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11799 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11800 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11802 # Both c and cxx compiler support -rpath directly
11803 hardcode_libdir_flag_spec='-rpath $libdir'
11805 hardcode_libdir_separator=:
11808 solaris*)
11809 no_undefined_flag=' -z text'
11810 if test "$GCC" = yes; then
11811 wlarc='${wl}'
11812 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11814 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11815 else
11816 wlarc=''
11817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11821 hardcode_libdir_flag_spec='-R$libdir'
11822 hardcode_shlibpath_var=no
11823 case $host_os in
11824 solaris2.[0-5] | solaris2.[0-5].*) ;;
11826 # The compiler driver will combine and reorder linker options,
11827 # but understands `-z linker_flag'. GCC discards it without `$wl',
11828 # but is careful enough not to reorder.
11829 # Supported since Solaris 2.6 (maybe 2.5.1?)
11830 if test "$GCC" = yes; then
11831 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11832 else
11833 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11836 esac
11837 link_all_deplibs=yes
11840 sunos4*)
11841 if test "x$host_vendor" = xsequent; then
11842 # Use $CC to link under sequent, because it throws in some extra .o
11843 # files that make .init and .fini sections work.
11844 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11845 else
11846 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11848 hardcode_libdir_flag_spec='-L$libdir'
11849 hardcode_direct=yes
11850 hardcode_minus_L=yes
11851 hardcode_shlibpath_var=no
11854 sysv4)
11855 case $host_vendor in
11856 sni)
11857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11858 hardcode_direct=yes # is this really true???
11860 siemens)
11861 ## LD is ld it makes a PLAMLIB
11862 ## CC just makes a GrossModule.
11863 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11864 reload_cmds='$CC -r -o $output$reload_objs'
11865 hardcode_direct=no
11867 motorola)
11868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11871 esac
11872 runpath_var='LD_RUN_PATH'
11873 hardcode_shlibpath_var=no
11876 sysv4.3*)
11877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11878 hardcode_shlibpath_var=no
11879 export_dynamic_flag_spec='-Bexport'
11882 sysv4*MP*)
11883 if test -d /usr/nec; then
11884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11885 hardcode_shlibpath_var=no
11886 runpath_var=LD_RUN_PATH
11887 hardcode_runpath_var=yes
11888 ld_shlibs=yes
11892 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11893 no_undefined_flag='${wl}-z,text'
11894 archive_cmds_need_lc=no
11895 hardcode_shlibpath_var=no
11896 runpath_var='LD_RUN_PATH'
11898 if test "$GCC" = yes; then
11899 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 else
11902 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907 sysv5* | sco3.2v5* | sco5v6*)
11908 # Note: We can NOT use -z defs as we might desire, because we do not
11909 # link with -lc, and that would cause any symbols used from libc to
11910 # always be unresolved, which means just about no library would
11911 # ever link correctly. If we're not using GNU ld we use -z text
11912 # though, which does catch some bad symbols but isn't as heavy-handed
11913 # as -z defs.
11914 no_undefined_flag='${wl}-z,text'
11915 allow_undefined_flag='${wl}-z,nodefs'
11916 archive_cmds_need_lc=no
11917 hardcode_shlibpath_var=no
11918 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11919 hardcode_libdir_separator=':'
11920 link_all_deplibs=yes
11921 export_dynamic_flag_spec='${wl}-Bexport'
11922 runpath_var='LD_RUN_PATH'
11924 if test "$GCC" = yes; then
11925 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 else
11928 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11933 uts4*)
11934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935 hardcode_libdir_flag_spec='-L$libdir'
11936 hardcode_shlibpath_var=no
11940 ld_shlibs=no
11942 esac
11945 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11946 echo "${ECHO_T}$ld_shlibs" >&6; }
11947 test "$ld_shlibs" = no && can_build_shared=no
11950 # Do we need to explicitly link libc?
11952 case "x$archive_cmds_need_lc" in
11953 x|xyes)
11954 # Assume -lc should be added
11955 archive_cmds_need_lc=yes
11957 if test "$enable_shared" = yes && test "$GCC" = yes; then
11958 case $archive_cmds in
11959 *'~'*)
11960 # FIXME: we may have to deal with multi-command sequences.
11962 '$CC '*)
11963 # Test whether the compiler implicitly links with -lc since on some
11964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11965 # to ld, don't add -lc before -lgcc.
11966 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11968 $rm conftest*
11969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11972 (eval $ac_compile) 2>&5
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } 2>conftest.err; then
11976 soname=conftest
11977 lib=conftest
11978 libobjs=conftest.$ac_objext
11979 deplibs=
11980 wl=$lt_prog_compiler_wl
11981 pic_flag=$lt_prog_compiler_pic
11982 compiler_flags=-v
11983 linker_flags=-v
11984 verstring=
11985 output_objdir=.
11986 libname=conftest
11987 lt_save_allow_undefined_flag=$allow_undefined_flag
11988 allow_undefined_flag=
11989 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11990 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }
11994 then
11995 archive_cmds_need_lc=no
11996 else
11997 archive_cmds_need_lc=yes
11999 allow_undefined_flag=$lt_save_allow_undefined_flag
12000 else
12001 cat conftest.err 1>&5
12003 $rm conftest*
12004 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12005 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
12007 esac
12010 esac
12012 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12014 library_names_spec=
12015 libname_spec='lib$name'
12016 soname_spec=
12017 shrext_cmds=".so"
12018 postinstall_cmds=
12019 postuninstall_cmds=
12020 finish_cmds=
12021 finish_eval=
12022 shlibpath_var=
12023 shlibpath_overrides_runpath=unknown
12024 version_type=none
12025 dynamic_linker="$host_os ld.so"
12026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12028 if test "$GCC" = yes; then
12029 case $host_os in
12030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12031 *) lt_awk_arg="/^libraries:/" ;;
12032 esac
12033 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12034 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
12035 # if the path contains ";" then we assume it to be the separator
12036 # otherwise default to the standard path separator (i.e. ":") - it is
12037 # assumed that no part of a normal pathname contains ";" but that should
12038 # okay in the real world where ";" in dirpaths is itself problematic.
12039 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12040 else
12041 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12043 # Ok, now we have the path, separated by spaces, we can step through it
12044 # and add multilib dir if necessary.
12045 lt_tmp_lt_search_path_spec=
12046 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12047 for lt_sys_path in $lt_search_path_spec; do
12048 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12049 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12050 else
12051 test -d "$lt_sys_path" && \
12052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12054 done
12055 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
12056 BEGIN {RS=" "; FS="/|\n";} {
12057 lt_foo="";
12058 lt_count=0;
12059 for (lt_i = NF; lt_i > 0; lt_i--) {
12060 if ($lt_i != "" && $lt_i != ".") {
12061 if ($lt_i == "..") {
12062 lt_count++;
12063 } else {
12064 if (lt_count == 0) {
12065 lt_foo="/" $lt_i lt_foo;
12066 } else {
12067 lt_count--;
12072 if (lt_foo != "") { lt_freq[lt_foo]++; }
12073 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12075 sys_lib_search_path_spec=`echo $lt_search_path_spec`
12076 else
12077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12079 need_lib_prefix=unknown
12080 hardcode_into_libs=no
12082 # when you set need_version to no, make sure it does not cause -set_version
12083 # flags to be left without arguments
12084 need_version=unknown
12086 case $host_os in
12087 aix3*)
12088 version_type=linux
12089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12090 shlibpath_var=LIBPATH
12092 # AIX 3 has no versioning support, so we append a major version to the name.
12093 soname_spec='${libname}${release}${shared_ext}$major'
12096 aix[4-9]*)
12097 version_type=linux
12098 need_lib_prefix=no
12099 need_version=no
12100 hardcode_into_libs=yes
12101 if test "$host_cpu" = ia64; then
12102 # AIX 5 supports IA64
12103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12104 shlibpath_var=LD_LIBRARY_PATH
12105 else
12106 # With GCC up to 2.95.x, collect2 would create an import file
12107 # for dependence libraries. The import file would start with
12108 # the line `#! .'. This would cause the generated library to
12109 # depend on `.', always an invalid library. This was fixed in
12110 # development snapshots of GCC prior to 3.0.
12111 case $host_os in
12112 aix4 | aix4.[01] | aix4.[01].*)
12113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12114 echo ' yes '
12115 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12117 else
12118 can_build_shared=no
12121 esac
12122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12123 # soname into executable. Probably we can add versioning support to
12124 # collect2, so additional links can be useful in future.
12125 if test "$aix_use_runtimelinking" = yes; then
12126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12127 # instead of lib<name>.a to let people know that these are not
12128 # typical AIX shared libraries.
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130 else
12131 # We preserve .a as extension for shared libraries through AIX4.2
12132 # and later when we are not doing run time linking.
12133 library_names_spec='${libname}${release}.a $libname.a'
12134 soname_spec='${libname}${release}${shared_ext}$major'
12136 shlibpath_var=LIBPATH
12140 amigaos*)
12141 library_names_spec='$libname.ixlibrary $libname.a'
12142 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12146 beos*)
12147 library_names_spec='${libname}${shared_ext}'
12148 dynamic_linker="$host_os ld.so"
12149 shlibpath_var=LIBRARY_PATH
12152 bsdi[45]*)
12153 version_type=linux
12154 need_version=no
12155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156 soname_spec='${libname}${release}${shared_ext}$major'
12157 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12160 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12161 # the default ld.so.conf also contains /usr/contrib/lib and
12162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12163 # libtool to hard-code these into programs
12166 cygwin* | mingw* | pw32*)
12167 version_type=windows
12168 shrext_cmds=".dll"
12169 need_version=no
12170 need_lib_prefix=no
12172 case $GCC,$host_os in
12173 yes,cygwin* | yes,mingw* | yes,pw32*)
12174 library_names_spec='$libname.dll.a'
12175 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12176 postinstall_cmds='base_file=`basename \${file}`~
12177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12178 dldir=$destdir/`dirname \$dlpath`~
12179 test -d \$dldir || mkdir -p \$dldir~
12180 $install_prog $dir/$dlname \$dldir/$dlname~
12181 chmod a+x \$dldir/$dlname'
12182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12183 dlpath=$dir/\$dldll~
12184 $rm \$dlpath'
12185 shlibpath_overrides_runpath=yes
12187 case $host_os in
12188 cygwin*)
12189 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12191 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12193 mingw*)
12194 # MinGW DLLs use traditional 'lib' prefix
12195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12197 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12198 # It is most probably a Windows format PATH printed by
12199 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12200 # path with ; separators, and with drive letters. We can handle the
12201 # drive letters (cygwin fileutils understands them), so leave them,
12202 # especially as we might pass files found there to a mingw objdump,
12203 # which wouldn't understand a cygwinified path. Ahh.
12204 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12205 else
12206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12209 pw32*)
12210 # pw32 DLLs use 'pw' prefix rather than 'lib'
12211 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12213 esac
12217 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12219 esac
12220 dynamic_linker='Win32 ld.exe'
12221 # FIXME: first we should search . and the directory the executable is in
12222 shlibpath_var=PATH
12225 darwin* | rhapsody*)
12226 dynamic_linker="$host_os dyld"
12227 version_type=darwin
12228 need_lib_prefix=no
12229 need_version=no
12230 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12231 soname_spec='${libname}${release}${major}$shared_ext'
12232 shlibpath_overrides_runpath=yes
12233 shlibpath_var=DYLD_LIBRARY_PATH
12234 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12236 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12237 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12240 dgux*)
12241 version_type=linux
12242 need_lib_prefix=no
12243 need_version=no
12244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12245 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LD_LIBRARY_PATH
12249 freebsd1*)
12250 dynamic_linker=no
12253 freebsd* | dragonfly*)
12254 # DragonFly does not have aout. When/if they implement a new
12255 # versioning mechanism, adjust this.
12256 if test -x /usr/bin/objformat; then
12257 objformat=`/usr/bin/objformat`
12258 else
12259 case $host_os in
12260 freebsd[123]*) objformat=aout ;;
12261 *) objformat=elf ;;
12262 esac
12264 version_type=freebsd-$objformat
12265 case $version_type in
12266 freebsd-elf*)
12267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12268 need_version=no
12269 need_lib_prefix=no
12271 freebsd-*)
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12273 need_version=yes
12275 esac
12276 shlibpath_var=LD_LIBRARY_PATH
12277 case $host_os in
12278 freebsd2*)
12279 shlibpath_overrides_runpath=yes
12281 freebsd3.[01]* | freebsdelf3.[01]*)
12282 shlibpath_overrides_runpath=yes
12283 hardcode_into_libs=yes
12285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12287 shlibpath_overrides_runpath=no
12288 hardcode_into_libs=yes
12290 *) # from 4.6 on, and DragonFly
12291 shlibpath_overrides_runpath=yes
12292 hardcode_into_libs=yes
12294 esac
12297 gnu*)
12298 version_type=linux
12299 need_lib_prefix=no
12300 need_version=no
12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12302 soname_spec='${libname}${release}${shared_ext}$major'
12303 shlibpath_var=LD_LIBRARY_PATH
12304 hardcode_into_libs=yes
12307 hpux9* | hpux10* | hpux11*)
12308 # Give a soname corresponding to the major version so that dld.sl refuses to
12309 # link against other versions.
12310 version_type=sunos
12311 need_lib_prefix=no
12312 need_version=no
12313 case $host_cpu in
12314 ia64*)
12315 shrext_cmds='.so'
12316 hardcode_into_libs=yes
12317 dynamic_linker="$host_os dld.so"
12318 shlibpath_var=LD_LIBRARY_PATH
12319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12321 soname_spec='${libname}${release}${shared_ext}$major'
12322 if test "X$HPUX_IA64_MODE" = X32; then
12323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12324 else
12325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12329 hppa*64*)
12330 shrext_cmds='.sl'
12331 hardcode_into_libs=yes
12332 dynamic_linker="$host_os dld.sl"
12333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336 soname_spec='${libname}${release}${shared_ext}$major'
12337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12341 shrext_cmds='.sl'
12342 dynamic_linker="$host_os dld.sl"
12343 shlibpath_var=SHLIB_PATH
12344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12346 soname_spec='${libname}${release}${shared_ext}$major'
12348 esac
12349 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12350 postinstall_cmds='chmod 555 $lib'
12353 interix[3-9]*)
12354 version_type=linux
12355 need_lib_prefix=no
12356 need_version=no
12357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12358 soname_spec='${libname}${release}${shared_ext}$major'
12359 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=no
12362 hardcode_into_libs=yes
12365 irix5* | irix6* | nonstopux*)
12366 case $host_os in
12367 nonstopux*) version_type=nonstopux ;;
12369 if test "$lt_cv_prog_gnu_ld" = yes; then
12370 version_type=linux
12371 else
12372 version_type=irix
12373 fi ;;
12374 esac
12375 need_lib_prefix=no
12376 need_version=no
12377 soname_spec='${libname}${release}${shared_ext}$major'
12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12379 case $host_os in
12380 irix5* | nonstopux*)
12381 libsuff= shlibsuff=
12384 case $LD in # libtool.m4 will add one of these switches to LD
12385 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12386 libsuff= shlibsuff= libmagic=32-bit;;
12387 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12388 libsuff=32 shlibsuff=N32 libmagic=N32;;
12389 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12390 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12391 *) libsuff= shlibsuff= libmagic=never-match;;
12392 esac
12394 esac
12395 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12396 shlibpath_overrides_runpath=no
12397 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12398 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12399 hardcode_into_libs=yes
12402 # No shared lib support for Linux oldld, aout, or coff.
12403 linux*oldld* | linux*aout* | linux*coff*)
12404 dynamic_linker=no
12407 # This must be Linux ELF.
12408 linux* | k*bsd*-gnu)
12409 version_type=linux
12410 need_lib_prefix=no
12411 need_version=no
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=no
12417 # This implies no fast_install, which is unacceptable.
12418 # Some rework will be needed to allow for fast_install
12419 # before this can be enabled.
12420 hardcode_into_libs=yes
12422 # Append ld.so.conf contents to the search path
12423 if test -f /etc/ld.so.conf; then
12424 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;/^$/d' | tr '\n' ' '`
12425 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12428 # We used to test for /lib/ld.so.1 and disable shared libraries on
12429 # powerpc, because MkLinux only supported shared libraries with the
12430 # GNU dynamic linker. Since this was broken with cross compilers,
12431 # most powerpc-linux boxes support dynamic linking these days and
12432 # people can always --disable-shared, the test was removed, and we
12433 # assume the GNU/Linux dynamic linker is in use.
12434 dynamic_linker='GNU/Linux ld.so'
12437 netbsdelf*-gnu)
12438 version_type=linux
12439 need_lib_prefix=no
12440 need_version=no
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 shlibpath_overrides_runpath=no
12445 hardcode_into_libs=yes
12446 dynamic_linker='NetBSD ld.elf_so'
12449 netbsd*)
12450 version_type=sunos
12451 need_lib_prefix=no
12452 need_version=no
12453 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12456 dynamic_linker='NetBSD (a.out) ld.so'
12457 else
12458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12459 soname_spec='${libname}${release}${shared_ext}$major'
12460 dynamic_linker='NetBSD ld.elf_so'
12462 shlibpath_var=LD_LIBRARY_PATH
12463 shlibpath_overrides_runpath=yes
12464 hardcode_into_libs=yes
12467 newsos6)
12468 version_type=linux
12469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath=yes
12474 nto-qnx*)
12475 version_type=linux
12476 need_lib_prefix=no
12477 need_version=no
12478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12479 soname_spec='${libname}${release}${shared_ext}$major'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=yes
12484 openbsd*)
12485 version_type=sunos
12486 sys_lib_dlsearch_path_spec="/usr/lib"
12487 need_lib_prefix=no
12488 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12489 case $host_os in
12490 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12491 *) need_version=no ;;
12492 esac
12493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12497 case $host_os in
12498 openbsd2.[89] | openbsd2.[89].*)
12499 shlibpath_overrides_runpath=no
12502 shlibpath_overrides_runpath=yes
12504 esac
12505 else
12506 shlibpath_overrides_runpath=yes
12510 os2*)
12511 libname_spec='$name'
12512 shrext_cmds=".dll"
12513 need_lib_prefix=no
12514 library_names_spec='$libname${shared_ext} $libname.a'
12515 dynamic_linker='OS/2 ld.exe'
12516 shlibpath_var=LIBPATH
12519 osf3* | osf4* | osf5*)
12520 version_type=osf
12521 need_lib_prefix=no
12522 need_version=no
12523 soname_spec='${libname}${release}${shared_ext}$major'
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12530 rdos*)
12531 dynamic_linker=no
12534 solaris*)
12535 version_type=linux
12536 need_lib_prefix=no
12537 need_version=no
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 soname_spec='${libname}${release}${shared_ext}$major'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath=yes
12542 hardcode_into_libs=yes
12543 # ldd complains unless libraries are executable
12544 postinstall_cmds='chmod +x $lib'
12547 sunos4*)
12548 version_type=sunos
12549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12551 shlibpath_var=LD_LIBRARY_PATH
12552 shlibpath_overrides_runpath=yes
12553 if test "$with_gnu_ld" = yes; then
12554 need_lib_prefix=no
12556 need_version=yes
12559 sysv4 | sysv4.3*)
12560 version_type=linux
12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 case $host_vendor in
12565 sni)
12566 shlibpath_overrides_runpath=no
12567 need_lib_prefix=no
12568 export_dynamic_flag_spec='${wl}-Blargedynsym'
12569 runpath_var=LD_RUN_PATH
12571 siemens)
12572 need_lib_prefix=no
12574 motorola)
12575 need_lib_prefix=no
12576 need_version=no
12577 shlibpath_overrides_runpath=no
12578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12580 esac
12583 sysv4*MP*)
12584 if test -d /usr/nec ;then
12585 version_type=linux
12586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12587 soname_spec='$libname${shared_ext}.$major'
12588 shlibpath_var=LD_LIBRARY_PATH
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 version_type=freebsd-elf
12594 need_lib_prefix=no
12595 need_version=no
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12597 soname_spec='${libname}${release}${shared_ext}$major'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 hardcode_into_libs=yes
12600 if test "$with_gnu_ld" = yes; then
12601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12602 shlibpath_overrides_runpath=no
12603 else
12604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12605 shlibpath_overrides_runpath=yes
12606 case $host_os in
12607 sco3.2v5*)
12608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12610 esac
12612 sys_lib_dlsearch_path_spec='/usr/lib'
12615 uts4*)
12616 version_type=linux
12617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 soname_spec='${libname}${release}${shared_ext}$major'
12619 shlibpath_var=LD_LIBRARY_PATH
12623 dynamic_linker=no
12625 esac
12626 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12627 echo "${ECHO_T}$dynamic_linker" >&6; }
12628 test "$dynamic_linker" = no && can_build_shared=no
12630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12636 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12637 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12643 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12646 if test "$GCC" = yes; then
12647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12652 hardcode_action=
12653 if test -n "$hardcode_libdir_flag_spec" || \
12654 test -n "$runpath_var" || \
12655 test "X$hardcode_automatic" = "Xyes" ; then
12657 # We can hardcode non-existant directories.
12658 if test "$hardcode_direct" != no &&
12659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12660 # have to relink, otherwise we might link with an installed library
12661 # when we should be linking with a yet-to-be-installed one
12662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12663 test "$hardcode_minus_L" != no; then
12664 # Linking always hardcodes the temporary library directory.
12665 hardcode_action=relink
12666 else
12667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12668 hardcode_action=immediate
12670 else
12671 # We cannot hardcode anything, or else we can only hardcode existing
12672 # directories.
12673 hardcode_action=unsupported
12675 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12676 echo "${ECHO_T}$hardcode_action" >&6; }
12678 if test "$hardcode_action" = relink; then
12679 # Fast installation is not supported
12680 enable_fast_install=no
12681 elif test "$shlibpath_overrides_runpath" = yes ||
12682 test "$enable_shared" = no; then
12683 # Fast installation is not necessary
12684 enable_fast_install=needless
12687 striplib=
12688 old_striplib=
12689 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12690 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12691 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12692 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12693 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12694 { echo "$as_me:$LINENO: result: yes" >&5
12695 echo "${ECHO_T}yes" >&6; }
12696 else
12697 # FIXME - insert some real tests, host_os isn't really good enough
12698 case $host_os in
12699 darwin*)
12700 if test -n "$STRIP" ; then
12701 striplib="$STRIP -x"
12702 old_striplib="$STRIP -S"
12703 { echo "$as_me:$LINENO: result: yes" >&5
12704 echo "${ECHO_T}yes" >&6; }
12705 else
12706 { echo "$as_me:$LINENO: result: no" >&5
12707 echo "${ECHO_T}no" >&6; }
12711 { echo "$as_me:$LINENO: result: no" >&5
12712 echo "${ECHO_T}no" >&6; }
12714 esac
12717 if test "x$enable_dlopen" != xyes; then
12718 enable_dlopen=unknown
12719 enable_dlopen_self=unknown
12720 enable_dlopen_self_static=unknown
12721 else
12722 lt_cv_dlopen=no
12723 lt_cv_dlopen_libs=
12725 case $host_os in
12726 beos*)
12727 lt_cv_dlopen="load_add_on"
12728 lt_cv_dlopen_libs=
12729 lt_cv_dlopen_self=yes
12732 mingw* | pw32*)
12733 lt_cv_dlopen="LoadLibrary"
12734 lt_cv_dlopen_libs=
12737 cygwin*)
12738 lt_cv_dlopen="dlopen"
12739 lt_cv_dlopen_libs=
12742 darwin*)
12743 # if libdl is installed we need to link against it
12744 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749 ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-ldl $LIBS"
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h. */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12758 /* Override any GCC internal prototype to avoid an error.
12759 Use char because int might match the return type of a GCC
12760 builtin and then its argument prototype would still apply. */
12761 #ifdef __cplusplus
12762 extern "C"
12763 #endif
12764 char dlopen ();
12766 main ()
12768 return dlopen ();
12770 return 0;
12772 _ACEOF
12773 rm -f conftest.$ac_objext conftest$ac_exeext
12774 if { (ac_try="$ac_link"
12775 case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778 esac
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_link") 2>conftest.er1
12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest$ac_exeext &&
12790 $as_test_x conftest$ac_exeext; then
12791 ac_cv_lib_dl_dlopen=yes
12792 else
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_cv_lib_dl_dlopen=no
12799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12800 conftest$ac_exeext conftest.$ac_ext
12801 LIBS=$ac_check_lib_save_LIBS
12803 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12804 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12805 if test $ac_cv_lib_dl_dlopen = yes; then
12806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12807 else
12809 lt_cv_dlopen="dyld"
12810 lt_cv_dlopen_libs=
12811 lt_cv_dlopen_self=yes
12818 { echo "$as_me:$LINENO: checking for shl_load" >&5
12819 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12820 if test "${ac_cv_func_shl_load+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823 cat >conftest.$ac_ext <<_ACEOF
12824 /* confdefs.h. */
12825 _ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12831 #define shl_load innocuous_shl_load
12833 /* System header to define __stub macros and hopefully few prototypes,
12834 which can conflict with char shl_load (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12838 #ifdef __STDC__
12839 # include <limits.h>
12840 #else
12841 # include <assert.h>
12842 #endif
12844 #undef shl_load
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char shl_load ();
12853 /* The GNU C library defines this for functions which it implements
12854 to always fail with ENOSYS. Some functions are actually named
12855 something starting with __ and the normal name is an alias. */
12856 #if defined __stub_shl_load || defined __stub___shl_load
12857 choke me
12858 #endif
12861 main ()
12863 return shl_load ();
12865 return 0;
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12875 (eval "$ac_link") 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && {
12882 test -z "$ac_c_werror_flag" ||
12883 test ! -s conftest.err
12884 } && test -s conftest$ac_exeext &&
12885 $as_test_x conftest$ac_exeext; then
12886 ac_cv_func_shl_load=yes
12887 else
12888 echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12891 ac_cv_func_shl_load=no
12894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12895 conftest$ac_exeext conftest.$ac_ext
12897 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12898 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12899 if test $ac_cv_func_shl_load = yes; then
12900 lt_cv_dlopen="shl_load"
12901 else
12902 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12903 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 else
12907 ac_check_lib_save_LIBS=$LIBS
12908 LIBS="-ldld $LIBS"
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char shl_load ();
12924 main ()
12926 return shl_load ();
12928 return 0;
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (ac_try="$ac_link"
12933 case "(($ac_try" in
12934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12935 *) ac_try_echo=$ac_try;;
12936 esac
12937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12938 (eval "$ac_link") 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } && {
12945 test -z "$ac_c_werror_flag" ||
12946 test ! -s conftest.err
12947 } && test -s conftest$ac_exeext &&
12948 $as_test_x conftest$ac_exeext; then
12949 ac_cv_lib_dld_shl_load=yes
12950 else
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.$ac_ext >&5
12954 ac_cv_lib_dld_shl_load=no
12957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12961 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12963 if test $ac_cv_lib_dld_shl_load = yes; then
12964 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12965 else
12966 { echo "$as_me:$LINENO: checking for dlopen" >&5
12967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12968 if test "${ac_cv_func_dlopen+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971 cat >conftest.$ac_ext <<_ACEOF
12972 /* confdefs.h. */
12973 _ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12979 #define dlopen innocuous_dlopen
12981 /* System header to define __stub macros and hopefully few prototypes,
12982 which can conflict with char dlopen (); below.
12983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12984 <limits.h> exists even on freestanding compilers. */
12986 #ifdef __STDC__
12987 # include <limits.h>
12988 #else
12989 # include <assert.h>
12990 #endif
12992 #undef dlopen
12994 /* Override any GCC internal prototype to avoid an error.
12995 Use char because int might match the return type of a GCC
12996 builtin and then its argument prototype would still apply. */
12997 #ifdef __cplusplus
12998 extern "C"
12999 #endif
13000 char dlopen ();
13001 /* The GNU C library defines this for functions which it implements
13002 to always fail with ENOSYS. Some functions are actually named
13003 something starting with __ and the normal name is an alias. */
13004 #if defined __stub_dlopen || defined __stub___dlopen
13005 choke me
13006 #endif
13009 main ()
13011 return dlopen ();
13013 return 0;
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest$ac_exeext &&
13033 $as_test_x conftest$ac_exeext; then
13034 ac_cv_func_dlopen=yes
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 ac_cv_func_dlopen=no
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13045 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13046 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13047 if test $ac_cv_func_dlopen = yes; then
13048 lt_cv_dlopen="dlopen"
13049 else
13050 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13051 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13052 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055 ac_check_lib_save_LIBS=$LIBS
13056 LIBS="-ldl $LIBS"
13057 cat >conftest.$ac_ext <<_ACEOF
13058 /* confdefs.h. */
13059 _ACEOF
13060 cat confdefs.h >>conftest.$ac_ext
13061 cat >>conftest.$ac_ext <<_ACEOF
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13067 #ifdef __cplusplus
13068 extern "C"
13069 #endif
13070 char dlopen ();
13072 main ()
13074 return dlopen ();
13076 return 0;
13078 _ACEOF
13079 rm -f conftest.$ac_objext conftest$ac_exeext
13080 if { (ac_try="$ac_link"
13081 case "(($ac_try" in
13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083 *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086 (eval "$ac_link") 2>conftest.er1
13087 ac_status=$?
13088 grep -v '^ *+' conftest.er1 >conftest.err
13089 rm -f conftest.er1
13090 cat conftest.err >&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && {
13093 test -z "$ac_c_werror_flag" ||
13094 test ! -s conftest.err
13095 } && test -s conftest$ac_exeext &&
13096 $as_test_x conftest$ac_exeext; then
13097 ac_cv_lib_dl_dlopen=yes
13098 else
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 ac_cv_lib_dl_dlopen=no
13105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13111 if test $ac_cv_lib_dl_dlopen = yes; then
13112 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13113 else
13114 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13115 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13116 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lsvld $LIBS"
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13128 /* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131 #ifdef __cplusplus
13132 extern "C"
13133 #endif
13134 char dlopen ();
13136 main ()
13138 return dlopen ();
13140 return 0;
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (ac_try="$ac_link"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148 esac
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_link") 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest$ac_exeext &&
13160 $as_test_x conftest$ac_exeext; then
13161 ac_cv_lib_svld_dlopen=yes
13162 else
13163 echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_cv_lib_svld_dlopen=no
13169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13170 conftest$ac_exeext conftest.$ac_ext
13171 LIBS=$ac_check_lib_save_LIBS
13173 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13174 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13175 if test $ac_cv_lib_svld_dlopen = yes; then
13176 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13177 else
13178 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13179 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13180 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183 ac_check_lib_save_LIBS=$LIBS
13184 LIBS="-ldld $LIBS"
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char dld_link ();
13200 main ()
13202 return dld_link ();
13204 return 0;
13206 _ACEOF
13207 rm -f conftest.$ac_objext conftest$ac_exeext
13208 if { (ac_try="$ac_link"
13209 case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_link") 2>conftest.er1
13215 ac_status=$?
13216 grep -v '^ *+' conftest.er1 >conftest.err
13217 rm -f conftest.er1
13218 cat conftest.err >&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); } && {
13221 test -z "$ac_c_werror_flag" ||
13222 test ! -s conftest.err
13223 } && test -s conftest$ac_exeext &&
13224 $as_test_x conftest$ac_exeext; then
13225 ac_cv_lib_dld_dld_link=yes
13226 else
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_cv_lib_dld_dld_link=no
13233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13234 conftest$ac_exeext conftest.$ac_ext
13235 LIBS=$ac_check_lib_save_LIBS
13237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13238 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13239 if test $ac_cv_lib_dld_dld_link = yes; then
13240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13259 esac
13261 if test "x$lt_cv_dlopen" != xno; then
13262 enable_dlopen=yes
13263 else
13264 enable_dlopen=no
13267 case $lt_cv_dlopen in
13268 dlopen)
13269 save_CPPFLAGS="$CPPFLAGS"
13270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13272 save_LDFLAGS="$LDFLAGS"
13273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13275 save_LIBS="$LIBS"
13276 LIBS="$lt_cv_dlopen_libs $LIBS"
13278 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13279 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13280 if test "${lt_cv_dlopen_self+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283 if test "$cross_compiling" = yes; then :
13284 lt_cv_dlopen_self=cross
13285 else
13286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13287 lt_status=$lt_dlunknown
13288 cat > conftest.$ac_ext <<EOF
13289 #line 13289 "configure"
13290 #include "confdefs.h"
13292 #if HAVE_DLFCN_H
13293 #include <dlfcn.h>
13294 #endif
13296 #include <stdio.h>
13298 #ifdef RTLD_GLOBAL
13299 # define LT_DLGLOBAL RTLD_GLOBAL
13300 #else
13301 # ifdef DL_GLOBAL
13302 # define LT_DLGLOBAL DL_GLOBAL
13303 # else
13304 # define LT_DLGLOBAL 0
13305 # endif
13306 #endif
13308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13309 find out it does not work in some platform. */
13310 #ifndef LT_DLLAZY_OR_NOW
13311 # ifdef RTLD_LAZY
13312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13313 # else
13314 # ifdef DL_LAZY
13315 # define LT_DLLAZY_OR_NOW DL_LAZY
13316 # else
13317 # ifdef RTLD_NOW
13318 # define LT_DLLAZY_OR_NOW RTLD_NOW
13319 # else
13320 # ifdef DL_NOW
13321 # define LT_DLLAZY_OR_NOW DL_NOW
13322 # else
13323 # define LT_DLLAZY_OR_NOW 0
13324 # endif
13325 # endif
13326 # endif
13327 # endif
13328 #endif
13330 #ifdef __cplusplus
13331 extern "C" void exit (int);
13332 #endif
13334 void fnord() { int i=42;}
13335 int main ()
13337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13338 int status = $lt_dlunknown;
13340 if (self)
13342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13344 /* dlclose (self); */
13346 else
13347 puts (dlerror ());
13349 exit (status);
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>&5
13354 ac_status=$?
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13357 (./conftest; exit; ) >&5 2>/dev/null
13358 lt_status=$?
13359 case x$lt_status in
13360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13363 esac
13364 else :
13365 # compilation failed
13366 lt_cv_dlopen_self=no
13369 rm -fr conftest*
13373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13374 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13376 if test "x$lt_cv_dlopen_self" = xyes; then
13377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13378 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13379 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13380 if test "${lt_cv_dlopen_self_static+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 if test "$cross_compiling" = yes; then :
13384 lt_cv_dlopen_self_static=cross
13385 else
13386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13387 lt_status=$lt_dlunknown
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13389 "configure"
13390 #include "confdefs.h"
13392 #if HAVE_DLFCN_H
13393 #include <dlfcn.h>
13394 #endif
13396 #include <stdio.h>
13398 #ifdef RTLD_GLOBAL
13399 # define LT_DLGLOBAL RTLD_GLOBAL
13400 #else
13401 # ifdef DL_GLOBAL
13402 # define LT_DLGLOBAL DL_GLOBAL
13403 # else
13404 # define LT_DLGLOBAL 0
13405 # endif
13406 #endif
13408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13409 find out it does not work in some platform. */
13410 #ifndef LT_DLLAZY_OR_NOW
13411 # ifdef RTLD_LAZY
13412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13413 # else
13414 # ifdef DL_LAZY
13415 # define LT_DLLAZY_OR_NOW DL_LAZY
13416 # else
13417 # ifdef RTLD_NOW
13418 # define LT_DLLAZY_OR_NOW RTLD_NOW
13419 # else
13420 # ifdef DL_NOW
13421 # define LT_DLLAZY_OR_NOW DL_NOW
13422 # else
13423 # define LT_DLLAZY_OR_NOW 0
13424 # endif
13425 # endif
13426 # endif
13427 # endif
13428 #endif
13430 #ifdef __cplusplus
13431 extern "C" void exit (int);
13432 #endif
13434 void fnord() { int i=42;}
13435 int main ()
13437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13438 int status = $lt_dlunknown;
13440 if (self)
13442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13443 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13444 /* dlclose (self); */
13446 else
13447 puts (dlerror ());
13449 exit (status);
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453 (eval $ac_link) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13457 (./conftest; exit; ) >&5 2>/dev/null
13458 lt_status=$?
13459 case x$lt_status in
13460 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13461 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13462 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13463 esac
13464 else :
13465 # compilation failed
13466 lt_cv_dlopen_self_static=no
13469 rm -fr conftest*
13473 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13474 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13477 CPPFLAGS="$save_CPPFLAGS"
13478 LDFLAGS="$save_LDFLAGS"
13479 LIBS="$save_LIBS"
13481 esac
13483 case $lt_cv_dlopen_self in
13484 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13485 *) enable_dlopen_self=unknown ;;
13486 esac
13488 case $lt_cv_dlopen_self_static in
13489 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13490 *) enable_dlopen_self_static=unknown ;;
13491 esac
13495 # Report which library types will actually be built
13496 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13497 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13498 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13499 echo "${ECHO_T}$can_build_shared" >&6; }
13501 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13502 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13503 test "$can_build_shared" = "no" && enable_shared=no
13505 # On AIX, shared libraries and static libraries use the same namespace, and
13506 # are all built from PIC.
13507 case $host_os in
13508 aix3*)
13509 test "$enable_shared" = yes && enable_static=no
13510 if test -n "$RANLIB"; then
13511 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13512 postinstall_cmds='$RANLIB $lib'
13516 aix[4-9]*)
13517 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13518 test "$enable_shared" = yes && enable_static=no
13521 esac
13522 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13523 echo "${ECHO_T}$enable_shared" >&6; }
13525 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13526 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13527 # Make sure either enable_shared or enable_static is yes.
13528 test "$enable_shared" = yes || enable_static=yes
13529 { echo "$as_me:$LINENO: result: $enable_static" >&5
13530 echo "${ECHO_T}$enable_static" >&6; }
13532 # The else clause should only fire when bootstrapping the
13533 # libtool distribution, otherwise you forgot to ship ltmain.sh
13534 # with your package, and you will get complaints that there are
13535 # no rules to generate ltmain.sh.
13536 if test -f "$ltmain"; then
13537 # See if we are running on zsh, and set the options which allow our commands through
13538 # without removal of \ escapes.
13539 if test -n "${ZSH_VERSION+set}" ; then
13540 setopt NO_GLOB_SUBST
13542 # Now quote all the things that may contain metacharacters while being
13543 # careful not to overquote the AC_SUBSTed values. We take copies of the
13544 # variables and quote the copies for generation of the libtool script.
13545 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13546 SED SHELL STRIP \
13547 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13548 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13549 deplibs_check_method reload_flag reload_cmds need_locks \
13550 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13551 lt_cv_sys_global_symbol_to_c_name_address \
13552 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13553 old_postinstall_cmds old_postuninstall_cmds \
13554 compiler \
13555 CC \
13556 LD \
13557 lt_prog_compiler_wl \
13558 lt_prog_compiler_pic \
13559 lt_prog_compiler_static \
13560 lt_prog_compiler_no_builtin_flag \
13561 export_dynamic_flag_spec \
13562 thread_safe_flag_spec \
13563 whole_archive_flag_spec \
13564 enable_shared_with_static_runtimes \
13565 old_archive_cmds \
13566 old_archive_from_new_cmds \
13567 predep_objects \
13568 postdep_objects \
13569 predeps \
13570 postdeps \
13571 compiler_lib_search_path \
13572 compiler_lib_search_dirs \
13573 archive_cmds \
13574 archive_expsym_cmds \
13575 postinstall_cmds \
13576 postuninstall_cmds \
13577 old_archive_from_expsyms_cmds \
13578 allow_undefined_flag \
13579 no_undefined_flag \
13580 export_symbols_cmds \
13581 hardcode_libdir_flag_spec \
13582 hardcode_libdir_flag_spec_ld \
13583 hardcode_libdir_separator \
13584 hardcode_automatic \
13585 module_cmds \
13586 module_expsym_cmds \
13587 lt_cv_prog_compiler_c_o \
13588 fix_srcfile_path \
13589 exclude_expsyms \
13590 include_expsyms; do
13592 case $var in
13593 old_archive_cmds | \
13594 old_archive_from_new_cmds | \
13595 archive_cmds | \
13596 archive_expsym_cmds | \
13597 module_cmds | \
13598 module_expsym_cmds | \
13599 old_archive_from_expsyms_cmds | \
13600 export_symbols_cmds | \
13601 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13602 postinstall_cmds | postuninstall_cmds | \
13603 old_postinstall_cmds | old_postuninstall_cmds | \
13604 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13605 # Double-quote double-evaled strings.
13606 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13609 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13611 esac
13612 done
13614 case $lt_echo in
13615 *'\$0 --fallback-echo"')
13616 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13618 esac
13620 cfgfile="${ofile}T"
13621 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13622 $rm -f "$cfgfile"
13623 { echo "$as_me:$LINENO: creating $ofile" >&5
13624 echo "$as_me: creating $ofile" >&6;}
13626 cat <<__EOF__ >> "$cfgfile"
13627 #! $SHELL
13629 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13630 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13631 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13633 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13634 # Free Software Foundation, Inc.
13636 # This file is part of GNU Libtool:
13637 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13639 # This program is free software; you can redistribute it and/or modify
13640 # it under the terms of the GNU General Public License as published by
13641 # the Free Software Foundation; either version 2 of the License, or
13642 # (at your option) any later version.
13644 # This program is distributed in the hope that it will be useful, but
13645 # WITHOUT ANY WARRANTY; without even the implied warranty of
13646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13647 # General Public License for more details.
13649 # You should have received a copy of the GNU General Public License
13650 # along with this program; if not, write to the Free Software
13651 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13653 # As a special exception to the GNU General Public License, if you
13654 # distribute this file as part of a program that contains a
13655 # configuration script generated by Autoconf, you may include it under
13656 # the same distribution terms that you use for the rest of that program.
13658 # A sed program that does not truncate output.
13659 SED=$lt_SED
13661 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13662 Xsed="$SED -e 1s/^X//"
13664 # The HP-UX ksh and POSIX shell print the target directory to stdout
13665 # if CDPATH is set.
13666 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13668 # The names of the tagged configurations supported by this script.
13669 available_tags=
13671 # ### BEGIN LIBTOOL CONFIG
13673 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13675 # Shell to use when invoking shell scripts.
13676 SHELL=$lt_SHELL
13678 # Whether or not to build shared libraries.
13679 build_libtool_libs=$enable_shared
13681 # Whether or not to build static libraries.
13682 build_old_libs=$enable_static
13684 # Whether or not to add -lc for building shared libraries.
13685 build_libtool_need_lc=$archive_cmds_need_lc
13687 # Whether or not to disallow shared libs when runtime libs are static
13688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13690 # Whether or not to optimize for fast installation.
13691 fast_install=$enable_fast_install
13693 # The host system.
13694 host_alias=$host_alias
13695 host=$host
13696 host_os=$host_os
13698 # The build system.
13699 build_alias=$build_alias
13700 build=$build
13701 build_os=$build_os
13703 # An echo program that does not interpret backslashes.
13704 echo=$lt_echo
13706 # The archiver.
13707 AR=$lt_AR
13708 AR_FLAGS=$lt_AR_FLAGS
13710 # A C compiler.
13711 LTCC=$lt_LTCC
13713 # LTCC compiler flags.
13714 LTCFLAGS=$lt_LTCFLAGS
13716 # A language-specific compiler.
13717 CC=$lt_compiler
13719 # Is the compiler the GNU C compiler?
13720 with_gcc=$GCC
13722 # An ERE matcher.
13723 EGREP=$lt_EGREP
13725 # The linker used to build libraries.
13726 LD=$lt_LD
13728 # Whether we need hard or soft links.
13729 LN_S=$lt_LN_S
13731 # A BSD-compatible nm program.
13732 NM=$lt_NM
13734 # A symbol stripping program
13735 STRIP=$lt_STRIP
13737 # Used to examine libraries when file_magic_cmd begins "file"
13738 MAGIC_CMD=$MAGIC_CMD
13740 # Used on cygwin: DLL creation program.
13741 DLLTOOL="$DLLTOOL"
13743 # Used on cygwin: object dumper.
13744 OBJDUMP="$OBJDUMP"
13746 # Used on cygwin: assembler.
13747 AS="$AS"
13749 # The name of the directory that contains temporary libtool files.
13750 objdir=$objdir
13752 # How to create reloadable object files.
13753 reload_flag=$lt_reload_flag
13754 reload_cmds=$lt_reload_cmds
13756 # How to pass a linker flag through the compiler.
13757 wl=$lt_lt_prog_compiler_wl
13759 # Object file suffix (normally "o").
13760 objext="$ac_objext"
13762 # Old archive suffix (normally "a").
13763 libext="$libext"
13765 # Shared library suffix (normally ".so").
13766 shrext_cmds='$shrext_cmds'
13768 # Executable file suffix (normally "").
13769 exeext="$exeext"
13771 # Additional compiler flags for building library objects.
13772 pic_flag=$lt_lt_prog_compiler_pic
13773 pic_mode=$pic_mode
13775 # What is the maximum length of a command?
13776 max_cmd_len=$lt_cv_sys_max_cmd_len
13778 # Does compiler simultaneously support -c and -o options?
13779 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13781 # Must we lock files when doing compilation?
13782 need_locks=$lt_need_locks
13784 # Do we need the lib prefix for modules?
13785 need_lib_prefix=$need_lib_prefix
13787 # Do we need a version for libraries?
13788 need_version=$need_version
13790 # Whether dlopen is supported.
13791 dlopen_support=$enable_dlopen
13793 # Whether dlopen of programs is supported.
13794 dlopen_self=$enable_dlopen_self
13796 # Whether dlopen of statically linked programs is supported.
13797 dlopen_self_static=$enable_dlopen_self_static
13799 # Compiler flag to prevent dynamic linking.
13800 link_static_flag=$lt_lt_prog_compiler_static
13802 # Compiler flag to turn off builtin functions.
13803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13805 # Compiler flag to allow reflexive dlopens.
13806 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13808 # Compiler flag to generate shared objects directly from archives.
13809 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13811 # Compiler flag to generate thread-safe objects.
13812 thread_safe_flag_spec=$lt_thread_safe_flag_spec
13814 # Library versioning type.
13815 version_type=$version_type
13817 # Format of library name prefix.
13818 libname_spec=$lt_libname_spec
13820 # List of archive names. First name is the real one, the rest are links.
13821 # The last name is the one that the linker finds with -lNAME.
13822 library_names_spec=$lt_library_names_spec
13824 # The coded name of the library, if different from the real name.
13825 soname_spec=$lt_soname_spec
13827 # Commands used to build and install an old-style archive.
13828 RANLIB=$lt_RANLIB
13829 old_archive_cmds=$lt_old_archive_cmds
13830 old_postinstall_cmds=$lt_old_postinstall_cmds
13831 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13833 # Create an old-style archive from a shared archive.
13834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13836 # Create a temporary old-style archive to link instead of a shared archive.
13837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13839 # Commands used to build and install a shared archive.
13840 archive_cmds=$lt_archive_cmds
13841 archive_expsym_cmds=$lt_archive_expsym_cmds
13842 postinstall_cmds=$lt_postinstall_cmds
13843 postuninstall_cmds=$lt_postuninstall_cmds
13845 # Commands used to build a loadable module (assumed same as above if empty)
13846 module_cmds=$lt_module_cmds
13847 module_expsym_cmds=$lt_module_expsym_cmds
13849 # Commands to strip libraries.
13850 old_striplib=$lt_old_striplib
13851 striplib=$lt_striplib
13853 # Dependencies to place before the objects being linked to create a
13854 # shared library.
13855 predep_objects=$lt_predep_objects
13857 # Dependencies to place after the objects being linked to create a
13858 # shared library.
13859 postdep_objects=$lt_postdep_objects
13861 # Dependencies to place before the objects being linked to create a
13862 # shared library.
13863 predeps=$lt_predeps
13865 # Dependencies to place after the objects being linked to create a
13866 # shared library.
13867 postdeps=$lt_postdeps
13869 # The directories searched by this compiler when creating a shared
13870 # library
13871 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13873 # The library search path used internally by the compiler when linking
13874 # a shared library.
13875 compiler_lib_search_path=$lt_compiler_lib_search_path
13877 # Method to check whether dependent libraries are shared objects.
13878 deplibs_check_method=$lt_deplibs_check_method
13880 # Command to use when deplibs_check_method == file_magic.
13881 file_magic_cmd=$lt_file_magic_cmd
13883 # Flag that allows shared libraries with undefined symbols to be built.
13884 allow_undefined_flag=$lt_allow_undefined_flag
13886 # Flag that forces no undefined symbols.
13887 no_undefined_flag=$lt_no_undefined_flag
13889 # Commands used to finish a libtool library installation in a directory.
13890 finish_cmds=$lt_finish_cmds
13892 # Same as above, but a single script fragment to be evaled but not shown.
13893 finish_eval=$lt_finish_eval
13895 # Take the output of nm and produce a listing of raw symbols and C names.
13896 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13898 # Transform the output of nm in a proper C declaration
13899 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13901 # Transform the output of nm in a C name address pair
13902 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13904 # This is the shared library runtime path variable.
13905 runpath_var=$runpath_var
13907 # This is the shared library path variable.
13908 shlibpath_var=$shlibpath_var
13910 # Is shlibpath searched before the hard-coded library search path?
13911 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13913 # How to hardcode a shared library path into an executable.
13914 hardcode_action=$hardcode_action
13916 # Whether we should hardcode library paths into libraries.
13917 hardcode_into_libs=$hardcode_into_libs
13919 # Flag to hardcode \$libdir into a binary during linking.
13920 # This must work even if \$libdir does not exist.
13921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13923 # If ld is used when linking, flag to hardcode \$libdir into
13924 # a binary during linking. This must work even if \$libdir does
13925 # not exist.
13926 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13928 # Whether we need a single -rpath flag with a separated argument.
13929 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13931 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13932 # resulting binary.
13933 hardcode_direct=$hardcode_direct
13935 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13936 # resulting binary.
13937 hardcode_minus_L=$hardcode_minus_L
13939 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13940 # the resulting binary.
13941 hardcode_shlibpath_var=$hardcode_shlibpath_var
13943 # Set to yes if building a shared library automatically hardcodes DIR into the library
13944 # and all subsequent libraries and executables linked against it.
13945 hardcode_automatic=$hardcode_automatic
13947 # Variables whose values should be saved in libtool wrapper scripts and
13948 # restored at relink time.
13949 variables_saved_for_relink="$variables_saved_for_relink"
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs
13954 # Compile-time system search path for libraries
13955 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13957 # Run-time system search path for libraries
13958 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13960 # Fix the shell variable \$srcfile for the compiler.
13961 fix_srcfile_path=$lt_fix_srcfile_path
13963 # Set to yes if exported symbols are required.
13964 always_export_symbols=$always_export_symbols
13966 # The commands to list exported symbols.
13967 export_symbols_cmds=$lt_export_symbols_cmds
13969 # The commands to extract the exported symbol list from a shared archive.
13970 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13972 # Symbols that should not be listed in the preloaded symbols.
13973 exclude_expsyms=$lt_exclude_expsyms
13975 # Symbols that must always be exported.
13976 include_expsyms=$lt_include_expsyms
13978 # ### END LIBTOOL CONFIG
13980 __EOF__
13983 case $host_os in
13984 aix3*)
13985 cat <<\EOF >> "$cfgfile"
13987 # AIX sometimes has problems with the GCC collect2 program. For some
13988 # reason, if we set the COLLECT_NAMES environment variable, the problems
13989 # vanish in a puff of smoke.
13990 if test "X${COLLECT_NAMES+set}" != Xset; then
13991 COLLECT_NAMES=
13992 export COLLECT_NAMES
13996 esac
13998 # We use sed instead of cat because bash on DJGPP gets confused if
13999 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14000 # text mode, it properly converts lines to CR/LF. This bash problem
14001 # is reportedly fixed, but why not run on old versions too?
14002 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14004 mv -f "$cfgfile" "$ofile" || \
14005 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14006 chmod +x "$ofile"
14008 else
14009 # If there is no Makefile yet, we rely on a make rule to execute
14010 # `config.status --recheck' to rerun these tests and create the
14011 # libtool script then.
14012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14013 if test -f "$ltmain_in"; then
14014 test -f Makefile && make "$ltmain"
14019 ac_ext=c
14020 ac_cpp='$CPP $CPPFLAGS'
14021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025 CC="$lt_save_CC"
14028 # Check whether --with-tags was given.
14029 if test "${with_tags+set}" = set; then
14030 withval=$with_tags; tagnames="$withval"
14034 if test -f "$ltmain" && test -n "$tagnames"; then
14035 if test ! -f "${ofile}"; then
14036 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14037 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14040 if test -z "$LTCC"; then
14041 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14042 if test -z "$LTCC"; then
14043 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14044 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14045 else
14046 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14047 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14050 if test -z "$LTCFLAGS"; then
14051 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
14054 # Extract list of available tagged configurations in $ofile.
14055 # Note that this assumes the entire list is on one line.
14056 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14058 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14059 for tagname in $tagnames; do
14060 IFS="$lt_save_ifs"
14061 # Check whether tagname contains only valid characters
14062 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14063 "") ;;
14064 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14065 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14066 { (exit 1); exit 1; }; }
14068 esac
14070 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14071 then
14072 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14073 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14074 { (exit 1); exit 1; }; }
14077 # Update the list of available tags.
14078 if test -n "$tagname"; then
14079 echo appending configuration tag \"$tagname\" to $ofile
14081 case $tagname in
14082 CXX)
14083 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14084 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14085 (test "X$CXX" != "Xg++"))) ; then
14086 ac_ext=cpp
14087 ac_cpp='$CXXCPP $CPPFLAGS'
14088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14095 archive_cmds_need_lc_CXX=no
14096 allow_undefined_flag_CXX=
14097 always_export_symbols_CXX=no
14098 archive_expsym_cmds_CXX=
14099 export_dynamic_flag_spec_CXX=
14100 hardcode_direct_CXX=no
14101 hardcode_libdir_flag_spec_CXX=
14102 hardcode_libdir_flag_spec_ld_CXX=
14103 hardcode_libdir_separator_CXX=
14104 hardcode_minus_L_CXX=no
14105 hardcode_shlibpath_var_CXX=unsupported
14106 hardcode_automatic_CXX=no
14107 module_cmds_CXX=
14108 module_expsym_cmds_CXX=
14109 link_all_deplibs_CXX=unknown
14110 old_archive_cmds_CXX=$old_archive_cmds
14111 no_undefined_flag_CXX=
14112 whole_archive_flag_spec_CXX=
14113 enable_shared_with_static_runtimes_CXX=no
14115 # Dependencies to place before and after the object being linked:
14116 predep_objects_CXX=
14117 postdep_objects_CXX=
14118 predeps_CXX=
14119 postdeps_CXX=
14120 compiler_lib_search_path_CXX=
14121 compiler_lib_search_dirs_CXX=
14123 # Source file extension for C++ test sources.
14124 ac_ext=cpp
14126 # Object file extension for compiled C++ test sources.
14127 objext=o
14128 objext_CXX=$objext
14130 # Code to be used in simple compile tests
14131 lt_simple_compile_test_code="int some_variable = 0;"
14133 # Code to be used in simple link tests
14134 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14138 # If no C compiler was specified, use CC.
14139 LTCC=${LTCC-"$CC"}
14141 # If no C compiler flags were specified, use CFLAGS.
14142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14144 # Allow CC to be a program name with arguments.
14145 compiler=$CC
14148 # save warnings/boilerplate of simple test code
14149 ac_outfile=conftest.$ac_objext
14150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14152 _lt_compiler_boilerplate=`cat conftest.err`
14153 $rm conftest*
14155 ac_outfile=conftest.$ac_objext
14156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14158 _lt_linker_boilerplate=`cat conftest.err`
14159 $rm -r conftest*
14162 # Allow CC to be a program name with arguments.
14163 lt_save_CC=$CC
14164 lt_save_LD=$LD
14165 lt_save_GCC=$GCC
14166 GCC=$GXX
14167 lt_save_with_gnu_ld=$with_gnu_ld
14168 lt_save_path_LD=$lt_cv_path_LD
14169 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14170 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14171 else
14172 $as_unset lt_cv_prog_gnu_ld
14174 if test -n "${lt_cv_path_LDCXX+set}"; then
14175 lt_cv_path_LD=$lt_cv_path_LDCXX
14176 else
14177 $as_unset lt_cv_path_LD
14179 test -z "${LDCXX+set}" || LD=$LDCXX
14180 CC=${CXX-"c++"}
14181 compiler=$CC
14182 compiler_CXX=$CC
14183 for cc_temp in $compiler""; do
14184 case $cc_temp in
14185 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14186 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14187 \-*) ;;
14188 *) break;;
14189 esac
14190 done
14191 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14194 # We don't want -fno-exception wen compiling C++ code, so set the
14195 # no_builtin_flag separately
14196 if test "$GXX" = yes; then
14197 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14198 else
14199 lt_prog_compiler_no_builtin_flag_CXX=
14202 if test "$GXX" = yes; then
14203 # Set up default GNU C++ configuration
14206 # Check whether --with-gnu-ld was given.
14207 if test "${with_gnu_ld+set}" = set; then
14208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14209 else
14210 with_gnu_ld=no
14213 ac_prog=ld
14214 if test "$GCC" = yes; then
14215 # Check if gcc -print-prog-name=ld gives a path.
14216 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14217 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
14218 case $host in
14219 *-*-mingw*)
14220 # gcc leaves a trailing carriage return which upsets mingw
14221 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14223 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14224 esac
14225 case $ac_prog in
14226 # Accept absolute paths.
14227 [\\/]* | ?:[\\/]*)
14228 re_direlt='/[^/][^/]*/\.\./'
14229 # Canonicalize the pathname of ld
14230 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14231 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14232 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14233 done
14234 test -z "$LD" && LD="$ac_prog"
14237 # If it fails, then pretend we aren't using GCC.
14238 ac_prog=ld
14241 # If it is relative, then search for the first ld in PATH.
14242 with_gnu_ld=unknown
14244 esac
14245 elif test "$with_gnu_ld" = yes; then
14246 { echo "$as_me:$LINENO: checking for GNU ld" >&5
14247 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
14248 else
14249 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14250 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
14252 if test "${lt_cv_path_LD+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 else
14255 if test -z "$LD"; then
14256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14257 for ac_dir in $PATH; do
14258 IFS="$lt_save_ifs"
14259 test -z "$ac_dir" && ac_dir=.
14260 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14261 lt_cv_path_LD="$ac_dir/$ac_prog"
14262 # Check to see if the program is GNU ld. I'd rather use --version,
14263 # but apparently some variants of GNU ld only accept -v.
14264 # Break only if it was the GNU/non-GNU ld that we prefer.
14265 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14266 *GNU* | *'with BFD'*)
14267 test "$with_gnu_ld" != no && break
14270 test "$with_gnu_ld" != yes && break
14272 esac
14274 done
14275 IFS="$lt_save_ifs"
14276 else
14277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14281 LD="$lt_cv_path_LD"
14282 if test -n "$LD"; then
14283 { echo "$as_me:$LINENO: result: $LD" >&5
14284 echo "${ECHO_T}$LD" >&6; }
14285 else
14286 { echo "$as_me:$LINENO: result: no" >&5
14287 echo "${ECHO_T}no" >&6; }
14289 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14290 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14291 { (exit 1); exit 1; }; }
14292 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14293 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
14294 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14298 case `$LD -v 2>&1 </dev/null` in
14299 *GNU* | *'with BFD'*)
14300 lt_cv_prog_gnu_ld=yes
14303 lt_cv_prog_gnu_ld=no
14305 esac
14307 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14308 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
14309 with_gnu_ld=$lt_cv_prog_gnu_ld
14313 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14314 # archiving commands below assume that GNU ld is being used.
14315 if test "$with_gnu_ld" = yes; then
14316 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14319 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14320 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14322 # If archive_cmds runs LD, not CC, wlarc should be empty
14323 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14324 # investigate it a little bit more. (MM)
14325 wlarc='${wl}'
14327 # ancient GNU ld didn't support --whole-archive et. al.
14328 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14329 grep 'no-whole-archive' > /dev/null; then
14330 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14331 else
14332 whole_archive_flag_spec_CXX=
14334 else
14335 with_gnu_ld=no
14336 wlarc=
14338 # A generic and very simple default shared library creation
14339 # command for GNU C++ for the case where it uses the native
14340 # linker, instead of GNU ld. If possible, this setting should
14341 # overridden to take advantage of the native linker features on
14342 # the platform it is being used on.
14343 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14346 # Commands to make compiler produce verbose output that lists
14347 # what "hidden" libraries, object files and flags are used when
14348 # linking a shared library.
14349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14351 else
14352 GXX=no
14353 with_gnu_ld=no
14354 wlarc=
14357 # PORTME: fill in a description of your system's C++ link characteristics
14358 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14359 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14360 ld_shlibs_CXX=yes
14361 case $host_os in
14362 aix3*)
14363 # FIXME: insert proper C++ library support
14364 ld_shlibs_CXX=no
14366 aix[4-9]*)
14367 if test "$host_cpu" = ia64; then
14368 # On IA64, the linker does run time linking by default, so we don't
14369 # have to do anything special.
14370 aix_use_runtimelinking=no
14371 exp_sym_flag='-Bexport'
14372 no_entry_flag=""
14373 else
14374 aix_use_runtimelinking=no
14376 # Test if we are trying to use run time linking or normal
14377 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14378 # need to do runtime linking.
14379 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14380 for ld_flag in $LDFLAGS; do
14381 case $ld_flag in
14382 *-brtl*)
14383 aix_use_runtimelinking=yes
14384 break
14386 esac
14387 done
14389 esac
14391 exp_sym_flag='-bexport'
14392 no_entry_flag='-bnoentry'
14395 # When large executables or shared objects are built, AIX ld can
14396 # have problems creating the table of contents. If linking a library
14397 # or program results in "error TOC overflow" add -mminimal-toc to
14398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14401 archive_cmds_CXX=''
14402 hardcode_direct_CXX=yes
14403 hardcode_libdir_separator_CXX=':'
14404 link_all_deplibs_CXX=yes
14406 if test "$GXX" = yes; then
14407 case $host_os in aix4.[012]|aix4.[012].*)
14408 # We only want to do this on AIX 4.2 and lower, the check
14409 # below for broken collect2 doesn't work under 4.3+
14410 collect2name=`${CC} -print-prog-name=collect2`
14411 if test -f "$collect2name" && \
14412 strings "$collect2name" | grep resolve_lib_name >/dev/null
14413 then
14414 # We have reworked collect2
14416 else
14417 # We have old collect2
14418 hardcode_direct_CXX=unsupported
14419 # It fails to find uninstalled libraries when the uninstalled
14420 # path is not listed in the libpath. Setting hardcode_minus_L
14421 # to unsupported forces relinking
14422 hardcode_minus_L_CXX=yes
14423 hardcode_libdir_flag_spec_CXX='-L$libdir'
14424 hardcode_libdir_separator_CXX=
14427 esac
14428 shared_flag='-shared'
14429 if test "$aix_use_runtimelinking" = yes; then
14430 shared_flag="$shared_flag "'${wl}-G'
14432 else
14433 # not using gcc
14434 if test "$host_cpu" = ia64; then
14435 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14436 # chokes on -Wl,-G. The following line is correct:
14437 shared_flag='-G'
14438 else
14439 if test "$aix_use_runtimelinking" = yes; then
14440 shared_flag='${wl}-G'
14441 else
14442 shared_flag='${wl}-bM:SRE'
14447 # It seems that -bexpall does not export symbols beginning with
14448 # underscore (_), so it is better to generate a list of symbols to export.
14449 always_export_symbols_CXX=yes
14450 if test "$aix_use_runtimelinking" = yes; then
14451 # Warning - without using the other runtime loading flags (-brtl),
14452 # -berok will link without error, but may produce a broken library.
14453 allow_undefined_flag_CXX='-berok'
14454 # Determine the default libpath from the value encoded in an empty executable.
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h. */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h. */
14463 main ()
14467 return 0;
14469 _ACEOF
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14478 ac_status=$?
14479 grep -v '^ *+' conftest.er1 >conftest.err
14480 rm -f conftest.er1
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_cxx_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest$ac_exeext &&
14487 $as_test_x conftest$ac_exeext; then
14489 lt_aix_libpath_sed='
14490 /Import File Strings/,/^$/ {
14491 /^0/ {
14492 s/^0 *\(.*\)$/\1/
14496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14497 # Check for a 64-bit object if we didn't find anything.
14498 if test -z "$aix_libpath"; then
14499 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14501 else
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14509 conftest$ac_exeext conftest.$ac_ext
14510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14514 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14515 else
14516 if test "$host_cpu" = ia64; then
14517 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14518 allow_undefined_flag_CXX="-z nodefs"
14519 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"
14520 else
14521 # Determine the default libpath from the value encoded in an empty executable.
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h. */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14530 main ()
14534 return 0;
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (ac_try="$ac_link"
14539 case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542 esac
14543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14544 (eval "$ac_link") 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } && {
14551 test -z "$ac_cxx_werror_flag" ||
14552 test ! -s conftest.err
14553 } && test -s conftest$ac_exeext &&
14554 $as_test_x conftest$ac_exeext; then
14556 lt_aix_libpath_sed='
14557 /Import File Strings/,/^$/ {
14558 /^0/ {
14559 s/^0 *\(.*\)$/\1/
14563 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14564 # Check for a 64-bit object if we didn't find anything.
14565 if test -z "$aix_libpath"; then
14566 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14577 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14580 # Warning - without using the other run time loading flags,
14581 # -berok will link without error, but may produce a broken library.
14582 no_undefined_flag_CXX=' ${wl}-bernotok'
14583 allow_undefined_flag_CXX=' ${wl}-berok'
14584 # Exported symbols can be pulled into shared objects from archives
14585 whole_archive_flag_spec_CXX='$convenience'
14586 archive_cmds_need_lc_CXX=yes
14587 # This is similar to how AIX traditionally builds its shared libraries.
14588 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14593 beos*)
14594 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14595 allow_undefined_flag_CXX=unsupported
14596 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14597 # support --undefined. This deserves some investigation. FIXME
14598 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14599 else
14600 ld_shlibs_CXX=no
14604 chorus*)
14605 case $cc_basename in
14607 # FIXME: insert proper C++ library support
14608 ld_shlibs_CXX=no
14610 esac
14613 cygwin* | mingw* | pw32*)
14614 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14615 # as there is no search path for DLLs.
14616 hardcode_libdir_flag_spec_CXX='-L$libdir'
14617 allow_undefined_flag_CXX=unsupported
14618 always_export_symbols_CXX=no
14619 enable_shared_with_static_runtimes_CXX=yes
14621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14622 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'
14623 # If the export-symbols file already is a .def file (1st line
14624 # is EXPORTS), use it as is; otherwise, prepend...
14625 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14626 cp $export_symbols $output_objdir/$soname.def;
14627 else
14628 echo EXPORTS > $output_objdir/$soname.def;
14629 cat $export_symbols >> $output_objdir/$soname.def;
14631 $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'
14632 else
14633 ld_shlibs_CXX=no
14636 darwin* | rhapsody*)
14637 archive_cmds_need_lc_CXX=no
14638 hardcode_direct_CXX=no
14639 hardcode_automatic_CXX=yes
14640 hardcode_shlibpath_var_CXX=unsupported
14641 whole_archive_flag_spec_CXX=''
14642 link_all_deplibs_CXX=yes
14643 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14644 if test "$GXX" = yes ; then
14645 output_verbose_link_cmd='echo'
14646 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}"
14647 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14648 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}"
14649 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}"
14650 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14651 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}"
14652 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}"
14654 else
14655 case $cc_basename in
14656 xlc*)
14657 output_verbose_link_cmd='echo'
14658 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14659 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14660 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14661 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14662 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14665 ld_shlibs_CXX=no
14667 esac
14671 dgux*)
14672 case $cc_basename in
14673 ec++*)
14674 # FIXME: insert proper C++ library support
14675 ld_shlibs_CXX=no
14677 ghcx*)
14678 # Green Hills C++ Compiler
14679 # FIXME: insert proper C++ library support
14680 ld_shlibs_CXX=no
14683 # FIXME: insert proper C++ library support
14684 ld_shlibs_CXX=no
14686 esac
14688 freebsd[12]*)
14689 # C++ shared libraries reported to be fairly broken before switch to ELF
14690 ld_shlibs_CXX=no
14692 freebsd-elf*)
14693 archive_cmds_need_lc_CXX=no
14695 freebsd* | dragonfly*)
14696 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14697 # conventions
14698 ld_shlibs_CXX=yes
14700 gnu*)
14702 hpux9*)
14703 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14704 hardcode_libdir_separator_CXX=:
14705 export_dynamic_flag_spec_CXX='${wl}-E'
14706 hardcode_direct_CXX=yes
14707 hardcode_minus_L_CXX=yes # Not in the search PATH,
14708 # but as the default
14709 # location of the library.
14711 case $cc_basename in
14712 CC*)
14713 # FIXME: insert proper C++ library support
14714 ld_shlibs_CXX=no
14716 aCC*)
14717 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14718 # Commands to make compiler produce verbose output that lists
14719 # what "hidden" libraries, object files and flags are used when
14720 # linking a shared library.
14722 # There doesn't appear to be a way to prevent this compiler from
14723 # explicitly linking system object files so we need to strip them
14724 # from the output so that they don't get included in the library
14725 # dependencies.
14726 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; echo $list'
14729 if test "$GXX" = yes; then
14730 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14731 else
14732 # FIXME: insert proper C++ library support
14733 ld_shlibs_CXX=no
14736 esac
14738 hpux10*|hpux11*)
14739 if test $with_gnu_ld = no; then
14740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14741 hardcode_libdir_separator_CXX=:
14743 case $host_cpu in
14744 hppa*64*|ia64*) ;;
14746 export_dynamic_flag_spec_CXX='${wl}-E'
14748 esac
14750 case $host_cpu in
14751 hppa*64*|ia64*)
14752 hardcode_direct_CXX=no
14753 hardcode_shlibpath_var_CXX=no
14756 hardcode_direct_CXX=yes
14757 hardcode_minus_L_CXX=yes # Not in the search PATH,
14758 # but as the default
14759 # location of the library.
14761 esac
14763 case $cc_basename in
14764 CC*)
14765 # FIXME: insert proper C++ library support
14766 ld_shlibs_CXX=no
14768 aCC*)
14769 case $host_cpu in
14770 hppa*64*)
14771 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14773 ia64*)
14774 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14779 esac
14780 # Commands to make compiler produce verbose output that lists
14781 # what "hidden" libraries, object files and flags are used when
14782 # linking a shared library.
14784 # There doesn't appear to be a way to prevent this compiler from
14785 # explicitly linking system object files so we need to strip them
14786 # from the output so that they don't get included in the library
14787 # dependencies.
14788 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; echo $list'
14791 if test "$GXX" = yes; then
14792 if test $with_gnu_ld = no; then
14793 case $host_cpu in
14794 hppa*64*)
14795 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14797 ia64*)
14798 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14801 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14803 esac
14805 else
14806 # FIXME: insert proper C++ library support
14807 ld_shlibs_CXX=no
14810 esac
14812 interix[3-9]*)
14813 hardcode_direct_CXX=no
14814 hardcode_shlibpath_var_CXX=no
14815 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14816 export_dynamic_flag_spec_CXX='${wl}-E'
14817 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14818 # Instead, shared libraries are loaded at an image base (0x10000000 by
14819 # default) and relocated if they conflict, which is a slow very memory
14820 # consuming and fragmenting process. To avoid this, we pick a random,
14821 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14822 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14823 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'
14824 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'
14826 irix5* | irix6*)
14827 case $cc_basename in
14828 CC*)
14829 # SGI C++
14830 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14832 # Archives containing C++ object files must be created using
14833 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14834 # necessary to make sure instantiated templates are included
14835 # in the archive.
14836 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14839 if test "$GXX" = yes; then
14840 if test "$with_gnu_ld" = no; then
14841 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14842 else
14843 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14846 link_all_deplibs_CXX=yes
14848 esac
14849 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14850 hardcode_libdir_separator_CXX=:
14852 linux* | k*bsd*-gnu)
14853 case $cc_basename in
14854 KCC*)
14855 # Kuck and Associates, Inc. (KAI) C++ Compiler
14857 # KCC will only create a shared library if the output file
14858 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14859 # to its proper name (with version) after linking.
14860 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 \$templib $lib'
14861 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 \$templib $lib'
14862 # Commands to make compiler produce verbose output that lists
14863 # what "hidden" libraries, object files and flags are used when
14864 # linking a shared library.
14866 # There doesn't appear to be a way to prevent this compiler from
14867 # explicitly linking system object files so we need to strip them
14868 # from the output so that they don't get included in the library
14869 # dependencies.
14870 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; echo $list'
14872 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14875 # Archives containing C++ object files must be created using
14876 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14877 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14879 icpc*)
14880 # Intel C++
14881 with_gnu_ld=yes
14882 # version 8.0 and above of icpc choke on multiply defined symbols
14883 # if we add $predep_objects and $postdep_objects, however 7.1 and
14884 # earlier do not add the objects themselves.
14885 case `$CC -V 2>&1` in
14886 *"Version 7."*)
14887 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14888 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'
14890 *) # Version 8.0 or newer
14891 tmp_idyn=
14892 case $host_cpu in
14893 ia64*) tmp_idyn=' -i_dynamic';;
14894 esac
14895 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 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'
14898 esac
14899 archive_cmds_need_lc_CXX=no
14900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14901 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14902 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14904 pgCC* | pgcpp*)
14905 # Portland Group C++ compiler
14906 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14907 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'
14909 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14911 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14913 cxx*)
14914 # Compaq C++
14915 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14916 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'
14918 runpath_var=LD_RUN_PATH
14919 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14920 hardcode_libdir_separator_CXX=:
14922 # Commands to make compiler produce verbose output that lists
14923 # what "hidden" libraries, object files and flags are used when
14924 # linking a shared library.
14926 # There doesn't appear to be a way to prevent this compiler from
14927 # explicitly linking system object files so we need to strip them
14928 # from the output so that they don't get included in the library
14929 # dependencies.
14930 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
14933 case `$CC -V 2>&1 | sed 5q` in
14934 *Sun\ C*)
14935 # Sun C++ 5.9
14936 no_undefined_flag_CXX=' -zdefs'
14937 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14938 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'
14939 hardcode_libdir_flag_spec_CXX='-R$libdir'
14940 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14942 # Not sure whether something based on
14943 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14944 # would be better.
14945 output_verbose_link_cmd='echo'
14947 # Archives containing C++ object files must be created using
14948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14949 # necessary to make sure instantiated templates are included
14950 # in the archive.
14951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14953 esac
14955 esac
14957 lynxos*)
14958 # FIXME: insert proper C++ library support
14959 ld_shlibs_CXX=no
14961 m88k*)
14962 # FIXME: insert proper C++ library support
14963 ld_shlibs_CXX=no
14965 mvs*)
14966 case $cc_basename in
14967 cxx*)
14968 # FIXME: insert proper C++ library support
14969 ld_shlibs_CXX=no
14972 # FIXME: insert proper C++ library support
14973 ld_shlibs_CXX=no
14975 esac
14977 netbsd* | netbsdelf*-gnu)
14978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14979 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14980 wlarc=
14981 hardcode_libdir_flag_spec_CXX='-R$libdir'
14982 hardcode_direct_CXX=yes
14983 hardcode_shlibpath_var_CXX=no
14985 # Workaround some broken pre-1.5 toolchains
14986 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14988 openbsd2*)
14989 # C++ shared libraries are fairly broken
14990 ld_shlibs_CXX=no
14992 openbsd*)
14993 if test -f /usr/libexec/ld.so; then
14994 hardcode_direct_CXX=yes
14995 hardcode_shlibpath_var_CXX=no
14996 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14999 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15000 export_dynamic_flag_spec_CXX='${wl}-E'
15001 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15003 output_verbose_link_cmd='echo'
15004 else
15005 ld_shlibs_CXX=no
15008 osf3*)
15009 case $cc_basename in
15010 KCC*)
15011 # Kuck and Associates, Inc. (KAI) C++ Compiler
15013 # KCC will only create a shared library if the output file
15014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15015 # to its proper name (with version) after linking.
15016 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 \$templib $lib'
15018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15019 hardcode_libdir_separator_CXX=:
15021 # Archives containing C++ object files must be created using
15022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15026 RCC*)
15027 # Rational C++ 2.4.1
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15031 cxx*)
15032 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15033 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15035 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15036 hardcode_libdir_separator_CXX=:
15038 # Commands to make compiler produce verbose output that lists
15039 # what "hidden" libraries, object files and flags are used when
15040 # linking a shared library.
15042 # There doesn't appear to be a way to prevent this compiler from
15043 # explicitly linking system object files so we need to strip them
15044 # from the output so that they don't get included in the library
15045 # dependencies.
15046 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
15049 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15050 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15051 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15054 hardcode_libdir_separator_CXX=:
15056 # Commands to make compiler produce verbose output that lists
15057 # what "hidden" libraries, object files and flags are used when
15058 # linking a shared library.
15059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15061 else
15062 # FIXME: insert proper C++ library support
15063 ld_shlibs_CXX=no
15066 esac
15068 osf4* | osf5*)
15069 case $cc_basename in
15070 KCC*)
15071 # Kuck and Associates, Inc. (KAI) C++ Compiler
15073 # KCC will only create a shared library if the output file
15074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15075 # to its proper name (with version) after linking.
15076 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 \$templib $lib'
15078 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15079 hardcode_libdir_separator_CXX=:
15081 # Archives containing C++ object files must be created using
15082 # the KAI C++ compiler.
15083 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15085 RCC*)
15086 # Rational C++ 2.4.1
15087 # FIXME: insert proper C++ library support
15088 ld_shlibs_CXX=no
15090 cxx*)
15091 allow_undefined_flag_CXX=' -expect_unresolved \*'
15092 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15093 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15094 echo "-hidden">> $lib.exp~
15095 $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~
15096 $rm $lib.exp'
15098 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15099 hardcode_libdir_separator_CXX=:
15101 # Commands to make compiler produce verbose output that lists
15102 # what "hidden" libraries, object files and flags are used when
15103 # linking a shared library.
15105 # There doesn't appear to be a way to prevent this compiler from
15106 # explicitly linking system object files so we need to strip them
15107 # from the output so that they don't get included in the library
15108 # dependencies.
15109 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
15112 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15114 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15117 hardcode_libdir_separator_CXX=:
15119 # Commands to make compiler produce verbose output that lists
15120 # what "hidden" libraries, object files and flags are used when
15121 # linking a shared library.
15122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15124 else
15125 # FIXME: insert proper C++ library support
15126 ld_shlibs_CXX=no
15129 esac
15131 psos*)
15132 # FIXME: insert proper C++ library support
15133 ld_shlibs_CXX=no
15135 sunos4*)
15136 case $cc_basename in
15137 CC*)
15138 # Sun C++ 4.x
15139 # FIXME: insert proper C++ library support
15140 ld_shlibs_CXX=no
15142 lcc*)
15143 # Lucid
15144 # FIXME: insert proper C++ library support
15145 ld_shlibs_CXX=no
15148 # FIXME: insert proper C++ library support
15149 ld_shlibs_CXX=no
15151 esac
15153 solaris*)
15154 case $cc_basename in
15155 CC*)
15156 # Sun C++ 4.2, 5.x and Centerline C++
15157 archive_cmds_need_lc_CXX=yes
15158 no_undefined_flag_CXX=' -zdefs'
15159 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15160 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15161 $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'
15163 hardcode_libdir_flag_spec_CXX='-R$libdir'
15164 hardcode_shlibpath_var_CXX=no
15165 case $host_os in
15166 solaris2.[0-5] | solaris2.[0-5].*) ;;
15168 # The compiler driver will combine and reorder linker options,
15169 # but understands `-z linker_flag'.
15170 # Supported since Solaris 2.6 (maybe 2.5.1?)
15171 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15173 esac
15174 link_all_deplibs_CXX=yes
15176 output_verbose_link_cmd='echo'
15178 # Archives containing C++ object files must be created using
15179 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15180 # necessary to make sure instantiated templates are included
15181 # in the archive.
15182 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15184 gcx*)
15185 # Green Hills C++ Compiler
15186 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15188 # The C++ compiler must be used to create the archive.
15189 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15192 # GNU C++ compiler with Solaris linker
15193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15194 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15195 if $CC --version | grep -v '^2\.7' > /dev/null; then
15196 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15197 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15198 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15200 # Commands to make compiler produce verbose output that lists
15201 # what "hidden" libraries, object files and flags are used when
15202 # linking a shared library.
15203 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15204 else
15205 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15206 # platform.
15207 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15208 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15209 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15211 # Commands to make compiler produce verbose output that lists
15212 # what "hidden" libraries, object files and flags are used when
15213 # linking a shared library.
15214 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15217 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15218 case $host_os in
15219 solaris2.[0-5] | solaris2.[0-5].*) ;;
15221 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15223 esac
15226 esac
15228 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15229 no_undefined_flag_CXX='${wl}-z,text'
15230 archive_cmds_need_lc_CXX=no
15231 hardcode_shlibpath_var_CXX=no
15232 runpath_var='LD_RUN_PATH'
15234 case $cc_basename in
15235 CC*)
15236 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15237 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15241 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 esac
15245 sysv5* | sco3.2v5* | sco5v6*)
15246 # Note: We can NOT use -z defs as we might desire, because we do not
15247 # link with -lc, and that would cause any symbols used from libc to
15248 # always be unresolved, which means just about no library would
15249 # ever link correctly. If we're not using GNU ld we use -z text
15250 # though, which does catch some bad symbols but isn't as heavy-handed
15251 # as -z defs.
15252 # For security reasons, it is highly recommended that you always
15253 # use absolute paths for naming shared libraries, and exclude the
15254 # DT_RUNPATH tag from executables and libraries. But doing so
15255 # requires that you compile everything twice, which is a pain.
15256 # So that behaviour is only enabled if SCOABSPATH is set to a
15257 # non-empty value in the environment. Most likely only useful for
15258 # creating official distributions of packages.
15259 # This is a hack until libtool officially supports absolute path
15260 # names for shared libraries.
15261 no_undefined_flag_CXX='${wl}-z,text'
15262 allow_undefined_flag_CXX='${wl}-z,nodefs'
15263 archive_cmds_need_lc_CXX=no
15264 hardcode_shlibpath_var_CXX=no
15265 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15266 hardcode_libdir_separator_CXX=':'
15267 link_all_deplibs_CXX=yes
15268 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15269 runpath_var='LD_RUN_PATH'
15271 case $cc_basename in
15272 CC*)
15273 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15274 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15278 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15280 esac
15282 tandem*)
15283 case $cc_basename in
15284 NCC*)
15285 # NonStop-UX NCC 3.20
15286 # FIXME: insert proper C++ library support
15287 ld_shlibs_CXX=no
15290 # FIXME: insert proper C++ library support
15291 ld_shlibs_CXX=no
15293 esac
15295 vxworks*)
15296 # FIXME: insert proper C++ library support
15297 ld_shlibs_CXX=no
15300 # FIXME: insert proper C++ library support
15301 ld_shlibs_CXX=no
15303 esac
15304 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15305 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15306 test "$ld_shlibs_CXX" = no && can_build_shared=no
15308 GCC_CXX="$GXX"
15309 LD_CXX="$LD"
15311 cat > conftest.$ac_ext <<EOF
15312 class Foo
15314 public:
15315 Foo (void) { a = 0; }
15316 private:
15317 int a;
15321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15322 (eval $ac_compile) 2>&5
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; then
15326 # Parse the compiler output and extract the necessary
15327 # objects, libraries and library flags.
15329 # Sentinel used to keep track of whether or not we are before
15330 # the conftest object file.
15331 pre_test_object_deps_done=no
15333 # The `*' in the case matches for architectures that use `case' in
15334 # $output_verbose_cmd can trigger glob expansion during the loop
15335 # eval without this substitution.
15336 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15338 for p in `eval $output_verbose_link_cmd`; do
15339 case $p in
15341 -L* | -R* | -l*)
15342 # Some compilers place space between "-{L,R}" and the path.
15343 # Remove the space.
15344 if test $p = "-L" \
15345 || test $p = "-R"; then
15346 prev=$p
15347 continue
15348 else
15349 prev=
15352 if test "$pre_test_object_deps_done" = no; then
15353 case $p in
15354 -L* | -R*)
15355 # Internal compiler library paths should come after those
15356 # provided the user. The postdeps already come after the
15357 # user supplied libs so there is no need to process them.
15358 if test -z "$compiler_lib_search_path_CXX"; then
15359 compiler_lib_search_path_CXX="${prev}${p}"
15360 else
15361 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15364 # The "-l" case would never come before the object being
15365 # linked, so don't bother handling this case.
15366 esac
15367 else
15368 if test -z "$postdeps_CXX"; then
15369 postdeps_CXX="${prev}${p}"
15370 else
15371 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15376 *.$objext)
15377 # This assumes that the test object file only shows up
15378 # once in the compiler output.
15379 if test "$p" = "conftest.$objext"; then
15380 pre_test_object_deps_done=yes
15381 continue
15384 if test "$pre_test_object_deps_done" = no; then
15385 if test -z "$predep_objects_CXX"; then
15386 predep_objects_CXX="$p"
15387 else
15388 predep_objects_CXX="$predep_objects_CXX $p"
15390 else
15391 if test -z "$postdep_objects_CXX"; then
15392 postdep_objects_CXX="$p"
15393 else
15394 postdep_objects_CXX="$postdep_objects_CXX $p"
15399 *) ;; # Ignore the rest.
15401 esac
15402 done
15404 # Clean up.
15405 rm -f a.out a.exe
15406 else
15407 echo "libtool.m4: error: problem compiling CXX test program"
15410 $rm -f confest.$objext
15412 compiler_lib_search_dirs_CXX=
15413 if test -n "$compiler_lib_search_path_CXX"; then
15414 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15417 # PORTME: override above test on systems where it is broken
15418 case $host_os in
15419 interix[3-9]*)
15420 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15421 # hack all around it, let's just trust "g++" to DTRT.
15422 predep_objects_CXX=
15423 postdep_objects_CXX=
15424 postdeps_CXX=
15427 linux*)
15428 case `$CC -V 2>&1 | sed 5q` in
15429 *Sun\ C*)
15430 # Sun C++ 5.9
15432 # The more standards-conforming stlport4 library is
15433 # incompatible with the Cstd library. Avoid specifying
15434 # it if it's in CXXFLAGS. Ignore libCrun as
15435 # -library=stlport4 depends on it.
15436 case " $CXX $CXXFLAGS " in
15437 *" -library=stlport4 "*)
15438 solaris_use_stlport4=yes
15440 esac
15441 if test "$solaris_use_stlport4" != yes; then
15442 postdeps_CXX='-library=Cstd -library=Crun'
15445 esac
15448 solaris*)
15449 case $cc_basename in
15450 CC*)
15451 # The more standards-conforming stlport4 library is
15452 # incompatible with the Cstd library. Avoid specifying
15453 # it if it's in CXXFLAGS. Ignore libCrun as
15454 # -library=stlport4 depends on it.
15455 case " $CXX $CXXFLAGS " in
15456 *" -library=stlport4 "*)
15457 solaris_use_stlport4=yes
15459 esac
15461 # Adding this requires a known-good setup of shared libraries for
15462 # Sun compiler versions before 5.6, else PIC objects from an old
15463 # archive will be linked into the output, leading to subtle bugs.
15464 if test "$solaris_use_stlport4" != yes; then
15465 postdeps_CXX='-library=Cstd -library=Crun'
15468 esac
15470 esac
15472 case " $postdeps_CXX " in
15473 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15474 esac
15476 lt_prog_compiler_wl_CXX=
15477 lt_prog_compiler_pic_CXX=
15478 lt_prog_compiler_static_CXX=
15480 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15481 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15483 # C++ specific cases for pic, static, wl, etc.
15484 if test "$GXX" = yes; then
15485 lt_prog_compiler_wl_CXX='-Wl,'
15486 lt_prog_compiler_static_CXX='-static'
15488 case $host_os in
15489 aix*)
15490 # All AIX code is PIC.
15491 if test "$host_cpu" = ia64; then
15492 # AIX 5 now supports IA64 processor
15493 lt_prog_compiler_static_CXX='-Bstatic'
15496 amigaos*)
15497 # FIXME: we need at least 68020 code to build shared libraries, but
15498 # adding the `-m68020' flag to GCC prevents building anything better,
15499 # like `-m68040'.
15500 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15503 # PIC is the default for these OSes.
15505 mingw* | cygwin* | os2* | pw32*)
15506 # This hack is so that the source file can tell whether it is being
15507 # built for inclusion in a dll (and should export symbols for example).
15508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15509 # (--disable-auto-import) libraries
15510 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15512 darwin* | rhapsody*)
15513 # PIC is the default on this platform
15514 # Common symbols not allowed in MH_DYLIB files
15515 lt_prog_compiler_pic_CXX='-fno-common'
15517 *djgpp*)
15518 # DJGPP does not support shared libraries at all
15519 lt_prog_compiler_pic_CXX=
15521 interix[3-9]*)
15522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15523 # Instead, we relocate shared libraries at runtime.
15525 sysv4*MP*)
15526 if test -d /usr/nec; then
15527 lt_prog_compiler_pic_CXX=-Kconform_pic
15530 hpux*)
15531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15532 # not for PA HP-UX.
15533 case $host_cpu in
15534 hppa*64*|ia64*)
15537 lt_prog_compiler_pic_CXX='-fPIC'
15539 esac
15542 lt_prog_compiler_pic_CXX='-fPIC'
15544 esac
15545 else
15546 case $host_os in
15547 aix[4-9]*)
15548 # All AIX code is PIC.
15549 if test "$host_cpu" = ia64; then
15550 # AIX 5 now supports IA64 processor
15551 lt_prog_compiler_static_CXX='-Bstatic'
15552 else
15553 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15556 chorus*)
15557 case $cc_basename in
15558 cxch68*)
15559 # Green Hills C++ Compiler
15560 # _LT_AC_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"
15562 esac
15564 darwin*)
15565 # PIC is the default on this platform
15566 # Common symbols not allowed in MH_DYLIB files
15567 case $cc_basename in
15568 xlc*)
15569 lt_prog_compiler_pic_CXX='-qnocommon'
15570 lt_prog_compiler_wl_CXX='-Wl,'
15572 esac
15574 dgux*)
15575 case $cc_basename in
15576 ec++*)
15577 lt_prog_compiler_pic_CXX='-KPIC'
15579 ghcx*)
15580 # Green Hills C++ Compiler
15581 lt_prog_compiler_pic_CXX='-pic'
15585 esac
15587 freebsd* | dragonfly*)
15588 # FreeBSD uses GNU C++
15590 hpux9* | hpux10* | hpux11*)
15591 case $cc_basename in
15592 CC*)
15593 lt_prog_compiler_wl_CXX='-Wl,'
15594 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15595 if test "$host_cpu" != ia64; then
15596 lt_prog_compiler_pic_CXX='+Z'
15599 aCC*)
15600 lt_prog_compiler_wl_CXX='-Wl,'
15601 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15602 case $host_cpu in
15603 hppa*64*|ia64*)
15604 # +Z the default
15607 lt_prog_compiler_pic_CXX='+Z'
15609 esac
15613 esac
15615 interix*)
15616 # This is c89, which is MS Visual C++ (no shared libs)
15617 # Anyone wants to do a port?
15619 irix5* | irix6* | nonstopux*)
15620 case $cc_basename in
15621 CC*)
15622 lt_prog_compiler_wl_CXX='-Wl,'
15623 lt_prog_compiler_static_CXX='-non_shared'
15624 # CC pic flag -KPIC is the default.
15628 esac
15630 linux* | k*bsd*-gnu)
15631 case $cc_basename in
15632 KCC*)
15633 # KAI C++ Compiler
15634 lt_prog_compiler_wl_CXX='--backend -Wl,'
15635 lt_prog_compiler_pic_CXX='-fPIC'
15637 icpc* | ecpc*)
15638 # Intel C++
15639 lt_prog_compiler_wl_CXX='-Wl,'
15640 lt_prog_compiler_pic_CXX='-KPIC'
15641 lt_prog_compiler_static_CXX='-static'
15643 pgCC* | pgcpp*)
15644 # Portland Group C++ compiler.
15645 lt_prog_compiler_wl_CXX='-Wl,'
15646 lt_prog_compiler_pic_CXX='-fpic'
15647 lt_prog_compiler_static_CXX='-Bstatic'
15649 cxx*)
15650 # Compaq C++
15651 # Make sure the PIC flag is empty. It appears that all Alpha
15652 # Linux and Compaq Tru64 Unix objects are PIC.
15653 lt_prog_compiler_pic_CXX=
15654 lt_prog_compiler_static_CXX='-non_shared'
15657 case `$CC -V 2>&1 | sed 5q` in
15658 *Sun\ C*)
15659 # Sun C++ 5.9
15660 lt_prog_compiler_pic_CXX='-KPIC'
15661 lt_prog_compiler_static_CXX='-Bstatic'
15662 lt_prog_compiler_wl_CXX='-Qoption ld '
15664 esac
15666 esac
15668 lynxos*)
15670 m88k*)
15672 mvs*)
15673 case $cc_basename in
15674 cxx*)
15675 lt_prog_compiler_pic_CXX='-W c,exportall'
15679 esac
15681 netbsd* | netbsdelf*-gnu)
15683 osf3* | osf4* | osf5*)
15684 case $cc_basename in
15685 KCC*)
15686 lt_prog_compiler_wl_CXX='--backend -Wl,'
15688 RCC*)
15689 # Rational C++ 2.4.1
15690 lt_prog_compiler_pic_CXX='-pic'
15692 cxx*)
15693 # Digital/Compaq C++
15694 lt_prog_compiler_wl_CXX='-Wl,'
15695 # Make sure the PIC flag is empty. It appears that all Alpha
15696 # Linux and Compaq Tru64 Unix objects are PIC.
15697 lt_prog_compiler_pic_CXX=
15698 lt_prog_compiler_static_CXX='-non_shared'
15702 esac
15704 psos*)
15706 solaris*)
15707 case $cc_basename in
15708 CC*)
15709 # Sun C++ 4.2, 5.x and Centerline C++
15710 lt_prog_compiler_pic_CXX='-KPIC'
15711 lt_prog_compiler_static_CXX='-Bstatic'
15712 lt_prog_compiler_wl_CXX='-Qoption ld '
15714 gcx*)
15715 # Green Hills C++ Compiler
15716 lt_prog_compiler_pic_CXX='-PIC'
15720 esac
15722 sunos4*)
15723 case $cc_basename in
15724 CC*)
15725 # Sun C++ 4.x
15726 lt_prog_compiler_pic_CXX='-pic'
15727 lt_prog_compiler_static_CXX='-Bstatic'
15729 lcc*)
15730 # Lucid
15731 lt_prog_compiler_pic_CXX='-pic'
15735 esac
15737 tandem*)
15738 case $cc_basename in
15739 NCC*)
15740 # NonStop-UX NCC 3.20
15741 lt_prog_compiler_pic_CXX='-KPIC'
15745 esac
15747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15748 case $cc_basename in
15749 CC*)
15750 lt_prog_compiler_wl_CXX='-Wl,'
15751 lt_prog_compiler_pic_CXX='-KPIC'
15752 lt_prog_compiler_static_CXX='-Bstatic'
15754 esac
15756 vxworks*)
15759 lt_prog_compiler_can_build_shared_CXX=no
15761 esac
15764 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15765 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
15768 # Check to make sure the PIC flag actually works.
15770 if test -n "$lt_prog_compiler_pic_CXX"; then
15772 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15773 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
15774 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777 lt_cv_prog_compiler_pic_works_CXX=no
15778 ac_outfile=conftest.$ac_objext
15779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15780 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15781 # Insert the option either (1) after the last *FLAGS variable, or
15782 # (2) before a word containing "conftest.", or (3) at the end.
15783 # Note that $ac_compile itself does not contain backslashes and begins
15784 # with a dollar sign (not a hyphen), so the echo should work correctly.
15785 # The option is referenced via a variable to avoid confusing sed.
15786 lt_compile=`echo "$ac_compile" | $SED \
15787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15789 -e 's:$: $lt_compiler_flag:'`
15790 (eval echo "\"\$as_me:15790: $lt_compile\"" >&5)
15791 (eval "$lt_compile" 2>conftest.err)
15792 ac_status=$?
15793 cat conftest.err >&5
15794 echo "$as_me:15794: \$? = $ac_status" >&5
15795 if (exit $ac_status) && test -s "$ac_outfile"; then
15796 # The compiler can only warn and ignore the option if not recognized
15797 # So say no if there are warnings other than the usual output.
15798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15801 lt_cv_prog_compiler_pic_works_CXX=yes
15804 $rm conftest*
15807 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15808 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15810 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15811 case $lt_prog_compiler_pic_CXX in
15812 "" | " "*) ;;
15813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15814 esac
15815 else
15816 lt_prog_compiler_pic_CXX=
15817 lt_prog_compiler_can_build_shared_CXX=no
15821 case $host_os in
15822 # For platforms which do not support PIC, -DPIC is meaningless:
15823 *djgpp*)
15824 lt_prog_compiler_pic_CXX=
15827 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15829 esac
15832 # Check to make sure the static flag actually works.
15834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15835 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15836 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15837 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 else
15840 lt_cv_prog_compiler_static_works_CXX=no
15841 save_LDFLAGS="$LDFLAGS"
15842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15845 # The linker can only warn and ignore the option if not recognized
15846 # So say no if there are warnings
15847 if test -s conftest.err; then
15848 # Append any errors to the config.log.
15849 cat conftest.err 1>&5
15850 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15852 if diff conftest.exp conftest.er2 >/dev/null; then
15853 lt_cv_prog_compiler_static_works_CXX=yes
15855 else
15856 lt_cv_prog_compiler_static_works_CXX=yes
15859 $rm -r conftest*
15860 LDFLAGS="$save_LDFLAGS"
15863 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15864 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
15866 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15868 else
15869 lt_prog_compiler_static_CXX=
15873 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15874 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15875 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878 lt_cv_prog_compiler_c_o_CXX=no
15879 $rm -r conftest 2>/dev/null
15880 mkdir conftest
15881 cd conftest
15882 mkdir out
15883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15885 lt_compiler_flag="-o out/conftest2.$ac_objext"
15886 # Insert the option either (1) after the last *FLAGS variable, or
15887 # (2) before a word containing "conftest.", or (3) at the end.
15888 # Note that $ac_compile itself does not contain backslashes and begins
15889 # with a dollar sign (not a hyphen), so the echo should work correctly.
15890 lt_compile=`echo "$ac_compile" | $SED \
15891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15893 -e 's:$: $lt_compiler_flag:'`
15894 (eval echo "\"\$as_me:15894: $lt_compile\"" >&5)
15895 (eval "$lt_compile" 2>out/conftest.err)
15896 ac_status=$?
15897 cat out/conftest.err >&5
15898 echo "$as_me:15898: \$? = $ac_status" >&5
15899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15900 then
15901 # The compiler can only warn and ignore the option if not recognized
15902 # So say no if there are warnings
15903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15906 lt_cv_prog_compiler_c_o_CXX=yes
15909 chmod u+w . 2>&5
15910 $rm conftest*
15911 # SGI C++ compiler will create directory out/ii_files/ for
15912 # template instantiation
15913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15914 $rm out/* && rmdir out
15915 cd ..
15916 rmdir conftest
15917 $rm conftest*
15920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
15924 hard_links="nottested"
15925 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15926 # do not overwrite the value of need_locks provided by the user
15927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15929 hard_links=yes
15930 $rm conftest*
15931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15932 touch conftest.a
15933 ln conftest.a conftest.b 2>&5 || hard_links=no
15934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15935 { echo "$as_me:$LINENO: result: $hard_links" >&5
15936 echo "${ECHO_T}$hard_links" >&6; }
15937 if test "$hard_links" = no; then
15938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15940 need_locks=warn
15942 else
15943 need_locks=no
15946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15950 case $host_os in
15951 aix[4-9]*)
15952 # If we're using GNU nm, then we don't want the "-C" option.
15953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15955 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15956 else
15957 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15960 pw32*)
15961 export_symbols_cmds_CXX="$ltdll_cmds"
15963 cygwin* | mingw*)
15964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15966 linux* | k*bsd*-gnu)
15967 link_all_deplibs_CXX=no
15970 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15972 esac
15973 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15975 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15976 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15977 test "$ld_shlibs_CXX" = no && can_build_shared=no
15980 # Do we need to explicitly link libc?
15982 case "x$archive_cmds_need_lc_CXX" in
15983 x|xyes)
15984 # Assume -lc should be added
15985 archive_cmds_need_lc_CXX=yes
15987 if test "$enable_shared" = yes && test "$GCC" = yes; then
15988 case $archive_cmds_CXX in
15989 *'~'*)
15990 # FIXME: we may have to deal with multi-command sequences.
15992 '$CC '*)
15993 # Test whether the compiler implicitly links with -lc since on some
15994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15995 # to ld, don't add -lc before -lgcc.
15996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15997 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15998 $rm conftest*
15999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } 2>conftest.err; then
16006 soname=conftest
16007 lib=conftest
16008 libobjs=conftest.$ac_objext
16009 deplibs=
16010 wl=$lt_prog_compiler_wl_CXX
16011 pic_flag=$lt_prog_compiler_pic_CXX
16012 compiler_flags=-v
16013 linker_flags=-v
16014 verstring=
16015 output_objdir=.
16016 libname=conftest
16017 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16018 allow_undefined_flag_CXX=
16019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16020 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }
16024 then
16025 archive_cmds_need_lc_CXX=no
16026 else
16027 archive_cmds_need_lc_CXX=yes
16029 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16030 else
16031 cat conftest.err 1>&5
16033 $rm conftest*
16034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16035 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
16037 esac
16040 esac
16042 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16043 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16044 library_names_spec=
16045 libname_spec='lib$name'
16046 soname_spec=
16047 shrext_cmds=".so"
16048 postinstall_cmds=
16049 postuninstall_cmds=
16050 finish_cmds=
16051 finish_eval=
16052 shlibpath_var=
16053 shlibpath_overrides_runpath=unknown
16054 version_type=none
16055 dynamic_linker="$host_os ld.so"
16056 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16058 need_lib_prefix=unknown
16059 hardcode_into_libs=no
16061 # when you set need_version to no, make sure it does not cause -set_version
16062 # flags to be left without arguments
16063 need_version=unknown
16065 case $host_os in
16066 aix3*)
16067 version_type=linux
16068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16069 shlibpath_var=LIBPATH
16071 # AIX 3 has no versioning support, so we append a major version to the name.
16072 soname_spec='${libname}${release}${shared_ext}$major'
16075 aix[4-9]*)
16076 version_type=linux
16077 need_lib_prefix=no
16078 need_version=no
16079 hardcode_into_libs=yes
16080 if test "$host_cpu" = ia64; then
16081 # AIX 5 supports IA64
16082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 else
16085 # With GCC up to 2.95.x, collect2 would create an import file
16086 # for dependence libraries. The import file would start with
16087 # the line `#! .'. This would cause the generated library to
16088 # depend on `.', always an invalid library. This was fixed in
16089 # development snapshots of GCC prior to 3.0.
16090 case $host_os in
16091 aix4 | aix4.[01] | aix4.[01].*)
16092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16093 echo ' yes '
16094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16096 else
16097 can_build_shared=no
16100 esac
16101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16102 # soname into executable. Probably we can add versioning support to
16103 # collect2, so additional links can be useful in future.
16104 if test "$aix_use_runtimelinking" = yes; then
16105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16106 # instead of lib<name>.a to let people know that these are not
16107 # typical AIX shared libraries.
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 else
16110 # We preserve .a as extension for shared libraries through AIX4.2
16111 # and later when we are not doing run time linking.
16112 library_names_spec='${libname}${release}.a $libname.a'
16113 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LIBPATH
16119 amigaos*)
16120 library_names_spec='$libname.ixlibrary $libname.a'
16121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16122 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16125 beos*)
16126 library_names_spec='${libname}${shared_ext}'
16127 dynamic_linker="$host_os ld.so"
16128 shlibpath_var=LIBRARY_PATH
16131 bsdi[45]*)
16132 version_type=linux
16133 need_version=no
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16137 shlibpath_var=LD_LIBRARY_PATH
16138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16140 # the default ld.so.conf also contains /usr/contrib/lib and
16141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16142 # libtool to hard-code these into programs
16145 cygwin* | mingw* | pw32*)
16146 version_type=windows
16147 shrext_cmds=".dll"
16148 need_version=no
16149 need_lib_prefix=no
16151 case $GCC,$host_os in
16152 yes,cygwin* | yes,mingw* | yes,pw32*)
16153 library_names_spec='$libname.dll.a'
16154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16155 postinstall_cmds='base_file=`basename \${file}`~
16156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16157 dldir=$destdir/`dirname \$dlpath`~
16158 test -d \$dldir || mkdir -p \$dldir~
16159 $install_prog $dir/$dlname \$dldir/$dlname~
16160 chmod a+x \$dldir/$dlname'
16161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16162 dlpath=$dir/\$dldll~
16163 $rm \$dlpath'
16164 shlibpath_overrides_runpath=yes
16166 case $host_os in
16167 cygwin*)
16168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16172 mingw*)
16173 # MinGW DLLs use traditional 'lib' prefix
16174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16177 # It is most probably a Windows format PATH printed by
16178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16179 # path with ; separators, and with drive letters. We can handle the
16180 # drive letters (cygwin fileutils understands them), so leave them,
16181 # especially as we might pass files found there to a mingw objdump,
16182 # which wouldn't understand a cygwinified path. Ahh.
16183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16184 else
16185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16188 pw32*)
16189 # pw32 DLLs use 'pw' prefix rather than 'lib'
16190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16192 esac
16196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16198 esac
16199 dynamic_linker='Win32 ld.exe'
16200 # FIXME: first we should search . and the directory the executable is in
16201 shlibpath_var=PATH
16204 darwin* | rhapsody*)
16205 dynamic_linker="$host_os dyld"
16206 version_type=darwin
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16210 soname_spec='${libname}${release}${major}$shared_ext'
16211 shlibpath_overrides_runpath=yes
16212 shlibpath_var=DYLD_LIBRARY_PATH
16213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16218 dgux*)
16219 version_type=linux
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16227 freebsd1*)
16228 dynamic_linker=no
16231 freebsd* | dragonfly*)
16232 # DragonFly does not have aout. When/if they implement a new
16233 # versioning mechanism, adjust this.
16234 if test -x /usr/bin/objformat; then
16235 objformat=`/usr/bin/objformat`
16236 else
16237 case $host_os in
16238 freebsd[123]*) objformat=aout ;;
16239 *) objformat=elf ;;
16240 esac
16242 version_type=freebsd-$objformat
16243 case $version_type in
16244 freebsd-elf*)
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16246 need_version=no
16247 need_lib_prefix=no
16249 freebsd-*)
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16251 need_version=yes
16253 esac
16254 shlibpath_var=LD_LIBRARY_PATH
16255 case $host_os in
16256 freebsd2*)
16257 shlibpath_overrides_runpath=yes
16259 freebsd3.[01]* | freebsdelf3.[01]*)
16260 shlibpath_overrides_runpath=yes
16261 hardcode_into_libs=yes
16263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16265 shlibpath_overrides_runpath=no
16266 hardcode_into_libs=yes
16268 *) # from 4.6 on, and DragonFly
16269 shlibpath_overrides_runpath=yes
16270 hardcode_into_libs=yes
16272 esac
16275 gnu*)
16276 version_type=linux
16277 need_lib_prefix=no
16278 need_version=no
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 shlibpath_var=LD_LIBRARY_PATH
16282 hardcode_into_libs=yes
16285 hpux9* | hpux10* | hpux11*)
16286 # Give a soname corresponding to the major version so that dld.sl refuses to
16287 # link against other versions.
16288 version_type=sunos
16289 need_lib_prefix=no
16290 need_version=no
16291 case $host_cpu in
16292 ia64*)
16293 shrext_cmds='.so'
16294 hardcode_into_libs=yes
16295 dynamic_linker="$host_os dld.so"
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 if test "X$HPUX_IA64_MODE" = X32; then
16301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16302 else
16303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16307 hppa*64*)
16308 shrext_cmds='.sl'
16309 hardcode_into_libs=yes
16310 dynamic_linker="$host_os dld.sl"
16311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16319 shrext_cmds='.sl'
16320 dynamic_linker="$host_os dld.sl"
16321 shlibpath_var=SHLIB_PATH
16322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16324 soname_spec='${libname}${release}${shared_ext}$major'
16326 esac
16327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16328 postinstall_cmds='chmod 555 $lib'
16331 interix[3-9]*)
16332 version_type=linux
16333 need_lib_prefix=no
16334 need_version=no
16335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16336 soname_spec='${libname}${release}${shared_ext}$major'
16337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=no
16340 hardcode_into_libs=yes
16343 irix5* | irix6* | nonstopux*)
16344 case $host_os in
16345 nonstopux*) version_type=nonstopux ;;
16347 if test "$lt_cv_prog_gnu_ld" = yes; then
16348 version_type=linux
16349 else
16350 version_type=irix
16351 fi ;;
16352 esac
16353 need_lib_prefix=no
16354 need_version=no
16355 soname_spec='${libname}${release}${shared_ext}$major'
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16357 case $host_os in
16358 irix5* | nonstopux*)
16359 libsuff= shlibsuff=
16362 case $LD in # libtool.m4 will add one of these switches to LD
16363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16364 libsuff= shlibsuff= libmagic=32-bit;;
16365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16366 libsuff=32 shlibsuff=N32 libmagic=N32;;
16367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16369 *) libsuff= shlibsuff= libmagic=never-match;;
16370 esac
16372 esac
16373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16374 shlibpath_overrides_runpath=no
16375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16377 hardcode_into_libs=yes
16380 # No shared lib support for Linux oldld, aout, or coff.
16381 linux*oldld* | linux*aout* | linux*coff*)
16382 dynamic_linker=no
16385 # This must be Linux ELF.
16386 linux* | k*bsd*-gnu)
16387 version_type=linux
16388 need_lib_prefix=no
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=no
16395 # This implies no fast_install, which is unacceptable.
16396 # Some rework will be needed to allow for fast_install
16397 # before this can be enabled.
16398 hardcode_into_libs=yes
16400 # Append ld.so.conf contents to the search path
16401 if test -f /etc/ld.so.conf; then
16402 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;/^$/d' | tr '\n' ' '`
16403 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16406 # We used to test for /lib/ld.so.1 and disable shared libraries on
16407 # powerpc, because MkLinux only supported shared libraries with the
16408 # GNU dynamic linker. Since this was broken with cross compilers,
16409 # most powerpc-linux boxes support dynamic linking these days and
16410 # people can always --disable-shared, the test was removed, and we
16411 # assume the GNU/Linux dynamic linker is in use.
16412 dynamic_linker='GNU/Linux ld.so'
16415 netbsdelf*-gnu)
16416 version_type=linux
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=no
16423 hardcode_into_libs=yes
16424 dynamic_linker='NetBSD ld.elf_so'
16427 netbsd*)
16428 version_type=sunos
16429 need_lib_prefix=no
16430 need_version=no
16431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16434 dynamic_linker='NetBSD (a.out) ld.so'
16435 else
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 dynamic_linker='NetBSD ld.elf_so'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16442 hardcode_into_libs=yes
16445 newsos6)
16446 version_type=linux
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16452 nto-qnx*)
16453 version_type=linux
16454 need_lib_prefix=no
16455 need_version=no
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457 soname_spec='${libname}${release}${shared_ext}$major'
16458 shlibpath_var=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath=yes
16462 openbsd*)
16463 version_type=sunos
16464 sys_lib_dlsearch_path_spec="/usr/lib"
16465 need_lib_prefix=no
16466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16467 case $host_os in
16468 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16469 *) need_version=no ;;
16470 esac
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16475 case $host_os in
16476 openbsd2.[89] | openbsd2.[89].*)
16477 shlibpath_overrides_runpath=no
16480 shlibpath_overrides_runpath=yes
16482 esac
16483 else
16484 shlibpath_overrides_runpath=yes
16488 os2*)
16489 libname_spec='$name'
16490 shrext_cmds=".dll"
16491 need_lib_prefix=no
16492 library_names_spec='$libname${shared_ext} $libname.a'
16493 dynamic_linker='OS/2 ld.exe'
16494 shlibpath_var=LIBPATH
16497 osf3* | osf4* | osf5*)
16498 version_type=osf
16499 need_lib_prefix=no
16500 need_version=no
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16508 rdos*)
16509 dynamic_linker=no
16512 solaris*)
16513 version_type=linux
16514 need_lib_prefix=no
16515 need_version=no
16516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec='${libname}${release}${shared_ext}$major'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath=yes
16520 hardcode_into_libs=yes
16521 # ldd complains unless libraries are executable
16522 postinstall_cmds='chmod +x $lib'
16525 sunos4*)
16526 version_type=sunos
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=yes
16531 if test "$with_gnu_ld" = yes; then
16532 need_lib_prefix=no
16534 need_version=yes
16537 sysv4 | sysv4.3*)
16538 version_type=linux
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 case $host_vendor in
16543 sni)
16544 shlibpath_overrides_runpath=no
16545 need_lib_prefix=no
16546 export_dynamic_flag_spec='${wl}-Blargedynsym'
16547 runpath_var=LD_RUN_PATH
16549 siemens)
16550 need_lib_prefix=no
16552 motorola)
16553 need_lib_prefix=no
16554 need_version=no
16555 shlibpath_overrides_runpath=no
16556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16558 esac
16561 sysv4*MP*)
16562 if test -d /usr/nec ;then
16563 version_type=linux
16564 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16565 soname_spec='$libname${shared_ext}.$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16571 version_type=freebsd-elf
16572 need_lib_prefix=no
16573 need_version=no
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16575 soname_spec='${libname}${release}${shared_ext}$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 hardcode_into_libs=yes
16578 if test "$with_gnu_ld" = yes; then
16579 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16580 shlibpath_overrides_runpath=no
16581 else
16582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16583 shlibpath_overrides_runpath=yes
16584 case $host_os in
16585 sco3.2v5*)
16586 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16588 esac
16590 sys_lib_dlsearch_path_spec='/usr/lib'
16593 uts4*)
16594 version_type=linux
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 shlibpath_var=LD_LIBRARY_PATH
16601 dynamic_linker=no
16603 esac
16604 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16605 echo "${ECHO_T}$dynamic_linker" >&6; }
16606 test "$dynamic_linker" = no && can_build_shared=no
16608 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16609 echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16614 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16615 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16624 if test "$GCC" = yes; then
16625 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16628 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16630 hardcode_action_CXX=
16631 if test -n "$hardcode_libdir_flag_spec_CXX" || \
16632 test -n "$runpath_var_CXX" || \
16633 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16635 # We can hardcode non-existant directories.
16636 if test "$hardcode_direct_CXX" != no &&
16637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16638 # have to relink, otherwise we might link with an installed library
16639 # when we should be linking with a yet-to-be-installed one
16640 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16641 test "$hardcode_minus_L_CXX" != no; then
16642 # Linking always hardcodes the temporary library directory.
16643 hardcode_action_CXX=relink
16644 else
16645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16646 hardcode_action_CXX=immediate
16648 else
16649 # We cannot hardcode anything, or else we can only hardcode existing
16650 # directories.
16651 hardcode_action_CXX=unsupported
16653 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16654 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
16656 if test "$hardcode_action_CXX" = relink; then
16657 # Fast installation is not supported
16658 enable_fast_install=no
16659 elif test "$shlibpath_overrides_runpath" = yes ||
16660 test "$enable_shared" = no; then
16661 # Fast installation is not necessary
16662 enable_fast_install=needless
16666 # The else clause should only fire when bootstrapping the
16667 # libtool distribution, otherwise you forgot to ship ltmain.sh
16668 # with your package, and you will get complaints that there are
16669 # no rules to generate ltmain.sh.
16670 if test -f "$ltmain"; then
16671 # See if we are running on zsh, and set the options which allow our commands through
16672 # without removal of \ escapes.
16673 if test -n "${ZSH_VERSION+set}" ; then
16674 setopt NO_GLOB_SUBST
16676 # Now quote all the things that may contain metacharacters while being
16677 # careful not to overquote the AC_SUBSTed values. We take copies of the
16678 # variables and quote the copies for generation of the libtool script.
16679 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16680 SED SHELL STRIP \
16681 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16682 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16683 deplibs_check_method reload_flag reload_cmds need_locks \
16684 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16685 lt_cv_sys_global_symbol_to_c_name_address \
16686 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16687 old_postinstall_cmds old_postuninstall_cmds \
16688 compiler_CXX \
16689 CC_CXX \
16690 LD_CXX \
16691 lt_prog_compiler_wl_CXX \
16692 lt_prog_compiler_pic_CXX \
16693 lt_prog_compiler_static_CXX \
16694 lt_prog_compiler_no_builtin_flag_CXX \
16695 export_dynamic_flag_spec_CXX \
16696 thread_safe_flag_spec_CXX \
16697 whole_archive_flag_spec_CXX \
16698 enable_shared_with_static_runtimes_CXX \
16699 old_archive_cmds_CXX \
16700 old_archive_from_new_cmds_CXX \
16701 predep_objects_CXX \
16702 postdep_objects_CXX \
16703 predeps_CXX \
16704 postdeps_CXX \
16705 compiler_lib_search_path_CXX \
16706 compiler_lib_search_dirs_CXX \
16707 archive_cmds_CXX \
16708 archive_expsym_cmds_CXX \
16709 postinstall_cmds_CXX \
16710 postuninstall_cmds_CXX \
16711 old_archive_from_expsyms_cmds_CXX \
16712 allow_undefined_flag_CXX \
16713 no_undefined_flag_CXX \
16714 export_symbols_cmds_CXX \
16715 hardcode_libdir_flag_spec_CXX \
16716 hardcode_libdir_flag_spec_ld_CXX \
16717 hardcode_libdir_separator_CXX \
16718 hardcode_automatic_CXX \
16719 module_cmds_CXX \
16720 module_expsym_cmds_CXX \
16721 lt_cv_prog_compiler_c_o_CXX \
16722 fix_srcfile_path_CXX \
16723 exclude_expsyms_CXX \
16724 include_expsyms_CXX; do
16726 case $var in
16727 old_archive_cmds_CXX | \
16728 old_archive_from_new_cmds_CXX | \
16729 archive_cmds_CXX | \
16730 archive_expsym_cmds_CXX | \
16731 module_cmds_CXX | \
16732 module_expsym_cmds_CXX | \
16733 old_archive_from_expsyms_cmds_CXX | \
16734 export_symbols_cmds_CXX | \
16735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16736 postinstall_cmds | postuninstall_cmds | \
16737 old_postinstall_cmds | old_postuninstall_cmds | \
16738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16739 # Double-quote double-evaled strings.
16740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16745 esac
16746 done
16748 case $lt_echo in
16749 *'\$0 --fallback-echo"')
16750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16752 esac
16754 cfgfile="$ofile"
16756 cat <<__EOF__ >> "$cfgfile"
16757 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761 # Shell to use when invoking shell scripts.
16762 SHELL=$lt_SHELL
16764 # Whether or not to build shared libraries.
16765 build_libtool_libs=$enable_shared
16767 # Whether or not to build static libraries.
16768 build_old_libs=$enable_static
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16773 # Whether or not to disallow shared libs when runtime libs are static
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16776 # Whether or not to optimize for fast installation.
16777 fast_install=$enable_fast_install
16779 # The host system.
16780 host_alias=$host_alias
16781 host=$host
16782 host_os=$host_os
16784 # The build system.
16785 build_alias=$build_alias
16786 build=$build
16787 build_os=$build_os
16789 # An echo program that does not interpret backslashes.
16790 echo=$lt_echo
16792 # The archiver.
16793 AR=$lt_AR
16794 AR_FLAGS=$lt_AR_FLAGS
16796 # A C compiler.
16797 LTCC=$lt_LTCC
16799 # LTCC compiler flags.
16800 LTCFLAGS=$lt_LTCFLAGS
16802 # A language-specific compiler.
16803 CC=$lt_compiler_CXX
16805 # Is the compiler the GNU C compiler?
16806 with_gcc=$GCC_CXX
16808 # An ERE matcher.
16809 EGREP=$lt_EGREP
16811 # The linker used to build libraries.
16812 LD=$lt_LD_CXX
16814 # Whether we need hard or soft links.
16815 LN_S=$lt_LN_S
16817 # A BSD-compatible nm program.
16818 NM=$lt_NM
16820 # A symbol stripping program
16821 STRIP=$lt_STRIP
16823 # Used to examine libraries when file_magic_cmd begins "file"
16824 MAGIC_CMD=$MAGIC_CMD
16826 # Used on cygwin: DLL creation program.
16827 DLLTOOL="$DLLTOOL"
16829 # Used on cygwin: object dumper.
16830 OBJDUMP="$OBJDUMP"
16832 # Used on cygwin: assembler.
16833 AS="$AS"
16835 # The name of the directory that contains temporary libtool files.
16836 objdir=$objdir
16838 # How to create reloadable object files.
16839 reload_flag=$lt_reload_flag
16840 reload_cmds=$lt_reload_cmds
16842 # How to pass a linker flag through the compiler.
16843 wl=$lt_lt_prog_compiler_wl_CXX
16845 # Object file suffix (normally "o").
16846 objext="$ac_objext"
16848 # Old archive suffix (normally "a").
16849 libext="$libext"
16851 # Shared library suffix (normally ".so").
16852 shrext_cmds='$shrext_cmds'
16854 # Executable file suffix (normally "").
16855 exeext="$exeext"
16857 # Additional compiler flags for building library objects.
16858 pic_flag=$lt_lt_prog_compiler_pic_CXX
16859 pic_mode=$pic_mode
16861 # What is the maximum length of a command?
16862 max_cmd_len=$lt_cv_sys_max_cmd_len
16864 # Does compiler simultaneously support -c and -o options?
16865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16867 # Must we lock files when doing compilation?
16868 need_locks=$lt_need_locks
16870 # Do we need the lib prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16876 # Whether dlopen is supported.
16877 dlopen_support=$enable_dlopen
16879 # Whether dlopen of programs is supported.
16880 dlopen_self=$enable_dlopen_self
16882 # Whether dlopen of statically linked programs is supported.
16883 dlopen_self_static=$enable_dlopen_self_static
16885 # Compiler flag to prevent dynamic linking.
16886 link_static_flag=$lt_lt_prog_compiler_static_CXX
16888 # Compiler flag to turn off builtin functions.
16889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16891 # Compiler flag to allow reflexive dlopens.
16892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16894 # Compiler flag to generate shared objects directly from archives.
16895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16897 # Compiler flag to generate thread-safe objects.
16898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16900 # Library versioning type.
16901 version_type=$version_type
16903 # Format of library name prefix.
16904 libname_spec=$lt_libname_spec
16906 # List of archive names. First name is the real one, the rest are links.
16907 # The last name is the one that the linker finds with -lNAME.
16908 library_names_spec=$lt_library_names_spec
16910 # The coded name of the library, if different from the real name.
16911 soname_spec=$lt_soname_spec
16913 # Commands used to build and install an old-style archive.
16914 RANLIB=$lt_RANLIB
16915 old_archive_cmds=$lt_old_archive_cmds_CXX
16916 old_postinstall_cmds=$lt_old_postinstall_cmds
16917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16919 # Create an old-style archive from a shared archive.
16920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16922 # Create a temporary old-style archive to link instead of a shared archive.
16923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16925 # Commands used to build and install a shared archive.
16926 archive_cmds=$lt_archive_cmds_CXX
16927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16928 postinstall_cmds=$lt_postinstall_cmds
16929 postuninstall_cmds=$lt_postuninstall_cmds
16931 # Commands used to build a loadable module (assumed same as above if empty)
16932 module_cmds=$lt_module_cmds_CXX
16933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16939 # Dependencies to place before the objects being linked to create a
16940 # shared library.
16941 predep_objects=$lt_predep_objects_CXX
16943 # Dependencies to place after the objects being linked to create a
16944 # shared library.
16945 postdep_objects=$lt_postdep_objects_CXX
16947 # Dependencies to place before the objects being linked to create a
16948 # shared library.
16949 predeps=$lt_predeps_CXX
16951 # Dependencies to place after the objects being linked to create a
16952 # shared library.
16953 postdeps=$lt_postdeps_CXX
16955 # The directories searched by this compiler when creating a shared
16956 # library
16957 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16959 # The library search path used internally by the compiler when linking
16960 # a shared library.
16961 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16963 # Method to check whether dependent libraries are shared objects.
16964 deplibs_check_method=$lt_deplibs_check_method
16966 # Command to use when deplibs_check_method == file_magic.
16967 file_magic_cmd=$lt_file_magic_cmd
16969 # Flag that allows shared libraries with undefined symbols to be built.
16970 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16972 # Flag that forces no undefined symbols.
16973 no_undefined_flag=$lt_no_undefined_flag_CXX
16975 # Commands used to finish a libtool library installation in a directory.
16976 finish_cmds=$lt_finish_cmds
16978 # Same as above, but a single script fragment to be evaled but not shown.
16979 finish_eval=$lt_finish_eval
16981 # Take the output of nm and produce a listing of raw symbols and C names.
16982 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16984 # Transform the output of nm in a proper C declaration
16985 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16987 # Transform the output of nm in a C name address pair
16988 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16990 # This is the shared library runtime path variable.
16991 runpath_var=$runpath_var
16993 # This is the shared library path variable.
16994 shlibpath_var=$shlibpath_var
16996 # Is shlibpath searched before the hard-coded library search path?
16997 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16999 # How to hardcode a shared library path into an executable.
17000 hardcode_action=$hardcode_action_CXX
17002 # Whether we should hardcode library paths into libraries.
17003 hardcode_into_libs=$hardcode_into_libs
17005 # Flag to hardcode \$libdir into a binary during linking.
17006 # This must work even if \$libdir does not exist.
17007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17009 # If ld is used when linking, flag to hardcode \$libdir into
17010 # a binary during linking. This must work even if \$libdir does
17011 # not exist.
17012 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17014 # Whether we need a single -rpath flag with a separated argument.
17015 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17017 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17018 # resulting binary.
17019 hardcode_direct=$hardcode_direct_CXX
17021 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17022 # resulting binary.
17023 hardcode_minus_L=$hardcode_minus_L_CXX
17025 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17026 # the resulting binary.
17027 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17029 # Set to yes if building a shared library automatically hardcodes DIR into the library
17030 # and all subsequent libraries and executables linked against it.
17031 hardcode_automatic=$hardcode_automatic_CXX
17033 # Variables whose values should be saved in libtool wrapper scripts and
17034 # restored at relink time.
17035 variables_saved_for_relink="$variables_saved_for_relink"
17037 # Whether libtool must link a program against all its dependency libraries.
17038 link_all_deplibs=$link_all_deplibs_CXX
17040 # Compile-time system search path for libraries
17041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17043 # Run-time system search path for libraries
17044 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17046 # Fix the shell variable \$srcfile for the compiler.
17047 fix_srcfile_path=$lt_fix_srcfile_path
17049 # Set to yes if exported symbols are required.
17050 always_export_symbols=$always_export_symbols_CXX
17052 # The commands to list exported symbols.
17053 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17055 # The commands to extract the exported symbol list from a shared archive.
17056 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17058 # Symbols that should not be listed in the preloaded symbols.
17059 exclude_expsyms=$lt_exclude_expsyms_CXX
17061 # Symbols that must always be exported.
17062 include_expsyms=$lt_include_expsyms_CXX
17064 # ### END LIBTOOL TAG CONFIG: $tagname
17066 __EOF__
17069 else
17070 # If there is no Makefile yet, we rely on a make rule to execute
17071 # `config.status --recheck' to rerun these tests and create the
17072 # libtool script then.
17073 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17074 if test -f "$ltmain_in"; then
17075 test -f Makefile && make "$ltmain"
17080 ac_ext=c
17081 ac_cpp='$CPP $CPPFLAGS'
17082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17086 CC=$lt_save_CC
17087 LDCXX=$LD
17088 LD=$lt_save_LD
17089 GCC=$lt_save_GCC
17090 with_gnu_ldcxx=$with_gnu_ld
17091 with_gnu_ld=$lt_save_with_gnu_ld
17092 lt_cv_path_LDCXX=$lt_cv_path_LD
17093 lt_cv_path_LD=$lt_save_path_LD
17094 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17095 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17097 else
17098 tagname=""
17102 F77)
17103 if test -n "$F77" && test "X$F77" != "Xno"; then
17105 ac_ext=f
17106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17111 archive_cmds_need_lc_F77=no
17112 allow_undefined_flag_F77=
17113 always_export_symbols_F77=no
17114 archive_expsym_cmds_F77=
17115 export_dynamic_flag_spec_F77=
17116 hardcode_direct_F77=no
17117 hardcode_libdir_flag_spec_F77=
17118 hardcode_libdir_flag_spec_ld_F77=
17119 hardcode_libdir_separator_F77=
17120 hardcode_minus_L_F77=no
17121 hardcode_automatic_F77=no
17122 module_cmds_F77=
17123 module_expsym_cmds_F77=
17124 link_all_deplibs_F77=unknown
17125 old_archive_cmds_F77=$old_archive_cmds
17126 no_undefined_flag_F77=
17127 whole_archive_flag_spec_F77=
17128 enable_shared_with_static_runtimes_F77=no
17130 # Source file extension for f77 test sources.
17131 ac_ext=f
17133 # Object file extension for compiled f77 test sources.
17134 objext=o
17135 objext_F77=$objext
17137 # Code to be used in simple compile tests
17138 lt_simple_compile_test_code="\
17139 subroutine t
17140 return
17144 # Code to be used in simple link tests
17145 lt_simple_link_test_code="\
17146 program t
17150 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17152 # If no C compiler was specified, use CC.
17153 LTCC=${LTCC-"$CC"}
17155 # If no C compiler flags were specified, use CFLAGS.
17156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17158 # Allow CC to be a program name with arguments.
17159 compiler=$CC
17162 # save warnings/boilerplate of simple test code
17163 ac_outfile=conftest.$ac_objext
17164 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17165 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17166 _lt_compiler_boilerplate=`cat conftest.err`
17167 $rm conftest*
17169 ac_outfile=conftest.$ac_objext
17170 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17171 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17172 _lt_linker_boilerplate=`cat conftest.err`
17173 $rm -r conftest*
17176 # Allow CC to be a program name with arguments.
17177 lt_save_CC="$CC"
17178 CC=${F77-"f77"}
17179 compiler=$CC
17180 compiler_F77=$CC
17181 for cc_temp in $compiler""; do
17182 case $cc_temp in
17183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17185 \-*) ;;
17186 *) break;;
17187 esac
17188 done
17189 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17192 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17194 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
17195 echo "${ECHO_T}$can_build_shared" >&6; }
17197 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17199 test "$can_build_shared" = "no" && enable_shared=no
17201 # On AIX, shared libraries and static libraries use the same namespace, and
17202 # are all built from PIC.
17203 case $host_os in
17204 aix3*)
17205 test "$enable_shared" = yes && enable_static=no
17206 if test -n "$RANLIB"; then
17207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17208 postinstall_cmds='$RANLIB $lib'
17211 aix[4-9]*)
17212 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17213 test "$enable_shared" = yes && enable_static=no
17216 esac
17217 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17218 echo "${ECHO_T}$enable_shared" >&6; }
17220 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17221 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17222 # Make sure either enable_shared or enable_static is yes.
17223 test "$enable_shared" = yes || enable_static=yes
17224 { echo "$as_me:$LINENO: result: $enable_static" >&5
17225 echo "${ECHO_T}$enable_static" >&6; }
17227 GCC_F77="$G77"
17228 LD_F77="$LD"
17230 lt_prog_compiler_wl_F77=
17231 lt_prog_compiler_pic_F77=
17232 lt_prog_compiler_static_F77=
17234 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17235 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17237 if test "$GCC" = yes; then
17238 lt_prog_compiler_wl_F77='-Wl,'
17239 lt_prog_compiler_static_F77='-static'
17241 case $host_os in
17242 aix*)
17243 # All AIX code is PIC.
17244 if test "$host_cpu" = ia64; then
17245 # AIX 5 now supports IA64 processor
17246 lt_prog_compiler_static_F77='-Bstatic'
17250 amigaos*)
17251 # FIXME: we need at least 68020 code to build shared libraries, but
17252 # adding the `-m68020' flag to GCC prevents building anything better,
17253 # like `-m68040'.
17254 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17257 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17258 # PIC is the default for these OSes.
17261 mingw* | cygwin* | pw32* | os2*)
17262 # This hack is so that the source file can tell whether it is being
17263 # built for inclusion in a dll (and should export symbols for example).
17264 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17265 # (--disable-auto-import) libraries
17266 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17269 darwin* | rhapsody*)
17270 # PIC is the default on this platform
17271 # Common symbols not allowed in MH_DYLIB files
17272 lt_prog_compiler_pic_F77='-fno-common'
17275 interix[3-9]*)
17276 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17277 # Instead, we relocate shared libraries at runtime.
17280 msdosdjgpp*)
17281 # Just because we use GCC doesn't mean we suddenly get shared libraries
17282 # on systems that don't support them.
17283 lt_prog_compiler_can_build_shared_F77=no
17284 enable_shared=no
17287 sysv4*MP*)
17288 if test -d /usr/nec; then
17289 lt_prog_compiler_pic_F77=-Kconform_pic
17293 hpux*)
17294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17295 # not for PA HP-UX.
17296 case $host_cpu in
17297 hppa*64*|ia64*)
17298 # +Z the default
17301 lt_prog_compiler_pic_F77='-fPIC'
17303 esac
17307 lt_prog_compiler_pic_F77='-fPIC'
17309 esac
17310 else
17311 # PORTME Check for flag to pass linker flags through the system compiler.
17312 case $host_os in
17313 aix*)
17314 lt_prog_compiler_wl_F77='-Wl,'
17315 if test "$host_cpu" = ia64; then
17316 # AIX 5 now supports IA64 processor
17317 lt_prog_compiler_static_F77='-Bstatic'
17318 else
17319 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17322 darwin*)
17323 # PIC is the default on this platform
17324 # Common symbols not allowed in MH_DYLIB files
17325 case $cc_basename in
17326 xlc*)
17327 lt_prog_compiler_pic_F77='-qnocommon'
17328 lt_prog_compiler_wl_F77='-Wl,'
17330 esac
17333 mingw* | cygwin* | pw32* | os2*)
17334 # This hack is so that the source file can tell whether it is being
17335 # built for inclusion in a dll (and should export symbols for example).
17336 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17339 hpux9* | hpux10* | hpux11*)
17340 lt_prog_compiler_wl_F77='-Wl,'
17341 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17342 # not for PA HP-UX.
17343 case $host_cpu in
17344 hppa*64*|ia64*)
17345 # +Z the default
17348 lt_prog_compiler_pic_F77='+Z'
17350 esac
17351 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17352 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17355 irix5* | irix6* | nonstopux*)
17356 lt_prog_compiler_wl_F77='-Wl,'
17357 # PIC (with -KPIC) is the default.
17358 lt_prog_compiler_static_F77='-non_shared'
17361 newsos6)
17362 lt_prog_compiler_pic_F77='-KPIC'
17363 lt_prog_compiler_static_F77='-Bstatic'
17366 linux* | k*bsd*-gnu)
17367 case $cc_basename in
17368 icc* | ecc*)
17369 lt_prog_compiler_wl_F77='-Wl,'
17370 lt_prog_compiler_pic_F77='-KPIC'
17371 lt_prog_compiler_static_F77='-static'
17373 pgcc* | pgf77* | pgf90* | pgf95*)
17374 # Portland Group compilers (*not* the Pentium gcc compiler,
17375 # which looks to be a dead project)
17376 lt_prog_compiler_wl_F77='-Wl,'
17377 lt_prog_compiler_pic_F77='-fpic'
17378 lt_prog_compiler_static_F77='-Bstatic'
17380 ccc*)
17381 lt_prog_compiler_wl_F77='-Wl,'
17382 # All Alpha code is PIC.
17383 lt_prog_compiler_static_F77='-non_shared'
17386 case `$CC -V 2>&1 | sed 5q` in
17387 *Sun\ C*)
17388 # Sun C 5.9
17389 lt_prog_compiler_pic_F77='-KPIC'
17390 lt_prog_compiler_static_F77='-Bstatic'
17391 lt_prog_compiler_wl_F77='-Wl,'
17393 *Sun\ F*)
17394 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17395 lt_prog_compiler_pic_F77='-KPIC'
17396 lt_prog_compiler_static_F77='-Bstatic'
17397 lt_prog_compiler_wl_F77=''
17399 esac
17401 esac
17404 osf3* | osf4* | osf5*)
17405 lt_prog_compiler_wl_F77='-Wl,'
17406 # All OSF/1 code is PIC.
17407 lt_prog_compiler_static_F77='-non_shared'
17410 rdos*)
17411 lt_prog_compiler_static_F77='-non_shared'
17414 solaris*)
17415 lt_prog_compiler_pic_F77='-KPIC'
17416 lt_prog_compiler_static_F77='-Bstatic'
17417 case $cc_basename in
17418 f77* | f90* | f95*)
17419 lt_prog_compiler_wl_F77='-Qoption ld ';;
17421 lt_prog_compiler_wl_F77='-Wl,';;
17422 esac
17425 sunos4*)
17426 lt_prog_compiler_wl_F77='-Qoption ld '
17427 lt_prog_compiler_pic_F77='-PIC'
17428 lt_prog_compiler_static_F77='-Bstatic'
17431 sysv4 | sysv4.2uw2* | sysv4.3*)
17432 lt_prog_compiler_wl_F77='-Wl,'
17433 lt_prog_compiler_pic_F77='-KPIC'
17434 lt_prog_compiler_static_F77='-Bstatic'
17437 sysv4*MP*)
17438 if test -d /usr/nec ;then
17439 lt_prog_compiler_pic_F77='-Kconform_pic'
17440 lt_prog_compiler_static_F77='-Bstatic'
17444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17445 lt_prog_compiler_wl_F77='-Wl,'
17446 lt_prog_compiler_pic_F77='-KPIC'
17447 lt_prog_compiler_static_F77='-Bstatic'
17450 unicos*)
17451 lt_prog_compiler_wl_F77='-Wl,'
17452 lt_prog_compiler_can_build_shared_F77=no
17455 uts4*)
17456 lt_prog_compiler_pic_F77='-pic'
17457 lt_prog_compiler_static_F77='-Bstatic'
17461 lt_prog_compiler_can_build_shared_F77=no
17463 esac
17466 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17467 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17470 # Check to make sure the PIC flag actually works.
17472 if test -n "$lt_prog_compiler_pic_F77"; then
17474 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17475 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17476 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 else
17479 lt_cv_prog_compiler_pic_works_F77=no
17480 ac_outfile=conftest.$ac_objext
17481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17482 lt_compiler_flag="$lt_prog_compiler_pic_F77"
17483 # Insert the option either (1) after the last *FLAGS variable, or
17484 # (2) before a word containing "conftest.", or (3) at the end.
17485 # Note that $ac_compile itself does not contain backslashes and begins
17486 # with a dollar sign (not a hyphen), so the echo should work correctly.
17487 # The option is referenced via a variable to avoid confusing sed.
17488 lt_compile=`echo "$ac_compile" | $SED \
17489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17491 -e 's:$: $lt_compiler_flag:'`
17492 (eval echo "\"\$as_me:17492: $lt_compile\"" >&5)
17493 (eval "$lt_compile" 2>conftest.err)
17494 ac_status=$?
17495 cat conftest.err >&5
17496 echo "$as_me:17496: \$? = $ac_status" >&5
17497 if (exit $ac_status) && test -s "$ac_outfile"; then
17498 # The compiler can only warn and ignore the option if not recognized
17499 # So say no if there are warnings other than the usual output.
17500 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17502 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17503 lt_cv_prog_compiler_pic_works_F77=yes
17506 $rm conftest*
17509 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17510 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
17512 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17513 case $lt_prog_compiler_pic_F77 in
17514 "" | " "*) ;;
17515 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17516 esac
17517 else
17518 lt_prog_compiler_pic_F77=
17519 lt_prog_compiler_can_build_shared_F77=no
17523 case $host_os in
17524 # For platforms which do not support PIC, -DPIC is meaningless:
17525 *djgpp*)
17526 lt_prog_compiler_pic_F77=
17529 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17531 esac
17534 # Check to make sure the static flag actually works.
17536 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17537 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17538 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17539 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 lt_cv_prog_compiler_static_works_F77=no
17543 save_LDFLAGS="$LDFLAGS"
17544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17547 # The linker can only warn and ignore the option if not recognized
17548 # So say no if there are warnings
17549 if test -s conftest.err; then
17550 # Append any errors to the config.log.
17551 cat conftest.err 1>&5
17552 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17554 if diff conftest.exp conftest.er2 >/dev/null; then
17555 lt_cv_prog_compiler_static_works_F77=yes
17557 else
17558 lt_cv_prog_compiler_static_works_F77=yes
17561 $rm -r conftest*
17562 LDFLAGS="$save_LDFLAGS"
17565 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
17566 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
17568 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17570 else
17571 lt_prog_compiler_static_F77=
17575 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17577 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580 lt_cv_prog_compiler_c_o_F77=no
17581 $rm -r conftest 2>/dev/null
17582 mkdir conftest
17583 cd conftest
17584 mkdir out
17585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17587 lt_compiler_flag="-o out/conftest2.$ac_objext"
17588 # Insert the option either (1) after the last *FLAGS variable, or
17589 # (2) before a word containing "conftest.", or (3) at the end.
17590 # Note that $ac_compile itself does not contain backslashes and begins
17591 # with a dollar sign (not a hyphen), so the echo should work correctly.
17592 lt_compile=`echo "$ac_compile" | $SED \
17593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17595 -e 's:$: $lt_compiler_flag:'`
17596 (eval echo "\"\$as_me:17596: $lt_compile\"" >&5)
17597 (eval "$lt_compile" 2>out/conftest.err)
17598 ac_status=$?
17599 cat out/conftest.err >&5
17600 echo "$as_me:17600: \$? = $ac_status" >&5
17601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17602 then
17603 # The compiler can only warn and ignore the option if not recognized
17604 # So say no if there are warnings
17605 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17608 lt_cv_prog_compiler_c_o_F77=yes
17611 chmod u+w . 2>&5
17612 $rm conftest*
17613 # SGI C++ compiler will create directory out/ii_files/ for
17614 # template instantiation
17615 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17616 $rm out/* && rmdir out
17617 cd ..
17618 rmdir conftest
17619 $rm conftest*
17622 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17623 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17626 hard_links="nottested"
17627 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17628 # do not overwrite the value of need_locks provided by the user
17629 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17630 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17631 hard_links=yes
17632 $rm conftest*
17633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17634 touch conftest.a
17635 ln conftest.a conftest.b 2>&5 || hard_links=no
17636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17637 { echo "$as_me:$LINENO: result: $hard_links" >&5
17638 echo "${ECHO_T}$hard_links" >&6; }
17639 if test "$hard_links" = no; then
17640 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17641 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17642 need_locks=warn
17644 else
17645 need_locks=no
17648 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17649 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17651 runpath_var=
17652 allow_undefined_flag_F77=
17653 enable_shared_with_static_runtimes_F77=no
17654 archive_cmds_F77=
17655 archive_expsym_cmds_F77=
17656 old_archive_From_new_cmds_F77=
17657 old_archive_from_expsyms_cmds_F77=
17658 export_dynamic_flag_spec_F77=
17659 whole_archive_flag_spec_F77=
17660 thread_safe_flag_spec_F77=
17661 hardcode_libdir_flag_spec_F77=
17662 hardcode_libdir_flag_spec_ld_F77=
17663 hardcode_libdir_separator_F77=
17664 hardcode_direct_F77=no
17665 hardcode_minus_L_F77=no
17666 hardcode_shlibpath_var_F77=unsupported
17667 link_all_deplibs_F77=unknown
17668 hardcode_automatic_F77=no
17669 module_cmds_F77=
17670 module_expsym_cmds_F77=
17671 always_export_symbols_F77=no
17672 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17673 # include_expsyms should be a list of space-separated symbols to be *always*
17674 # included in the symbol list
17675 include_expsyms_F77=
17676 # exclude_expsyms can be an extended regexp of symbols to exclude
17677 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17678 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17679 # as well as any symbol that contains `d'.
17680 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17681 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17682 # platforms (ab)use it in PIC code, but their linkers get confused if
17683 # the symbol is explicitly referenced. Since portable code cannot
17684 # rely on this symbol name, it's probably fine to never include it in
17685 # preloaded symbol tables.
17686 # Exclude shared library initialization/finalization symbols.
17687 extract_expsyms_cmds=
17688 # Just being paranoid about ensuring that cc_basename is set.
17689 for cc_temp in $compiler""; do
17690 case $cc_temp in
17691 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17692 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17693 \-*) ;;
17694 *) break;;
17695 esac
17696 done
17697 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17699 case $host_os in
17700 cygwin* | mingw* | pw32*)
17701 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17702 # When not using gcc, we currently assume that we are using
17703 # Microsoft Visual C++.
17704 if test "$GCC" != yes; then
17705 with_gnu_ld=no
17708 interix*)
17709 # we just hope/assume this is gcc and not c89 (= MSVC++)
17710 with_gnu_ld=yes
17712 openbsd*)
17713 with_gnu_ld=no
17715 esac
17717 ld_shlibs_F77=yes
17718 if test "$with_gnu_ld" = yes; then
17719 # If archive_cmds runs LD, not CC, wlarc should be empty
17720 wlarc='${wl}'
17722 # Set some defaults for GNU ld with shared library support. These
17723 # are reset later if shared libraries are not supported. Putting them
17724 # here allows them to be overridden if necessary.
17725 runpath_var=LD_RUN_PATH
17726 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17727 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17728 # ancient GNU ld didn't support --whole-archive et. al.
17729 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17730 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17731 else
17732 whole_archive_flag_spec_F77=
17734 supports_anon_versioning=no
17735 case `$LD -v 2>/dev/null` in
17736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17739 *\ 2.11.*) ;; # other 2.11 versions
17740 *) supports_anon_versioning=yes ;;
17741 esac
17743 # See if GNU ld supports shared libraries.
17744 case $host_os in
17745 aix[3-9]*)
17746 # On AIX/PPC, the GNU linker is very broken
17747 if test "$host_cpu" != ia64; then
17748 ld_shlibs_F77=no
17749 cat <<EOF 1>&2
17751 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17752 *** to be unable to reliably create shared libraries on AIX.
17753 *** Therefore, libtool is disabling shared libraries support. If you
17754 *** really care for shared libraries, you may want to modify your PATH
17755 *** so that a non-GNU linker is found, and then restart.
17761 amigaos*)
17762 archive_cmds_F77='$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)'
17763 hardcode_libdir_flag_spec_F77='-L$libdir'
17764 hardcode_minus_L_F77=yes
17766 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17767 # that the semantics of dynamic libraries on AmigaOS, at least up
17768 # to version 4, is to share data among multiple programs linked
17769 # with the same dynamic library. Since this doesn't match the
17770 # behavior of shared libraries on other platforms, we can't use
17771 # them.
17772 ld_shlibs_F77=no
17775 beos*)
17776 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17777 allow_undefined_flag_F77=unsupported
17778 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17779 # support --undefined. This deserves some investigation. FIXME
17780 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17781 else
17782 ld_shlibs_F77=no
17786 cygwin* | mingw* | pw32*)
17787 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17788 # as there is no search path for DLLs.
17789 hardcode_libdir_flag_spec_F77='-L$libdir'
17790 allow_undefined_flag_F77=unsupported
17791 always_export_symbols_F77=no
17792 enable_shared_with_static_runtimes_F77=yes
17793 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17795 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17796 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17797 # If the export-symbols file already is a .def file (1st line
17798 # is EXPORTS), use it as is; otherwise, prepend...
17799 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17800 cp $export_symbols $output_objdir/$soname.def;
17801 else
17802 echo EXPORTS > $output_objdir/$soname.def;
17803 cat $export_symbols >> $output_objdir/$soname.def;
17805 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17806 else
17807 ld_shlibs_F77=no
17811 interix[3-9]*)
17812 hardcode_direct_F77=no
17813 hardcode_shlibpath_var_F77=no
17814 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17815 export_dynamic_flag_spec_F77='${wl}-E'
17816 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17817 # Instead, shared libraries are loaded at an image base (0x10000000 by
17818 # default) and relocated if they conflict, which is a slow very memory
17819 # consuming and fragmenting process. To avoid this, we pick a random,
17820 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17821 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17822 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17823 archive_expsym_cmds_F77='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'
17826 gnu* | linux* | k*bsd*-gnu)
17827 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17828 tmp_addflag=
17829 case $cc_basename,$host_cpu in
17830 pgcc*) # Portland Group C compiler
17831 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17832 tmp_addflag=' $pic_flag'
17834 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17835 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17836 tmp_addflag=' $pic_flag -Mnomain' ;;
17837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17838 tmp_addflag=' -i_dynamic' ;;
17839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17840 tmp_addflag=' -i_dynamic -nofor_main' ;;
17841 ifc* | ifort*) # Intel Fortran compiler
17842 tmp_addflag=' -nofor_main' ;;
17843 esac
17844 case `$CC -V 2>&1 | sed 5q` in
17845 *Sun\ C*) # Sun C 5.9
17846 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17847 tmp_sharedflag='-G' ;;
17848 *Sun\ F*) # Sun Fortran 8.3
17849 tmp_sharedflag='-G' ;;
17851 tmp_sharedflag='-shared' ;;
17852 esac
17853 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17855 if test $supports_anon_versioning = yes; then
17856 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17858 $echo "local: *; };" >> $output_objdir/$libname.ver~
17859 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17861 link_all_deplibs_F77=no
17862 else
17863 ld_shlibs_F77=no
17867 netbsd* | netbsdelf*-gnu)
17868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17869 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17870 wlarc=
17871 else
17872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17877 solaris*)
17878 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17879 ld_shlibs_F77=no
17880 cat <<EOF 1>&2
17882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17883 *** create shared libraries on Solaris systems. Therefore, libtool
17884 *** is disabling shared libraries support. We urge you to upgrade GNU
17885 *** binutils to release 2.9.1 or newer. Another option is to modify
17886 *** your PATH or compiler configuration so that the native linker is
17887 *** used, and then restart.
17890 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17892 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17893 else
17894 ld_shlibs_F77=no
17898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17899 case `$LD -v 2>&1` in
17900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17901 ld_shlibs_F77=no
17902 cat <<_LT_EOF 1>&2
17904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17905 *** reliably create shared libraries on SCO systems. Therefore, libtool
17906 *** is disabling shared libraries support. We urge you to upgrade GNU
17907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17908 *** your PATH or compiler configuration so that the native linker is
17909 *** used, and then restart.
17911 _LT_EOF
17914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17915 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17916 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17917 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17918 else
17919 ld_shlibs_F77=no
17922 esac
17925 sunos4*)
17926 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17927 wlarc=
17928 hardcode_direct_F77=yes
17929 hardcode_shlibpath_var_F77=no
17933 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17934 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17935 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17936 else
17937 ld_shlibs_F77=no
17940 esac
17942 if test "$ld_shlibs_F77" = no; then
17943 runpath_var=
17944 hardcode_libdir_flag_spec_F77=
17945 export_dynamic_flag_spec_F77=
17946 whole_archive_flag_spec_F77=
17948 else
17949 # PORTME fill in a description of your system's linker (not GNU ld)
17950 case $host_os in
17951 aix3*)
17952 allow_undefined_flag_F77=unsupported
17953 always_export_symbols_F77=yes
17954 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17955 # Note: this linker hardcodes the directories in LIBPATH if there
17956 # are no directories specified by -L.
17957 hardcode_minus_L_F77=yes
17958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17959 # Neither direct hardcoding nor static linking is supported with a
17960 # broken collect2.
17961 hardcode_direct_F77=unsupported
17965 aix[4-9]*)
17966 if test "$host_cpu" = ia64; then
17967 # On IA64, the linker does run time linking by default, so we don't
17968 # have to do anything special.
17969 aix_use_runtimelinking=no
17970 exp_sym_flag='-Bexport'
17971 no_entry_flag=""
17972 else
17973 # If we're using GNU nm, then we don't want the "-C" option.
17974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17975 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17976 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17977 else
17978 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17980 aix_use_runtimelinking=no
17982 # Test if we are trying to use run time linking or normal
17983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17984 # need to do runtime linking.
17985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17986 for ld_flag in $LDFLAGS; do
17987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17988 aix_use_runtimelinking=yes
17989 break
17991 done
17993 esac
17995 exp_sym_flag='-bexport'
17996 no_entry_flag='-bnoentry'
17999 # When large executables or shared objects are built, AIX ld can
18000 # have problems creating the table of contents. If linking a library
18001 # or program results in "error TOC overflow" add -mminimal-toc to
18002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18005 archive_cmds_F77=''
18006 hardcode_direct_F77=yes
18007 hardcode_libdir_separator_F77=':'
18008 link_all_deplibs_F77=yes
18010 if test "$GCC" = yes; then
18011 case $host_os in aix4.[012]|aix4.[012].*)
18012 # We only want to do this on AIX 4.2 and lower, the check
18013 # below for broken collect2 doesn't work under 4.3+
18014 collect2name=`${CC} -print-prog-name=collect2`
18015 if test -f "$collect2name" && \
18016 strings "$collect2name" | grep resolve_lib_name >/dev/null
18017 then
18018 # We have reworked collect2
18020 else
18021 # We have old collect2
18022 hardcode_direct_F77=unsupported
18023 # It fails to find uninstalled libraries when the uninstalled
18024 # path is not listed in the libpath. Setting hardcode_minus_L
18025 # to unsupported forces relinking
18026 hardcode_minus_L_F77=yes
18027 hardcode_libdir_flag_spec_F77='-L$libdir'
18028 hardcode_libdir_separator_F77=
18031 esac
18032 shared_flag='-shared'
18033 if test "$aix_use_runtimelinking" = yes; then
18034 shared_flag="$shared_flag "'${wl}-G'
18036 else
18037 # not using gcc
18038 if test "$host_cpu" = ia64; then
18039 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18040 # chokes on -Wl,-G. The following line is correct:
18041 shared_flag='-G'
18042 else
18043 if test "$aix_use_runtimelinking" = yes; then
18044 shared_flag='${wl}-G'
18045 else
18046 shared_flag='${wl}-bM:SRE'
18051 # It seems that -bexpall does not export symbols beginning with
18052 # underscore (_), so it is better to generate a list of symbols to export.
18053 always_export_symbols_F77=yes
18054 if test "$aix_use_runtimelinking" = yes; then
18055 # Warning - without using the other runtime loading flags (-brtl),
18056 # -berok will link without error, but may produce a broken library.
18057 allow_undefined_flag_F77='-berok'
18058 # Determine the default libpath from the value encoded in an empty executable.
18059 cat >conftest.$ac_ext <<_ACEOF
18060 program main
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_f77_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18083 lt_aix_libpath_sed='
18084 /Import File Strings/,/^$/ {
18085 /^0/ {
18086 s/^0 *\(.*\)$/\1/
18090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18091 # Check for a 64-bit object if we didn't find anything.
18092 if test -z "$aix_libpath"; then
18093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18095 else
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18103 conftest$ac_exeext conftest.$ac_ext
18104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18106 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18107 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18108 else
18109 if test "$host_cpu" = ia64; then
18110 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18111 allow_undefined_flag_F77="-z nodefs"
18112 archive_expsym_cmds_F77="\$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"
18113 else
18114 # Determine the default libpath from the value encoded in an empty executable.
18115 cat >conftest.$ac_ext <<_ACEOF
18116 program main
18119 _ACEOF
18120 rm -f conftest.$ac_objext conftest$ac_exeext
18121 if { (ac_try="$ac_link"
18122 case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_link") 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } && {
18134 test -z "$ac_f77_werror_flag" ||
18135 test ! -s conftest.err
18136 } && test -s conftest$ac_exeext &&
18137 $as_test_x conftest$ac_exeext; then
18139 lt_aix_libpath_sed='
18140 /Import File Strings/,/^$/ {
18141 /^0/ {
18142 s/^0 *\(.*\)$/\1/
18146 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18147 # Check for a 64-bit object if we didn't find anything.
18148 if test -z "$aix_libpath"; then
18149 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18151 else
18152 echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18159 conftest$ac_exeext conftest.$ac_ext
18160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18162 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18163 # Warning - without using the other run time loading flags,
18164 # -berok will link without error, but may produce a broken library.
18165 no_undefined_flag_F77=' ${wl}-bernotok'
18166 allow_undefined_flag_F77=' ${wl}-berok'
18167 # Exported symbols can be pulled into shared objects from archives
18168 whole_archive_flag_spec_F77='$convenience'
18169 archive_cmds_need_lc_F77=yes
18170 # This is similar to how AIX traditionally builds its shared libraries.
18171 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18176 amigaos*)
18177 archive_cmds_F77='$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)'
18178 hardcode_libdir_flag_spec_F77='-L$libdir'
18179 hardcode_minus_L_F77=yes
18180 # see comment about different semantics on the GNU ld section
18181 ld_shlibs_F77=no
18184 bsdi[45]*)
18185 export_dynamic_flag_spec_F77=-rdynamic
18188 cygwin* | mingw* | pw32*)
18189 # When not using gcc, we currently assume that we are using
18190 # Microsoft Visual C++.
18191 # hardcode_libdir_flag_spec is actually meaningless, as there is
18192 # no search path for DLLs.
18193 hardcode_libdir_flag_spec_F77=' '
18194 allow_undefined_flag_F77=unsupported
18195 # Tell ltmain to make .lib files, not .a files.
18196 libext=lib
18197 # Tell ltmain to make .dll files, not .so files.
18198 shrext_cmds=".dll"
18199 # FIXME: Setting linknames here is a bad hack.
18200 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18201 # The linker will automatically build a .lib file if we build a DLL.
18202 old_archive_From_new_cmds_F77='true'
18203 # FIXME: Should let the user specify the lib program.
18204 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18205 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18206 enable_shared_with_static_runtimes_F77=yes
18209 darwin* | rhapsody*)
18210 case $host_os in
18211 rhapsody* | darwin1.[012])
18212 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18214 *) # Darwin 1.3 on
18215 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18216 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18217 else
18218 case ${MACOSX_DEPLOYMENT_TARGET} in
18219 10.[012])
18220 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18222 10.*)
18223 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18225 esac
18228 esac
18229 archive_cmds_need_lc_F77=no
18230 hardcode_direct_F77=no
18231 hardcode_automatic_F77=yes
18232 hardcode_shlibpath_var_F77=unsupported
18233 whole_archive_flag_spec_F77=''
18234 link_all_deplibs_F77=yes
18235 if test "$GCC" = yes ; then
18236 output_verbose_link_cmd='echo'
18237 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18238 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18239 archive_expsym_cmds_F77="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}"
18240 module_expsym_cmds_F77="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}"
18241 else
18242 case $cc_basename in
18243 xlc*)
18244 output_verbose_link_cmd='echo'
18245 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18246 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18248 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18249 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18252 ld_shlibs_F77=no
18254 esac
18258 dgux*)
18259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260 hardcode_libdir_flag_spec_F77='-L$libdir'
18261 hardcode_shlibpath_var_F77=no
18264 freebsd1*)
18265 ld_shlibs_F77=no
18268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18269 # support. Future versions do this automatically, but an explicit c++rt0.o
18270 # does not break anything, and helps significantly (at the cost of a little
18271 # extra space).
18272 freebsd2.2*)
18273 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18274 hardcode_libdir_flag_spec_F77='-R$libdir'
18275 hardcode_direct_F77=yes
18276 hardcode_shlibpath_var_F77=no
18279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18280 freebsd2*)
18281 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18282 hardcode_direct_F77=yes
18283 hardcode_minus_L_F77=yes
18284 hardcode_shlibpath_var_F77=no
18287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18288 freebsd* | dragonfly*)
18289 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18290 hardcode_libdir_flag_spec_F77='-R$libdir'
18291 hardcode_direct_F77=yes
18292 hardcode_shlibpath_var_F77=no
18295 hpux9*)
18296 if test "$GCC" = yes; then
18297 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18298 else
18299 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18301 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18302 hardcode_libdir_separator_F77=:
18303 hardcode_direct_F77=yes
18305 # hardcode_minus_L: Not really in the search PATH,
18306 # but as the default location of the library.
18307 hardcode_minus_L_F77=yes
18308 export_dynamic_flag_spec_F77='${wl}-E'
18311 hpux10*)
18312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18313 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18314 else
18315 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18317 if test "$with_gnu_ld" = no; then
18318 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18319 hardcode_libdir_separator_F77=:
18321 hardcode_direct_F77=yes
18322 export_dynamic_flag_spec_F77='${wl}-E'
18324 # hardcode_minus_L: Not really in the search PATH,
18325 # but as the default location of the library.
18326 hardcode_minus_L_F77=yes
18330 hpux11*)
18331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18332 case $host_cpu in
18333 hppa*64*)
18334 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18336 ia64*)
18337 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18340 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18342 esac
18343 else
18344 case $host_cpu in
18345 hppa*64*)
18346 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 ia64*)
18349 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18352 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18354 esac
18356 if test "$with_gnu_ld" = no; then
18357 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18358 hardcode_libdir_separator_F77=:
18360 case $host_cpu in
18361 hppa*64*|ia64*)
18362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18363 hardcode_direct_F77=no
18364 hardcode_shlibpath_var_F77=no
18367 hardcode_direct_F77=yes
18368 export_dynamic_flag_spec_F77='${wl}-E'
18370 # hardcode_minus_L: Not really in the search PATH,
18371 # but as the default location of the library.
18372 hardcode_minus_L_F77=yes
18374 esac
18378 irix5* | irix6* | nonstopux*)
18379 if test "$GCC" = yes; then
18380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18381 else
18382 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18383 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18385 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator_F77=:
18387 link_all_deplibs_F77=yes
18390 netbsd* | netbsdelf*-gnu)
18391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18392 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18393 else
18394 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18396 hardcode_libdir_flag_spec_F77='-R$libdir'
18397 hardcode_direct_F77=yes
18398 hardcode_shlibpath_var_F77=no
18401 newsos6)
18402 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403 hardcode_direct_F77=yes
18404 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18405 hardcode_libdir_separator_F77=:
18406 hardcode_shlibpath_var_F77=no
18409 openbsd*)
18410 if test -f /usr/libexec/ld.so; then
18411 hardcode_direct_F77=yes
18412 hardcode_shlibpath_var_F77=no
18413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18414 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18415 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18416 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18417 export_dynamic_flag_spec_F77='${wl}-E'
18418 else
18419 case $host_os in
18420 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18421 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18422 hardcode_libdir_flag_spec_F77='-R$libdir'
18425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18428 esac
18430 else
18431 ld_shlibs_F77=no
18435 os2*)
18436 hardcode_libdir_flag_spec_F77='-L$libdir'
18437 hardcode_minus_L_F77=yes
18438 allow_undefined_flag_F77=unsupported
18439 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18440 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18443 osf3*)
18444 if test "$GCC" = yes; then
18445 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18446 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18447 else
18448 allow_undefined_flag_F77=' -expect_unresolved \*'
18449 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18451 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18452 hardcode_libdir_separator_F77=:
18455 osf4* | osf5*) # as osf3* with the addition of -msym flag
18456 if test "$GCC" = yes; then
18457 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18458 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18460 else
18461 allow_undefined_flag_F77=' -expect_unresolved \*'
18462 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18463 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18464 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18466 # Both c and cxx compiler support -rpath directly
18467 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18469 hardcode_libdir_separator_F77=:
18472 solaris*)
18473 no_undefined_flag_F77=' -z text'
18474 if test "$GCC" = yes; then
18475 wlarc='${wl}'
18476 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18477 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18478 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18479 else
18480 wlarc=''
18481 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18482 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18483 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18485 hardcode_libdir_flag_spec_F77='-R$libdir'
18486 hardcode_shlibpath_var_F77=no
18487 case $host_os in
18488 solaris2.[0-5] | solaris2.[0-5].*) ;;
18490 # The compiler driver will combine and reorder linker options,
18491 # but understands `-z linker_flag'. GCC discards it without `$wl',
18492 # but is careful enough not to reorder.
18493 # Supported since Solaris 2.6 (maybe 2.5.1?)
18494 if test "$GCC" = yes; then
18495 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18496 else
18497 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18500 esac
18501 link_all_deplibs_F77=yes
18504 sunos4*)
18505 if test "x$host_vendor" = xsequent; then
18506 # Use $CC to link under sequent, because it throws in some extra .o
18507 # files that make .init and .fini sections work.
18508 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18509 else
18510 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18512 hardcode_libdir_flag_spec_F77='-L$libdir'
18513 hardcode_direct_F77=yes
18514 hardcode_minus_L_F77=yes
18515 hardcode_shlibpath_var_F77=no
18518 sysv4)
18519 case $host_vendor in
18520 sni)
18521 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18522 hardcode_direct_F77=yes # is this really true???
18524 siemens)
18525 ## LD is ld it makes a PLAMLIB
18526 ## CC just makes a GrossModule.
18527 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18528 reload_cmds_F77='$CC -r -o $output$reload_objs'
18529 hardcode_direct_F77=no
18531 motorola)
18532 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18533 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18535 esac
18536 runpath_var='LD_RUN_PATH'
18537 hardcode_shlibpath_var_F77=no
18540 sysv4.3*)
18541 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18542 hardcode_shlibpath_var_F77=no
18543 export_dynamic_flag_spec_F77='-Bexport'
18546 sysv4*MP*)
18547 if test -d /usr/nec; then
18548 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18549 hardcode_shlibpath_var_F77=no
18550 runpath_var=LD_RUN_PATH
18551 hardcode_runpath_var=yes
18552 ld_shlibs_F77=yes
18556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18557 no_undefined_flag_F77='${wl}-z,text'
18558 archive_cmds_need_lc_F77=no
18559 hardcode_shlibpath_var_F77=no
18560 runpath_var='LD_RUN_PATH'
18562 if test "$GCC" = yes; then
18563 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18564 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18565 else
18566 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18571 sysv5* | sco3.2v5* | sco5v6*)
18572 # Note: We can NOT use -z defs as we might desire, because we do not
18573 # link with -lc, and that would cause any symbols used from libc to
18574 # always be unresolved, which means just about no library would
18575 # ever link correctly. If we're not using GNU ld we use -z text
18576 # though, which does catch some bad symbols but isn't as heavy-handed
18577 # as -z defs.
18578 no_undefined_flag_F77='${wl}-z,text'
18579 allow_undefined_flag_F77='${wl}-z,nodefs'
18580 archive_cmds_need_lc_F77=no
18581 hardcode_shlibpath_var_F77=no
18582 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18583 hardcode_libdir_separator_F77=':'
18584 link_all_deplibs_F77=yes
18585 export_dynamic_flag_spec_F77='${wl}-Bexport'
18586 runpath_var='LD_RUN_PATH'
18588 if test "$GCC" = yes; then
18589 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18590 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18591 else
18592 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18593 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18597 uts4*)
18598 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18599 hardcode_libdir_flag_spec_F77='-L$libdir'
18600 hardcode_shlibpath_var_F77=no
18604 ld_shlibs_F77=no
18606 esac
18609 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18610 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
18611 test "$ld_shlibs_F77" = no && can_build_shared=no
18614 # Do we need to explicitly link libc?
18616 case "x$archive_cmds_need_lc_F77" in
18617 x|xyes)
18618 # Assume -lc should be added
18619 archive_cmds_need_lc_F77=yes
18621 if test "$enable_shared" = yes && test "$GCC" = yes; then
18622 case $archive_cmds_F77 in
18623 *'~'*)
18624 # FIXME: we may have to deal with multi-command sequences.
18626 '$CC '*)
18627 # Test whether the compiler implicitly links with -lc since on some
18628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18629 # to ld, don't add -lc before -lgcc.
18630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18632 $rm conftest*
18633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18636 (eval $ac_compile) 2>&5
18637 ac_status=$?
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); } 2>conftest.err; then
18640 soname=conftest
18641 lib=conftest
18642 libobjs=conftest.$ac_objext
18643 deplibs=
18644 wl=$lt_prog_compiler_wl_F77
18645 pic_flag=$lt_prog_compiler_pic_F77
18646 compiler_flags=-v
18647 linker_flags=-v
18648 verstring=
18649 output_objdir=.
18650 libname=conftest
18651 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18652 allow_undefined_flag_F77=
18653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18654 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }
18658 then
18659 archive_cmds_need_lc_F77=no
18660 else
18661 archive_cmds_need_lc_F77=yes
18663 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18664 else
18665 cat conftest.err 1>&5
18667 $rm conftest*
18668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18671 esac
18674 esac
18676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18678 library_names_spec=
18679 libname_spec='lib$name'
18680 soname_spec=
18681 shrext_cmds=".so"
18682 postinstall_cmds=
18683 postuninstall_cmds=
18684 finish_cmds=
18685 finish_eval=
18686 shlibpath_var=
18687 shlibpath_overrides_runpath=unknown
18688 version_type=none
18689 dynamic_linker="$host_os ld.so"
18690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18692 need_lib_prefix=unknown
18693 hardcode_into_libs=no
18695 # when you set need_version to no, make sure it does not cause -set_version
18696 # flags to be left without arguments
18697 need_version=unknown
18699 case $host_os in
18700 aix3*)
18701 version_type=linux
18702 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18703 shlibpath_var=LIBPATH
18705 # AIX 3 has no versioning support, so we append a major version to the name.
18706 soname_spec='${libname}${release}${shared_ext}$major'
18709 aix[4-9]*)
18710 version_type=linux
18711 need_lib_prefix=no
18712 need_version=no
18713 hardcode_into_libs=yes
18714 if test "$host_cpu" = ia64; then
18715 # AIX 5 supports IA64
18716 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18717 shlibpath_var=LD_LIBRARY_PATH
18718 else
18719 # With GCC up to 2.95.x, collect2 would create an import file
18720 # for dependence libraries. The import file would start with
18721 # the line `#! .'. This would cause the generated library to
18722 # depend on `.', always an invalid library. This was fixed in
18723 # development snapshots of GCC prior to 3.0.
18724 case $host_os in
18725 aix4 | aix4.[01] | aix4.[01].*)
18726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18727 echo ' yes '
18728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18730 else
18731 can_build_shared=no
18734 esac
18735 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18736 # soname into executable. Probably we can add versioning support to
18737 # collect2, so additional links can be useful in future.
18738 if test "$aix_use_runtimelinking" = yes; then
18739 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18740 # instead of lib<name>.a to let people know that these are not
18741 # typical AIX shared libraries.
18742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18743 else
18744 # We preserve .a as extension for shared libraries through AIX4.2
18745 # and later when we are not doing run time linking.
18746 library_names_spec='${libname}${release}.a $libname.a'
18747 soname_spec='${libname}${release}${shared_ext}$major'
18749 shlibpath_var=LIBPATH
18753 amigaos*)
18754 library_names_spec='$libname.ixlibrary $libname.a'
18755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18756 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18759 beos*)
18760 library_names_spec='${libname}${shared_ext}'
18761 dynamic_linker="$host_os ld.so"
18762 shlibpath_var=LIBRARY_PATH
18765 bsdi[45]*)
18766 version_type=linux
18767 need_version=no
18768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18769 soname_spec='${libname}${release}${shared_ext}$major'
18770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18771 shlibpath_var=LD_LIBRARY_PATH
18772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18774 # the default ld.so.conf also contains /usr/contrib/lib and
18775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18776 # libtool to hard-code these into programs
18779 cygwin* | mingw* | pw32*)
18780 version_type=windows
18781 shrext_cmds=".dll"
18782 need_version=no
18783 need_lib_prefix=no
18785 case $GCC,$host_os in
18786 yes,cygwin* | yes,mingw* | yes,pw32*)
18787 library_names_spec='$libname.dll.a'
18788 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18789 postinstall_cmds='base_file=`basename \${file}`~
18790 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18791 dldir=$destdir/`dirname \$dlpath`~
18792 test -d \$dldir || mkdir -p \$dldir~
18793 $install_prog $dir/$dlname \$dldir/$dlname~
18794 chmod a+x \$dldir/$dlname'
18795 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18796 dlpath=$dir/\$dldll~
18797 $rm \$dlpath'
18798 shlibpath_overrides_runpath=yes
18800 case $host_os in
18801 cygwin*)
18802 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18803 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18804 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18806 mingw*)
18807 # MinGW DLLs use traditional 'lib' prefix
18808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18810 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18811 # It is most probably a Windows format PATH printed by
18812 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18813 # path with ; separators, and with drive letters. We can handle the
18814 # drive letters (cygwin fileutils understands them), so leave them,
18815 # especially as we might pass files found there to a mingw objdump,
18816 # which wouldn't understand a cygwinified path. Ahh.
18817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18818 else
18819 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18822 pw32*)
18823 # pw32 DLLs use 'pw' prefix rather than 'lib'
18824 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18826 esac
18830 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18832 esac
18833 dynamic_linker='Win32 ld.exe'
18834 # FIXME: first we should search . and the directory the executable is in
18835 shlibpath_var=PATH
18838 darwin* | rhapsody*)
18839 dynamic_linker="$host_os dyld"
18840 version_type=darwin
18841 need_lib_prefix=no
18842 need_version=no
18843 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18844 soname_spec='${libname}${release}${major}$shared_ext'
18845 shlibpath_overrides_runpath=yes
18846 shlibpath_var=DYLD_LIBRARY_PATH
18847 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18852 dgux*)
18853 version_type=linux
18854 need_lib_prefix=no
18855 need_version=no
18856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18857 soname_spec='${libname}${release}${shared_ext}$major'
18858 shlibpath_var=LD_LIBRARY_PATH
18861 freebsd1*)
18862 dynamic_linker=no
18865 freebsd* | dragonfly*)
18866 # DragonFly does not have aout. When/if they implement a new
18867 # versioning mechanism, adjust this.
18868 if test -x /usr/bin/objformat; then
18869 objformat=`/usr/bin/objformat`
18870 else
18871 case $host_os in
18872 freebsd[123]*) objformat=aout ;;
18873 *) objformat=elf ;;
18874 esac
18876 version_type=freebsd-$objformat
18877 case $version_type in
18878 freebsd-elf*)
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18880 need_version=no
18881 need_lib_prefix=no
18883 freebsd-*)
18884 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18885 need_version=yes
18887 esac
18888 shlibpath_var=LD_LIBRARY_PATH
18889 case $host_os in
18890 freebsd2*)
18891 shlibpath_overrides_runpath=yes
18893 freebsd3.[01]* | freebsdelf3.[01]*)
18894 shlibpath_overrides_runpath=yes
18895 hardcode_into_libs=yes
18897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18899 shlibpath_overrides_runpath=no
18900 hardcode_into_libs=yes
18902 *) # from 4.6 on, and DragonFly
18903 shlibpath_overrides_runpath=yes
18904 hardcode_into_libs=yes
18906 esac
18909 gnu*)
18910 version_type=linux
18911 need_lib_prefix=no
18912 need_version=no
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 shlibpath_var=LD_LIBRARY_PATH
18916 hardcode_into_libs=yes
18919 hpux9* | hpux10* | hpux11*)
18920 # Give a soname corresponding to the major version so that dld.sl refuses to
18921 # link against other versions.
18922 version_type=sunos
18923 need_lib_prefix=no
18924 need_version=no
18925 case $host_cpu in
18926 ia64*)
18927 shrext_cmds='.so'
18928 hardcode_into_libs=yes
18929 dynamic_linker="$host_os dld.so"
18930 shlibpath_var=LD_LIBRARY_PATH
18931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 if test "X$HPUX_IA64_MODE" = X32; then
18935 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18936 else
18937 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18939 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18941 hppa*64*)
18942 shrext_cmds='.sl'
18943 hardcode_into_libs=yes
18944 dynamic_linker="$host_os dld.sl"
18945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18953 shrext_cmds='.sl'
18954 dynamic_linker="$host_os dld.sl"
18955 shlibpath_var=SHLIB_PATH
18956 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18958 soname_spec='${libname}${release}${shared_ext}$major'
18960 esac
18961 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18962 postinstall_cmds='chmod 555 $lib'
18965 interix[3-9]*)
18966 version_type=linux
18967 need_lib_prefix=no
18968 need_version=no
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18970 soname_spec='${libname}${release}${shared_ext}$major'
18971 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18972 shlibpath_var=LD_LIBRARY_PATH
18973 shlibpath_overrides_runpath=no
18974 hardcode_into_libs=yes
18977 irix5* | irix6* | nonstopux*)
18978 case $host_os in
18979 nonstopux*) version_type=nonstopux ;;
18981 if test "$lt_cv_prog_gnu_ld" = yes; then
18982 version_type=linux
18983 else
18984 version_type=irix
18985 fi ;;
18986 esac
18987 need_lib_prefix=no
18988 need_version=no
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18991 case $host_os in
18992 irix5* | nonstopux*)
18993 libsuff= shlibsuff=
18996 case $LD in # libtool.m4 will add one of these switches to LD
18997 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18998 libsuff= shlibsuff= libmagic=32-bit;;
18999 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19000 libsuff=32 shlibsuff=N32 libmagic=N32;;
19001 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19002 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19003 *) libsuff= shlibsuff= libmagic=never-match;;
19004 esac
19006 esac
19007 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19008 shlibpath_overrides_runpath=no
19009 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19010 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19011 hardcode_into_libs=yes
19014 # No shared lib support for Linux oldld, aout, or coff.
19015 linux*oldld* | linux*aout* | linux*coff*)
19016 dynamic_linker=no
19019 # This must be Linux ELF.
19020 linux* | k*bsd*-gnu)
19021 version_type=linux
19022 need_lib_prefix=no
19023 need_version=no
19024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19025 soname_spec='${libname}${release}${shared_ext}$major'
19026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 shlibpath_overrides_runpath=no
19029 # This implies no fast_install, which is unacceptable.
19030 # Some rework will be needed to allow for fast_install
19031 # before this can be enabled.
19032 hardcode_into_libs=yes
19034 # Append ld.so.conf contents to the search path
19035 if test -f /etc/ld.so.conf; then
19036 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;/^$/d' | tr '\n' ' '`
19037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19040 # We used to test for /lib/ld.so.1 and disable shared libraries on
19041 # powerpc, because MkLinux only supported shared libraries with the
19042 # GNU dynamic linker. Since this was broken with cross compilers,
19043 # most powerpc-linux boxes support dynamic linking these days and
19044 # people can always --disable-shared, the test was removed, and we
19045 # assume the GNU/Linux dynamic linker is in use.
19046 dynamic_linker='GNU/Linux ld.so'
19049 netbsdelf*-gnu)
19050 version_type=linux
19051 need_lib_prefix=no
19052 need_version=no
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19054 soname_spec='${libname}${release}${shared_ext}$major'
19055 shlibpath_var=LD_LIBRARY_PATH
19056 shlibpath_overrides_runpath=no
19057 hardcode_into_libs=yes
19058 dynamic_linker='NetBSD ld.elf_so'
19061 netbsd*)
19062 version_type=sunos
19063 need_lib_prefix=no
19064 need_version=no
19065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19068 dynamic_linker='NetBSD (a.out) ld.so'
19069 else
19070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19071 soname_spec='${libname}${release}${shared_ext}$major'
19072 dynamic_linker='NetBSD ld.elf_so'
19074 shlibpath_var=LD_LIBRARY_PATH
19075 shlibpath_overrides_runpath=yes
19076 hardcode_into_libs=yes
19079 newsos6)
19080 version_type=linux
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19082 shlibpath_var=LD_LIBRARY_PATH
19083 shlibpath_overrides_runpath=yes
19086 nto-qnx*)
19087 version_type=linux
19088 need_lib_prefix=no
19089 need_version=no
19090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19091 soname_spec='${libname}${release}${shared_ext}$major'
19092 shlibpath_var=LD_LIBRARY_PATH
19093 shlibpath_overrides_runpath=yes
19096 openbsd*)
19097 version_type=sunos
19098 sys_lib_dlsearch_path_spec="/usr/lib"
19099 need_lib_prefix=no
19100 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19101 case $host_os in
19102 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19103 *) need_version=no ;;
19104 esac
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19107 shlibpath_var=LD_LIBRARY_PATH
19108 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19109 case $host_os in
19110 openbsd2.[89] | openbsd2.[89].*)
19111 shlibpath_overrides_runpath=no
19114 shlibpath_overrides_runpath=yes
19116 esac
19117 else
19118 shlibpath_overrides_runpath=yes
19122 os2*)
19123 libname_spec='$name'
19124 shrext_cmds=".dll"
19125 need_lib_prefix=no
19126 library_names_spec='$libname${shared_ext} $libname.a'
19127 dynamic_linker='OS/2 ld.exe'
19128 shlibpath_var=LIBPATH
19131 osf3* | osf4* | osf5*)
19132 version_type=osf
19133 need_lib_prefix=no
19134 need_version=no
19135 soname_spec='${libname}${release}${shared_ext}$major'
19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19139 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19142 rdos*)
19143 dynamic_linker=no
19146 solaris*)
19147 version_type=linux
19148 need_lib_prefix=no
19149 need_version=no
19150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19151 soname_spec='${libname}${release}${shared_ext}$major'
19152 shlibpath_var=LD_LIBRARY_PATH
19153 shlibpath_overrides_runpath=yes
19154 hardcode_into_libs=yes
19155 # ldd complains unless libraries are executable
19156 postinstall_cmds='chmod +x $lib'
19159 sunos4*)
19160 version_type=sunos
19161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19163 shlibpath_var=LD_LIBRARY_PATH
19164 shlibpath_overrides_runpath=yes
19165 if test "$with_gnu_ld" = yes; then
19166 need_lib_prefix=no
19168 need_version=yes
19171 sysv4 | sysv4.3*)
19172 version_type=linux
19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19174 soname_spec='${libname}${release}${shared_ext}$major'
19175 shlibpath_var=LD_LIBRARY_PATH
19176 case $host_vendor in
19177 sni)
19178 shlibpath_overrides_runpath=no
19179 need_lib_prefix=no
19180 export_dynamic_flag_spec='${wl}-Blargedynsym'
19181 runpath_var=LD_RUN_PATH
19183 siemens)
19184 need_lib_prefix=no
19186 motorola)
19187 need_lib_prefix=no
19188 need_version=no
19189 shlibpath_overrides_runpath=no
19190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19192 esac
19195 sysv4*MP*)
19196 if test -d /usr/nec ;then
19197 version_type=linux
19198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19199 soname_spec='$libname${shared_ext}.$major'
19200 shlibpath_var=LD_LIBRARY_PATH
19204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19205 version_type=freebsd-elf
19206 need_lib_prefix=no
19207 need_version=no
19208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19209 soname_spec='${libname}${release}${shared_ext}$major'
19210 shlibpath_var=LD_LIBRARY_PATH
19211 hardcode_into_libs=yes
19212 if test "$with_gnu_ld" = yes; then
19213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19214 shlibpath_overrides_runpath=no
19215 else
19216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19217 shlibpath_overrides_runpath=yes
19218 case $host_os in
19219 sco3.2v5*)
19220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19222 esac
19224 sys_lib_dlsearch_path_spec='/usr/lib'
19227 uts4*)
19228 version_type=linux
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19230 soname_spec='${libname}${release}${shared_ext}$major'
19231 shlibpath_var=LD_LIBRARY_PATH
19235 dynamic_linker=no
19237 esac
19238 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19239 echo "${ECHO_T}$dynamic_linker" >&6; }
19240 test "$dynamic_linker" = no && can_build_shared=no
19242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19248 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19249 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19251 else
19252 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19255 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19258 if test "$GCC" = yes; then
19259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19262 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19263 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19264 hardcode_action_F77=
19265 if test -n "$hardcode_libdir_flag_spec_F77" || \
19266 test -n "$runpath_var_F77" || \
19267 test "X$hardcode_automatic_F77" = "Xyes" ; then
19269 # We can hardcode non-existant directories.
19270 if test "$hardcode_direct_F77" != no &&
19271 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19272 # have to relink, otherwise we might link with an installed library
19273 # when we should be linking with a yet-to-be-installed one
19274 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19275 test "$hardcode_minus_L_F77" != no; then
19276 # Linking always hardcodes the temporary library directory.
19277 hardcode_action_F77=relink
19278 else
19279 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19280 hardcode_action_F77=immediate
19282 else
19283 # We cannot hardcode anything, or else we can only hardcode existing
19284 # directories.
19285 hardcode_action_F77=unsupported
19287 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19288 echo "${ECHO_T}$hardcode_action_F77" >&6; }
19290 if test "$hardcode_action_F77" = relink; then
19291 # Fast installation is not supported
19292 enable_fast_install=no
19293 elif test "$shlibpath_overrides_runpath" = yes ||
19294 test "$enable_shared" = no; then
19295 # Fast installation is not necessary
19296 enable_fast_install=needless
19300 # The else clause should only fire when bootstrapping the
19301 # libtool distribution, otherwise you forgot to ship ltmain.sh
19302 # with your package, and you will get complaints that there are
19303 # no rules to generate ltmain.sh.
19304 if test -f "$ltmain"; then
19305 # See if we are running on zsh, and set the options which allow our commands through
19306 # without removal of \ escapes.
19307 if test -n "${ZSH_VERSION+set}" ; then
19308 setopt NO_GLOB_SUBST
19310 # Now quote all the things that may contain metacharacters while being
19311 # careful not to overquote the AC_SUBSTed values. We take copies of the
19312 # variables and quote the copies for generation of the libtool script.
19313 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19314 SED SHELL STRIP \
19315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19317 deplibs_check_method reload_flag reload_cmds need_locks \
19318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19319 lt_cv_sys_global_symbol_to_c_name_address \
19320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19321 old_postinstall_cmds old_postuninstall_cmds \
19322 compiler_F77 \
19323 CC_F77 \
19324 LD_F77 \
19325 lt_prog_compiler_wl_F77 \
19326 lt_prog_compiler_pic_F77 \
19327 lt_prog_compiler_static_F77 \
19328 lt_prog_compiler_no_builtin_flag_F77 \
19329 export_dynamic_flag_spec_F77 \
19330 thread_safe_flag_spec_F77 \
19331 whole_archive_flag_spec_F77 \
19332 enable_shared_with_static_runtimes_F77 \
19333 old_archive_cmds_F77 \
19334 old_archive_from_new_cmds_F77 \
19335 predep_objects_F77 \
19336 postdep_objects_F77 \
19337 predeps_F77 \
19338 postdeps_F77 \
19339 compiler_lib_search_path_F77 \
19340 compiler_lib_search_dirs_F77 \
19341 archive_cmds_F77 \
19342 archive_expsym_cmds_F77 \
19343 postinstall_cmds_F77 \
19344 postuninstall_cmds_F77 \
19345 old_archive_from_expsyms_cmds_F77 \
19346 allow_undefined_flag_F77 \
19347 no_undefined_flag_F77 \
19348 export_symbols_cmds_F77 \
19349 hardcode_libdir_flag_spec_F77 \
19350 hardcode_libdir_flag_spec_ld_F77 \
19351 hardcode_libdir_separator_F77 \
19352 hardcode_automatic_F77 \
19353 module_cmds_F77 \
19354 module_expsym_cmds_F77 \
19355 lt_cv_prog_compiler_c_o_F77 \
19356 fix_srcfile_path_F77 \
19357 exclude_expsyms_F77 \
19358 include_expsyms_F77; do
19360 case $var in
19361 old_archive_cmds_F77 | \
19362 old_archive_from_new_cmds_F77 | \
19363 archive_cmds_F77 | \
19364 archive_expsym_cmds_F77 | \
19365 module_cmds_F77 | \
19366 module_expsym_cmds_F77 | \
19367 old_archive_from_expsyms_cmds_F77 | \
19368 export_symbols_cmds_F77 | \
19369 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19370 postinstall_cmds | postuninstall_cmds | \
19371 old_postinstall_cmds | old_postuninstall_cmds | \
19372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19373 # Double-quote double-evaled strings.
19374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19379 esac
19380 done
19382 case $lt_echo in
19383 *'\$0 --fallback-echo"')
19384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19386 esac
19388 cfgfile="$ofile"
19390 cat <<__EOF__ >> "$cfgfile"
19391 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19395 # Shell to use when invoking shell scripts.
19396 SHELL=$lt_SHELL
19398 # Whether or not to build shared libraries.
19399 build_libtool_libs=$enable_shared
19401 # Whether or not to build static libraries.
19402 build_old_libs=$enable_static
19404 # Whether or not to add -lc for building shared libraries.
19405 build_libtool_need_lc=$archive_cmds_need_lc_F77
19407 # Whether or not to disallow shared libs when runtime libs are static
19408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19410 # Whether or not to optimize for fast installation.
19411 fast_install=$enable_fast_install
19413 # The host system.
19414 host_alias=$host_alias
19415 host=$host
19416 host_os=$host_os
19418 # The build system.
19419 build_alias=$build_alias
19420 build=$build
19421 build_os=$build_os
19423 # An echo program that does not interpret backslashes.
19424 echo=$lt_echo
19426 # The archiver.
19427 AR=$lt_AR
19428 AR_FLAGS=$lt_AR_FLAGS
19430 # A C compiler.
19431 LTCC=$lt_LTCC
19433 # LTCC compiler flags.
19434 LTCFLAGS=$lt_LTCFLAGS
19436 # A language-specific compiler.
19437 CC=$lt_compiler_F77
19439 # Is the compiler the GNU C compiler?
19440 with_gcc=$GCC_F77
19442 # An ERE matcher.
19443 EGREP=$lt_EGREP
19445 # The linker used to build libraries.
19446 LD=$lt_LD_F77
19448 # Whether we need hard or soft links.
19449 LN_S=$lt_LN_S
19451 # A BSD-compatible nm program.
19452 NM=$lt_NM
19454 # A symbol stripping program
19455 STRIP=$lt_STRIP
19457 # Used to examine libraries when file_magic_cmd begins "file"
19458 MAGIC_CMD=$MAGIC_CMD
19460 # Used on cygwin: DLL creation program.
19461 DLLTOOL="$DLLTOOL"
19463 # Used on cygwin: object dumper.
19464 OBJDUMP="$OBJDUMP"
19466 # Used on cygwin: assembler.
19467 AS="$AS"
19469 # The name of the directory that contains temporary libtool files.
19470 objdir=$objdir
19472 # How to create reloadable object files.
19473 reload_flag=$lt_reload_flag
19474 reload_cmds=$lt_reload_cmds
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_F77
19479 # Object file suffix (normally "o").
19480 objext="$ac_objext"
19482 # Old archive suffix (normally "a").
19483 libext="$libext"
19485 # Shared library suffix (normally ".so").
19486 shrext_cmds='$shrext_cmds'
19488 # Executable file suffix (normally "").
19489 exeext="$exeext"
19491 # Additional compiler flags for building library objects.
19492 pic_flag=$lt_lt_prog_compiler_pic_F77
19493 pic_mode=$pic_mode
19495 # What is the maximum length of a command?
19496 max_cmd_len=$lt_cv_sys_max_cmd_len
19498 # Does compiler simultaneously support -c and -o options?
19499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19501 # Must we lock files when doing compilation?
19502 need_locks=$lt_need_locks
19504 # Do we need the lib prefix for modules?
19505 need_lib_prefix=$need_lib_prefix
19507 # Do we need a version for libraries?
19508 need_version=$need_version
19510 # Whether dlopen is supported.
19511 dlopen_support=$enable_dlopen
19513 # Whether dlopen of programs is supported.
19514 dlopen_self=$enable_dlopen_self
19516 # Whether dlopen of statically linked programs is supported.
19517 dlopen_self_static=$enable_dlopen_self_static
19519 # Compiler flag to prevent dynamic linking.
19520 link_static_flag=$lt_lt_prog_compiler_static_F77
19522 # Compiler flag to turn off builtin functions.
19523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19525 # Compiler flag to allow reflexive dlopens.
19526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19528 # Compiler flag to generate shared objects directly from archives.
19529 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19531 # Compiler flag to generate thread-safe objects.
19532 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19534 # Library versioning type.
19535 version_type=$version_type
19537 # Format of library name prefix.
19538 libname_spec=$lt_libname_spec
19540 # List of archive names. First name is the real one, the rest are links.
19541 # The last name is the one that the linker finds with -lNAME.
19542 library_names_spec=$lt_library_names_spec
19544 # The coded name of the library, if different from the real name.
19545 soname_spec=$lt_soname_spec
19547 # Commands used to build and install an old-style archive.
19548 RANLIB=$lt_RANLIB
19549 old_archive_cmds=$lt_old_archive_cmds_F77
19550 old_postinstall_cmds=$lt_old_postinstall_cmds
19551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19553 # Create an old-style archive from a shared archive.
19554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19556 # Create a temporary old-style archive to link instead of a shared archive.
19557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19559 # Commands used to build and install a shared archive.
19560 archive_cmds=$lt_archive_cmds_F77
19561 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19562 postinstall_cmds=$lt_postinstall_cmds
19563 postuninstall_cmds=$lt_postuninstall_cmds
19565 # Commands used to build a loadable module (assumed same as above if empty)
19566 module_cmds=$lt_module_cmds_F77
19567 module_expsym_cmds=$lt_module_expsym_cmds_F77
19569 # Commands to strip libraries.
19570 old_striplib=$lt_old_striplib
19571 striplib=$lt_striplib
19573 # Dependencies to place before the objects being linked to create a
19574 # shared library.
19575 predep_objects=$lt_predep_objects_F77
19577 # Dependencies to place after the objects being linked to create a
19578 # shared library.
19579 postdep_objects=$lt_postdep_objects_F77
19581 # Dependencies to place before the objects being linked to create a
19582 # shared library.
19583 predeps=$lt_predeps_F77
19585 # Dependencies to place after the objects being linked to create a
19586 # shared library.
19587 postdeps=$lt_postdeps_F77
19589 # The directories searched by this compiler when creating a shared
19590 # library
19591 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
19593 # The library search path used internally by the compiler when linking
19594 # a shared library.
19595 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19597 # Method to check whether dependent libraries are shared objects.
19598 deplibs_check_method=$lt_deplibs_check_method
19600 # Command to use when deplibs_check_method == file_magic.
19601 file_magic_cmd=$lt_file_magic_cmd
19603 # Flag that allows shared libraries with undefined symbols to be built.
19604 allow_undefined_flag=$lt_allow_undefined_flag_F77
19606 # Flag that forces no undefined symbols.
19607 no_undefined_flag=$lt_no_undefined_flag_F77
19609 # Commands used to finish a libtool library installation in a directory.
19610 finish_cmds=$lt_finish_cmds
19612 # Same as above, but a single script fragment to be evaled but not shown.
19613 finish_eval=$lt_finish_eval
19615 # Take the output of nm and produce a listing of raw symbols and C names.
19616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19618 # Transform the output of nm in a proper C declaration
19619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19621 # Transform the output of nm in a C name address pair
19622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19624 # This is the shared library runtime path variable.
19625 runpath_var=$runpath_var
19627 # This is the shared library path variable.
19628 shlibpath_var=$shlibpath_var
19630 # Is shlibpath searched before the hard-coded library search path?
19631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19633 # How to hardcode a shared library path into an executable.
19634 hardcode_action=$hardcode_action_F77
19636 # Whether we should hardcode library paths into libraries.
19637 hardcode_into_libs=$hardcode_into_libs
19639 # Flag to hardcode \$libdir into a binary during linking.
19640 # This must work even if \$libdir does not exist.
19641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19643 # If ld is used when linking, flag to hardcode \$libdir into
19644 # a binary during linking. This must work even if \$libdir does
19645 # not exist.
19646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19648 # Whether we need a single -rpath flag with a separated argument.
19649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19652 # resulting binary.
19653 hardcode_direct=$hardcode_direct_F77
19655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19656 # resulting binary.
19657 hardcode_minus_L=$hardcode_minus_L_F77
19659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19660 # the resulting binary.
19661 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19663 # Set to yes if building a shared library automatically hardcodes DIR into the library
19664 # and all subsequent libraries and executables linked against it.
19665 hardcode_automatic=$hardcode_automatic_F77
19667 # Variables whose values should be saved in libtool wrapper scripts and
19668 # restored at relink time.
19669 variables_saved_for_relink="$variables_saved_for_relink"
19671 # Whether libtool must link a program against all its dependency libraries.
19672 link_all_deplibs=$link_all_deplibs_F77
19674 # Compile-time system search path for libraries
19675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19677 # Run-time system search path for libraries
19678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19680 # Fix the shell variable \$srcfile for the compiler.
19681 fix_srcfile_path=$lt_fix_srcfile_path
19683 # Set to yes if exported symbols are required.
19684 always_export_symbols=$always_export_symbols_F77
19686 # The commands to list exported symbols.
19687 export_symbols_cmds=$lt_export_symbols_cmds_F77
19689 # The commands to extract the exported symbol list from a shared archive.
19690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19692 # Symbols that should not be listed in the preloaded symbols.
19693 exclude_expsyms=$lt_exclude_expsyms_F77
19695 # Symbols that must always be exported.
19696 include_expsyms=$lt_include_expsyms_F77
19698 # ### END LIBTOOL TAG CONFIG: $tagname
19700 __EOF__
19703 else
19704 # If there is no Makefile yet, we rely on a make rule to execute
19705 # `config.status --recheck' to rerun these tests and create the
19706 # libtool script then.
19707 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19708 if test -f "$ltmain_in"; then
19709 test -f Makefile && make "$ltmain"
19714 ac_ext=c
19715 ac_cpp='$CPP $CPPFLAGS'
19716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19720 CC="$lt_save_CC"
19722 else
19723 tagname=""
19727 GCJ)
19728 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19731 # Source file extension for Java test sources.
19732 ac_ext=java
19734 # Object file extension for compiled Java test sources.
19735 objext=o
19736 objext_GCJ=$objext
19738 # Code to be used in simple compile tests
19739 lt_simple_compile_test_code="class foo {}"
19741 # Code to be used in simple link tests
19742 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19744 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19746 # If no C compiler was specified, use CC.
19747 LTCC=${LTCC-"$CC"}
19749 # If no C compiler flags were specified, use CFLAGS.
19750 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19752 # Allow CC to be a program name with arguments.
19753 compiler=$CC
19756 # save warnings/boilerplate of simple test code
19757 ac_outfile=conftest.$ac_objext
19758 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19760 _lt_compiler_boilerplate=`cat conftest.err`
19761 $rm conftest*
19763 ac_outfile=conftest.$ac_objext
19764 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19766 _lt_linker_boilerplate=`cat conftest.err`
19767 $rm -r conftest*
19770 # Allow CC to be a program name with arguments.
19771 lt_save_CC="$CC"
19772 CC=${GCJ-"gcj"}
19773 compiler=$CC
19774 compiler_GCJ=$CC
19775 for cc_temp in $compiler""; do
19776 case $cc_temp in
19777 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19778 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19779 \-*) ;;
19780 *) break;;
19781 esac
19782 done
19783 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19786 # GCJ did not exist at the time GCC didn't implicitly link libc in.
19787 archive_cmds_need_lc_GCJ=no
19789 old_archive_cmds_GCJ=$old_archive_cmds
19792 lt_prog_compiler_no_builtin_flag_GCJ=
19794 if test "$GCC" = yes; then
19795 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19798 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803 lt_cv_prog_compiler_rtti_exceptions=no
19804 ac_outfile=conftest.$ac_objext
19805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19806 lt_compiler_flag="-fno-rtti -fno-exceptions"
19807 # Insert the option either (1) after the last *FLAGS variable, or
19808 # (2) before a word containing "conftest.", or (3) at the end.
19809 # Note that $ac_compile itself does not contain backslashes and begins
19810 # with a dollar sign (not a hyphen), so the echo should work correctly.
19811 # The option is referenced via a variable to avoid confusing sed.
19812 lt_compile=`echo "$ac_compile" | $SED \
19813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19815 -e 's:$: $lt_compiler_flag:'`
19816 (eval echo "\"\$as_me:19816: $lt_compile\"" >&5)
19817 (eval "$lt_compile" 2>conftest.err)
19818 ac_status=$?
19819 cat conftest.err >&5
19820 echo "$as_me:19820: \$? = $ac_status" >&5
19821 if (exit $ac_status) && test -s "$ac_outfile"; then
19822 # The compiler can only warn and ignore the option if not recognized
19823 # So say no if there are warnings other than the usual output.
19824 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19827 lt_cv_prog_compiler_rtti_exceptions=yes
19830 $rm conftest*
19833 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19834 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19837 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19838 else
19844 lt_prog_compiler_wl_GCJ=
19845 lt_prog_compiler_pic_GCJ=
19846 lt_prog_compiler_static_GCJ=
19848 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19849 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19851 if test "$GCC" = yes; then
19852 lt_prog_compiler_wl_GCJ='-Wl,'
19853 lt_prog_compiler_static_GCJ='-static'
19855 case $host_os in
19856 aix*)
19857 # All AIX code is PIC.
19858 if test "$host_cpu" = ia64; then
19859 # AIX 5 now supports IA64 processor
19860 lt_prog_compiler_static_GCJ='-Bstatic'
19864 amigaos*)
19865 # FIXME: we need at least 68020 code to build shared libraries, but
19866 # adding the `-m68020' flag to GCC prevents building anything better,
19867 # like `-m68040'.
19868 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19872 # PIC is the default for these OSes.
19875 mingw* | cygwin* | pw32* | os2*)
19876 # This hack is so that the source file can tell whether it is being
19877 # built for inclusion in a dll (and should export symbols for example).
19878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19879 # (--disable-auto-import) libraries
19883 darwin* | rhapsody*)
19884 # PIC is the default on this platform
19885 # Common symbols not allowed in MH_DYLIB files
19886 lt_prog_compiler_pic_GCJ='-fno-common'
19889 interix[3-9]*)
19890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19891 # Instead, we relocate shared libraries at runtime.
19894 msdosdjgpp*)
19895 # Just because we use GCC doesn't mean we suddenly get shared libraries
19896 # on systems that don't support them.
19897 lt_prog_compiler_can_build_shared_GCJ=no
19898 enable_shared=no
19901 sysv4*MP*)
19902 if test -d /usr/nec; then
19903 lt_prog_compiler_pic_GCJ=-Kconform_pic
19907 hpux*)
19908 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19909 # not for PA HP-UX.
19910 case $host_cpu in
19911 hppa*64*|ia64*)
19912 # +Z the default
19915 lt_prog_compiler_pic_GCJ='-fPIC'
19917 esac
19921 lt_prog_compiler_pic_GCJ='-fPIC'
19923 esac
19924 else
19925 # PORTME Check for flag to pass linker flags through the system compiler.
19926 case $host_os in
19927 aix*)
19928 lt_prog_compiler_wl_GCJ='-Wl,'
19929 if test "$host_cpu" = ia64; then
19930 # AIX 5 now supports IA64 processor
19931 lt_prog_compiler_static_GCJ='-Bstatic'
19932 else
19933 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19936 darwin*)
19937 # PIC is the default on this platform
19938 # Common symbols not allowed in MH_DYLIB files
19939 case $cc_basename in
19940 xlc*)
19941 lt_prog_compiler_pic_GCJ='-qnocommon'
19942 lt_prog_compiler_wl_GCJ='-Wl,'
19944 esac
19947 mingw* | cygwin* | pw32* | os2*)
19948 # This hack is so that the source file can tell whether it is being
19949 # built for inclusion in a dll (and should export symbols for example).
19953 hpux9* | hpux10* | hpux11*)
19954 lt_prog_compiler_wl_GCJ='-Wl,'
19955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19956 # not for PA HP-UX.
19957 case $host_cpu in
19958 hppa*64*|ia64*)
19959 # +Z the default
19962 lt_prog_compiler_pic_GCJ='+Z'
19964 esac
19965 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19966 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19969 irix5* | irix6* | nonstopux*)
19970 lt_prog_compiler_wl_GCJ='-Wl,'
19971 # PIC (with -KPIC) is the default.
19972 lt_prog_compiler_static_GCJ='-non_shared'
19975 newsos6)
19976 lt_prog_compiler_pic_GCJ='-KPIC'
19977 lt_prog_compiler_static_GCJ='-Bstatic'
19980 linux* | k*bsd*-gnu)
19981 case $cc_basename in
19982 icc* | ecc*)
19983 lt_prog_compiler_wl_GCJ='-Wl,'
19984 lt_prog_compiler_pic_GCJ='-KPIC'
19985 lt_prog_compiler_static_GCJ='-static'
19987 pgcc* | pgf77* | pgf90* | pgf95*)
19988 # Portland Group compilers (*not* the Pentium gcc compiler,
19989 # which looks to be a dead project)
19990 lt_prog_compiler_wl_GCJ='-Wl,'
19991 lt_prog_compiler_pic_GCJ='-fpic'
19992 lt_prog_compiler_static_GCJ='-Bstatic'
19994 ccc*)
19995 lt_prog_compiler_wl_GCJ='-Wl,'
19996 # All Alpha code is PIC.
19997 lt_prog_compiler_static_GCJ='-non_shared'
20000 case `$CC -V 2>&1 | sed 5q` in
20001 *Sun\ C*)
20002 # Sun C 5.9
20003 lt_prog_compiler_pic_GCJ='-KPIC'
20004 lt_prog_compiler_static_GCJ='-Bstatic'
20005 lt_prog_compiler_wl_GCJ='-Wl,'
20007 *Sun\ F*)
20008 # Sun Fortran 8.3 passes all unrecognized flags to the linker
20009 lt_prog_compiler_pic_GCJ='-KPIC'
20010 lt_prog_compiler_static_GCJ='-Bstatic'
20011 lt_prog_compiler_wl_GCJ=''
20013 esac
20015 esac
20018 osf3* | osf4* | osf5*)
20019 lt_prog_compiler_wl_GCJ='-Wl,'
20020 # All OSF/1 code is PIC.
20021 lt_prog_compiler_static_GCJ='-non_shared'
20024 rdos*)
20025 lt_prog_compiler_static_GCJ='-non_shared'
20028 solaris*)
20029 lt_prog_compiler_pic_GCJ='-KPIC'
20030 lt_prog_compiler_static_GCJ='-Bstatic'
20031 case $cc_basename in
20032 f77* | f90* | f95*)
20033 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
20035 lt_prog_compiler_wl_GCJ='-Wl,';;
20036 esac
20039 sunos4*)
20040 lt_prog_compiler_wl_GCJ='-Qoption ld '
20041 lt_prog_compiler_pic_GCJ='-PIC'
20042 lt_prog_compiler_static_GCJ='-Bstatic'
20045 sysv4 | sysv4.2uw2* | sysv4.3*)
20046 lt_prog_compiler_wl_GCJ='-Wl,'
20047 lt_prog_compiler_pic_GCJ='-KPIC'
20048 lt_prog_compiler_static_GCJ='-Bstatic'
20051 sysv4*MP*)
20052 if test -d /usr/nec ;then
20053 lt_prog_compiler_pic_GCJ='-Kconform_pic'
20054 lt_prog_compiler_static_GCJ='-Bstatic'
20058 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20059 lt_prog_compiler_wl_GCJ='-Wl,'
20060 lt_prog_compiler_pic_GCJ='-KPIC'
20061 lt_prog_compiler_static_GCJ='-Bstatic'
20064 unicos*)
20065 lt_prog_compiler_wl_GCJ='-Wl,'
20066 lt_prog_compiler_can_build_shared_GCJ=no
20069 uts4*)
20070 lt_prog_compiler_pic_GCJ='-pic'
20071 lt_prog_compiler_static_GCJ='-Bstatic'
20075 lt_prog_compiler_can_build_shared_GCJ=no
20077 esac
20080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
20081 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
20084 # Check to make sure the PIC flag actually works.
20086 if test -n "$lt_prog_compiler_pic_GCJ"; then
20088 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
20089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
20090 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093 lt_cv_prog_compiler_pic_works_GCJ=no
20094 ac_outfile=conftest.$ac_objext
20095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20096 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
20097 # Insert the option either (1) after the last *FLAGS variable, or
20098 # (2) before a word containing "conftest.", or (3) at the end.
20099 # Note that $ac_compile itself does not contain backslashes and begins
20100 # with a dollar sign (not a hyphen), so the echo should work correctly.
20101 # The option is referenced via a variable to avoid confusing sed.
20102 lt_compile=`echo "$ac_compile" | $SED \
20103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20105 -e 's:$: $lt_compiler_flag:'`
20106 (eval echo "\"\$as_me:20106: $lt_compile\"" >&5)
20107 (eval "$lt_compile" 2>conftest.err)
20108 ac_status=$?
20109 cat conftest.err >&5
20110 echo "$as_me:20110: \$? = $ac_status" >&5
20111 if (exit $ac_status) && test -s "$ac_outfile"; then
20112 # The compiler can only warn and ignore the option if not recognized
20113 # So say no if there are warnings other than the usual output.
20114 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20117 lt_cv_prog_compiler_pic_works_GCJ=yes
20120 $rm conftest*
20123 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
20124 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
20126 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
20127 case $lt_prog_compiler_pic_GCJ in
20128 "" | " "*) ;;
20129 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20130 esac
20131 else
20132 lt_prog_compiler_pic_GCJ=
20133 lt_prog_compiler_can_build_shared_GCJ=no
20137 case $host_os in
20138 # For platforms which do not support PIC, -DPIC is meaningless:
20139 *djgpp*)
20140 lt_prog_compiler_pic_GCJ=
20143 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20145 esac
20148 # Check to make sure the static flag actually works.
20150 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20151 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20152 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20153 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156 lt_cv_prog_compiler_static_works_GCJ=no
20157 save_LDFLAGS="$LDFLAGS"
20158 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20159 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20160 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20161 # The linker can only warn and ignore the option if not recognized
20162 # So say no if there are warnings
20163 if test -s conftest.err; then
20164 # Append any errors to the config.log.
20165 cat conftest.err 1>&5
20166 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20168 if diff conftest.exp conftest.er2 >/dev/null; then
20169 lt_cv_prog_compiler_static_works_GCJ=yes
20171 else
20172 lt_cv_prog_compiler_static_works_GCJ=yes
20175 $rm -r conftest*
20176 LDFLAGS="$save_LDFLAGS"
20179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
20180 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
20182 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
20184 else
20185 lt_prog_compiler_static_GCJ=
20189 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20190 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20191 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194 lt_cv_prog_compiler_c_o_GCJ=no
20195 $rm -r conftest 2>/dev/null
20196 mkdir conftest
20197 cd conftest
20198 mkdir out
20199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20201 lt_compiler_flag="-o out/conftest2.$ac_objext"
20202 # Insert the option either (1) after the last *FLAGS variable, or
20203 # (2) before a word containing "conftest.", or (3) at the end.
20204 # Note that $ac_compile itself does not contain backslashes and begins
20205 # with a dollar sign (not a hyphen), so the echo should work correctly.
20206 lt_compile=`echo "$ac_compile" | $SED \
20207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20209 -e 's:$: $lt_compiler_flag:'`
20210 (eval echo "\"\$as_me:20210: $lt_compile\"" >&5)
20211 (eval "$lt_compile" 2>out/conftest.err)
20212 ac_status=$?
20213 cat out/conftest.err >&5
20214 echo "$as_me:20214: \$? = $ac_status" >&5
20215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20216 then
20217 # The compiler can only warn and ignore the option if not recognized
20218 # So say no if there are warnings
20219 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20222 lt_cv_prog_compiler_c_o_GCJ=yes
20225 chmod u+w . 2>&5
20226 $rm conftest*
20227 # SGI C++ compiler will create directory out/ii_files/ for
20228 # template instantiation
20229 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20230 $rm out/* && rmdir out
20231 cd ..
20232 rmdir conftest
20233 $rm conftest*
20236 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20237 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20240 hard_links="nottested"
20241 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20242 # do not overwrite the value of need_locks provided by the user
20243 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20244 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20245 hard_links=yes
20246 $rm conftest*
20247 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20248 touch conftest.a
20249 ln conftest.a conftest.b 2>&5 || hard_links=no
20250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20251 { echo "$as_me:$LINENO: result: $hard_links" >&5
20252 echo "${ECHO_T}$hard_links" >&6; }
20253 if test "$hard_links" = no; then
20254 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20255 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20256 need_locks=warn
20258 else
20259 need_locks=no
20262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20265 runpath_var=
20266 allow_undefined_flag_GCJ=
20267 enable_shared_with_static_runtimes_GCJ=no
20268 archive_cmds_GCJ=
20269 archive_expsym_cmds_GCJ=
20270 old_archive_From_new_cmds_GCJ=
20271 old_archive_from_expsyms_cmds_GCJ=
20272 export_dynamic_flag_spec_GCJ=
20273 whole_archive_flag_spec_GCJ=
20274 thread_safe_flag_spec_GCJ=
20275 hardcode_libdir_flag_spec_GCJ=
20276 hardcode_libdir_flag_spec_ld_GCJ=
20277 hardcode_libdir_separator_GCJ=
20278 hardcode_direct_GCJ=no
20279 hardcode_minus_L_GCJ=no
20280 hardcode_shlibpath_var_GCJ=unsupported
20281 link_all_deplibs_GCJ=unknown
20282 hardcode_automatic_GCJ=no
20283 module_cmds_GCJ=
20284 module_expsym_cmds_GCJ=
20285 always_export_symbols_GCJ=no
20286 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20287 # include_expsyms should be a list of space-separated symbols to be *always*
20288 # included in the symbol list
20289 include_expsyms_GCJ=
20290 # exclude_expsyms can be an extended regexp of symbols to exclude
20291 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20292 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20293 # as well as any symbol that contains `d'.
20294 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20295 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20296 # platforms (ab)use it in PIC code, but their linkers get confused if
20297 # the symbol is explicitly referenced. Since portable code cannot
20298 # rely on this symbol name, it's probably fine to never include it in
20299 # preloaded symbol tables.
20300 # Exclude shared library initialization/finalization symbols.
20301 extract_expsyms_cmds=
20302 # Just being paranoid about ensuring that cc_basename is set.
20303 for cc_temp in $compiler""; do
20304 case $cc_temp in
20305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20307 \-*) ;;
20308 *) break;;
20309 esac
20310 done
20311 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20313 case $host_os in
20314 cygwin* | mingw* | pw32*)
20315 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20316 # When not using gcc, we currently assume that we are using
20317 # Microsoft Visual C++.
20318 if test "$GCC" != yes; then
20319 with_gnu_ld=no
20322 interix*)
20323 # we just hope/assume this is gcc and not c89 (= MSVC++)
20324 with_gnu_ld=yes
20326 openbsd*)
20327 with_gnu_ld=no
20329 esac
20331 ld_shlibs_GCJ=yes
20332 if test "$with_gnu_ld" = yes; then
20333 # If archive_cmds runs LD, not CC, wlarc should be empty
20334 wlarc='${wl}'
20336 # Set some defaults for GNU ld with shared library support. These
20337 # are reset later if shared libraries are not supported. Putting them
20338 # here allows them to be overridden if necessary.
20339 runpath_var=LD_RUN_PATH
20340 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20341 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20342 # ancient GNU ld didn't support --whole-archive et. al.
20343 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20344 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20345 else
20346 whole_archive_flag_spec_GCJ=
20348 supports_anon_versioning=no
20349 case `$LD -v 2>/dev/null` in
20350 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20351 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20352 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20353 *\ 2.11.*) ;; # other 2.11 versions
20354 *) supports_anon_versioning=yes ;;
20355 esac
20357 # See if GNU ld supports shared libraries.
20358 case $host_os in
20359 aix[3-9]*)
20360 # On AIX/PPC, the GNU linker is very broken
20361 if test "$host_cpu" != ia64; then
20362 ld_shlibs_GCJ=no
20363 cat <<EOF 1>&2
20365 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20366 *** to be unable to reliably create shared libraries on AIX.
20367 *** Therefore, libtool is disabling shared libraries support. If you
20368 *** really care for shared libraries, you may want to modify your PATH
20369 *** so that a non-GNU linker is found, and then restart.
20375 amigaos*)
20376 archive_cmds_GCJ='$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)'
20377 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20378 hardcode_minus_L_GCJ=yes
20380 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20381 # that the semantics of dynamic libraries on AmigaOS, at least up
20382 # to version 4, is to share data among multiple programs linked
20383 # with the same dynamic library. Since this doesn't match the
20384 # behavior of shared libraries on other platforms, we can't use
20385 # them.
20386 ld_shlibs_GCJ=no
20389 beos*)
20390 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20391 allow_undefined_flag_GCJ=unsupported
20392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20393 # support --undefined. This deserves some investigation. FIXME
20394 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20395 else
20396 ld_shlibs_GCJ=no
20400 cygwin* | mingw* | pw32*)
20401 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20402 # as there is no search path for DLLs.
20403 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20404 allow_undefined_flag_GCJ=unsupported
20405 always_export_symbols_GCJ=no
20406 enable_shared_with_static_runtimes_GCJ=yes
20407 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20409 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20411 # If the export-symbols file already is a .def file (1st line
20412 # is EXPORTS), use it as is; otherwise, prepend...
20413 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20414 cp $export_symbols $output_objdir/$soname.def;
20415 else
20416 echo EXPORTS > $output_objdir/$soname.def;
20417 cat $export_symbols >> $output_objdir/$soname.def;
20419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20420 else
20421 ld_shlibs_GCJ=no
20425 interix[3-9]*)
20426 hardcode_direct_GCJ=no
20427 hardcode_shlibpath_var_GCJ=no
20428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20429 export_dynamic_flag_spec_GCJ='${wl}-E'
20430 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20431 # Instead, shared libraries are loaded at an image base (0x10000000 by
20432 # default) and relocated if they conflict, which is a slow very memory
20433 # consuming and fragmenting process. To avoid this, we pick a random,
20434 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20435 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20436 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20437 archive_expsym_cmds_GCJ='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'
20440 gnu* | linux* | k*bsd*-gnu)
20441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20442 tmp_addflag=
20443 case $cc_basename,$host_cpu in
20444 pgcc*) # Portland Group C compiler
20445 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20446 tmp_addflag=' $pic_flag'
20448 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20449 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20450 tmp_addflag=' $pic_flag -Mnomain' ;;
20451 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20452 tmp_addflag=' -i_dynamic' ;;
20453 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20454 tmp_addflag=' -i_dynamic -nofor_main' ;;
20455 ifc* | ifort*) # Intel Fortran compiler
20456 tmp_addflag=' -nofor_main' ;;
20457 esac
20458 case `$CC -V 2>&1 | sed 5q` in
20459 *Sun\ C*) # Sun C 5.9
20460 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20461 tmp_sharedflag='-G' ;;
20462 *Sun\ F*) # Sun Fortran 8.3
20463 tmp_sharedflag='-G' ;;
20465 tmp_sharedflag='-shared' ;;
20466 esac
20467 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20469 if test $supports_anon_versioning = yes; then
20470 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20472 $echo "local: *; };" >> $output_objdir/$libname.ver~
20473 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20475 link_all_deplibs_GCJ=no
20476 else
20477 ld_shlibs_GCJ=no
20481 netbsd* | netbsdelf*-gnu)
20482 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20483 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20484 wlarc=
20485 else
20486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20487 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20491 solaris*)
20492 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20493 ld_shlibs_GCJ=no
20494 cat <<EOF 1>&2
20496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20497 *** create shared libraries on Solaris systems. Therefore, libtool
20498 *** is disabling shared libraries support. We urge you to upgrade GNU
20499 *** binutils to release 2.9.1 or newer. Another option is to modify
20500 *** your PATH or compiler configuration so that the native linker is
20501 *** used, and then restart.
20504 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20505 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20506 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20507 else
20508 ld_shlibs_GCJ=no
20512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20513 case `$LD -v 2>&1` in
20514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20515 ld_shlibs_GCJ=no
20516 cat <<_LT_EOF 1>&2
20518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20519 *** reliably create shared libraries on SCO systems. Therefore, libtool
20520 *** is disabling shared libraries support. We urge you to upgrade GNU
20521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20522 *** your PATH or compiler configuration so that the native linker is
20523 *** used, and then restart.
20525 _LT_EOF
20528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20529 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20530 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20531 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20532 else
20533 ld_shlibs_GCJ=no
20536 esac
20539 sunos4*)
20540 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20541 wlarc=
20542 hardcode_direct_GCJ=yes
20543 hardcode_shlibpath_var_GCJ=no
20547 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20548 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20549 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20550 else
20551 ld_shlibs_GCJ=no
20554 esac
20556 if test "$ld_shlibs_GCJ" = no; then
20557 runpath_var=
20558 hardcode_libdir_flag_spec_GCJ=
20559 export_dynamic_flag_spec_GCJ=
20560 whole_archive_flag_spec_GCJ=
20562 else
20563 # PORTME fill in a description of your system's linker (not GNU ld)
20564 case $host_os in
20565 aix3*)
20566 allow_undefined_flag_GCJ=unsupported
20567 always_export_symbols_GCJ=yes
20568 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20569 # Note: this linker hardcodes the directories in LIBPATH if there
20570 # are no directories specified by -L.
20571 hardcode_minus_L_GCJ=yes
20572 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20573 # Neither direct hardcoding nor static linking is supported with a
20574 # broken collect2.
20575 hardcode_direct_GCJ=unsupported
20579 aix[4-9]*)
20580 if test "$host_cpu" = ia64; then
20581 # On IA64, the linker does run time linking by default, so we don't
20582 # have to do anything special.
20583 aix_use_runtimelinking=no
20584 exp_sym_flag='-Bexport'
20585 no_entry_flag=""
20586 else
20587 # If we're using GNU nm, then we don't want the "-C" option.
20588 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20589 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20590 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20591 else
20592 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20594 aix_use_runtimelinking=no
20596 # Test if we are trying to use run time linking or normal
20597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20598 # need to do runtime linking.
20599 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20600 for ld_flag in $LDFLAGS; do
20601 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20602 aix_use_runtimelinking=yes
20603 break
20605 done
20607 esac
20609 exp_sym_flag='-bexport'
20610 no_entry_flag='-bnoentry'
20613 # When large executables or shared objects are built, AIX ld can
20614 # have problems creating the table of contents. If linking a library
20615 # or program results in "error TOC overflow" add -mminimal-toc to
20616 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20617 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20619 archive_cmds_GCJ=''
20620 hardcode_direct_GCJ=yes
20621 hardcode_libdir_separator_GCJ=':'
20622 link_all_deplibs_GCJ=yes
20624 if test "$GCC" = yes; then
20625 case $host_os in aix4.[012]|aix4.[012].*)
20626 # We only want to do this on AIX 4.2 and lower, the check
20627 # below for broken collect2 doesn't work under 4.3+
20628 collect2name=`${CC} -print-prog-name=collect2`
20629 if test -f "$collect2name" && \
20630 strings "$collect2name" | grep resolve_lib_name >/dev/null
20631 then
20632 # We have reworked collect2
20634 else
20635 # We have old collect2
20636 hardcode_direct_GCJ=unsupported
20637 # It fails to find uninstalled libraries when the uninstalled
20638 # path is not listed in the libpath. Setting hardcode_minus_L
20639 # to unsupported forces relinking
20640 hardcode_minus_L_GCJ=yes
20641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20642 hardcode_libdir_separator_GCJ=
20645 esac
20646 shared_flag='-shared'
20647 if test "$aix_use_runtimelinking" = yes; then
20648 shared_flag="$shared_flag "'${wl}-G'
20650 else
20651 # not using gcc
20652 if test "$host_cpu" = ia64; then
20653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20654 # chokes on -Wl,-G. The following line is correct:
20655 shared_flag='-G'
20656 else
20657 if test "$aix_use_runtimelinking" = yes; then
20658 shared_flag='${wl}-G'
20659 else
20660 shared_flag='${wl}-bM:SRE'
20665 # It seems that -bexpall does not export symbols beginning with
20666 # underscore (_), so it is better to generate a list of symbols to export.
20667 always_export_symbols_GCJ=yes
20668 if test "$aix_use_runtimelinking" = yes; then
20669 # Warning - without using the other runtime loading flags (-brtl),
20670 # -berok will link without error, but may produce a broken library.
20671 allow_undefined_flag_GCJ='-berok'
20672 # Determine the default libpath from the value encoded in an empty executable.
20673 cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h. */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20681 main ()
20685 return 0;
20687 _ACEOF
20688 rm -f conftest.$ac_objext conftest$ac_exeext
20689 if { (ac_try="$ac_link"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693 esac
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>conftest.er1
20696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest$ac_exeext &&
20705 $as_test_x conftest$ac_exeext; then
20707 lt_aix_libpath_sed='
20708 /Import File Strings/,/^$/ {
20709 /^0/ {
20710 s/^0 *\(.*\)$/\1/
20714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20715 # Check for a 64-bit object if we didn't find anything.
20716 if test -z "$aix_libpath"; then
20717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20719 else
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20727 conftest$ac_exeext conftest.$ac_ext
20728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20730 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20731 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20732 else
20733 if test "$host_cpu" = ia64; then
20734 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20735 allow_undefined_flag_GCJ="-z nodefs"
20736 archive_expsym_cmds_GCJ="\$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"
20737 else
20738 # Determine the default libpath from the value encoded in an empty executable.
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h. */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20747 main ()
20751 return 0;
20753 _ACEOF
20754 rm -f conftest.$ac_objext conftest$ac_exeext
20755 if { (ac_try="$ac_link"
20756 case "(($ac_try" in
20757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758 *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761 (eval "$ac_link") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest$ac_exeext &&
20771 $as_test_x conftest$ac_exeext; then
20773 lt_aix_libpath_sed='
20774 /Import File Strings/,/^$/ {
20775 /^0/ {
20776 s/^0 *\(.*\)$/\1/
20780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20781 # Check for a 64-bit object if we didn't find anything.
20782 if test -z "$aix_libpath"; then
20783 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20785 else
20786 echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20793 conftest$ac_exeext conftest.$ac_ext
20794 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20796 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20797 # Warning - without using the other run time loading flags,
20798 # -berok will link without error, but may produce a broken library.
20799 no_undefined_flag_GCJ=' ${wl}-bernotok'
20800 allow_undefined_flag_GCJ=' ${wl}-berok'
20801 # Exported symbols can be pulled into shared objects from archives
20802 whole_archive_flag_spec_GCJ='$convenience'
20803 archive_cmds_need_lc_GCJ=yes
20804 # This is similar to how AIX traditionally builds its shared libraries.
20805 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20810 amigaos*)
20811 archive_cmds_GCJ='$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)'
20812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20813 hardcode_minus_L_GCJ=yes
20814 # see comment about different semantics on the GNU ld section
20815 ld_shlibs_GCJ=no
20818 bsdi[45]*)
20819 export_dynamic_flag_spec_GCJ=-rdynamic
20822 cygwin* | mingw* | pw32*)
20823 # When not using gcc, we currently assume that we are using
20824 # Microsoft Visual C++.
20825 # hardcode_libdir_flag_spec is actually meaningless, as there is
20826 # no search path for DLLs.
20827 hardcode_libdir_flag_spec_GCJ=' '
20828 allow_undefined_flag_GCJ=unsupported
20829 # Tell ltmain to make .lib files, not .a files.
20830 libext=lib
20831 # Tell ltmain to make .dll files, not .so files.
20832 shrext_cmds=".dll"
20833 # FIXME: Setting linknames here is a bad hack.
20834 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20835 # The linker will automatically build a .lib file if we build a DLL.
20836 old_archive_From_new_cmds_GCJ='true'
20837 # FIXME: Should let the user specify the lib program.
20838 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20839 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20840 enable_shared_with_static_runtimes_GCJ=yes
20843 darwin* | rhapsody*)
20844 case $host_os in
20845 rhapsody* | darwin1.[012])
20846 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20848 *) # Darwin 1.3 on
20849 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20850 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20851 else
20852 case ${MACOSX_DEPLOYMENT_TARGET} in
20853 10.[012])
20854 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20856 10.*)
20857 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20859 esac
20862 esac
20863 archive_cmds_need_lc_GCJ=no
20864 hardcode_direct_GCJ=no
20865 hardcode_automatic_GCJ=yes
20866 hardcode_shlibpath_var_GCJ=unsupported
20867 whole_archive_flag_spec_GCJ=''
20868 link_all_deplibs_GCJ=yes
20869 if test "$GCC" = yes ; then
20870 output_verbose_link_cmd='echo'
20871 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
20872 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20873 archive_expsym_cmds_GCJ="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}"
20874 module_expsym_cmds_GCJ="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}"
20875 else
20876 case $cc_basename in
20877 xlc*)
20878 output_verbose_link_cmd='echo'
20879 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20880 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20881 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20882 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20883 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20886 ld_shlibs_GCJ=no
20888 esac
20892 dgux*)
20893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20894 hardcode_libdir_flag_spec_GCJ='-L$libdir'
20895 hardcode_shlibpath_var_GCJ=no
20898 freebsd1*)
20899 ld_shlibs_GCJ=no
20902 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20903 # support. Future versions do this automatically, but an explicit c++rt0.o
20904 # does not break anything, and helps significantly (at the cost of a little
20905 # extra space).
20906 freebsd2.2*)
20907 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20908 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20909 hardcode_direct_GCJ=yes
20910 hardcode_shlibpath_var_GCJ=no
20913 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20914 freebsd2*)
20915 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20916 hardcode_direct_GCJ=yes
20917 hardcode_minus_L_GCJ=yes
20918 hardcode_shlibpath_var_GCJ=no
20921 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20922 freebsd* | dragonfly*)
20923 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20924 hardcode_libdir_flag_spec_GCJ='-R$libdir'
20925 hardcode_direct_GCJ=yes
20926 hardcode_shlibpath_var_GCJ=no
20929 hpux9*)
20930 if test "$GCC" = yes; then
20931 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20932 else
20933 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20935 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20936 hardcode_libdir_separator_GCJ=:
20937 hardcode_direct_GCJ=yes
20939 # hardcode_minus_L: Not really in the search PATH,
20940 # but as the default location of the library.
20941 hardcode_minus_L_GCJ=yes
20942 export_dynamic_flag_spec_GCJ='${wl}-E'
20945 hpux10*)
20946 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20948 else
20949 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20951 if test "$with_gnu_ld" = no; then
20952 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20953 hardcode_libdir_separator_GCJ=:
20955 hardcode_direct_GCJ=yes
20956 export_dynamic_flag_spec_GCJ='${wl}-E'
20958 # hardcode_minus_L: Not really in the search PATH,
20959 # but as the default location of the library.
20960 hardcode_minus_L_GCJ=yes
20964 hpux11*)
20965 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20966 case $host_cpu in
20967 hppa*64*)
20968 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20970 ia64*)
20971 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20974 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20976 esac
20977 else
20978 case $host_cpu in
20979 hppa*64*)
20980 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20982 ia64*)
20983 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20986 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20988 esac
20990 if test "$with_gnu_ld" = no; then
20991 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20992 hardcode_libdir_separator_GCJ=:
20994 case $host_cpu in
20995 hppa*64*|ia64*)
20996 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20997 hardcode_direct_GCJ=no
20998 hardcode_shlibpath_var_GCJ=no
21001 hardcode_direct_GCJ=yes
21002 export_dynamic_flag_spec_GCJ='${wl}-E'
21004 # hardcode_minus_L: Not really in the search PATH,
21005 # but as the default location of the library.
21006 hardcode_minus_L_GCJ=yes
21008 esac
21012 irix5* | irix6* | nonstopux*)
21013 if test "$GCC" = yes; then
21014 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21015 else
21016 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21017 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21020 hardcode_libdir_separator_GCJ=:
21021 link_all_deplibs_GCJ=yes
21024 netbsd* | netbsdelf*-gnu)
21025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21026 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21027 else
21028 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21030 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21031 hardcode_direct_GCJ=yes
21032 hardcode_shlibpath_var_GCJ=no
21035 newsos6)
21036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21037 hardcode_direct_GCJ=yes
21038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21039 hardcode_libdir_separator_GCJ=:
21040 hardcode_shlibpath_var_GCJ=no
21043 openbsd*)
21044 if test -f /usr/libexec/ld.so; then
21045 hardcode_direct_GCJ=yes
21046 hardcode_shlibpath_var_GCJ=no
21047 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21048 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21049 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21050 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21051 export_dynamic_flag_spec_GCJ='${wl}-E'
21052 else
21053 case $host_os in
21054 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21055 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21059 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21060 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21062 esac
21064 else
21065 ld_shlibs_GCJ=no
21069 os2*)
21070 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21071 hardcode_minus_L_GCJ=yes
21072 allow_undefined_flag_GCJ=unsupported
21073 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
21074 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21077 osf3*)
21078 if test "$GCC" = yes; then
21079 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21080 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21081 else
21082 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21083 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21086 hardcode_libdir_separator_GCJ=:
21089 osf4* | osf5*) # as osf3* with the addition of -msym flag
21090 if test "$GCC" = yes; then
21091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21092 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21094 else
21095 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21096 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21097 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
21098 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21100 # Both c and cxx compiler support -rpath directly
21101 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21103 hardcode_libdir_separator_GCJ=:
21106 solaris*)
21107 no_undefined_flag_GCJ=' -z text'
21108 if test "$GCC" = yes; then
21109 wlarc='${wl}'
21110 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21111 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21112 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21113 else
21114 wlarc=''
21115 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21116 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21119 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21120 hardcode_shlibpath_var_GCJ=no
21121 case $host_os in
21122 solaris2.[0-5] | solaris2.[0-5].*) ;;
21124 # The compiler driver will combine and reorder linker options,
21125 # but understands `-z linker_flag'. GCC discards it without `$wl',
21126 # but is careful enough not to reorder.
21127 # Supported since Solaris 2.6 (maybe 2.5.1?)
21128 if test "$GCC" = yes; then
21129 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21130 else
21131 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
21134 esac
21135 link_all_deplibs_GCJ=yes
21138 sunos4*)
21139 if test "x$host_vendor" = xsequent; then
21140 # Use $CC to link under sequent, because it throws in some extra .o
21141 # files that make .init and .fini sections work.
21142 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21143 else
21144 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21146 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21147 hardcode_direct_GCJ=yes
21148 hardcode_minus_L_GCJ=yes
21149 hardcode_shlibpath_var_GCJ=no
21152 sysv4)
21153 case $host_vendor in
21154 sni)
21155 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21156 hardcode_direct_GCJ=yes # is this really true???
21158 siemens)
21159 ## LD is ld it makes a PLAMLIB
21160 ## CC just makes a GrossModule.
21161 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21162 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21163 hardcode_direct_GCJ=no
21165 motorola)
21166 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21167 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21169 esac
21170 runpath_var='LD_RUN_PATH'
21171 hardcode_shlibpath_var_GCJ=no
21174 sysv4.3*)
21175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21176 hardcode_shlibpath_var_GCJ=no
21177 export_dynamic_flag_spec_GCJ='-Bexport'
21180 sysv4*MP*)
21181 if test -d /usr/nec; then
21182 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21183 hardcode_shlibpath_var_GCJ=no
21184 runpath_var=LD_RUN_PATH
21185 hardcode_runpath_var=yes
21186 ld_shlibs_GCJ=yes
21190 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21191 no_undefined_flag_GCJ='${wl}-z,text'
21192 archive_cmds_need_lc_GCJ=no
21193 hardcode_shlibpath_var_GCJ=no
21194 runpath_var='LD_RUN_PATH'
21196 if test "$GCC" = yes; then
21197 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21198 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21199 else
21200 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21201 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21205 sysv5* | sco3.2v5* | sco5v6*)
21206 # Note: We can NOT use -z defs as we might desire, because we do not
21207 # link with -lc, and that would cause any symbols used from libc to
21208 # always be unresolved, which means just about no library would
21209 # ever link correctly. If we're not using GNU ld we use -z text
21210 # though, which does catch some bad symbols but isn't as heavy-handed
21211 # as -z defs.
21212 no_undefined_flag_GCJ='${wl}-z,text'
21213 allow_undefined_flag_GCJ='${wl}-z,nodefs'
21214 archive_cmds_need_lc_GCJ=no
21215 hardcode_shlibpath_var_GCJ=no
21216 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21217 hardcode_libdir_separator_GCJ=':'
21218 link_all_deplibs_GCJ=yes
21219 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21220 runpath_var='LD_RUN_PATH'
21222 if test "$GCC" = yes; then
21223 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21224 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21225 else
21226 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21227 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21231 uts4*)
21232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21234 hardcode_shlibpath_var_GCJ=no
21238 ld_shlibs_GCJ=no
21240 esac
21243 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21244 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
21245 test "$ld_shlibs_GCJ" = no && can_build_shared=no
21248 # Do we need to explicitly link libc?
21250 case "x$archive_cmds_need_lc_GCJ" in
21251 x|xyes)
21252 # Assume -lc should be added
21253 archive_cmds_need_lc_GCJ=yes
21255 if test "$enable_shared" = yes && test "$GCC" = yes; then
21256 case $archive_cmds_GCJ in
21257 *'~'*)
21258 # FIXME: we may have to deal with multi-command sequences.
21260 '$CC '*)
21261 # Test whether the compiler implicitly links with -lc since on some
21262 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21263 # to ld, don't add -lc before -lgcc.
21264 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21265 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21266 $rm conftest*
21267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } 2>conftest.err; then
21274 soname=conftest
21275 lib=conftest
21276 libobjs=conftest.$ac_objext
21277 deplibs=
21278 wl=$lt_prog_compiler_wl_GCJ
21279 pic_flag=$lt_prog_compiler_pic_GCJ
21280 compiler_flags=-v
21281 linker_flags=-v
21282 verstring=
21283 output_objdir=.
21284 libname=conftest
21285 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21286 allow_undefined_flag_GCJ=
21287 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21288 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }
21292 then
21293 archive_cmds_need_lc_GCJ=no
21294 else
21295 archive_cmds_need_lc_GCJ=yes
21297 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21298 else
21299 cat conftest.err 1>&5
21301 $rm conftest*
21302 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21303 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
21305 esac
21308 esac
21310 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21311 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21312 library_names_spec=
21313 libname_spec='lib$name'
21314 soname_spec=
21315 shrext_cmds=".so"
21316 postinstall_cmds=
21317 postuninstall_cmds=
21318 finish_cmds=
21319 finish_eval=
21320 shlibpath_var=
21321 shlibpath_overrides_runpath=unknown
21322 version_type=none
21323 dynamic_linker="$host_os ld.so"
21324 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21326 need_lib_prefix=unknown
21327 hardcode_into_libs=no
21329 # when you set need_version to no, make sure it does not cause -set_version
21330 # flags to be left without arguments
21331 need_version=unknown
21333 case $host_os in
21334 aix3*)
21335 version_type=linux
21336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21337 shlibpath_var=LIBPATH
21339 # AIX 3 has no versioning support, so we append a major version to the name.
21340 soname_spec='${libname}${release}${shared_ext}$major'
21343 aix[4-9]*)
21344 version_type=linux
21345 need_lib_prefix=no
21346 need_version=no
21347 hardcode_into_libs=yes
21348 if test "$host_cpu" = ia64; then
21349 # AIX 5 supports IA64
21350 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21351 shlibpath_var=LD_LIBRARY_PATH
21352 else
21353 # With GCC up to 2.95.x, collect2 would create an import file
21354 # for dependence libraries. The import file would start with
21355 # the line `#! .'. This would cause the generated library to
21356 # depend on `.', always an invalid library. This was fixed in
21357 # development snapshots of GCC prior to 3.0.
21358 case $host_os in
21359 aix4 | aix4.[01] | aix4.[01].*)
21360 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21361 echo ' yes '
21362 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21364 else
21365 can_build_shared=no
21368 esac
21369 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21370 # soname into executable. Probably we can add versioning support to
21371 # collect2, so additional links can be useful in future.
21372 if test "$aix_use_runtimelinking" = yes; then
21373 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21374 # instead of lib<name>.a to let people know that these are not
21375 # typical AIX shared libraries.
21376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21377 else
21378 # We preserve .a as extension for shared libraries through AIX4.2
21379 # and later when we are not doing run time linking.
21380 library_names_spec='${libname}${release}.a $libname.a'
21381 soname_spec='${libname}${release}${shared_ext}$major'
21383 shlibpath_var=LIBPATH
21387 amigaos*)
21388 library_names_spec='$libname.ixlibrary $libname.a'
21389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21390 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21393 beos*)
21394 library_names_spec='${libname}${shared_ext}'
21395 dynamic_linker="$host_os ld.so"
21396 shlibpath_var=LIBRARY_PATH
21399 bsdi[45]*)
21400 version_type=linux
21401 need_version=no
21402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21403 soname_spec='${libname}${release}${shared_ext}$major'
21404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21405 shlibpath_var=LD_LIBRARY_PATH
21406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21408 # the default ld.so.conf also contains /usr/contrib/lib and
21409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21410 # libtool to hard-code these into programs
21413 cygwin* | mingw* | pw32*)
21414 version_type=windows
21415 shrext_cmds=".dll"
21416 need_version=no
21417 need_lib_prefix=no
21419 case $GCC,$host_os in
21420 yes,cygwin* | yes,mingw* | yes,pw32*)
21421 library_names_spec='$libname.dll.a'
21422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21423 postinstall_cmds='base_file=`basename \${file}`~
21424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21425 dldir=$destdir/`dirname \$dlpath`~
21426 test -d \$dldir || mkdir -p \$dldir~
21427 $install_prog $dir/$dlname \$dldir/$dlname~
21428 chmod a+x \$dldir/$dlname'
21429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21430 dlpath=$dir/\$dldll~
21431 $rm \$dlpath'
21432 shlibpath_overrides_runpath=yes
21434 case $host_os in
21435 cygwin*)
21436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21437 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21438 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21440 mingw*)
21441 # MinGW DLLs use traditional 'lib' prefix
21442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21444 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21445 # It is most probably a Windows format PATH printed by
21446 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21447 # path with ; separators, and with drive letters. We can handle the
21448 # drive letters (cygwin fileutils understands them), so leave them,
21449 # especially as we might pass files found there to a mingw objdump,
21450 # which wouldn't understand a cygwinified path. Ahh.
21451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21452 else
21453 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21456 pw32*)
21457 # pw32 DLLs use 'pw' prefix rather than 'lib'
21458 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21460 esac
21464 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21466 esac
21467 dynamic_linker='Win32 ld.exe'
21468 # FIXME: first we should search . and the directory the executable is in
21469 shlibpath_var=PATH
21472 darwin* | rhapsody*)
21473 dynamic_linker="$host_os dyld"
21474 version_type=darwin
21475 need_lib_prefix=no
21476 need_version=no
21477 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21478 soname_spec='${libname}${release}${major}$shared_ext'
21479 shlibpath_overrides_runpath=yes
21480 shlibpath_var=DYLD_LIBRARY_PATH
21481 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21483 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21486 dgux*)
21487 version_type=linux
21488 need_lib_prefix=no
21489 need_version=no
21490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21491 soname_spec='${libname}${release}${shared_ext}$major'
21492 shlibpath_var=LD_LIBRARY_PATH
21495 freebsd1*)
21496 dynamic_linker=no
21499 freebsd* | dragonfly*)
21500 # DragonFly does not have aout. When/if they implement a new
21501 # versioning mechanism, adjust this.
21502 if test -x /usr/bin/objformat; then
21503 objformat=`/usr/bin/objformat`
21504 else
21505 case $host_os in
21506 freebsd[123]*) objformat=aout ;;
21507 *) objformat=elf ;;
21508 esac
21510 version_type=freebsd-$objformat
21511 case $version_type in
21512 freebsd-elf*)
21513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21514 need_version=no
21515 need_lib_prefix=no
21517 freebsd-*)
21518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21519 need_version=yes
21521 esac
21522 shlibpath_var=LD_LIBRARY_PATH
21523 case $host_os in
21524 freebsd2*)
21525 shlibpath_overrides_runpath=yes
21527 freebsd3.[01]* | freebsdelf3.[01]*)
21528 shlibpath_overrides_runpath=yes
21529 hardcode_into_libs=yes
21531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21533 shlibpath_overrides_runpath=no
21534 hardcode_into_libs=yes
21536 *) # from 4.6 on, and DragonFly
21537 shlibpath_overrides_runpath=yes
21538 hardcode_into_libs=yes
21540 esac
21543 gnu*)
21544 version_type=linux
21545 need_lib_prefix=no
21546 need_version=no
21547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21548 soname_spec='${libname}${release}${shared_ext}$major'
21549 shlibpath_var=LD_LIBRARY_PATH
21550 hardcode_into_libs=yes
21553 hpux9* | hpux10* | hpux11*)
21554 # Give a soname corresponding to the major version so that dld.sl refuses to
21555 # link against other versions.
21556 version_type=sunos
21557 need_lib_prefix=no
21558 need_version=no
21559 case $host_cpu in
21560 ia64*)
21561 shrext_cmds='.so'
21562 hardcode_into_libs=yes
21563 dynamic_linker="$host_os dld.so"
21564 shlibpath_var=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21567 soname_spec='${libname}${release}${shared_ext}$major'
21568 if test "X$HPUX_IA64_MODE" = X32; then
21569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21570 else
21571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21575 hppa*64*)
21576 shrext_cmds='.sl'
21577 hardcode_into_libs=yes
21578 dynamic_linker="$host_os dld.sl"
21579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21582 soname_spec='${libname}${release}${shared_ext}$major'
21583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21587 shrext_cmds='.sl'
21588 dynamic_linker="$host_os dld.sl"
21589 shlibpath_var=SHLIB_PATH
21590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21592 soname_spec='${libname}${release}${shared_ext}$major'
21594 esac
21595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21596 postinstall_cmds='chmod 555 $lib'
21599 interix[3-9]*)
21600 version_type=linux
21601 need_lib_prefix=no
21602 need_version=no
21603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21604 soname_spec='${libname}${release}${shared_ext}$major'
21605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21606 shlibpath_var=LD_LIBRARY_PATH
21607 shlibpath_overrides_runpath=no
21608 hardcode_into_libs=yes
21611 irix5* | irix6* | nonstopux*)
21612 case $host_os in
21613 nonstopux*) version_type=nonstopux ;;
21615 if test "$lt_cv_prog_gnu_ld" = yes; then
21616 version_type=linux
21617 else
21618 version_type=irix
21619 fi ;;
21620 esac
21621 need_lib_prefix=no
21622 need_version=no
21623 soname_spec='${libname}${release}${shared_ext}$major'
21624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21625 case $host_os in
21626 irix5* | nonstopux*)
21627 libsuff= shlibsuff=
21630 case $LD in # libtool.m4 will add one of these switches to LD
21631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21632 libsuff= shlibsuff= libmagic=32-bit;;
21633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21634 libsuff=32 shlibsuff=N32 libmagic=N32;;
21635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21637 *) libsuff= shlibsuff= libmagic=never-match;;
21638 esac
21640 esac
21641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21642 shlibpath_overrides_runpath=no
21643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21645 hardcode_into_libs=yes
21648 # No shared lib support for Linux oldld, aout, or coff.
21649 linux*oldld* | linux*aout* | linux*coff*)
21650 dynamic_linker=no
21653 # This must be Linux ELF.
21654 linux* | k*bsd*-gnu)
21655 version_type=linux
21656 need_lib_prefix=no
21657 need_version=no
21658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659 soname_spec='${libname}${release}${shared_ext}$major'
21660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21661 shlibpath_var=LD_LIBRARY_PATH
21662 shlibpath_overrides_runpath=no
21663 # This implies no fast_install, which is unacceptable.
21664 # Some rework will be needed to allow for fast_install
21665 # before this can be enabled.
21666 hardcode_into_libs=yes
21668 # Append ld.so.conf contents to the search path
21669 if test -f /etc/ld.so.conf; then
21670 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;/^$/d' | tr '\n' ' '`
21671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21674 # We used to test for /lib/ld.so.1 and disable shared libraries on
21675 # powerpc, because MkLinux only supported shared libraries with the
21676 # GNU dynamic linker. Since this was broken with cross compilers,
21677 # most powerpc-linux boxes support dynamic linking these days and
21678 # people can always --disable-shared, the test was removed, and we
21679 # assume the GNU/Linux dynamic linker is in use.
21680 dynamic_linker='GNU/Linux ld.so'
21683 netbsdelf*-gnu)
21684 version_type=linux
21685 need_lib_prefix=no
21686 need_version=no
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21688 soname_spec='${libname}${release}${shared_ext}$major'
21689 shlibpath_var=LD_LIBRARY_PATH
21690 shlibpath_overrides_runpath=no
21691 hardcode_into_libs=yes
21692 dynamic_linker='NetBSD ld.elf_so'
21695 netbsd*)
21696 version_type=sunos
21697 need_lib_prefix=no
21698 need_version=no
21699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21702 dynamic_linker='NetBSD (a.out) ld.so'
21703 else
21704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21705 soname_spec='${libname}${release}${shared_ext}$major'
21706 dynamic_linker='NetBSD ld.elf_so'
21708 shlibpath_var=LD_LIBRARY_PATH
21709 shlibpath_overrides_runpath=yes
21710 hardcode_into_libs=yes
21713 newsos6)
21714 version_type=linux
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21716 shlibpath_var=LD_LIBRARY_PATH
21717 shlibpath_overrides_runpath=yes
21720 nto-qnx*)
21721 version_type=linux
21722 need_lib_prefix=no
21723 need_version=no
21724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21725 soname_spec='${libname}${release}${shared_ext}$major'
21726 shlibpath_var=LD_LIBRARY_PATH
21727 shlibpath_overrides_runpath=yes
21730 openbsd*)
21731 version_type=sunos
21732 sys_lib_dlsearch_path_spec="/usr/lib"
21733 need_lib_prefix=no
21734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21735 case $host_os in
21736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21737 *) need_version=no ;;
21738 esac
21739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21741 shlibpath_var=LD_LIBRARY_PATH
21742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21743 case $host_os in
21744 openbsd2.[89] | openbsd2.[89].*)
21745 shlibpath_overrides_runpath=no
21748 shlibpath_overrides_runpath=yes
21750 esac
21751 else
21752 shlibpath_overrides_runpath=yes
21756 os2*)
21757 libname_spec='$name'
21758 shrext_cmds=".dll"
21759 need_lib_prefix=no
21760 library_names_spec='$libname${shared_ext} $libname.a'
21761 dynamic_linker='OS/2 ld.exe'
21762 shlibpath_var=LIBPATH
21765 osf3* | osf4* | osf5*)
21766 version_type=osf
21767 need_lib_prefix=no
21768 need_version=no
21769 soname_spec='${libname}${release}${shared_ext}$major'
21770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 shlibpath_var=LD_LIBRARY_PATH
21772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21776 rdos*)
21777 dynamic_linker=no
21780 solaris*)
21781 version_type=linux
21782 need_lib_prefix=no
21783 need_version=no
21784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21785 soname_spec='${libname}${release}${shared_ext}$major'
21786 shlibpath_var=LD_LIBRARY_PATH
21787 shlibpath_overrides_runpath=yes
21788 hardcode_into_libs=yes
21789 # ldd complains unless libraries are executable
21790 postinstall_cmds='chmod +x $lib'
21793 sunos4*)
21794 version_type=sunos
21795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21797 shlibpath_var=LD_LIBRARY_PATH
21798 shlibpath_overrides_runpath=yes
21799 if test "$with_gnu_ld" = yes; then
21800 need_lib_prefix=no
21802 need_version=yes
21805 sysv4 | sysv4.3*)
21806 version_type=linux
21807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21808 soname_spec='${libname}${release}${shared_ext}$major'
21809 shlibpath_var=LD_LIBRARY_PATH
21810 case $host_vendor in
21811 sni)
21812 shlibpath_overrides_runpath=no
21813 need_lib_prefix=no
21814 export_dynamic_flag_spec='${wl}-Blargedynsym'
21815 runpath_var=LD_RUN_PATH
21817 siemens)
21818 need_lib_prefix=no
21820 motorola)
21821 need_lib_prefix=no
21822 need_version=no
21823 shlibpath_overrides_runpath=no
21824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21826 esac
21829 sysv4*MP*)
21830 if test -d /usr/nec ;then
21831 version_type=linux
21832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21833 soname_spec='$libname${shared_ext}.$major'
21834 shlibpath_var=LD_LIBRARY_PATH
21838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21839 version_type=freebsd-elf
21840 need_lib_prefix=no
21841 need_version=no
21842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21843 soname_spec='${libname}${release}${shared_ext}$major'
21844 shlibpath_var=LD_LIBRARY_PATH
21845 hardcode_into_libs=yes
21846 if test "$with_gnu_ld" = yes; then
21847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21848 shlibpath_overrides_runpath=no
21849 else
21850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21851 shlibpath_overrides_runpath=yes
21852 case $host_os in
21853 sco3.2v5*)
21854 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21856 esac
21858 sys_lib_dlsearch_path_spec='/usr/lib'
21861 uts4*)
21862 version_type=linux
21863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21864 soname_spec='${libname}${release}${shared_ext}$major'
21865 shlibpath_var=LD_LIBRARY_PATH
21869 dynamic_linker=no
21871 esac
21872 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21873 echo "${ECHO_T}$dynamic_linker" >&6; }
21874 test "$dynamic_linker" = no && can_build_shared=no
21876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
21882 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21883 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
21889 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21891 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21892 if test "$GCC" = yes; then
21893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21896 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21897 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21898 hardcode_action_GCJ=
21899 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21900 test -n "$runpath_var_GCJ" || \
21901 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21903 # We can hardcode non-existant directories.
21904 if test "$hardcode_direct_GCJ" != no &&
21905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21906 # have to relink, otherwise we might link with an installed library
21907 # when we should be linking with a yet-to-be-installed one
21908 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21909 test "$hardcode_minus_L_GCJ" != no; then
21910 # Linking always hardcodes the temporary library directory.
21911 hardcode_action_GCJ=relink
21912 else
21913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21914 hardcode_action_GCJ=immediate
21916 else
21917 # We cannot hardcode anything, or else we can only hardcode existing
21918 # directories.
21919 hardcode_action_GCJ=unsupported
21921 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21922 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
21924 if test "$hardcode_action_GCJ" = relink; then
21925 # Fast installation is not supported
21926 enable_fast_install=no
21927 elif test "$shlibpath_overrides_runpath" = yes ||
21928 test "$enable_shared" = no; then
21929 # Fast installation is not necessary
21930 enable_fast_install=needless
21934 # The else clause should only fire when bootstrapping the
21935 # libtool distribution, otherwise you forgot to ship ltmain.sh
21936 # with your package, and you will get complaints that there are
21937 # no rules to generate ltmain.sh.
21938 if test -f "$ltmain"; then
21939 # See if we are running on zsh, and set the options which allow our commands through
21940 # without removal of \ escapes.
21941 if test -n "${ZSH_VERSION+set}" ; then
21942 setopt NO_GLOB_SUBST
21944 # Now quote all the things that may contain metacharacters while being
21945 # careful not to overquote the AC_SUBSTed values. We take copies of the
21946 # variables and quote the copies for generation of the libtool script.
21947 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21948 SED SHELL STRIP \
21949 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21950 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21951 deplibs_check_method reload_flag reload_cmds need_locks \
21952 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21953 lt_cv_sys_global_symbol_to_c_name_address \
21954 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21955 old_postinstall_cmds old_postuninstall_cmds \
21956 compiler_GCJ \
21957 CC_GCJ \
21958 LD_GCJ \
21959 lt_prog_compiler_wl_GCJ \
21960 lt_prog_compiler_pic_GCJ \
21961 lt_prog_compiler_static_GCJ \
21962 lt_prog_compiler_no_builtin_flag_GCJ \
21963 export_dynamic_flag_spec_GCJ \
21964 thread_safe_flag_spec_GCJ \
21965 whole_archive_flag_spec_GCJ \
21966 enable_shared_with_static_runtimes_GCJ \
21967 old_archive_cmds_GCJ \
21968 old_archive_from_new_cmds_GCJ \
21969 predep_objects_GCJ \
21970 postdep_objects_GCJ \
21971 predeps_GCJ \
21972 postdeps_GCJ \
21973 compiler_lib_search_path_GCJ \
21974 compiler_lib_search_dirs_GCJ \
21975 archive_cmds_GCJ \
21976 archive_expsym_cmds_GCJ \
21977 postinstall_cmds_GCJ \
21978 postuninstall_cmds_GCJ \
21979 old_archive_from_expsyms_cmds_GCJ \
21980 allow_undefined_flag_GCJ \
21981 no_undefined_flag_GCJ \
21982 export_symbols_cmds_GCJ \
21983 hardcode_libdir_flag_spec_GCJ \
21984 hardcode_libdir_flag_spec_ld_GCJ \
21985 hardcode_libdir_separator_GCJ \
21986 hardcode_automatic_GCJ \
21987 module_cmds_GCJ \
21988 module_expsym_cmds_GCJ \
21989 lt_cv_prog_compiler_c_o_GCJ \
21990 fix_srcfile_path_GCJ \
21991 exclude_expsyms_GCJ \
21992 include_expsyms_GCJ; do
21994 case $var in
21995 old_archive_cmds_GCJ | \
21996 old_archive_from_new_cmds_GCJ | \
21997 archive_cmds_GCJ | \
21998 archive_expsym_cmds_GCJ | \
21999 module_cmds_GCJ | \
22000 module_expsym_cmds_GCJ | \
22001 old_archive_from_expsyms_cmds_GCJ | \
22002 export_symbols_cmds_GCJ | \
22003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22004 postinstall_cmds | postuninstall_cmds | \
22005 old_postinstall_cmds | old_postuninstall_cmds | \
22006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22007 # Double-quote double-evaled strings.
22008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22013 esac
22014 done
22016 case $lt_echo in
22017 *'\$0 --fallback-echo"')
22018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22020 esac
22022 cfgfile="$ofile"
22024 cat <<__EOF__ >> "$cfgfile"
22025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22029 # Shell to use when invoking shell scripts.
22030 SHELL=$lt_SHELL
22032 # Whether or not to build shared libraries.
22033 build_libtool_libs=$enable_shared
22035 # Whether or not to build static libraries.
22036 build_old_libs=$enable_static
22038 # Whether or not to add -lc for building shared libraries.
22039 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22041 # Whether or not to disallow shared libs when runtime libs are static
22042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22044 # Whether or not to optimize for fast installation.
22045 fast_install=$enable_fast_install
22047 # The host system.
22048 host_alias=$host_alias
22049 host=$host
22050 host_os=$host_os
22052 # The build system.
22053 build_alias=$build_alias
22054 build=$build
22055 build_os=$build_os
22057 # An echo program that does not interpret backslashes.
22058 echo=$lt_echo
22060 # The archiver.
22061 AR=$lt_AR
22062 AR_FLAGS=$lt_AR_FLAGS
22064 # A C compiler.
22065 LTCC=$lt_LTCC
22067 # LTCC compiler flags.
22068 LTCFLAGS=$lt_LTCFLAGS
22070 # A language-specific compiler.
22071 CC=$lt_compiler_GCJ
22073 # Is the compiler the GNU C compiler?
22074 with_gcc=$GCC_GCJ
22076 # An ERE matcher.
22077 EGREP=$lt_EGREP
22079 # The linker used to build libraries.
22080 LD=$lt_LD_GCJ
22082 # Whether we need hard or soft links.
22083 LN_S=$lt_LN_S
22085 # A BSD-compatible nm program.
22086 NM=$lt_NM
22088 # A symbol stripping program
22089 STRIP=$lt_STRIP
22091 # Used to examine libraries when file_magic_cmd begins "file"
22092 MAGIC_CMD=$MAGIC_CMD
22094 # Used on cygwin: DLL creation program.
22095 DLLTOOL="$DLLTOOL"
22097 # Used on cygwin: object dumper.
22098 OBJDUMP="$OBJDUMP"
22100 # Used on cygwin: assembler.
22101 AS="$AS"
22103 # The name of the directory that contains temporary libtool files.
22104 objdir=$objdir
22106 # How to create reloadable object files.
22107 reload_flag=$lt_reload_flag
22108 reload_cmds=$lt_reload_cmds
22110 # How to pass a linker flag through the compiler.
22111 wl=$lt_lt_prog_compiler_wl_GCJ
22113 # Object file suffix (normally "o").
22114 objext="$ac_objext"
22116 # Old archive suffix (normally "a").
22117 libext="$libext"
22119 # Shared library suffix (normally ".so").
22120 shrext_cmds='$shrext_cmds'
22122 # Executable file suffix (normally "").
22123 exeext="$exeext"
22125 # Additional compiler flags for building library objects.
22126 pic_flag=$lt_lt_prog_compiler_pic_GCJ
22127 pic_mode=$pic_mode
22129 # What is the maximum length of a command?
22130 max_cmd_len=$lt_cv_sys_max_cmd_len
22132 # Does compiler simultaneously support -c and -o options?
22133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22135 # Must we lock files when doing compilation?
22136 need_locks=$lt_need_locks
22138 # Do we need the lib prefix for modules?
22139 need_lib_prefix=$need_lib_prefix
22141 # Do we need a version for libraries?
22142 need_version=$need_version
22144 # Whether dlopen is supported.
22145 dlopen_support=$enable_dlopen
22147 # Whether dlopen of programs is supported.
22148 dlopen_self=$enable_dlopen_self
22150 # Whether dlopen of statically linked programs is supported.
22151 dlopen_self_static=$enable_dlopen_self_static
22153 # Compiler flag to prevent dynamic linking.
22154 link_static_flag=$lt_lt_prog_compiler_static_GCJ
22156 # Compiler flag to turn off builtin functions.
22157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22159 # Compiler flag to allow reflexive dlopens.
22160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22162 # Compiler flag to generate shared objects directly from archives.
22163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22165 # Compiler flag to generate thread-safe objects.
22166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22168 # Library versioning type.
22169 version_type=$version_type
22171 # Format of library name prefix.
22172 libname_spec=$lt_libname_spec
22174 # List of archive names. First name is the real one, the rest are links.
22175 # The last name is the one that the linker finds with -lNAME.
22176 library_names_spec=$lt_library_names_spec
22178 # The coded name of the library, if different from the real name.
22179 soname_spec=$lt_soname_spec
22181 # Commands used to build and install an old-style archive.
22182 RANLIB=$lt_RANLIB
22183 old_archive_cmds=$lt_old_archive_cmds_GCJ
22184 old_postinstall_cmds=$lt_old_postinstall_cmds
22185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22187 # Create an old-style archive from a shared archive.
22188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22190 # Create a temporary old-style archive to link instead of a shared archive.
22191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22193 # Commands used to build and install a shared archive.
22194 archive_cmds=$lt_archive_cmds_GCJ
22195 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22196 postinstall_cmds=$lt_postinstall_cmds
22197 postuninstall_cmds=$lt_postuninstall_cmds
22199 # Commands used to build a loadable module (assumed same as above if empty)
22200 module_cmds=$lt_module_cmds_GCJ
22201 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22203 # Commands to strip libraries.
22204 old_striplib=$lt_old_striplib
22205 striplib=$lt_striplib
22207 # Dependencies to place before the objects being linked to create a
22208 # shared library.
22209 predep_objects=$lt_predep_objects_GCJ
22211 # Dependencies to place after the objects being linked to create a
22212 # shared library.
22213 postdep_objects=$lt_postdep_objects_GCJ
22215 # Dependencies to place before the objects being linked to create a
22216 # shared library.
22217 predeps=$lt_predeps_GCJ
22219 # Dependencies to place after the objects being linked to create a
22220 # shared library.
22221 postdeps=$lt_postdeps_GCJ
22223 # The directories searched by this compiler when creating a shared
22224 # library
22225 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
22227 # The library search path used internally by the compiler when linking
22228 # a shared library.
22229 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22231 # Method to check whether dependent libraries are shared objects.
22232 deplibs_check_method=$lt_deplibs_check_method
22234 # Command to use when deplibs_check_method == file_magic.
22235 file_magic_cmd=$lt_file_magic_cmd
22237 # Flag that allows shared libraries with undefined symbols to be built.
22238 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22240 # Flag that forces no undefined symbols.
22241 no_undefined_flag=$lt_no_undefined_flag_GCJ
22243 # Commands used to finish a libtool library installation in a directory.
22244 finish_cmds=$lt_finish_cmds
22246 # Same as above, but a single script fragment to be evaled but not shown.
22247 finish_eval=$lt_finish_eval
22249 # Take the output of nm and produce a listing of raw symbols and C names.
22250 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22252 # Transform the output of nm in a proper C declaration
22253 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22255 # Transform the output of nm in a C name address pair
22256 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22258 # This is the shared library runtime path variable.
22259 runpath_var=$runpath_var
22261 # This is the shared library path variable.
22262 shlibpath_var=$shlibpath_var
22264 # Is shlibpath searched before the hard-coded library search path?
22265 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22267 # How to hardcode a shared library path into an executable.
22268 hardcode_action=$hardcode_action_GCJ
22270 # Whether we should hardcode library paths into libraries.
22271 hardcode_into_libs=$hardcode_into_libs
22273 # Flag to hardcode \$libdir into a binary during linking.
22274 # This must work even if \$libdir does not exist.
22275 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22277 # If ld is used when linking, flag to hardcode \$libdir into
22278 # a binary during linking. This must work even if \$libdir does
22279 # not exist.
22280 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22282 # Whether we need a single -rpath flag with a separated argument.
22283 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22285 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22286 # resulting binary.
22287 hardcode_direct=$hardcode_direct_GCJ
22289 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22290 # resulting binary.
22291 hardcode_minus_L=$hardcode_minus_L_GCJ
22293 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22294 # the resulting binary.
22295 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22297 # Set to yes if building a shared library automatically hardcodes DIR into the library
22298 # and all subsequent libraries and executables linked against it.
22299 hardcode_automatic=$hardcode_automatic_GCJ
22301 # Variables whose values should be saved in libtool wrapper scripts and
22302 # restored at relink time.
22303 variables_saved_for_relink="$variables_saved_for_relink"
22305 # Whether libtool must link a program against all its dependency libraries.
22306 link_all_deplibs=$link_all_deplibs_GCJ
22308 # Compile-time system search path for libraries
22309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22311 # Run-time system search path for libraries
22312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22314 # Fix the shell variable \$srcfile for the compiler.
22315 fix_srcfile_path=$lt_fix_srcfile_path
22317 # Set to yes if exported symbols are required.
22318 always_export_symbols=$always_export_symbols_GCJ
22320 # The commands to list exported symbols.
22321 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22323 # The commands to extract the exported symbol list from a shared archive.
22324 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22326 # Symbols that should not be listed in the preloaded symbols.
22327 exclude_expsyms=$lt_exclude_expsyms_GCJ
22329 # Symbols that must always be exported.
22330 include_expsyms=$lt_include_expsyms_GCJ
22332 # ### END LIBTOOL TAG CONFIG: $tagname
22334 __EOF__
22337 else
22338 # If there is no Makefile yet, we rely on a make rule to execute
22339 # `config.status --recheck' to rerun these tests and create the
22340 # libtool script then.
22341 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22342 if test -f "$ltmain_in"; then
22343 test -f Makefile && make "$ltmain"
22348 ac_ext=c
22349 ac_cpp='$CPP $CPPFLAGS'
22350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22354 CC="$lt_save_CC"
22356 else
22357 tagname=""
22364 # Source file extension for RC test sources.
22365 ac_ext=rc
22367 # Object file extension for compiled RC test sources.
22368 objext=o
22369 objext_RC=$objext
22371 # Code to be used in simple compile tests
22372 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22374 # Code to be used in simple link tests
22375 lt_simple_link_test_code="$lt_simple_compile_test_code"
22377 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22379 # If no C compiler was specified, use CC.
22380 LTCC=${LTCC-"$CC"}
22382 # If no C compiler flags were specified, use CFLAGS.
22383 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22385 # Allow CC to be a program name with arguments.
22386 compiler=$CC
22389 # save warnings/boilerplate of simple test code
22390 ac_outfile=conftest.$ac_objext
22391 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22392 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22393 _lt_compiler_boilerplate=`cat conftest.err`
22394 $rm conftest*
22396 ac_outfile=conftest.$ac_objext
22397 echo "$lt_simple_link_test_code" >conftest.$ac_ext
22398 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22399 _lt_linker_boilerplate=`cat conftest.err`
22400 $rm -r conftest*
22403 # Allow CC to be a program name with arguments.
22404 lt_save_CC="$CC"
22405 CC=${RC-"windres"}
22406 compiler=$CC
22407 compiler_RC=$CC
22408 for cc_temp in $compiler""; do
22409 case $cc_temp in
22410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22412 \-*) ;;
22413 *) break;;
22414 esac
22415 done
22416 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22418 lt_cv_prog_compiler_c_o_RC=yes
22420 # The else clause should only fire when bootstrapping the
22421 # libtool distribution, otherwise you forgot to ship ltmain.sh
22422 # with your package, and you will get complaints that there are
22423 # no rules to generate ltmain.sh.
22424 if test -f "$ltmain"; then
22425 # See if we are running on zsh, and set the options which allow our commands through
22426 # without removal of \ escapes.
22427 if test -n "${ZSH_VERSION+set}" ; then
22428 setopt NO_GLOB_SUBST
22430 # Now quote all the things that may contain metacharacters while being
22431 # careful not to overquote the AC_SUBSTed values. We take copies of the
22432 # variables and quote the copies for generation of the libtool script.
22433 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22434 SED SHELL STRIP \
22435 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22436 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22437 deplibs_check_method reload_flag reload_cmds need_locks \
22438 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22439 lt_cv_sys_global_symbol_to_c_name_address \
22440 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22441 old_postinstall_cmds old_postuninstall_cmds \
22442 compiler_RC \
22443 CC_RC \
22444 LD_RC \
22445 lt_prog_compiler_wl_RC \
22446 lt_prog_compiler_pic_RC \
22447 lt_prog_compiler_static_RC \
22448 lt_prog_compiler_no_builtin_flag_RC \
22449 export_dynamic_flag_spec_RC \
22450 thread_safe_flag_spec_RC \
22451 whole_archive_flag_spec_RC \
22452 enable_shared_with_static_runtimes_RC \
22453 old_archive_cmds_RC \
22454 old_archive_from_new_cmds_RC \
22455 predep_objects_RC \
22456 postdep_objects_RC \
22457 predeps_RC \
22458 postdeps_RC \
22459 compiler_lib_search_path_RC \
22460 compiler_lib_search_dirs_RC \
22461 archive_cmds_RC \
22462 archive_expsym_cmds_RC \
22463 postinstall_cmds_RC \
22464 postuninstall_cmds_RC \
22465 old_archive_from_expsyms_cmds_RC \
22466 allow_undefined_flag_RC \
22467 no_undefined_flag_RC \
22468 export_symbols_cmds_RC \
22469 hardcode_libdir_flag_spec_RC \
22470 hardcode_libdir_flag_spec_ld_RC \
22471 hardcode_libdir_separator_RC \
22472 hardcode_automatic_RC \
22473 module_cmds_RC \
22474 module_expsym_cmds_RC \
22475 lt_cv_prog_compiler_c_o_RC \
22476 fix_srcfile_path_RC \
22477 exclude_expsyms_RC \
22478 include_expsyms_RC; do
22480 case $var in
22481 old_archive_cmds_RC | \
22482 old_archive_from_new_cmds_RC | \
22483 archive_cmds_RC | \
22484 archive_expsym_cmds_RC | \
22485 module_cmds_RC | \
22486 module_expsym_cmds_RC | \
22487 old_archive_from_expsyms_cmds_RC | \
22488 export_symbols_cmds_RC | \
22489 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22490 postinstall_cmds | postuninstall_cmds | \
22491 old_postinstall_cmds | old_postuninstall_cmds | \
22492 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22493 # Double-quote double-evaled strings.
22494 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22499 esac
22500 done
22502 case $lt_echo in
22503 *'\$0 --fallback-echo"')
22504 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22506 esac
22508 cfgfile="$ofile"
22510 cat <<__EOF__ >> "$cfgfile"
22511 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22515 # Shell to use when invoking shell scripts.
22516 SHELL=$lt_SHELL
22518 # Whether or not to build shared libraries.
22519 build_libtool_libs=$enable_shared
22521 # Whether or not to build static libraries.
22522 build_old_libs=$enable_static
22524 # Whether or not to add -lc for building shared libraries.
22525 build_libtool_need_lc=$archive_cmds_need_lc_RC
22527 # Whether or not to disallow shared libs when runtime libs are static
22528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22530 # Whether or not to optimize for fast installation.
22531 fast_install=$enable_fast_install
22533 # The host system.
22534 host_alias=$host_alias
22535 host=$host
22536 host_os=$host_os
22538 # The build system.
22539 build_alias=$build_alias
22540 build=$build
22541 build_os=$build_os
22543 # An echo program that does not interpret backslashes.
22544 echo=$lt_echo
22546 # The archiver.
22547 AR=$lt_AR
22548 AR_FLAGS=$lt_AR_FLAGS
22550 # A C compiler.
22551 LTCC=$lt_LTCC
22553 # LTCC compiler flags.
22554 LTCFLAGS=$lt_LTCFLAGS
22556 # A language-specific compiler.
22557 CC=$lt_compiler_RC
22559 # Is the compiler the GNU C compiler?
22560 with_gcc=$GCC_RC
22562 # An ERE matcher.
22563 EGREP=$lt_EGREP
22565 # The linker used to build libraries.
22566 LD=$lt_LD_RC
22568 # Whether we need hard or soft links.
22569 LN_S=$lt_LN_S
22571 # A BSD-compatible nm program.
22572 NM=$lt_NM
22574 # A symbol stripping program
22575 STRIP=$lt_STRIP
22577 # Used to examine libraries when file_magic_cmd begins "file"
22578 MAGIC_CMD=$MAGIC_CMD
22580 # Used on cygwin: DLL creation program.
22581 DLLTOOL="$DLLTOOL"
22583 # Used on cygwin: object dumper.
22584 OBJDUMP="$OBJDUMP"
22586 # Used on cygwin: assembler.
22587 AS="$AS"
22589 # The name of the directory that contains temporary libtool files.
22590 objdir=$objdir
22592 # How to create reloadable object files.
22593 reload_flag=$lt_reload_flag
22594 reload_cmds=$lt_reload_cmds
22596 # How to pass a linker flag through the compiler.
22597 wl=$lt_lt_prog_compiler_wl_RC
22599 # Object file suffix (normally "o").
22600 objext="$ac_objext"
22602 # Old archive suffix (normally "a").
22603 libext="$libext"
22605 # Shared library suffix (normally ".so").
22606 shrext_cmds='$shrext_cmds'
22608 # Executable file suffix (normally "").
22609 exeext="$exeext"
22611 # Additional compiler flags for building library objects.
22612 pic_flag=$lt_lt_prog_compiler_pic_RC
22613 pic_mode=$pic_mode
22615 # What is the maximum length of a command?
22616 max_cmd_len=$lt_cv_sys_max_cmd_len
22618 # Does compiler simultaneously support -c and -o options?
22619 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22621 # Must we lock files when doing compilation?
22622 need_locks=$lt_need_locks
22624 # Do we need the lib prefix for modules?
22625 need_lib_prefix=$need_lib_prefix
22627 # Do we need a version for libraries?
22628 need_version=$need_version
22630 # Whether dlopen is supported.
22631 dlopen_support=$enable_dlopen
22633 # Whether dlopen of programs is supported.
22634 dlopen_self=$enable_dlopen_self
22636 # Whether dlopen of statically linked programs is supported.
22637 dlopen_self_static=$enable_dlopen_self_static
22639 # Compiler flag to prevent dynamic linking.
22640 link_static_flag=$lt_lt_prog_compiler_static_RC
22642 # Compiler flag to turn off builtin functions.
22643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22645 # Compiler flag to allow reflexive dlopens.
22646 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22648 # Compiler flag to generate shared objects directly from archives.
22649 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22651 # Compiler flag to generate thread-safe objects.
22652 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22654 # Library versioning type.
22655 version_type=$version_type
22657 # Format of library name prefix.
22658 libname_spec=$lt_libname_spec
22660 # List of archive names. First name is the real one, the rest are links.
22661 # The last name is the one that the linker finds with -lNAME.
22662 library_names_spec=$lt_library_names_spec
22664 # The coded name of the library, if different from the real name.
22665 soname_spec=$lt_soname_spec
22667 # Commands used to build and install an old-style archive.
22668 RANLIB=$lt_RANLIB
22669 old_archive_cmds=$lt_old_archive_cmds_RC
22670 old_postinstall_cmds=$lt_old_postinstall_cmds
22671 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22673 # Create an old-style archive from a shared archive.
22674 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22676 # Create a temporary old-style archive to link instead of a shared archive.
22677 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22679 # Commands used to build and install a shared archive.
22680 archive_cmds=$lt_archive_cmds_RC
22681 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22682 postinstall_cmds=$lt_postinstall_cmds
22683 postuninstall_cmds=$lt_postuninstall_cmds
22685 # Commands used to build a loadable module (assumed same as above if empty)
22686 module_cmds=$lt_module_cmds_RC
22687 module_expsym_cmds=$lt_module_expsym_cmds_RC
22689 # Commands to strip libraries.
22690 old_striplib=$lt_old_striplib
22691 striplib=$lt_striplib
22693 # Dependencies to place before the objects being linked to create a
22694 # shared library.
22695 predep_objects=$lt_predep_objects_RC
22697 # Dependencies to place after the objects being linked to create a
22698 # shared library.
22699 postdep_objects=$lt_postdep_objects_RC
22701 # Dependencies to place before the objects being linked to create a
22702 # shared library.
22703 predeps=$lt_predeps_RC
22705 # Dependencies to place after the objects being linked to create a
22706 # shared library.
22707 postdeps=$lt_postdeps_RC
22709 # The directories searched by this compiler when creating a shared
22710 # library
22711 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
22713 # The library search path used internally by the compiler when linking
22714 # a shared library.
22715 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22717 # Method to check whether dependent libraries are shared objects.
22718 deplibs_check_method=$lt_deplibs_check_method
22720 # Command to use when deplibs_check_method == file_magic.
22721 file_magic_cmd=$lt_file_magic_cmd
22723 # Flag that allows shared libraries with undefined symbols to be built.
22724 allow_undefined_flag=$lt_allow_undefined_flag_RC
22726 # Flag that forces no undefined symbols.
22727 no_undefined_flag=$lt_no_undefined_flag_RC
22729 # Commands used to finish a libtool library installation in a directory.
22730 finish_cmds=$lt_finish_cmds
22732 # Same as above, but a single script fragment to be evaled but not shown.
22733 finish_eval=$lt_finish_eval
22735 # Take the output of nm and produce a listing of raw symbols and C names.
22736 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22738 # Transform the output of nm in a proper C declaration
22739 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22741 # Transform the output of nm in a C name address pair
22742 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22744 # This is the shared library runtime path variable.
22745 runpath_var=$runpath_var
22747 # This is the shared library path variable.
22748 shlibpath_var=$shlibpath_var
22750 # Is shlibpath searched before the hard-coded library search path?
22751 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22753 # How to hardcode a shared library path into an executable.
22754 hardcode_action=$hardcode_action_RC
22756 # Whether we should hardcode library paths into libraries.
22757 hardcode_into_libs=$hardcode_into_libs
22759 # Flag to hardcode \$libdir into a binary during linking.
22760 # This must work even if \$libdir does not exist.
22761 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22763 # If ld is used when linking, flag to hardcode \$libdir into
22764 # a binary during linking. This must work even if \$libdir does
22765 # not exist.
22766 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22768 # Whether we need a single -rpath flag with a separated argument.
22769 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22771 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22772 # resulting binary.
22773 hardcode_direct=$hardcode_direct_RC
22775 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22776 # resulting binary.
22777 hardcode_minus_L=$hardcode_minus_L_RC
22779 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22780 # the resulting binary.
22781 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22783 # Set to yes if building a shared library automatically hardcodes DIR into the library
22784 # and all subsequent libraries and executables linked against it.
22785 hardcode_automatic=$hardcode_automatic_RC
22787 # Variables whose values should be saved in libtool wrapper scripts and
22788 # restored at relink time.
22789 variables_saved_for_relink="$variables_saved_for_relink"
22791 # Whether libtool must link a program against all its dependency libraries.
22792 link_all_deplibs=$link_all_deplibs_RC
22794 # Compile-time system search path for libraries
22795 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22797 # Run-time system search path for libraries
22798 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22800 # Fix the shell variable \$srcfile for the compiler.
22801 fix_srcfile_path=$lt_fix_srcfile_path
22803 # Set to yes if exported symbols are required.
22804 always_export_symbols=$always_export_symbols_RC
22806 # The commands to list exported symbols.
22807 export_symbols_cmds=$lt_export_symbols_cmds_RC
22809 # The commands to extract the exported symbol list from a shared archive.
22810 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22812 # Symbols that should not be listed in the preloaded symbols.
22813 exclude_expsyms=$lt_exclude_expsyms_RC
22815 # Symbols that must always be exported.
22816 include_expsyms=$lt_include_expsyms_RC
22818 # ### END LIBTOOL TAG CONFIG: $tagname
22820 __EOF__
22823 else
22824 # If there is no Makefile yet, we rely on a make rule to execute
22825 # `config.status --recheck' to rerun these tests and create the
22826 # libtool script then.
22827 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22828 if test -f "$ltmain_in"; then
22829 test -f Makefile && make "$ltmain"
22834 ac_ext=c
22835 ac_cpp='$CPP $CPPFLAGS'
22836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22840 CC="$lt_save_CC"
22845 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22846 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22847 { (exit 1); exit 1; }; }
22849 esac
22851 # Append the new tag name to the list of available tags.
22852 if test -n "$tagname" ; then
22853 available_tags="$available_tags $tagname"
22856 done
22857 IFS="$lt_save_ifs"
22859 # Now substitute the updated list of available tags.
22860 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22861 mv "${ofile}T" "$ofile"
22862 chmod +x "$ofile"
22863 else
22864 rm -f "${ofile}T"
22865 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22866 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22867 { (exit 1); exit 1; }; }
22873 # This can be used to rebuild libtool when needed
22874 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22876 # Always use our own libtool.
22877 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22879 # Prevent multiple expansion
22890 { echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
22891 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6; }
22892 case $host in
22893 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
22894 need_no_undefined=yes
22897 need_no_undefined=no
22899 esac
22900 { echo "$as_me:$LINENO: result: $need_no_undefined" >&5
22901 echo "${ECHO_T}$need_no_undefined" >&6; }
22904 if test x$need_no_undefined = xyes; then
22905 NO_UNDEFINED_TRUE=
22906 NO_UNDEFINED_FALSE='#'
22907 else
22908 NO_UNDEFINED_TRUE='#'
22909 NO_UNDEFINED_FALSE=
22913 { echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
22914 echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6; }
22915 mimpure=no
22916 case $host in
22917 *-*-solaris2*)
22918 if test "$GCC" = "yes"; then
22919 mimpure="yes"
22924 esac
22925 { echo "$as_me:$LINENO: result: $mimpure" >&5
22926 echo "${ECHO_T}$mimpure" >&6; }
22929 if test x$mimpure = xyes; then
22930 MIMPURE_TRUE=
22931 MIMPURE_FALSE='#'
22932 else
22933 MIMPURE_TRUE='#'
22934 MIMPURE_FALSE=
22939 if false; then
22940 STATICLIB_TRUE=
22941 STATICLIB_FALSE='#'
22942 else
22943 STATICLIB_TRUE='#'
22944 STATICLIB_FALSE=
22948 { echo "$as_me:$LINENO: checking if we need BUILDING_LIBCURL" >&5
22949 echo $ECHO_N "checking if we need BUILDING_LIBCURL... $ECHO_C" >&6; }
22950 case $host in
22951 *-*-mingw*)
22953 cat >>confdefs.h <<\_ACEOF
22954 #define BUILDING_LIBCURL 1
22955 _ACEOF
22957 { echo "$as_me:$LINENO: result: yes" >&5
22958 echo "${ECHO_T}yes" >&6; }
22959 { echo "$as_me:$LINENO: checking if we need CURL_STATICLIB" >&5
22960 echo $ECHO_N "checking if we need CURL_STATICLIB... $ECHO_C" >&6; }
22961 if test "X$enable_shared" = "Xno"
22962 then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define CURL_STATICLIB 1
22966 _ACEOF
22968 { echo "$as_me:$LINENO: result: yes" >&5
22969 echo "${ECHO_T}yes" >&6; }
22972 if true; then
22973 STATICLIB_TRUE=
22974 STATICLIB_FALSE='#'
22975 else
22976 STATICLIB_TRUE='#'
22977 STATICLIB_FALSE=
22980 else
22981 { echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6; }
22986 { echo "$as_me:$LINENO: result: no" >&5
22987 echo "${ECHO_T}no" >&6; }
22989 esac
22991 # Determine whether all dependent libraries must be specified when linking
22992 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
22993 then
22994 REQUIRE_LIB_DEPS=no
22995 else
22996 REQUIRE_LIB_DEPS=yes
23000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
23002 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
23003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23005 else
23006 cat >conftest.make <<\_ACEOF
23007 SHELL = /bin/sh
23008 all:
23009 @echo '@@@%%%=$(MAKE)=@@@%%%'
23010 _ACEOF
23011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23012 case `${MAKE-make} -f conftest.make 2>/dev/null` in
23013 *@@@%%%=?*=@@@%%%*)
23014 eval ac_cv_prog_make_${ac_make}_set=yes;;
23016 eval ac_cv_prog_make_${ac_make}_set=no;;
23017 esac
23018 rm -f conftest.make
23020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
23021 { echo "$as_me:$LINENO: result: yes" >&5
23022 echo "${ECHO_T}yes" >&6; }
23023 SET_MAKE=
23024 else
23025 { echo "$as_me:$LINENO: result: no" >&5
23026 echo "${ECHO_T}no" >&6; }
23027 SET_MAKE="MAKE=${MAKE-make}"
23031 { echo "$as_me:$LINENO: checking for inline" >&5
23032 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23033 if test "${ac_cv_c_inline+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 else
23036 ac_cv_c_inline=no
23037 for ac_kw in inline __inline__ __inline; do
23038 cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h. */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 #ifndef __cplusplus
23045 typedef int foo_t;
23046 static $ac_kw foo_t static_foo () {return 0; }
23047 $ac_kw foo_t foo () {return 0; }
23048 #endif
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23059 ac_status=$?
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_cv_c_inline=$ac_kw
23069 else
23070 echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 test "$ac_cv_c_inline" != no && break
23078 done
23081 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23082 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23085 case $ac_cv_c_inline in
23086 inline | yes) ;;
23088 case $ac_cv_c_inline in
23089 no) ac_val=;;
23090 *) ac_val=$ac_cv_c_inline;;
23091 esac
23092 cat >>confdefs.h <<_ACEOF
23093 #ifndef __cplusplus
23094 #define inline $ac_val
23095 #endif
23096 _ACEOF
23098 esac
23102 case $host in
23104 x86_64*linux*)
23106 if test "z$ICC" = "z"; then
23108 ICC="no"
23109 { echo "$as_me:$LINENO: checking for icc in use" >&5
23110 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
23111 if test "$GCC" = "yes"; then
23112 cat >conftest.$ac_ext <<_ACEOF
23113 /* confdefs.h. */
23114 _ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 __INTEL_COMPILER
23119 _ACEOF
23120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23121 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
23122 ICC="no"
23123 else
23124 ICC="yes"
23125 { echo "$as_me:$LINENO: result: yes" >&5
23126 echo "${ECHO_T}yes" >&6; }
23130 rm -f conftest*
23133 if test "$ICC" = "no"; then
23134 # this is not ICC
23135 { echo "$as_me:$LINENO: result: no" >&5
23136 echo "${ECHO_T}no" >&6; }
23141 if test "$ICC" = "yes"; then
23142 { echo "$as_me:$LINENO: checking icc version" >&5
23143 echo $ECHO_N "checking icc version... $ECHO_C" >&6; }
23144 iccver=`$CC -dumpversion`
23145 iccnhi=`echo $iccver | cut -d . -f1`
23146 iccnlo=`echo $iccver | cut -d . -f2`
23147 iccnum=`(expr $iccnhi "*" 100 + $iccnlo) 2>/dev/null`
23148 { echo "$as_me:$LINENO: result: $iccver" >&5
23149 echo "${ECHO_T}$iccver" >&6; }
23151 if test "$iccnum" -ge "900" && test "$iccnum" -lt "1000"; then
23152 CFLAGS="$CFLAGS -i-dynamic"
23155 if test "$iccnum" -ge "1000"; then
23156 CFLAGS="$CFLAGS -shared-intel"
23162 esac
23164 { echo "$as_me:$LINENO: checking whether we are using the IBM C compiler" >&5
23165 echo $ECHO_N "checking whether we are using the IBM C compiler... $ECHO_C" >&6; }
23167 if test -z "$SED"; then
23168 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23169 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23170 { (exit 1); exit 1; }; }
23172 if test -z "$GREP"; then
23173 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23174 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23175 { (exit 1); exit 1; }; }
23178 tmp_exp=""
23179 cat >conftest.$ac_ext <<_ACEOF
23181 /* confdefs.h. */
23182 _ACEOF
23183 cat confdefs.h >>conftest.$ac_ext
23184 cat >>conftest.$ac_ext <<_ACEOF
23185 /* end confdefs.h. */
23187 #ifdef __IBMC__
23188 CURL_DEF_TOKEN __IBMC__
23189 #endif
23192 _ACEOF
23193 if { (ac_try="$ac_cpp conftest.$ac_ext"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23197 esac
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23200 ac_status=$?
23201 grep -v '^ *+' conftest.er1 >conftest.err
23202 rm -f conftest.er1
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } >/dev/null && {
23206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23208 }; then
23210 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23211 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23212 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
23213 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23214 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
23215 tmp_exp=""
23218 else
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23225 rm -f conftest.err conftest.$ac_ext
23226 if test -z "$tmp_exp"; then
23227 curl_cv_have_def___IBMC__=no
23229 else
23230 curl_cv_have_def___IBMC__=yes
23231 curl_cv_def___IBMC__=$tmp_exp
23235 if test "$curl_cv_have_def___IBMC__" = "yes"; then
23236 { echo "$as_me:$LINENO: result: yes" >&5
23237 echo "${ECHO_T}yes" >&6; }
23238 CFLAGS="$CFLAGS -qthreaded"
23239 CFLAGS="$CFLAGS -qnoansialias"
23240 CFLAGS="$CFLAGS -qhalt=e"
23241 else
23242 { echo "$as_me:$LINENO: result: no" >&5
23243 echo "${ECHO_T}no" >&6; }
23246 { echo "$as_me:$LINENO: checking whether we are using the DEC/Compaq C compiler" >&5
23247 echo $ECHO_N "checking whether we are using the DEC/Compaq C compiler... $ECHO_C" >&6; }
23249 if test -z "$SED"; then
23250 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23251 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23252 { (exit 1); exit 1; }; }
23254 if test -z "$GREP"; then
23255 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23256 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23257 { (exit 1); exit 1; }; }
23260 tmp_exp=""
23261 cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h. */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23269 #ifdef __DECC
23270 CURL_DEF_TOKEN __DECC
23271 #endif
23274 _ACEOF
23275 if { (ac_try="$ac_cpp conftest.$ac_ext"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23282 ac_status=$?
23283 grep -v '^ *+' conftest.er1 >conftest.err
23284 rm -f conftest.er1
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); } >/dev/null && {
23288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 }; then
23292 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23293 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23294 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
23295 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23296 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
23297 tmp_exp=""
23300 else
23301 echo "$as_me: failed program was:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23307 rm -f conftest.err conftest.$ac_ext
23308 if test -z "$tmp_exp"; then
23309 curl_cv_have_def___DECC=no
23311 else
23312 curl_cv_have_def___DECC=yes
23313 curl_cv_def___DECC=$tmp_exp
23318 if test -z "$SED"; then
23319 { { echo "$as_me:$LINENO: error: SED not set. Cannot continue without SED being set." >&5
23320 echo "$as_me: error: SED not set. Cannot continue without SED being set." >&2;}
23321 { (exit 1); exit 1; }; }
23323 if test -z "$GREP"; then
23324 { { echo "$as_me:$LINENO: error: GREP not set. Cannot continue without GREP being set." >&5
23325 echo "$as_me: error: GREP not set. Cannot continue without GREP being set." >&2;}
23326 { (exit 1); exit 1; }; }
23329 tmp_exp=""
23330 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23338 #ifdef __DECC_VER
23339 CURL_DEF_TOKEN __DECC_VER
23340 #endif
23343 _ACEOF
23344 if { (ac_try="$ac_cpp conftest.$ac_ext"
23345 case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23348 esac
23349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23351 ac_status=$?
23352 grep -v '^ *+' conftest.er1 >conftest.err
23353 rm -f conftest.er1
23354 cat conftest.err >&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } >/dev/null && {
23357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23358 test ! -s conftest.err
23359 }; then
23361 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23362 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23363 "$SED" 's/.*CURL_DEF_TOKEN[ ]//' 2>/dev/null | \
23364 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23365 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
23366 tmp_exp=""
23369 else
23370 echo "$as_me: failed program was:" >&5
23371 sed 's/^/| /' conftest.$ac_ext >&5
23376 rm -f conftest.err conftest.$ac_ext
23377 if test -z "$tmp_exp"; then
23378 curl_cv_have_def___DECC_VER=no
23380 else
23381 curl_cv_have_def___DECC_VER=yes
23382 curl_cv_def___DECC_VER=$tmp_exp
23386 if test "$curl_cv_have_def___DECC" = "yes" &&
23387 test "$curl_cv_have_def___DECC_VER" = "yes"; then
23388 { echo "$as_me:$LINENO: result: yes" >&5
23389 echo "${ECHO_T}yes" >&6; }
23390 CFLAGS="$CFLAGS -std1"
23391 CFLAGS="$CFLAGS -noansi_alias"
23392 CFLAGS="$CFLAGS -msg_enable level3"
23393 CFLAGS="$CFLAGS -warnprotos"
23394 CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
23395 else
23396 { echo "$as_me:$LINENO: result: no" >&5
23397 echo "${ECHO_T}no" >&6; }
23401 { echo "$as_me:$LINENO: checking if compiler halts on compilation errors" >&5
23402 echo $ECHO_N "checking if compiler halts on compilation errors... $ECHO_C" >&6; }
23403 cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h. */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23413 main ()
23416 force compilation error
23419 return 0;
23422 _ACEOF
23423 rm -f conftest.$ac_objext
23424 if { (ac_try="$ac_compile"
23425 case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428 esac
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_compile") 2>conftest.er1
23431 ac_status=$?
23432 grep -v '^ *+' conftest.er1 >conftest.err
23433 rm -f conftest.er1
23434 cat conftest.err >&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); } && {
23437 test -z "$ac_c_werror_flag" ||
23438 test ! -s conftest.err
23439 } && test -s conftest.$ac_objext; then
23441 { echo "$as_me:$LINENO: result: no" >&5
23442 echo "${ECHO_T}no" >&6; }
23443 { { echo "$as_me:$LINENO: error: compiler does not halt on compilation errors." >&5
23444 echo "$as_me: error: compiler does not halt on compilation errors." >&2;}
23445 { (exit 1); exit 1; }; }
23447 else
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23452 { echo "$as_me:$LINENO: result: yes" >&5
23453 echo "${ECHO_T}yes" >&6; }
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 { echo "$as_me:$LINENO: checking if compiler halts on negative sized arrays" >&5
23461 echo $ECHO_N "checking if compiler halts on negative sized arrays... $ECHO_C" >&6; }
23462 cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h. */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
23473 main ()
23476 bad_t dummy;
23479 return 0;
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487 *) ac_try_echo=$ac_try;;
23488 esac
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23491 ac_status=$?
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23501 { echo "$as_me:$LINENO: result: no" >&5
23502 echo "${ECHO_T}no" >&6; }
23503 { { echo "$as_me:$LINENO: error: compiler does not halt on negative sized arrays." >&5
23504 echo "$as_me: error: compiler does not halt on negative sized arrays." >&2;}
23505 { (exit 1); exit 1; }; }
23507 else
23508 echo "$as_me: failed program was:" >&5
23509 sed 's/^/| /' conftest.$ac_ext >&5
23512 { echo "$as_me:$LINENO: result: yes" >&5
23513 echo "${ECHO_T}yes" >&6; }
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 { echo "$as_me:$LINENO: checking for windows.h" >&5
23524 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
23525 if test "${ac_cv_header_windows_h+set}" = set; then
23526 echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23529 cat >conftest.$ac_ext <<_ACEOF
23531 /* confdefs.h. */
23532 _ACEOF
23533 cat confdefs.h >>conftest.$ac_ext
23534 cat >>conftest.$ac_ext <<_ACEOF
23535 /* end confdefs.h. */
23537 #undef inline
23538 #ifndef WIN32_LEAN_AND_MEAN
23539 #define WIN32_LEAN_AND_MEAN
23540 #endif
23541 #include <windows.h>
23544 main ()
23547 #if defined(__CYGWIN__) || defined(__CEGCC__)
23548 HAVE_WINDOWS_H shall not be defined.
23549 #else
23550 int dummy=2*WINVER;
23551 #endif
23554 return 0;
23557 _ACEOF
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23563 esac
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_compile") 2>conftest.er1
23566 ac_status=$?
23567 grep -v '^ *+' conftest.er1 >conftest.err
23568 rm -f conftest.er1
23569 cat conftest.err >&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest.$ac_objext; then
23576 ac_cv_header_windows_h="yes"
23578 else
23579 echo "$as_me: failed program was:" >&5
23580 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_cv_header_windows_h="no"
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23591 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
23592 case "$ac_cv_header_windows_h" in
23593 yes)
23595 cat >>confdefs.h <<_ACEOF
23596 #define HAVE_WINDOWS_H 1
23597 _ACEOF
23600 cat >>confdefs.h <<_ACEOF
23601 #define WIN32_LEAN_AND_MEAN 1
23602 _ACEOF
23605 esac
23608 { echo "$as_me:$LINENO: checking whether build target is a native Windows one" >&5
23609 echo $ECHO_N "checking whether build target is a native Windows one... $ECHO_C" >&6; }
23610 if test "${ac_cv_native_windows+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23614 if test "$ac_cv_header_windows_h" = "no"; then
23615 ac_cv_native_windows="no"
23616 else
23617 cat >conftest.$ac_ext <<_ACEOF
23619 /* confdefs.h. */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23627 main ()
23630 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
23631 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
23632 int dummy=1;
23633 #else
23634 Not a native Windows build target.
23635 #endif
23638 return 0;
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646 *) ac_try_echo=$ac_try;;
23647 esac
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649 (eval "$ac_compile") 2>conftest.er1
23650 ac_status=$?
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } && {
23656 test -z "$ac_c_werror_flag" ||
23657 test ! -s conftest.err
23658 } && test -s conftest.$ac_objext; then
23660 ac_cv_native_windows="yes"
23662 else
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23667 ac_cv_native_windows="no"
23671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_native_windows" >&5
23676 echo "${ECHO_T}$ac_cv_native_windows" >&6; }
23677 case "$ac_cv_native_windows" in
23678 yes)
23680 cat >>confdefs.h <<_ACEOF
23681 #define NATIVE_WINDOWS 1
23682 _ACEOF
23685 esac
23687 case X-"$ac_cv_native_windows" in
23688 X-yes)
23690 { echo "$as_me:$LINENO: checking for winsock.h" >&5
23691 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
23692 if test "${ac_cv_header_winsock_h+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 else
23696 cat >conftest.$ac_ext <<_ACEOF
23698 /* confdefs.h. */
23699 _ACEOF
23700 cat confdefs.h >>conftest.$ac_ext
23701 cat >>conftest.$ac_ext <<_ACEOF
23702 /* end confdefs.h. */
23704 #undef inline
23705 #ifndef WIN32_LEAN_AND_MEAN
23706 #define WIN32_LEAN_AND_MEAN
23707 #endif
23708 #include <windows.h>
23709 #include <winsock.h>
23712 main ()
23715 #if defined(__CYGWIN__) || defined(__CEGCC__)
23716 HAVE_WINSOCK_H shall not be defined.
23717 #else
23718 int dummy=WSACleanup();
23719 #endif
23722 return 0;
23725 _ACEOF
23726 rm -f conftest.$ac_objext
23727 if { (ac_try="$ac_compile"
23728 case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731 esac
23732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_compile") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } && {
23740 test -z "$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 } && test -s conftest.$ac_objext; then
23744 ac_cv_header_winsock_h="yes"
23746 else
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23751 ac_cv_header_winsock_h="no"
23755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
23759 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
23760 case "$ac_cv_header_winsock_h" in
23761 yes)
23763 cat >>confdefs.h <<_ACEOF
23764 #define HAVE_WINSOCK_H 1
23765 _ACEOF
23768 esac
23771 { echo "$as_me:$LINENO: checking for winsock2.h" >&5
23772 echo $ECHO_N "checking for winsock2.h... $ECHO_C" >&6; }
23773 if test "${ac_cv_header_winsock2_h+set}" = set; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 else
23777 cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h. */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23785 #undef inline
23786 #ifndef WIN32_LEAN_AND_MEAN
23787 #define WIN32_LEAN_AND_MEAN
23788 #endif
23789 #include <windows.h>
23790 #include <winsock2.h>
23793 main ()
23796 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23797 HAVE_WINSOCK2_H shall not be defined.
23798 #else
23799 int dummy=2*IPPROTO_ESP;
23800 #endif
23803 return 0;
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811 *) ac_try_echo=$ac_try;;
23812 esac
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814 (eval "$ac_compile") 2>conftest.er1
23815 ac_status=$?
23816 grep -v '^ *+' conftest.er1 >conftest.err
23817 rm -f conftest.er1
23818 cat conftest.err >&5
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); } && {
23821 test -z "$ac_c_werror_flag" ||
23822 test ! -s conftest.err
23823 } && test -s conftest.$ac_objext; then
23825 ac_cv_header_winsock2_h="yes"
23827 else
23828 echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23832 ac_cv_header_winsock2_h="no"
23836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock2_h" >&5
23840 echo "${ECHO_T}$ac_cv_header_winsock2_h" >&6; }
23841 case "$ac_cv_header_winsock2_h" in
23842 yes)
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_WINSOCK2_H 1
23846 _ACEOF
23849 esac
23852 { echo "$as_me:$LINENO: checking for ws2tcpip.h" >&5
23853 echo $ECHO_N "checking for ws2tcpip.h... $ECHO_C" >&6; }
23854 if test "${ac_cv_header_ws2tcpip_h+set}" = set; then
23855 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 else
23858 cat >conftest.$ac_ext <<_ACEOF
23860 /* confdefs.h. */
23861 _ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23866 #undef inline
23867 #ifndef WIN32_LEAN_AND_MEAN
23868 #define WIN32_LEAN_AND_MEAN
23869 #endif
23870 #include <windows.h>
23871 #include <winsock2.h>
23872 #include <ws2tcpip.h>
23875 main ()
23878 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
23879 HAVE_WS2TCPIP_H shall not be defined.
23880 #else
23881 int dummy=2*IP_PKTINFO;
23882 #endif
23885 return 0;
23888 _ACEOF
23889 rm -f conftest.$ac_objext
23890 if { (ac_try="$ac_compile"
23891 case "(($ac_try" in
23892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23893 *) ac_try_echo=$ac_try;;
23894 esac
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23897 ac_status=$?
23898 grep -v '^ *+' conftest.er1 >conftest.err
23899 rm -f conftest.er1
23900 cat conftest.err >&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } && {
23903 test -z "$ac_c_werror_flag" ||
23904 test ! -s conftest.err
23905 } && test -s conftest.$ac_objext; then
23907 ac_cv_header_ws2tcpip_h="yes"
23909 else
23910 echo "$as_me: failed program was:" >&5
23911 sed 's/^/| /' conftest.$ac_ext >&5
23914 ac_cv_header_ws2tcpip_h="no"
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 { echo "$as_me:$LINENO: result: $ac_cv_header_ws2tcpip_h" >&5
23922 echo "${ECHO_T}$ac_cv_header_ws2tcpip_h" >&6; }
23923 case "$ac_cv_header_ws2tcpip_h" in
23924 yes)
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_WS2TCPIP_H 1
23928 _ACEOF
23931 esac
23934 { echo "$as_me:$LINENO: checking for winldap.h" >&5
23935 echo $ECHO_N "checking for winldap.h... $ECHO_C" >&6; }
23936 if test "${ac_cv_header_winldap_h+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23940 cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h. */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23948 #undef inline
23949 #ifdef HAVE_WINDOWS_H
23950 #ifndef WIN32_LEAN_AND_MEAN
23951 #define WIN32_LEAN_AND_MEAN
23952 #endif
23953 #include <windows.h>
23954 #endif
23955 #include <winldap.h>
23958 main ()
23961 #if defined(__CYGWIN__) || defined(__CEGCC__)
23962 HAVE_WINLDAP_H shall not be defined.
23963 #else
23964 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23965 ULONG res = ldap_unbind(ldp);
23966 #endif
23969 return 0;
23972 _ACEOF
23973 rm -f conftest.$ac_objext
23974 if { (ac_try="$ac_compile"
23975 case "(($ac_try" in
23976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977 *) ac_try_echo=$ac_try;;
23978 esac
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980 (eval "$ac_compile") 2>conftest.er1
23981 ac_status=$?
23982 grep -v '^ *+' conftest.er1 >conftest.err
23983 rm -f conftest.er1
23984 cat conftest.err >&5
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); } && {
23987 test -z "$ac_c_werror_flag" ||
23988 test ! -s conftest.err
23989 } && test -s conftest.$ac_objext; then
23991 ac_cv_header_winldap_h="yes"
23993 else
23994 echo "$as_me: failed program was:" >&5
23995 sed 's/^/| /' conftest.$ac_ext >&5
23998 ac_cv_header_winldap_h="no"
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 { echo "$as_me:$LINENO: result: $ac_cv_header_winldap_h" >&5
24006 echo "${ECHO_T}$ac_cv_header_winldap_h" >&6; }
24007 case "$ac_cv_header_winldap_h" in
24008 yes)
24010 cat >>confdefs.h <<_ACEOF
24011 #define HAVE_WINLDAP_H 1
24012 _ACEOF
24015 esac
24018 { echo "$as_me:$LINENO: checking for winber.h" >&5
24019 echo $ECHO_N "checking for winber.h... $ECHO_C" >&6; }
24020 if test "${ac_cv_header_winber_h+set}" = set; then
24021 echo $ECHO_N "(cached) $ECHO_C" >&6
24022 else
24024 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h. */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24032 #undef inline
24033 #ifdef HAVE_WINDOWS_H
24034 #ifndef WIN32_LEAN_AND_MEAN
24035 #define WIN32_LEAN_AND_MEAN
24036 #endif
24037 #include <windows.h>
24038 #endif
24039 #include <winldap.h>
24040 #include <winber.h>
24043 main ()
24046 #if defined(__CYGWIN__) || defined(__CEGCC__)
24047 HAVE_WINBER_H shall not be defined.
24048 #else
24049 BERVAL *bvp = NULL;
24050 BerElement *bep = ber_init(bvp);
24051 ber_free(bep, 1);
24052 #endif
24055 return 0;
24058 _ACEOF
24059 rm -f conftest.$ac_objext
24060 if { (ac_try="$ac_compile"
24061 case "(($ac_try" in
24062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24063 *) ac_try_echo=$ac_try;;
24064 esac
24065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24066 (eval "$ac_compile") 2>conftest.er1
24067 ac_status=$?
24068 grep -v '^ *+' conftest.er1 >conftest.err
24069 rm -f conftest.er1
24070 cat conftest.err >&5
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && {
24073 test -z "$ac_c_werror_flag" ||
24074 test ! -s conftest.err
24075 } && test -s conftest.$ac_objext; then
24077 ac_cv_header_winber_h="yes"
24079 else
24080 echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24084 ac_cv_header_winber_h="no"
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24091 { echo "$as_me:$LINENO: result: $ac_cv_header_winber_h" >&5
24092 echo "${ECHO_T}$ac_cv_header_winber_h" >&6; }
24093 case "$ac_cv_header_winber_h" in
24094 yes)
24096 cat >>confdefs.h <<_ACEOF
24097 #define HAVE_WINBER_H 1
24098 _ACEOF
24101 esac
24105 ac_cv_header_winsock_h="no"
24106 ac_cv_header_winsock2_h="no"
24107 ac_cv_header_ws2tcpip_h="no"
24108 ac_cv_header_winldap_h="no"
24109 ac_cv_header_winber_h="no"
24111 esac
24113 { echo "$as_me:$LINENO: checking whether build target supports WIN32 file API" >&5
24114 echo $ECHO_N "checking whether build target supports WIN32 file API... $ECHO_C" >&6; }
24115 curl_win32_file_api="no"
24116 if test "$ac_cv_header_windows_h" = "yes"; then
24117 if test x"$enable_largefile" != "xno"; then
24118 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h. */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h. */
24128 main ()
24131 #if !defined(_WIN32_WCE) && \
24132 (defined(__MINGW32__) || \
24133 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
24134 int dummy=1;
24135 #else
24136 WIN32 large file API not supported.
24137 #endif
24140 return 0;
24143 _ACEOF
24144 rm -f conftest.$ac_objext
24145 if { (ac_try="$ac_compile"
24146 case "(($ac_try" in
24147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24148 *) ac_try_echo=$ac_try;;
24149 esac
24150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24151 (eval "$ac_compile") 2>conftest.er1
24152 ac_status=$?
24153 grep -v '^ *+' conftest.er1 >conftest.err
24154 rm -f conftest.er1
24155 cat conftest.err >&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); } && {
24158 test -z "$ac_c_werror_flag" ||
24159 test ! -s conftest.err
24160 } && test -s conftest.$ac_objext; then
24162 curl_win32_file_api="win32_large_files"
24164 else
24165 echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173 if test "$curl_win32_file_api" = "no"; then
24174 cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h. */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h. */
24184 main ()
24187 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
24188 int dummy=1;
24189 #else
24190 WIN32 small file API not supported.
24191 #endif
24194 return 0;
24197 _ACEOF
24198 rm -f conftest.$ac_objext
24199 if { (ac_try="$ac_compile"
24200 case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24206 ac_status=$?
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24216 curl_win32_file_api="win32_small_files"
24218 else
24219 echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24228 case "$curl_win32_file_api" in
24229 win32_large_files)
24230 { echo "$as_me:$LINENO: result: yes (large file enabled)" >&5
24231 echo "${ECHO_T}yes (large file enabled)" >&6; }
24233 cat >>confdefs.h <<_ACEOF
24234 #define USE_WIN32_LARGE_FILES 1
24235 _ACEOF
24238 win32_small_files)
24239 { echo "$as_me:$LINENO: result: yes (large file disabled)" >&5
24240 echo "${ECHO_T}yes (large file disabled)" >&6; }
24242 cat >>confdefs.h <<_ACEOF
24243 #define USE_WIN32_LARGE_FILES 1
24244 _ACEOF
24248 { echo "$as_me:$LINENO: result: no" >&5
24249 echo "${ECHO_T}no" >&6; }
24251 esac
24254 { echo "$as_me:$LINENO: checking whether to support http" >&5
24255 echo $ECHO_N "checking whether to support http... $ECHO_C" >&6; }
24256 # Check whether --enable-http was given.
24257 if test "${enable_http+set}" = set; then
24258 enableval=$enable_http; case "$enableval" in
24260 { echo "$as_me:$LINENO: result: no" >&5
24261 echo "${ECHO_T}no" >&6; }
24263 cat >>confdefs.h <<\_ACEOF
24264 #define CURL_DISABLE_HTTP 1
24265 _ACEOF
24267 { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy" >&5
24268 echo "$as_me: WARNING: disable HTTP disables FTP over proxy" >&2;}
24269 CURL_DISABLE_HTTP=1
24272 *) { echo "$as_me:$LINENO: result: yes" >&5
24273 echo "${ECHO_T}yes" >&6; }
24275 esac
24276 else
24277 { echo "$as_me:$LINENO: result: yes" >&5
24278 echo "${ECHO_T}yes" >&6; }
24282 { echo "$as_me:$LINENO: checking whether to support ftp" >&5
24283 echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6; }
24284 # Check whether --enable-ftp was given.
24285 if test "${enable_ftp+set}" = set; then
24286 enableval=$enable_ftp; case "$enableval" in
24288 { echo "$as_me:$LINENO: result: no" >&5
24289 echo "${ECHO_T}no" >&6; }
24291 cat >>confdefs.h <<\_ACEOF
24292 #define CURL_DISABLE_FTP 1
24293 _ACEOF
24295 CURL_DISABLE_FTP=1
24298 *) { echo "$as_me:$LINENO: result: yes" >&5
24299 echo "${ECHO_T}yes" >&6; }
24301 esac
24302 else
24303 { echo "$as_me:$LINENO: result: yes" >&5
24304 echo "${ECHO_T}yes" >&6; }
24308 { echo "$as_me:$LINENO: checking whether to support file" >&5
24309 echo $ECHO_N "checking whether to support file... $ECHO_C" >&6; }
24310 # Check whether --enable-file was given.
24311 if test "${enable_file+set}" = set; then
24312 enableval=$enable_file; case "$enableval" in
24314 { echo "$as_me:$LINENO: result: no" >&5
24315 echo "${ECHO_T}no" >&6; }
24317 cat >>confdefs.h <<\_ACEOF
24318 #define CURL_DISABLE_FILE 1
24319 _ACEOF
24321 CURL_DISABLE_FILE=1
24324 *) { echo "$as_me:$LINENO: result: yes" >&5
24325 echo "${ECHO_T}yes" >&6; }
24327 esac
24328 else
24329 { echo "$as_me:$LINENO: result: yes" >&5
24330 echo "${ECHO_T}yes" >&6; }
24334 { echo "$as_me:$LINENO: checking whether to support ldap" >&5
24335 echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6; }
24336 # Check whether --enable-ldap was given.
24337 if test "${enable_ldap+set}" = set; then
24338 enableval=$enable_ldap; case "$enableval" in
24340 { echo "$as_me:$LINENO: result: no" >&5
24341 echo "${ECHO_T}no" >&6; }
24343 cat >>confdefs.h <<\_ACEOF
24344 #define CURL_DISABLE_LDAP 1
24345 _ACEOF
24347 CURL_DISABLE_LDAP=1
24351 case $host in
24352 *-*-cygwin*)
24353 # Force no ldap. config/build process is broken for cygwin
24355 cat >>confdefs.h <<\_ACEOF
24356 #define CURL_DISABLE_LDAP 1
24357 _ACEOF
24359 CURL_DISABLE_LDAP=1
24361 { echo "$as_me:$LINENO: result: no" >&5
24362 echo "${ECHO_T}no" >&6; }
24365 { echo "$as_me:$LINENO: result: yes" >&5
24366 echo "${ECHO_T}yes" >&6; }
24367 esac
24369 esac
24370 else
24372 case $host in
24373 *-*-cygwin*)
24374 # Force no ldap. config/build process is broken for cygwin
24376 cat >>confdefs.h <<\_ACEOF
24377 #define CURL_DISABLE_LDAP 1
24378 _ACEOF
24380 CURL_DISABLE_LDAP=1
24382 { echo "$as_me:$LINENO: result: no" >&5
24383 echo "${ECHO_T}no" >&6; }
24386 { echo "$as_me:$LINENO: result: yes" >&5
24387 echo "${ECHO_T}yes" >&6; }
24388 esac
24392 { echo "$as_me:$LINENO: checking whether to support ldaps" >&5
24393 echo $ECHO_N "checking whether to support ldaps... $ECHO_C" >&6; }
24394 # Check whether --enable-ldaps was given.
24395 if test "${enable_ldaps+set}" = set; then
24396 enableval=$enable_ldaps; case "$enableval" in
24398 { echo "$as_me:$LINENO: result: no" >&5
24399 echo "${ECHO_T}no" >&6; }
24401 cat >>confdefs.h <<\_ACEOF
24402 #define CURL_DISABLE_LDAPS 1
24403 _ACEOF
24405 CURL_DISABLE_LDAPS=1
24408 *) if test x$CURL_DISABLE_LDAP = x1 ; then
24409 { echo "$as_me:$LINENO: result: LDAP support needs to be enabled in order to enable LDAPS support!" >&5
24410 echo "${ECHO_T}LDAP support needs to be enabled in order to enable LDAPS support!" >&6; }
24412 cat >>confdefs.h <<\_ACEOF
24413 #define CURL_DISABLE_LDAPS 1
24414 _ACEOF
24416 CURL_DISABLE_LDAPS=1
24418 else
24419 { echo "$as_me:$LINENO: result: yes" >&5
24420 echo "${ECHO_T}yes" >&6; }
24422 cat >>confdefs.h <<\_ACEOF
24423 #define HAVE_LDAP_SSL 1
24424 _ACEOF
24426 curl_ldaps_msg="enabled"
24429 esac
24430 else
24431 { echo "$as_me:$LINENO: result: no" >&5
24432 echo "${ECHO_T}no" >&6; }
24434 cat >>confdefs.h <<\_ACEOF
24435 #define CURL_DISABLE_LDAPS 1
24436 _ACEOF
24438 CURL_DISABLE_LDAPS=1
24444 { echo "$as_me:$LINENO: checking whether to support dict" >&5
24445 echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6; }
24446 # Check whether --enable-dict was given.
24447 if test "${enable_dict+set}" = set; then
24448 enableval=$enable_dict; case "$enableval" in
24450 { echo "$as_me:$LINENO: result: no" >&5
24451 echo "${ECHO_T}no" >&6; }
24453 cat >>confdefs.h <<\_ACEOF
24454 #define CURL_DISABLE_DICT 1
24455 _ACEOF
24457 CURL_DISABLE_DICT=1
24460 *) { echo "$as_me:$LINENO: result: yes" >&5
24461 echo "${ECHO_T}yes" >&6; }
24463 esac
24464 else
24465 { echo "$as_me:$LINENO: result: yes" >&5
24466 echo "${ECHO_T}yes" >&6; }
24470 { echo "$as_me:$LINENO: checking whether to support telnet" >&5
24471 echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6; }
24472 # Check whether --enable-telnet was given.
24473 if test "${enable_telnet+set}" = set; then
24474 enableval=$enable_telnet; case "$enableval" in
24476 { echo "$as_me:$LINENO: result: no" >&5
24477 echo "${ECHO_T}no" >&6; }
24479 cat >>confdefs.h <<\_ACEOF
24480 #define CURL_DISABLE_TELNET 1
24481 _ACEOF
24483 CURL_DISABLE_TELNET=1
24486 *) { echo "$as_me:$LINENO: result: yes" >&5
24487 echo "${ECHO_T}yes" >&6; }
24489 esac
24490 else
24491 { echo "$as_me:$LINENO: result: yes" >&5
24492 echo "${ECHO_T}yes" >&6; }
24496 { echo "$as_me:$LINENO: checking whether to support tftp" >&5
24497 echo $ECHO_N "checking whether to support tftp... $ECHO_C" >&6; }
24498 # Check whether --enable-tftp was given.
24499 if test "${enable_tftp+set}" = set; then
24500 enableval=$enable_tftp; case "$enableval" in
24502 { echo "$as_me:$LINENO: result: no" >&5
24503 echo "${ECHO_T}no" >&6; }
24505 cat >>confdefs.h <<\_ACEOF
24506 #define CURL_DISABLE_TFTP 1
24507 _ACEOF
24509 CURL_DISABLE_TFTP=1
24512 *) { echo "$as_me:$LINENO: result: yes" >&5
24513 echo "${ECHO_T}yes" >&6; }
24515 esac
24516 else
24517 { echo "$as_me:$LINENO: result: yes" >&5
24518 echo "${ECHO_T}yes" >&6; }
24524 { echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
24525 echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6; }
24526 # Check whether --enable-manual was given.
24527 if test "${enable_manual+set}" = set; then
24528 enableval=$enable_manual; case "$enableval" in
24530 { echo "$as_me:$LINENO: result: no" >&5
24531 echo "${ECHO_T}no" >&6; }
24533 *) { echo "$as_me:$LINENO: result: yes" >&5
24534 echo "${ECHO_T}yes" >&6; }
24535 USE_MANUAL="1"
24537 esac
24538 else
24539 { echo "$as_me:$LINENO: result: yes" >&5
24540 echo "${ECHO_T}yes" >&6; }
24541 USE_MANUAL="1"
24547 ICC="no"
24548 { echo "$as_me:$LINENO: checking for icc in use" >&5
24549 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
24550 if test "$GCC" = "yes"; then
24551 cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h. */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 __INTEL_COMPILER
24558 _ACEOF
24559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24560 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
24561 ICC="no"
24562 else
24563 ICC="yes"
24564 { echo "$as_me:$LINENO: result: yes" >&5
24565 echo "${ECHO_T}yes" >&6; }
24566 CFLAGS="$CFLAGS -we 147"
24569 rm -f conftest*
24572 if test "$ICC" = "no"; then
24573 # this is not ICC
24574 { echo "$as_me:$LINENO: result: no" >&5
24575 echo "${ECHO_T}no" >&6; }
24580 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
24581 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
24582 if test "${ac_cv_func_gethostbyname+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585 cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h. */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24593 #define gethostbyname innocuous_gethostbyname
24595 /* System header to define __stub macros and hopefully few prototypes,
24596 which can conflict with char gethostbyname (); below.
24597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24598 <limits.h> exists even on freestanding compilers. */
24600 #ifdef __STDC__
24601 # include <limits.h>
24602 #else
24603 # include <assert.h>
24604 #endif
24606 #undef gethostbyname
24608 /* Override any GCC internal prototype to avoid an error.
24609 Use char because int might match the return type of a GCC
24610 builtin and then its argument prototype would still apply. */
24611 #ifdef __cplusplus
24612 extern "C"
24613 #endif
24614 char gethostbyname ();
24615 /* The GNU C library defines this for functions which it implements
24616 to always fail with ENOSYS. Some functions are actually named
24617 something starting with __ and the normal name is an alias. */
24618 #if defined __stub_gethostbyname || defined __stub___gethostbyname
24619 choke me
24620 #endif
24623 main ()
24625 return gethostbyname ();
24627 return 0;
24629 _ACEOF
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>conftest.er1
24638 ac_status=$?
24639 grep -v '^ *+' conftest.er1 >conftest.err
24640 rm -f conftest.er1
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest$ac_exeext &&
24647 $as_test_x conftest$ac_exeext; then
24648 ac_cv_func_gethostbyname=yes
24649 else
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 ac_cv_func_gethostbyname=no
24656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657 conftest$ac_exeext conftest.$ac_ext
24659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
24661 if test $ac_cv_func_gethostbyname = yes; then
24662 HAVE_GETHOSTBYNAME="1"
24664 else
24665 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24666 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
24667 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670 ac_check_lib_save_LIBS=$LIBS
24671 LIBS="-lnsl $LIBS"
24672 cat >conftest.$ac_ext <<_ACEOF
24673 /* confdefs.h. */
24674 _ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24679 /* Override any GCC internal prototype to avoid an error.
24680 Use char because int might match the return type of a GCC
24681 builtin and then its argument prototype would still apply. */
24682 #ifdef __cplusplus
24683 extern "C"
24684 #endif
24685 char gethostbyname ();
24687 main ()
24689 return gethostbyname ();
24691 return 0;
24693 _ACEOF
24694 rm -f conftest.$ac_objext conftest$ac_exeext
24695 if { (ac_try="$ac_link"
24696 case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701 (eval "$ac_link") 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest$ac_exeext &&
24711 $as_test_x conftest$ac_exeext; then
24712 ac_cv_lib_nsl_gethostbyname=yes
24713 else
24714 echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24717 ac_cv_lib_nsl_gethostbyname=no
24720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24721 conftest$ac_exeext conftest.$ac_ext
24722 LIBS=$ac_check_lib_save_LIBS
24724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
24726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24727 HAVE_GETHOSTBYNAME="1"
24728 LIBS="$LIBS -lnsl"
24736 if test "$HAVE_GETHOSTBYNAME" != "1"
24737 then
24738 { echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
24739 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6; }
24740 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 else
24743 ac_check_lib_save_LIBS=$LIBS
24744 LIBS="-lsocket $LIBS"
24745 cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h. */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24752 /* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24755 #ifdef __cplusplus
24756 extern "C"
24757 #endif
24758 char gethostbyname ();
24760 main ()
24762 return gethostbyname ();
24764 return 0;
24766 _ACEOF
24767 rm -f conftest.$ac_objext conftest$ac_exeext
24768 if { (ac_try="$ac_link"
24769 case "(($ac_try" in
24770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24771 *) ac_try_echo=$ac_try;;
24772 esac
24773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24774 (eval "$ac_link") 2>conftest.er1
24775 ac_status=$?
24776 grep -v '^ *+' conftest.er1 >conftest.err
24777 rm -f conftest.er1
24778 cat conftest.err >&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); } && {
24781 test -z "$ac_c_werror_flag" ||
24782 test ! -s conftest.err
24783 } && test -s conftest$ac_exeext &&
24784 $as_test_x conftest$ac_exeext; then
24785 ac_cv_lib_socket_gethostbyname=yes
24786 else
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24790 ac_cv_lib_socket_gethostbyname=no
24793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24794 conftest$ac_exeext conftest.$ac_ext
24795 LIBS=$ac_check_lib_save_LIBS
24797 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
24798 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6; }
24799 if test $ac_cv_lib_socket_gethostbyname = yes; then
24800 HAVE_GETHOSTBYNAME="1"
24801 LIBS="$LIBS -lsocket"
24807 if test "$HAVE_GETHOSTBYNAME" != "1"
24808 then
24809 { echo "$as_me:$LINENO: checking for gethostbyname with both nsl and socket libs" >&5
24810 echo $ECHO_N "checking for gethostbyname with both nsl and socket libs... $ECHO_C" >&6; }
24811 my_ac_save_LIBS=$LIBS
24812 LIBS="-lnsl -lsocket $LIBS"
24813 cat >conftest.$ac_ext <<_ACEOF
24815 /* confdefs.h. */
24816 _ACEOF
24817 cat confdefs.h >>conftest.$ac_ext
24818 cat >>conftest.$ac_ext <<_ACEOF
24819 /* end confdefs.h. */
24823 main ()
24826 gethostbyname();
24829 return 0;
24832 _ACEOF
24833 rm -f conftest.$ac_objext conftest$ac_exeext
24834 if { (ac_try="$ac_link"
24835 case "(($ac_try" in
24836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24837 *) ac_try_echo=$ac_try;;
24838 esac
24839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24840 (eval "$ac_link") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest$ac_exeext &&
24850 $as_test_x conftest$ac_exeext; then
24852 { echo "$as_me:$LINENO: result: yes" >&5
24853 echo "${ECHO_T}yes" >&6; }
24854 HAVE_GETHOSTBYNAME="1"
24856 else
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24861 { echo "$as_me:$LINENO: result: no" >&5
24862 echo "${ECHO_T}no" >&6; }
24863 LIBS=$my_ac_save_LIBS
24867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24868 conftest$ac_exeext conftest.$ac_ext
24871 if test "$HAVE_GETHOSTBYNAME" != "1"
24872 then
24873 if test "$ac_cv_header_windows_h" = "yes"; then
24874 if test "$ac_cv_header_winsock_h" = "yes"; then
24875 case $host in
24876 *-*-mingw32ce*)
24877 winsock_LIB="-lwinsock"
24880 winsock_LIB="-lwsock32"
24882 esac
24884 if test "$ac_cv_header_winsock2_h" = "yes"; then
24885 winsock_LIB="-lws2_32"
24887 if test ! -z "$winsock_LIB"; then
24888 my_ac_save_LIBS=$LIBS
24889 LIBS="$winsock_LIB $LIBS"
24890 { echo "$as_me:$LINENO: checking for gethostbyname in $winsock_LIB" >&5
24891 echo $ECHO_N "checking for gethostbyname in $winsock_LIB... $ECHO_C" >&6; }
24892 cat >conftest.$ac_ext <<_ACEOF
24894 /* confdefs.h. */
24895 _ACEOF
24896 cat confdefs.h >>conftest.$ac_ext
24897 cat >>conftest.$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24900 #ifdef HAVE_WINDOWS_H
24901 #ifndef WIN32_LEAN_AND_MEAN
24902 #define WIN32_LEAN_AND_MEAN
24903 #endif
24904 #include <windows.h>
24905 #ifdef HAVE_WINSOCK2_H
24906 #include <winsock2.h>
24907 #else
24908 #ifdef HAVE_WINSOCK_H
24909 #include <winsock.h>
24910 #endif
24911 #endif
24912 #endif
24915 main ()
24918 gethostbyname("www.dummysite.com");
24921 return 0;
24924 _ACEOF
24925 rm -f conftest.$ac_objext conftest$ac_exeext
24926 if { (ac_try="$ac_link"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24930 esac
24931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24932 (eval "$ac_link") 2>conftest.er1
24933 ac_status=$?
24934 grep -v '^ *+' conftest.er1 >conftest.err
24935 rm -f conftest.er1
24936 cat conftest.err >&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } && {
24939 test -z "$ac_c_werror_flag" ||
24940 test ! -s conftest.err
24941 } && test -s conftest$ac_exeext &&
24942 $as_test_x conftest$ac_exeext; then
24944 { echo "$as_me:$LINENO: result: yes" >&5
24945 echo "${ECHO_T}yes" >&6; }
24946 HAVE_GETHOSTBYNAME="1"
24948 else
24949 echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24953 { echo "$as_me:$LINENO: result: no" >&5
24954 echo "${ECHO_T}no" >&6; }
24955 winsock_LIB=""
24956 LIBS=$my_ac_save_LIBS
24960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24961 conftest$ac_exeext conftest.$ac_ext
24966 if test "$HAVE_GETHOSTBYNAME" != "1"
24967 then
24968 { echo "$as_me:$LINENO: checking for gethostbyname for Minix 3" >&5
24969 echo $ECHO_N "checking for gethostbyname for Minix 3... $ECHO_C" >&6; }
24970 cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h. */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24978 /* Older Minix versions may need <net/gen/netdb.h> here instead */
24979 #include <netdb.h>
24982 main ()
24985 gethostbyname("www.dummysite.com");
24988 return 0;
24991 _ACEOF
24992 rm -f conftest.$ac_objext conftest$ac_exeext
24993 if { (ac_try="$ac_link"
24994 case "(($ac_try" in
24995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996 *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999 (eval "$ac_link") 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && {
25006 test -z "$ac_c_werror_flag" ||
25007 test ! -s conftest.err
25008 } && test -s conftest$ac_exeext &&
25009 $as_test_x conftest$ac_exeext; then
25011 { echo "$as_me:$LINENO: result: yes" >&5
25012 echo "${ECHO_T}yes" >&6; }
25013 HAVE_GETHOSTBYNAME="1"
25015 else
25016 echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25020 { echo "$as_me:$LINENO: result: no" >&5
25021 echo "${ECHO_T}no" >&6; }
25025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25026 conftest$ac_exeext conftest.$ac_ext
25029 if test "$HAVE_GETHOSTBYNAME" != "1"
25030 then
25031 { echo "$as_me:$LINENO: checking for gethostbyname for eCos" >&5
25032 echo $ECHO_N "checking for gethostbyname for eCos... $ECHO_C" >&6; }
25033 cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h. */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25041 #include <stdio.h>
25042 #include <netdb.h>
25045 main ()
25048 gethostbyname("www.dummysite.com");
25051 return 0;
25054 _ACEOF
25055 rm -f conftest.$ac_objext conftest$ac_exeext
25056 if { (ac_try="$ac_link"
25057 case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062 (eval "$ac_link") 2>conftest.er1
25063 ac_status=$?
25064 grep -v '^ *+' conftest.er1 >conftest.err
25065 rm -f conftest.er1
25066 cat conftest.err >&5
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } && {
25069 test -z "$ac_c_werror_flag" ||
25070 test ! -s conftest.err
25071 } && test -s conftest$ac_exeext &&
25072 $as_test_x conftest$ac_exeext; then
25074 { echo "$as_me:$LINENO: result: yes" >&5
25075 echo "${ECHO_T}yes" >&6; }
25076 HAVE_GETHOSTBYNAME="1"
25078 else
25079 echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25083 { echo "$as_me:$LINENO: result: no" >&5
25084 echo "${ECHO_T}no" >&6; }
25088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25089 conftest$ac_exeext conftest.$ac_ext
25092 if test "$HAVE_GETHOSTBYNAME" != "1"
25093 then
25094 { echo "$as_me:$LINENO: checking for gethostbyname in -lnetwork" >&5
25095 echo $ECHO_N "checking for gethostbyname in -lnetwork... $ECHO_C" >&6; }
25096 if test "${ac_cv_lib_network_gethostbyname+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099 ac_check_lib_save_LIBS=$LIBS
25100 LIBS="-lnetwork $LIBS"
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25108 /* Override any GCC internal prototype to avoid an error.
25109 Use char because int might match the return type of a GCC
25110 builtin and then its argument prototype would still apply. */
25111 #ifdef __cplusplus
25112 extern "C"
25113 #endif
25114 char gethostbyname ();
25116 main ()
25118 return gethostbyname ();
25120 return 0;
25122 _ACEOF
25123 rm -f conftest.$ac_objext conftest$ac_exeext
25124 if { (ac_try="$ac_link"
25125 case "(($ac_try" in
25126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127 *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130 (eval "$ac_link") 2>conftest.er1
25131 ac_status=$?
25132 grep -v '^ *+' conftest.er1 >conftest.err
25133 rm -f conftest.er1
25134 cat conftest.err >&5
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); } && {
25137 test -z "$ac_c_werror_flag" ||
25138 test ! -s conftest.err
25139 } && test -s conftest$ac_exeext &&
25140 $as_test_x conftest$ac_exeext; then
25141 ac_cv_lib_network_gethostbyname=yes
25142 else
25143 echo "$as_me: failed program was:" >&5
25144 sed 's/^/| /' conftest.$ac_ext >&5
25146 ac_cv_lib_network_gethostbyname=no
25149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25150 conftest$ac_exeext conftest.$ac_ext
25151 LIBS=$ac_check_lib_save_LIBS
25153 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_gethostbyname" >&5
25154 echo "${ECHO_T}$ac_cv_lib_network_gethostbyname" >&6; }
25155 if test $ac_cv_lib_network_gethostbyname = yes; then
25156 HAVE_GETHOSTBYNAME="1"
25157 LIBS="$LIBS -lnetwork"
25163 if test "$HAVE_GETHOSTBYNAME" != "1"
25164 then
25165 { echo "$as_me:$LINENO: checking for gethostbyname in -lnet" >&5
25166 echo $ECHO_N "checking for gethostbyname in -lnet... $ECHO_C" >&6; }
25167 if test "${ac_cv_lib_net_gethostbyname+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25169 else
25170 ac_check_lib_save_LIBS=$LIBS
25171 LIBS="-lnet $LIBS"
25172 cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h. */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h. */
25179 /* Override any GCC internal prototype to avoid an error.
25180 Use char because int might match the return type of a GCC
25181 builtin and then its argument prototype would still apply. */
25182 #ifdef __cplusplus
25183 extern "C"
25184 #endif
25185 char gethostbyname ();
25187 main ()
25189 return gethostbyname ();
25191 return 0;
25193 _ACEOF
25194 rm -f conftest.$ac_objext conftest$ac_exeext
25195 if { (ac_try="$ac_link"
25196 case "(($ac_try" in
25197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198 *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201 (eval "$ac_link") 2>conftest.er1
25202 ac_status=$?
25203 grep -v '^ *+' conftest.er1 >conftest.err
25204 rm -f conftest.er1
25205 cat conftest.err >&5
25206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207 (exit $ac_status); } && {
25208 test -z "$ac_c_werror_flag" ||
25209 test ! -s conftest.err
25210 } && test -s conftest$ac_exeext &&
25211 $as_test_x conftest$ac_exeext; then
25212 ac_cv_lib_net_gethostbyname=yes
25213 else
25214 echo "$as_me: failed program was:" >&5
25215 sed 's/^/| /' conftest.$ac_ext >&5
25217 ac_cv_lib_net_gethostbyname=no
25220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25221 conftest$ac_exeext conftest.$ac_ext
25222 LIBS=$ac_check_lib_save_LIBS
25224 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_gethostbyname" >&5
25225 echo "${ECHO_T}$ac_cv_lib_net_gethostbyname" >&6; }
25226 if test $ac_cv_lib_net_gethostbyname = yes; then
25227 HAVE_GETHOSTBYNAME="1"
25228 LIBS="$LIBS -lnet"
25235 if test "$HAVE_GETHOSTBYNAME" = "1"; then
25237 cat >>confdefs.h <<\_ACEOF
25238 #define HAVE_GETHOSTBYNAME 1
25239 _ACEOF
25241 else
25242 { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
25243 echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
25244 { (exit 1); exit 1; }; }
25247 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
25248 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
25249 if test "${ac_cv_func_strcasecmp+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 else
25252 cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h. */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h. */
25258 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
25259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25260 #define strcasecmp innocuous_strcasecmp
25262 /* System header to define __stub macros and hopefully few prototypes,
25263 which can conflict with char strcasecmp (); below.
25264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25265 <limits.h> exists even on freestanding compilers. */
25267 #ifdef __STDC__
25268 # include <limits.h>
25269 #else
25270 # include <assert.h>
25271 #endif
25273 #undef strcasecmp
25275 /* Override any GCC internal prototype to avoid an error.
25276 Use char because int might match the return type of a GCC
25277 builtin and then its argument prototype would still apply. */
25278 #ifdef __cplusplus
25279 extern "C"
25280 #endif
25281 char strcasecmp ();
25282 /* The GNU C library defines this for functions which it implements
25283 to always fail with ENOSYS. Some functions are actually named
25284 something starting with __ and the normal name is an alias. */
25285 #if defined __stub_strcasecmp || defined __stub___strcasecmp
25286 choke me
25287 #endif
25290 main ()
25292 return strcasecmp ();
25294 return 0;
25296 _ACEOF
25297 rm -f conftest.$ac_objext conftest$ac_exeext
25298 if { (ac_try="$ac_link"
25299 case "(($ac_try" in
25300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25301 *) ac_try_echo=$ac_try;;
25302 esac
25303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25304 (eval "$ac_link") 2>conftest.er1
25305 ac_status=$?
25306 grep -v '^ *+' conftest.er1 >conftest.err
25307 rm -f conftest.er1
25308 cat conftest.err >&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); } && {
25311 test -z "$ac_c_werror_flag" ||
25312 test ! -s conftest.err
25313 } && test -s conftest$ac_exeext &&
25314 $as_test_x conftest$ac_exeext; then
25315 ac_cv_func_strcasecmp=yes
25316 else
25317 echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25320 ac_cv_func_strcasecmp=no
25323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25324 conftest$ac_exeext conftest.$ac_ext
25326 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
25327 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
25328 if test $ac_cv_func_strcasecmp = yes; then
25330 else
25332 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
25333 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
25334 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
25335 echo $ECHO_N "(cached) $ECHO_C" >&6
25336 else
25337 ac_check_lib_save_LIBS=$LIBS
25338 LIBS="-lresolve $LIBS"
25339 cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h. */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h. */
25346 /* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25349 #ifdef __cplusplus
25350 extern "C"
25351 #endif
25352 char strcasecmp ();
25354 main ()
25356 return strcasecmp ();
25358 return 0;
25360 _ACEOF
25361 rm -f conftest.$ac_objext conftest$ac_exeext
25362 if { (ac_try="$ac_link"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25366 esac
25367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25368 (eval "$ac_link") 2>conftest.er1
25369 ac_status=$?
25370 grep -v '^ *+' conftest.er1 >conftest.err
25371 rm -f conftest.er1
25372 cat conftest.err >&5
25373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374 (exit $ac_status); } && {
25375 test -z "$ac_c_werror_flag" ||
25376 test ! -s conftest.err
25377 } && test -s conftest$ac_exeext &&
25378 $as_test_x conftest$ac_exeext; then
25379 ac_cv_lib_resolve_strcasecmp=yes
25380 else
25381 echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 ac_cv_lib_resolve_strcasecmp=no
25387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25388 conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25391 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
25392 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
25393 if test $ac_cv_lib_resolve_strcasecmp = yes; then
25394 cat >>confdefs.h <<_ACEOF
25395 #define HAVE_LIBRESOLVE 1
25396 _ACEOF
25398 LIBS="-lresolve $LIBS"
25405 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
25406 { echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
25407 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6; }
25408 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
25409 echo $ECHO_N "(cached) $ECHO_C" >&6
25410 else
25411 ac_check_lib_save_LIBS=$LIBS
25412 LIBS="-lresolve -lnsl $LIBS"
25413 cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h. */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25420 /* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25423 #ifdef __cplusplus
25424 extern "C"
25425 #endif
25426 char strcasecmp ();
25428 main ()
25430 return strcasecmp ();
25432 return 0;
25434 _ACEOF
25435 rm -f conftest.$ac_objext conftest$ac_exeext
25436 if { (ac_try="$ac_link"
25437 case "(($ac_try" in
25438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25439 *) ac_try_echo=$ac_try;;
25440 esac
25441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25442 (eval "$ac_link") 2>conftest.er1
25443 ac_status=$?
25444 grep -v '^ *+' conftest.er1 >conftest.err
25445 rm -f conftest.er1
25446 cat conftest.err >&5
25447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448 (exit $ac_status); } && {
25449 test -z "$ac_c_werror_flag" ||
25450 test ! -s conftest.err
25451 } && test -s conftest$ac_exeext &&
25452 $as_test_x conftest$ac_exeext; then
25453 ac_cv_lib_resolve_strcasecmp=yes
25454 else
25455 echo "$as_me: failed program was:" >&5
25456 sed 's/^/| /' conftest.$ac_ext >&5
25458 ac_cv_lib_resolve_strcasecmp=no
25461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25462 conftest$ac_exeext conftest.$ac_ext
25463 LIBS=$ac_check_lib_save_LIBS
25465 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
25466 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6; }
25467 if test $ac_cv_lib_resolve_strcasecmp = yes; then
25468 LIBS="-lresolve $LIBS"
25473 { echo "$as_me:$LINENO: checking for connect" >&5
25474 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
25475 if test "${ac_cv_func_connect+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h. */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h. */
25484 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25486 #define connect innocuous_connect
25488 /* System header to define __stub macros and hopefully few prototypes,
25489 which can conflict with char connect (); below.
25490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25491 <limits.h> exists even on freestanding compilers. */
25493 #ifdef __STDC__
25494 # include <limits.h>
25495 #else
25496 # include <assert.h>
25497 #endif
25499 #undef connect
25501 /* Override any GCC internal prototype to avoid an error.
25502 Use char because int might match the return type of a GCC
25503 builtin and then its argument prototype would still apply. */
25504 #ifdef __cplusplus
25505 extern "C"
25506 #endif
25507 char connect ();
25508 /* The GNU C library defines this for functions which it implements
25509 to always fail with ENOSYS. Some functions are actually named
25510 something starting with __ and the normal name is an alias. */
25511 #if defined __stub_connect || defined __stub___connect
25512 choke me
25513 #endif
25516 main ()
25518 return connect ();
25520 return 0;
25522 _ACEOF
25523 rm -f conftest.$ac_objext conftest$ac_exeext
25524 if { (ac_try="$ac_link"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25528 esac
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530 (eval "$ac_link") 2>conftest.er1
25531 ac_status=$?
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest$ac_exeext &&
25540 $as_test_x conftest$ac_exeext; then
25541 ac_cv_func_connect=yes
25542 else
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ac_cv_func_connect=no
25549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25550 conftest$ac_exeext conftest.$ac_ext
25552 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25553 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
25554 if test $ac_cv_func_connect = yes; then
25556 else
25558 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25559 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
25560 if test "${ac_cv_lib_socket_connect+set}" = set; then
25561 echo $ECHO_N "(cached) $ECHO_C" >&6
25562 else
25563 ac_check_lib_save_LIBS=$LIBS
25564 LIBS="-lsocket $LIBS"
25565 cat >conftest.$ac_ext <<_ACEOF
25566 /* confdefs.h. */
25567 _ACEOF
25568 cat confdefs.h >>conftest.$ac_ext
25569 cat >>conftest.$ac_ext <<_ACEOF
25570 /* end confdefs.h. */
25572 /* Override any GCC internal prototype to avoid an error.
25573 Use char because int might match the return type of a GCC
25574 builtin and then its argument prototype would still apply. */
25575 #ifdef __cplusplus
25576 extern "C"
25577 #endif
25578 char connect ();
25580 main ()
25582 return connect ();
25584 return 0;
25586 _ACEOF
25587 rm -f conftest.$ac_objext conftest$ac_exeext
25588 if { (ac_try="$ac_link"
25589 case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592 esac
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_link") 2>conftest.er1
25595 ac_status=$?
25596 grep -v '^ *+' conftest.er1 >conftest.err
25597 rm -f conftest.er1
25598 cat conftest.err >&5
25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600 (exit $ac_status); } && {
25601 test -z "$ac_c_werror_flag" ||
25602 test ! -s conftest.err
25603 } && test -s conftest$ac_exeext &&
25604 $as_test_x conftest$ac_exeext; then
25605 ac_cv_lib_socket_connect=yes
25606 else
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 ac_cv_lib_socket_connect=no
25613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25614 conftest$ac_exeext conftest.$ac_ext
25615 LIBS=$ac_check_lib_save_LIBS
25617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25618 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
25619 if test $ac_cv_lib_socket_connect = yes; then
25620 cat >>confdefs.h <<_ACEOF
25621 #define HAVE_LIBSOCKET 1
25622 _ACEOF
25624 LIBS="-lsocket $LIBS"
25631 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
25633 if test "${ac_cv_header_time+set}" = set; then
25634 echo $ECHO_N "(cached) $ECHO_C" >&6
25635 else
25636 cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h. */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h. */
25642 #include <sys/types.h>
25643 #include <sys/time.h>
25644 #include <time.h>
25647 main ()
25649 if ((struct tm *) 0)
25650 return 0;
25652 return 0;
25654 _ACEOF
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25660 esac
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662 (eval "$ac_compile") 2>conftest.er1
25663 ac_status=$?
25664 grep -v '^ *+' conftest.er1 >conftest.err
25665 rm -f conftest.er1
25666 cat conftest.err >&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } && {
25669 test -z "$ac_c_werror_flag" ||
25670 test ! -s conftest.err
25671 } && test -s conftest.$ac_objext; then
25672 ac_cv_header_time=yes
25673 else
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25677 ac_cv_header_time=no
25680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25683 echo "${ECHO_T}$ac_cv_header_time" >&6; }
25684 if test $ac_cv_header_time = yes; then
25686 cat >>confdefs.h <<\_ACEOF
25687 #define TIME_WITH_SYS_TIME 1
25688 _ACEOF
25696 for ac_header in sys/types.h sys/time.h time.h
25698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25703 echo $ECHO_N "(cached) $ECHO_C" >&6
25705 ac_res=`eval echo '${'$as_ac_Header'}'`
25706 { echo "$as_me:$LINENO: result: $ac_res" >&5
25707 echo "${ECHO_T}$ac_res" >&6; }
25708 else
25709 # Is the header compilable?
25710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h. */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25719 #include <$ac_header>
25720 _ACEOF
25721 rm -f conftest.$ac_objext
25722 if { (ac_try="$ac_compile"
25723 case "(($ac_try" in
25724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725 *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728 (eval "$ac_compile") 2>conftest.er1
25729 ac_status=$?
25730 grep -v '^ *+' conftest.er1 >conftest.err
25731 rm -f conftest.er1
25732 cat conftest.err >&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } && {
25735 test -z "$ac_c_werror_flag" ||
25736 test ! -s conftest.err
25737 } && test -s conftest.$ac_objext; then
25738 ac_header_compiler=yes
25739 else
25740 echo "$as_me: failed program was:" >&5
25741 sed 's/^/| /' conftest.$ac_ext >&5
25743 ac_header_compiler=no
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25748 echo "${ECHO_T}$ac_header_compiler" >&6; }
25750 # Is the header present?
25751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25753 cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h. */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h. */
25759 #include <$ac_header>
25760 _ACEOF
25761 if { (ac_try="$ac_cpp conftest.$ac_ext"
25762 case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25765 esac
25766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } >/dev/null && {
25774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 }; then
25777 ac_header_preproc=yes
25778 else
25779 echo "$as_me: failed program was:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 ac_header_preproc=no
25785 rm -f conftest.err conftest.$ac_ext
25786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25787 echo "${ECHO_T}$ac_header_preproc" >&6; }
25789 # So? What about this header?
25790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25791 yes:no: )
25792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25796 ac_header_preproc=yes
25798 no:yes:* )
25799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25811 ( cat <<\_ASBOX
25812 ## ------------------------------------------------------------------------ ##
25813 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
25814 ## ------------------------------------------------------------------------ ##
25815 _ASBOX
25816 ) | sed "s/^/$as_me: WARNING: /" >&2
25818 esac
25819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25822 echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824 eval "$as_ac_Header=\$ac_header_preproc"
25826 ac_res=`eval echo '${'$as_ac_Header'}'`
25827 { echo "$as_me:$LINENO: result: $ac_res" >&5
25828 echo "${ECHO_T}$ac_res" >&6; }
25831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25832 cat >>confdefs.h <<_ACEOF
25833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25834 _ACEOF
25838 done
25840 { echo "$as_me:$LINENO: checking for monotonic clock_gettime" >&5
25841 echo $ECHO_N "checking for monotonic clock_gettime... $ECHO_C" >&6; }
25842 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h. */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25850 #ifdef HAVE_SYS_TYPES_H
25851 #include <sys/types.h>
25852 #endif
25853 #ifdef HAVE_SYS_TIME_H
25854 #include <sys/time.h>
25855 #ifdef TIME_WITH_SYS_TIME
25856 #include <time.h>
25857 #endif
25858 #else
25859 #ifdef HAVE_TIME_H
25860 #include <time.h>
25861 #endif
25862 #endif
25865 main ()
25868 struct timespec ts;
25869 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
25872 return 0;
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880 *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883 (eval "$ac_compile") 2>conftest.er1
25884 ac_status=$?
25885 grep -v '^ *+' conftest.er1 >conftest.err
25886 rm -f conftest.er1
25887 cat conftest.err >&5
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } && {
25890 test -z "$ac_c_werror_flag" ||
25891 test ! -s conftest.err
25892 } && test -s conftest.$ac_objext; then
25894 { echo "$as_me:$LINENO: result: yes" >&5
25895 echo "${ECHO_T}yes" >&6; }
25896 ac_cv_func_clock_gettime="yes"
25898 else
25899 echo "$as_me: failed program was:" >&5
25900 sed 's/^/| /' conftest.$ac_ext >&5
25903 { echo "$as_me:$LINENO: result: no" >&5
25904 echo "${ECHO_T}no" >&6; }
25905 ac_cv_func_clock_gettime="no"
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25913 if test "$ac_cv_func_clock_gettime" = "yes"; then
25915 { echo "$as_me:$LINENO: checking for clock_gettime in libraries" >&5
25916 echo $ECHO_N "checking for clock_gettime in libraries... $ECHO_C" >&6; }
25918 curl_cv_save_LIBS="$LIBS"
25919 curl_cv_gclk_LIBS="unknown"
25921 for x_xlibs in '' '-lrt' '-lposix4' ; do
25922 if test "$curl_cv_gclk_LIBS" = "unknown"; then
25923 if test -z "$x_xlibs"; then
25924 LIBS="$curl_cv_save_LIBS"
25925 else
25926 LIBS="$x_xlibs $curl_cv_save_LIBS"
25928 cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h. */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25936 #ifdef HAVE_SYS_TYPES_H
25937 #include <sys/types.h>
25938 #endif
25939 #ifdef HAVE_SYS_TIME_H
25940 #include <sys/time.h>
25941 #ifdef TIME_WITH_SYS_TIME
25942 #include <time.h>
25943 #endif
25944 #else
25945 #ifdef HAVE_TIME_H
25946 #include <time.h>
25947 #endif
25948 #endif
25951 main ()
25954 struct timespec ts;
25955 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
25958 return 0;
25961 _ACEOF
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25967 esac
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_link") 2>conftest.er1
25970 ac_status=$?
25971 grep -v '^ *+' conftest.er1 >conftest.err
25972 rm -f conftest.er1
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } && {
25976 test -z "$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25978 } && test -s conftest$ac_exeext &&
25979 $as_test_x conftest$ac_exeext; then
25981 curl_cv_gclk_LIBS="$x_xlibs"
25983 else
25984 echo "$as_me: failed program was:" >&5
25985 sed 's/^/| /' conftest.$ac_ext >&5
25990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25991 conftest$ac_exeext conftest.$ac_ext
25993 done
25995 LIBS="$curl_cv_save_LIBS"
25997 case X-"$curl_cv_gclk_LIBS" in
25998 X-unknown)
25999 { echo "$as_me:$LINENO: result: cannot find clock_gettime" >&5
26000 echo "${ECHO_T}cannot find clock_gettime" >&6; }
26001 { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
26002 echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
26003 ac_cv_func_clock_gettime="no"
26006 { echo "$as_me:$LINENO: result: no additional lib required" >&5
26007 echo "${ECHO_T}no additional lib required" >&6; }
26008 ac_cv_func_clock_gettime="yes"
26011 if test -z "$curl_cv_save_LIBS"; then
26012 LIBS="$curl_cv_gclk_LIBS"
26013 else
26014 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
26016 { echo "$as_me:$LINENO: result: $curl_cv_gclk_LIBS" >&5
26017 echo "${ECHO_T}$curl_cv_gclk_LIBS" >&6; }
26018 ac_cv_func_clock_gettime="yes"
26020 esac
26022 if test "x$cross_compiling" != "xyes" &&
26023 test "$ac_cv_func_clock_gettime" = "yes"; then
26024 { echo "$as_me:$LINENO: checking if monotonic clock_gettime works" >&5
26025 echo $ECHO_N "checking if monotonic clock_gettime works... $ECHO_C" >&6; }
26026 if test "$cross_compiling" = yes; then
26027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26028 See \`config.log' for more details." >&5
26029 echo "$as_me: error: cannot run test program while cross compiling
26030 See \`config.log' for more details." >&2;}
26031 { (exit 1); exit 1; }; }
26032 else
26033 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h. */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26041 #ifdef HAVE_SYS_TYPES_H
26042 #include <sys/types.h>
26043 #endif
26044 #ifdef HAVE_SYS_TIME_H
26045 #include <sys/time.h>
26046 #ifdef TIME_WITH_SYS_TIME
26047 #include <time.h>
26048 #endif
26049 #else
26050 #ifdef HAVE_TIME_H
26051 #include <time.h>
26052 #endif
26053 #endif
26056 main ()
26059 struct timespec ts;
26060 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
26061 exit(0);
26062 else
26063 exit(1);
26066 return 0;
26069 _ACEOF
26070 rm -f conftest$ac_exeext
26071 if { (ac_try="$ac_link"
26072 case "(($ac_try" in
26073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074 *) ac_try_echo=$ac_try;;
26075 esac
26076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26077 (eval "$ac_link") 2>&5
26078 ac_status=$?
26079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26081 { (case "(($ac_try" in
26082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083 *) ac_try_echo=$ac_try;;
26084 esac
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086 (eval "$ac_try") 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); }; }; then
26091 { echo "$as_me:$LINENO: result: yes" >&5
26092 echo "${ECHO_T}yes" >&6; }
26094 else
26095 echo "$as_me: program exited with status $ac_status" >&5
26096 echo "$as_me: failed program was:" >&5
26097 sed 's/^/| /' conftest.$ac_ext >&5
26099 ( exit $ac_status )
26101 { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26103 { echo "$as_me:$LINENO: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
26104 echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
26105 ac_cv_func_clock_gettime="no"
26106 LIBS="$curl_cv_save_LIBS"
26109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26115 case "$ac_cv_func_clock_gettime" in
26116 yes)
26118 cat >>confdefs.h <<_ACEOF
26119 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
26120 _ACEOF
26123 esac
26129 TEST_SERVER_LIBS=$LIBS
26131 { echo "$as_me:$LINENO: checking whether to use libgcc" >&5
26132 echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6; }
26133 # Check whether --enable-libgcc was given.
26134 if test "${enable_libgcc+set}" = set; then
26135 enableval=$enable_libgcc; case "$enableval" in
26136 yes)
26137 ALL_LIBS="$ALL_LIBS -lgcc"
26138 { echo "$as_me:$LINENO: result: yes" >&5
26139 echo "${ECHO_T}yes" >&6; }
26141 *) { echo "$as_me:$LINENO: result: no" >&5
26142 echo "${ECHO_T}no" >&6; }
26144 esac
26145 else
26146 { echo "$as_me:$LINENO: result: no" >&5
26147 echo "${ECHO_T}no" >&6; }
26153 LDAPLIBNAME=""
26155 # Check whether --with-ldap-lib was given.
26156 if test "${with_ldap_lib+set}" = set; then
26157 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
26161 LBERLIBNAME=""
26163 # Check whether --with-lber-lib was given.
26164 if test "${with_lber_lib+set}" = set; then
26165 withval=$with_lber_lib; LBERLIBNAME="$withval"
26169 if test x$CURL_DISABLE_LDAP != x1 ; then
26172 { echo "$as_me:$LINENO: checking for lber.h" >&5
26173 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; }
26174 if test "${ac_cv_header_lber_h+set}" = set; then
26175 echo $ECHO_N "(cached) $ECHO_C" >&6
26176 else
26178 cat >conftest.$ac_ext <<_ACEOF
26180 /* confdefs.h. */
26181 _ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26186 #undef inline
26187 #ifdef HAVE_WINDOWS_H
26188 #ifndef WIN32_LEAN_AND_MEAN
26189 #define WIN32_LEAN_AND_MEAN
26190 #endif
26191 #include <windows.h>
26192 #else
26193 #ifdef HAVE_SYS_TYPES_H
26194 #include <sys/types.h>
26195 #endif
26196 #endif
26197 #ifndef NULL
26198 #define NULL (void *)0
26199 #endif
26200 #include <lber.h>
26203 main ()
26206 BerValue *bvp = NULL;
26207 BerElement *bep = ber_init(bvp);
26208 ber_free(bep, 1);
26211 return 0;
26214 _ACEOF
26215 rm -f conftest.$ac_objext
26216 if { (ac_try="$ac_compile"
26217 case "(($ac_try" in
26218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219 *) ac_try_echo=$ac_try;;
26220 esac
26221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26222 (eval "$ac_compile") 2>conftest.er1
26223 ac_status=$?
26224 grep -v '^ *+' conftest.er1 >conftest.err
26225 rm -f conftest.er1
26226 cat conftest.err >&5
26227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228 (exit $ac_status); } && {
26229 test -z "$ac_c_werror_flag" ||
26230 test ! -s conftest.err
26231 } && test -s conftest.$ac_objext; then
26233 ac_cv_header_lber_h="yes"
26235 else
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.$ac_ext >&5
26240 ac_cv_header_lber_h="no"
26244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 { echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
26248 echo "${ECHO_T}$ac_cv_header_lber_h" >&6; }
26249 if test "$ac_cv_header_lber_h" = "yes"; then
26251 cat >>confdefs.h <<_ACEOF
26252 #define HAVE_LBER_H 1
26253 _ACEOF
26256 cat >conftest.$ac_ext <<_ACEOF
26258 /* confdefs.h. */
26259 _ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26264 #undef inline
26265 #ifdef HAVE_WINDOWS_H
26266 #ifndef WIN32_LEAN_AND_MEAN
26267 #define WIN32_LEAN_AND_MEAN
26268 #endif
26269 #include <windows.h>
26270 #else
26271 #ifdef HAVE_SYS_TYPES_H
26272 #include <sys/types.h>
26273 #endif
26274 #endif
26275 #ifndef NULL
26276 #define NULL (void *)0
26277 #endif
26278 #ifndef LDAP_DEPRECATED
26279 #define LDAP_DEPRECATED 1
26280 #endif
26281 #include <ldap.h>
26284 main ()
26287 BerValue *bvp = NULL;
26288 BerElement *bep = ber_init(bvp);
26289 ber_free(bep, 1);
26292 return 0;
26295 _ACEOF
26296 rm -f conftest.$ac_objext
26297 if { (ac_try="$ac_compile"
26298 case "(($ac_try" in
26299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300 *) ac_try_echo=$ac_try;;
26301 esac
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303 (eval "$ac_compile") 2>conftest.er1
26304 ac_status=$?
26305 grep -v '^ *+' conftest.er1 >conftest.err
26306 rm -f conftest.er1
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } && {
26310 test -z "$ac_c_werror_flag" ||
26311 test ! -s conftest.err
26312 } && test -s conftest.$ac_objext; then
26314 curl_cv_need_header_lber_h="no"
26316 else
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26321 curl_cv_need_header_lber_h="yes"
26325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 case "$curl_cv_need_header_lber_h" in
26328 yes)
26330 cat >>confdefs.h <<_ACEOF
26331 #define NEED_LBER_H 1
26332 _ACEOF
26335 esac
26339 { echo "$as_me:$LINENO: checking for ldap.h" >&5
26340 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
26341 if test "${ac_cv_header_ldap_h+set}" = set; then
26342 echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26345 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h. */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26353 #undef inline
26354 #ifdef HAVE_WINDOWS_H
26355 #ifndef WIN32_LEAN_AND_MEAN
26356 #define WIN32_LEAN_AND_MEAN
26357 #endif
26358 #include <windows.h>
26359 #else
26360 #ifdef HAVE_SYS_TYPES_H
26361 #include <sys/types.h>
26362 #endif
26363 #endif
26364 #ifndef LDAP_DEPRECATED
26365 #define LDAP_DEPRECATED 1
26366 #endif
26367 #ifdef NEED_LBER_H
26368 #include <lber.h>
26369 #endif
26370 #include <ldap.h>
26373 main ()
26376 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
26377 int res = ldap_unbind(ldp);
26380 return 0;
26383 _ACEOF
26384 rm -f conftest.$ac_objext
26385 if { (ac_try="$ac_compile"
26386 case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26389 esac
26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391 (eval "$ac_compile") 2>conftest.er1
26392 ac_status=$?
26393 grep -v '^ *+' conftest.er1 >conftest.err
26394 rm -f conftest.er1
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } && {
26398 test -z "$ac_c_werror_flag" ||
26399 test ! -s conftest.err
26400 } && test -s conftest.$ac_objext; then
26402 ac_cv_header_ldap_h="yes"
26404 else
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_cv_header_ldap_h="no"
26413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26416 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
26417 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6; }
26418 case "$ac_cv_header_ldap_h" in
26419 yes)
26421 cat >>confdefs.h <<_ACEOF
26422 #define HAVE_LDAP_H 1
26423 _ACEOF
26426 esac
26429 { echo "$as_me:$LINENO: checking for ldapssl.h" >&5
26430 echo $ECHO_N "checking for ldapssl.h... $ECHO_C" >&6; }
26431 if test "${ac_cv_header_ldapssl_h+set}" = set; then
26432 echo $ECHO_N "(cached) $ECHO_C" >&6
26433 else
26435 cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h. */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26443 #undef inline
26444 #ifdef HAVE_WINDOWS_H
26445 #ifndef WIN32_LEAN_AND_MEAN
26446 #define WIN32_LEAN_AND_MEAN
26447 #endif
26448 #include <windows.h>
26449 #else
26450 #ifdef HAVE_SYS_TYPES_H
26451 #include <sys/types.h>
26452 #endif
26453 #endif
26454 #ifndef NULL
26455 #define NULL (void *)0
26456 #endif
26457 #ifndef LDAP_DEPRECATED
26458 #define LDAP_DEPRECATED 1
26459 #endif
26460 #ifdef NEED_LBER_H
26461 #include <lber.h>
26462 #endif
26463 #ifdef HAVE_LDAP_H
26464 #include <ldap.h>
26465 #endif
26466 #include <ldapssl.h>
26469 main ()
26472 char *cert_label = NULL;
26473 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
26476 return 0;
26479 _ACEOF
26480 rm -f conftest.$ac_objext
26481 if { (ac_try="$ac_compile"
26482 case "(($ac_try" in
26483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26484 *) ac_try_echo=$ac_try;;
26485 esac
26486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26487 (eval "$ac_compile") 2>conftest.er1
26488 ac_status=$?
26489 grep -v '^ *+' conftest.er1 >conftest.err
26490 rm -f conftest.er1
26491 cat conftest.err >&5
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); } && {
26494 test -z "$ac_c_werror_flag" ||
26495 test ! -s conftest.err
26496 } && test -s conftest.$ac_objext; then
26498 ac_cv_header_ldapssl_h="yes"
26500 else
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26505 ac_cv_header_ldapssl_h="no"
26509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26512 { echo "$as_me:$LINENO: result: $ac_cv_header_ldapssl_h" >&5
26513 echo "${ECHO_T}$ac_cv_header_ldapssl_h" >&6; }
26514 case "$ac_cv_header_ldapssl_h" in
26515 yes)
26517 cat >>confdefs.h <<_ACEOF
26518 #define HAVE_LDAPSSL_H 1
26519 _ACEOF
26522 esac
26525 { echo "$as_me:$LINENO: checking for ldap_ssl.h" >&5
26526 echo $ECHO_N "checking for ldap_ssl.h... $ECHO_C" >&6; }
26527 if test "${ac_cv_header_ldap_ssl_h+set}" = set; then
26528 echo $ECHO_N "(cached) $ECHO_C" >&6
26529 else
26531 cat >conftest.$ac_ext <<_ACEOF
26533 /* confdefs.h. */
26534 _ACEOF
26535 cat confdefs.h >>conftest.$ac_ext
26536 cat >>conftest.$ac_ext <<_ACEOF
26537 /* end confdefs.h. */
26539 #undef inline
26540 #ifdef HAVE_WINDOWS_H
26541 #ifndef WIN32_LEAN_AND_MEAN
26542 #define WIN32_LEAN_AND_MEAN
26543 #endif
26544 #include <windows.h>
26545 #else
26546 #ifdef HAVE_SYS_TYPES_H
26547 #include <sys/types.h>
26548 #endif
26549 #endif
26550 #ifndef LDAP_DEPRECATED
26551 #define LDAP_DEPRECATED 1
26552 #endif
26553 #ifdef NEED_LBER_H
26554 #include <lber.h>
26555 #endif
26556 #ifdef HAVE_LDAP_H
26557 #include <ldap.h>
26558 #endif
26559 #include <ldap_ssl.h>
26562 main ()
26565 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
26568 return 0;
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } && {
26586 test -z "$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26588 } && test -s conftest.$ac_objext; then
26590 ac_cv_header_ldap_ssl_h="yes"
26592 else
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26597 ac_cv_header_ldap_ssl_h="no"
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 { echo "$as_me:$LINENO: result: $ac_cv_header_ldap_ssl_h" >&5
26605 echo "${ECHO_T}$ac_cv_header_ldap_ssl_h" >&6; }
26606 case "$ac_cv_header_ldap_ssl_h" in
26607 yes)
26609 cat >>confdefs.h <<_ACEOF
26610 #define HAVE_LDAP_SSL_H 1
26611 _ACEOF
26614 esac
26617 if test -z "$LDAPLIBNAME" ; then
26618 case $host in
26619 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
26620 LDAPLIBNAME="wldap32"
26621 LBERLIBNAME="no"
26623 esac
26626 if test "$LDAPLIBNAME" ; then
26628 as_ac_Lib=`echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
26629 { echo "$as_me:$LINENO: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
26630 echo $ECHO_N "checking for ldap_init in -l\"$LDAPLIBNAME\"... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634 ac_check_lib_save_LIBS=$LIBS
26635 LIBS="-l"$LDAPLIBNAME" $LIBS"
26636 cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h. */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h. */
26643 /* Override any GCC internal prototype to avoid an error.
26644 Use char because int might match the return type of a GCC
26645 builtin and then its argument prototype would still apply. */
26646 #ifdef __cplusplus
26647 extern "C"
26648 #endif
26649 char ldap_init ();
26651 main ()
26653 return ldap_init ();
26655 return 0;
26657 _ACEOF
26658 rm -f conftest.$ac_objext conftest$ac_exeext
26659 if { (ac_try="$ac_link"
26660 case "(($ac_try" in
26661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662 *) ac_try_echo=$ac_try;;
26663 esac
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_link") 2>conftest.er1
26666 ac_status=$?
26667 grep -v '^ *+' conftest.er1 >conftest.err
26668 rm -f conftest.er1
26669 cat conftest.err >&5
26670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671 (exit $ac_status); } && {
26672 test -z "$ac_c_werror_flag" ||
26673 test ! -s conftest.err
26674 } && test -s conftest$ac_exeext &&
26675 $as_test_x conftest$ac_exeext; then
26676 eval "$as_ac_Lib=yes"
26677 else
26678 echo "$as_me: failed program was:" >&5
26679 sed 's/^/| /' conftest.$ac_ext >&5
26681 eval "$as_ac_Lib=no"
26684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26685 conftest$ac_exeext conftest.$ac_ext
26686 LIBS=$ac_check_lib_save_LIBS
26688 ac_res=`eval echo '${'$as_ac_Lib'}'`
26689 { echo "$as_me:$LINENO: result: $ac_res" >&5
26690 echo "${ECHO_T}$ac_res" >&6; }
26691 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26692 cat >>confdefs.h <<_ACEOF
26693 #define `echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
26694 _ACEOF
26696 LIBS="-l"$LDAPLIBNAME" $LIBS"
26698 else
26700 { echo "$as_me:$LINENO: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
26701 echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
26703 cat >>confdefs.h <<\_ACEOF
26704 #define CURL_DISABLE_LDAP 1
26705 _ACEOF
26707 CURL_DISABLE_LDAP=1
26712 cat >>confdefs.h <<\_ACEOF
26713 #define CURL_DISABLE_LDAPS 1
26714 _ACEOF
26716 CURL_DISABLE_LDAPS=1
26718 else
26721 { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
26722 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
26724 u_libs=""
26728 curl_cv_save_LIBS="$LIBS"
26729 curl_cv_ldap_LIBS="unknown"
26731 for x_nlibs in '' "$u_libs" \
26732 '-lldap' \
26733 '-llber -lldap' \
26734 '-lldap -llber' \
26735 '-lldapssl -lldapx -lldapsdk' \
26736 '-lldapsdk -lldapx -lldapssl' ; do
26737 if test "$curl_cv_ldap_LIBS" = "unknown"; then
26738 if test -z "$x_nlibs"; then
26739 LIBS="$curl_cv_save_LIBS"
26740 else
26741 LIBS="$x_nlibs $curl_cv_save_LIBS"
26743 cat >conftest.$ac_ext <<_ACEOF
26745 /* confdefs.h. */
26746 _ACEOF
26747 cat confdefs.h >>conftest.$ac_ext
26748 cat >>conftest.$ac_ext <<_ACEOF
26749 /* end confdefs.h. */
26751 #undef inline
26752 #ifdef HAVE_WINDOWS_H
26753 #ifndef WIN32_LEAN_AND_MEAN
26754 #define WIN32_LEAN_AND_MEAN
26755 #endif
26756 #include <windows.h>
26757 #else
26758 #ifdef HAVE_SYS_TYPES_H
26759 #include <sys/types.h>
26760 #endif
26761 #endif
26762 #ifndef NULL
26763 #define NULL (void *)0
26764 #endif
26765 #ifndef LDAP_DEPRECATED
26766 #define LDAP_DEPRECATED 1
26767 #endif
26768 #ifdef NEED_LBER_H
26769 #include <lber.h>
26770 #endif
26771 #ifdef HAVE_LDAP_H
26772 #include <ldap.h>
26773 #endif
26776 main ()
26779 BerValue *bvp = NULL;
26780 BerElement *bep = ber_init(bvp);
26781 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
26782 int res = ldap_unbind(ldp);
26783 ber_free(bep, 1);
26786 return 0;
26789 _ACEOF
26790 rm -f conftest.$ac_objext conftest$ac_exeext
26791 if { (ac_try="$ac_link"
26792 case "(($ac_try" in
26793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26794 *) ac_try_echo=$ac_try;;
26795 esac
26796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26797 (eval "$ac_link") 2>conftest.er1
26798 ac_status=$?
26799 grep -v '^ *+' conftest.er1 >conftest.err
26800 rm -f conftest.er1
26801 cat conftest.err >&5
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); } && {
26804 test -z "$ac_c_werror_flag" ||
26805 test ! -s conftest.err
26806 } && test -s conftest$ac_exeext &&
26807 $as_test_x conftest$ac_exeext; then
26809 curl_cv_ldap_LIBS="$x_nlibs"
26811 else
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26819 conftest$ac_exeext conftest.$ac_ext
26821 done
26823 LIBS="$curl_cv_save_LIBS"
26825 case X-"$curl_cv_ldap_LIBS" in
26826 X-unknown)
26827 { echo "$as_me:$LINENO: result: cannot find LDAP libraries" >&5
26828 echo "${ECHO_T}cannot find LDAP libraries" >&6; }
26831 { echo "$as_me:$LINENO: result: no additional lib required" >&5
26832 echo "${ECHO_T}no additional lib required" >&6; }
26835 if test -z "$curl_cv_save_LIBS"; then
26836 LIBS="$curl_cv_ldap_LIBS"
26837 else
26838 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
26840 { echo "$as_me:$LINENO: result: $curl_cv_ldap_LIBS" >&5
26841 echo "${ECHO_T}$curl_cv_ldap_LIBS" >&6; }
26843 esac
26846 case X-"$curl_cv_ldap_LIBS" in
26847 X-unknown)
26848 { echo "$as_me:$LINENO: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
26849 echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
26851 cat >>confdefs.h <<\_ACEOF
26852 #define CURL_DISABLE_LDAP 1
26853 _ACEOF
26855 CURL_DISABLE_LDAP=1
26858 cat >>confdefs.h <<\_ACEOF
26859 #define CURL_DISABLE_LDAPS 1
26860 _ACEOF
26862 CURL_DISABLE_LDAPS=1
26865 esac
26869 if test x$CURL_DISABLE_LDAP != x1 ; then
26871 if test "$LBERLIBNAME" ; then
26872 if test "$LBERLIBNAME" != "no" ; then
26874 as_ac_Lib=`echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
26875 { echo "$as_me:$LINENO: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
26876 echo $ECHO_N "checking for ber_free in -l\"$LBERLIBNAME\"... $ECHO_C" >&6; }
26877 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879 else
26880 ac_check_lib_save_LIBS=$LIBS
26881 LIBS="-l"$LBERLIBNAME" $LIBS"
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h. */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26889 /* Override any GCC internal prototype to avoid an error.
26890 Use char because int might match the return type of a GCC
26891 builtin and then its argument prototype would still apply. */
26892 #ifdef __cplusplus
26893 extern "C"
26894 #endif
26895 char ber_free ();
26897 main ()
26899 return ber_free ();
26901 return 0;
26903 _ACEOF
26904 rm -f conftest.$ac_objext conftest$ac_exeext
26905 if { (ac_try="$ac_link"
26906 case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26909 esac
26910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_link") 2>conftest.er1
26912 ac_status=$?
26913 grep -v '^ *+' conftest.er1 >conftest.err
26914 rm -f conftest.er1
26915 cat conftest.err >&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); } && {
26918 test -z "$ac_c_werror_flag" ||
26919 test ! -s conftest.err
26920 } && test -s conftest$ac_exeext &&
26921 $as_test_x conftest$ac_exeext; then
26922 eval "$as_ac_Lib=yes"
26923 else
26924 echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26927 eval "$as_ac_Lib=no"
26930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26931 conftest$ac_exeext conftest.$ac_ext
26932 LIBS=$ac_check_lib_save_LIBS
26934 ac_res=`eval echo '${'$as_ac_Lib'}'`
26935 { echo "$as_me:$LINENO: result: $ac_res" >&5
26936 echo "${ECHO_T}$ac_res" >&6; }
26937 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
26938 cat >>confdefs.h <<_ACEOF
26939 #define `echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
26940 _ACEOF
26942 LIBS="-l"$LBERLIBNAME" $LIBS"
26944 else
26946 { echo "$as_me:$LINENO: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
26947 echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
26949 cat >>confdefs.h <<\_ACEOF
26950 #define CURL_DISABLE_LDAP 1
26951 _ACEOF
26953 CURL_DISABLE_LDAP=1
26958 cat >>confdefs.h <<\_ACEOF
26959 #define CURL_DISABLE_LDAPS 1
26960 _ACEOF
26962 CURL_DISABLE_LDAPS=1
26968 if test x$CURL_DISABLE_LDAP != x1 ; then
26970 for ac_func in ldap_url_parse
26972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26977 else
26978 cat >conftest.$ac_ext <<_ACEOF
26979 /* confdefs.h. */
26980 _ACEOF
26981 cat confdefs.h >>conftest.$ac_ext
26982 cat >>conftest.$ac_ext <<_ACEOF
26983 /* end confdefs.h. */
26984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26986 #define $ac_func innocuous_$ac_func
26988 /* System header to define __stub macros and hopefully few prototypes,
26989 which can conflict with char $ac_func (); below.
26990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26991 <limits.h> exists even on freestanding compilers. */
26993 #ifdef __STDC__
26994 # include <limits.h>
26995 #else
26996 # include <assert.h>
26997 #endif
26999 #undef $ac_func
27001 /* Override any GCC internal prototype to avoid an error.
27002 Use char because int might match the return type of a GCC
27003 builtin and then its argument prototype would still apply. */
27004 #ifdef __cplusplus
27005 extern "C"
27006 #endif
27007 char $ac_func ();
27008 /* The GNU C library defines this for functions which it implements
27009 to always fail with ENOSYS. Some functions are actually named
27010 something starting with __ and the normal name is an alias. */
27011 #if defined __stub_$ac_func || defined __stub___$ac_func
27012 choke me
27013 #endif
27016 main ()
27018 return $ac_func ();
27020 return 0;
27022 _ACEOF
27023 rm -f conftest.$ac_objext conftest$ac_exeext
27024 if { (ac_try="$ac_link"
27025 case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27028 esac
27029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_link") 2>conftest.er1
27031 ac_status=$?
27032 grep -v '^ *+' conftest.er1 >conftest.err
27033 rm -f conftest.er1
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } && {
27037 test -z "$ac_c_werror_flag" ||
27038 test ! -s conftest.err
27039 } && test -s conftest$ac_exeext &&
27040 $as_test_x conftest$ac_exeext; then
27041 eval "$as_ac_var=yes"
27042 else
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 eval "$as_ac_var=no"
27049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27050 conftest$ac_exeext conftest.$ac_ext
27052 ac_res=`eval echo '${'$as_ac_var'}'`
27053 { echo "$as_me:$LINENO: result: $ac_res" >&5
27054 echo "${ECHO_T}$ac_res" >&6; }
27055 if test `eval echo '${'$as_ac_var'}'` = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27058 _ACEOF
27061 done
27064 if test "$LDAPLIBNAME" = "wldap32"; then
27065 curl_ldap_msg="enabled (winldap)"
27067 cat >>confdefs.h <<\_ACEOF
27068 #define CURL_LDAP_WIN 1
27069 _ACEOF
27071 case $host in
27072 *-*-cygwin* | *-*-pw32*)
27074 cat >>confdefs.h <<\_ACEOF
27075 #define CURL_LDAP_HYBRID 1
27076 _ACEOF
27079 esac
27080 else
27081 curl_ldap_msg="enabled (OpenLDAP)"
27086 { echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
27087 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6; }
27088 # Check whether --enable-ipv6 was given.
27089 if test "${enable_ipv6+set}" = set; then
27090 enableval=$enable_ipv6; case "$enableval" in
27092 { echo "$as_me:$LINENO: result: no" >&5
27093 echo "${ECHO_T}no" >&6; }
27094 ipv6=no
27096 *) { echo "$as_me:$LINENO: result: yes" >&5
27097 echo "${ECHO_T}yes" >&6; }
27098 ipv6=yes
27100 esac
27101 else
27102 if test "$cross_compiling" = yes; then
27103 { echo "$as_me:$LINENO: result: no" >&5
27104 echo "${ECHO_T}no" >&6; }
27105 ipv6=no
27107 else
27108 cat >conftest.$ac_ext <<_ACEOF
27109 /* confdefs.h. */
27110 _ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 /* is AF_INET6 available? */
27115 #include <sys/types.h>
27116 #include <sys/socket.h>
27117 main()
27119 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
27120 exit(1);
27121 else
27122 exit(0);
27125 _ACEOF
27126 rm -f conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131 esac
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_link") 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27137 { (case "(($ac_try" in
27138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139 *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142 (eval "$ac_try") 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; }; then
27146 { echo "$as_me:$LINENO: result: yes" >&5
27147 echo "${ECHO_T}yes" >&6; }
27148 ipv6=yes
27149 else
27150 echo "$as_me: program exited with status $ac_status" >&5
27151 echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27154 ( exit $ac_status )
27155 { echo "$as_me:$LINENO: result: no" >&5
27156 echo "${ECHO_T}no" >&6; }
27157 ipv6=no
27159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27166 if test "$ipv6" = "yes"; then
27167 curl_ipv6_msg="enabled"
27170 # Check whether --enable-nonblocking was given.
27171 if test "${enable_nonblocking+set}" = set; then
27172 enableval=$enable_nonblocking;
27173 if test "$enableval" = "no" ; then
27174 { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
27175 echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
27177 cat >>confdefs.h <<\_ACEOF
27178 #define HAVE_DISABLED_NONBLOCKING 1
27179 _ACEOF
27181 else
27183 { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
27184 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
27185 nonblock="unknown"
27187 cat >conftest.$ac_ext <<_ACEOF
27189 /* confdefs.h. */
27190 _ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27195 /* headers for O_NONBLOCK test */
27196 #include <sys/types.h>
27197 #include <unistd.h>
27198 #include <fcntl.h>
27199 /* */
27200 #if defined(sun) || defined(__sun__) || \
27201 defined(__SUNPRO_C) || defined(__SUNPRO_CC)
27202 # if defined(__SVR4) || defined(__srv4__)
27203 # define PLATFORM_SOLARIS
27204 # else
27205 # define PLATFORM_SUNOS4
27206 # endif
27207 #endif
27208 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
27209 # define PLATFORM_AIX_V3
27210 #endif
27211 /* */
27212 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
27213 #error "O_NONBLOCK does not work on this platform"
27214 #endif
27217 main ()
27220 /* O_NONBLOCK source test */
27221 int socket;
27222 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
27225 return 0;
27228 _ACEOF
27229 rm -f conftest.$ac_objext
27230 if { (ac_try="$ac_compile"
27231 case "(($ac_try" in
27232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233 *) ac_try_echo=$ac_try;;
27234 esac
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236 (eval "$ac_compile") 2>conftest.er1
27237 ac_status=$?
27238 grep -v '^ *+' conftest.er1 >conftest.err
27239 rm -f conftest.er1
27240 cat conftest.err >&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } && {
27243 test -z "$ac_c_werror_flag" ||
27244 test ! -s conftest.err
27245 } && test -s conftest.$ac_objext; then
27247 nonblock="O_NONBLOCK"
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_O_NONBLOCK 1
27251 _ACEOF
27254 else
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263 if test "$nonblock" = "unknown"; then
27264 cat >conftest.$ac_ext <<_ACEOF
27266 /* confdefs.h. */
27267 _ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27272 /* headers for FIONBIO test */
27273 #include <unistd.h>
27274 #include <stropts.h>
27277 main ()
27280 /* FIONBIO source test (old-style unix) */
27281 int socket;
27282 int flags = ioctl(socket, FIONBIO, &flags);
27285 return 0;
27288 _ACEOF
27289 rm -f conftest.$ac_objext
27290 if { (ac_try="$ac_compile"
27291 case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27294 esac
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_compile") 2>conftest.er1
27297 ac_status=$?
27298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } && {
27303 test -z "$ac_c_werror_flag" ||
27304 test ! -s conftest.err
27305 } && test -s conftest.$ac_objext; then
27307 nonblock="FIONBIO"
27309 cat >>confdefs.h <<\_ACEOF
27310 #define HAVE_FIONBIO 1
27311 _ACEOF
27314 else
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 if test "$nonblock" = "unknown"; then
27325 cat >conftest.$ac_ext <<_ACEOF
27327 /* confdefs.h. */
27328 _ACEOF
27329 cat confdefs.h >>conftest.$ac_ext
27330 cat >>conftest.$ac_ext <<_ACEOF
27331 /* end confdefs.h. */
27333 /* headers for ioctlsocket test (Windows) */
27334 #undef inline
27335 #ifdef HAVE_WINDOWS_H
27336 #ifndef WIN32_LEAN_AND_MEAN
27337 #define WIN32_LEAN_AND_MEAN
27338 #endif
27339 #include <windows.h>
27340 #ifdef HAVE_WINSOCK2_H
27341 #include <winsock2.h>
27342 #else
27343 #ifdef HAVE_WINSOCK_H
27344 #include <winsock.h>
27345 #endif
27346 #endif
27347 #endif
27350 main ()
27353 /* ioctlsocket source code (Windows) */
27354 SOCKET sd;
27355 unsigned long flags = 0;
27356 sd = socket(0, 0, 0);
27357 ioctlsocket(sd, FIONBIO, &flags);
27360 return 0;
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_compile") 2>conftest.er1
27372 ac_status=$?
27373 grep -v '^ *+' conftest.er1 >conftest.err
27374 rm -f conftest.er1
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } && {
27378 test -z "$ac_c_werror_flag" ||
27379 test ! -s conftest.err
27380 } && test -s conftest.$ac_objext; then
27382 nonblock="ioctlsocket"
27384 cat >>confdefs.h <<\_ACEOF
27385 #define HAVE_IOCTLSOCKET 1
27386 _ACEOF
27389 else
27390 echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399 if test "$nonblock" = "unknown"; then
27400 cat >conftest.$ac_ext <<_ACEOF
27402 /* confdefs.h. */
27403 _ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27408 /* headers for IoctlSocket test (Amiga?) */
27409 #include <sys/ioctl.h>
27412 main ()
27415 /* IoctlSocket source code (Amiga?) */
27416 int socket;
27417 int flags = IoctlSocket(socket, FIONBIO, (long)1);
27420 return 0;
27423 _ACEOF
27424 rm -f conftest.$ac_objext conftest$ac_exeext
27425 if { (ac_try="$ac_link"
27426 case "(($ac_try" in
27427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27428 *) ac_try_echo=$ac_try;;
27429 esac
27430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27431 (eval "$ac_link") 2>conftest.er1
27432 ac_status=$?
27433 grep -v '^ *+' conftest.er1 >conftest.err
27434 rm -f conftest.er1
27435 cat conftest.err >&5
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); } && {
27438 test -z "$ac_c_werror_flag" ||
27439 test ! -s conftest.err
27440 } && test -s conftest$ac_exeext &&
27441 $as_test_x conftest$ac_exeext; then
27443 nonblock="IoctlSocket"
27445 cat >>confdefs.h <<\_ACEOF
27446 #define HAVE_IOCTLSOCKET_CASE 1
27447 _ACEOF
27450 else
27451 echo "$as_me: failed program was:" >&5
27452 sed 's/^/| /' conftest.$ac_ext >&5
27457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27458 conftest$ac_exeext conftest.$ac_ext
27461 if test "$nonblock" = "unknown"; then
27462 cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h. */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h. */
27470 /* headers for SO_NONBLOCK test (BeOS) */
27471 #include <socket.h>
27474 main ()
27477 /* SO_NONBLOCK source code (BeOS) */
27478 long b = 1;
27479 int socket;
27480 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
27483 return 0;
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27495 ac_status=$?
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_c_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest.$ac_objext; then
27505 nonblock="SO_NONBLOCK"
27507 cat >>confdefs.h <<\_ACEOF
27508 #define HAVE_SO_NONBLOCK 1
27509 _ACEOF
27512 else
27513 echo "$as_me: failed program was:" >&5
27514 sed 's/^/| /' conftest.$ac_ext >&5
27519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27522 { echo "$as_me:$LINENO: result: $nonblock" >&5
27523 echo "${ECHO_T}$nonblock" >&6; }
27525 if test "$nonblock" = "unknown"; then
27527 cat >>confdefs.h <<\_ACEOF
27528 #define HAVE_DISABLED_NONBLOCKING 1
27529 _ACEOF
27531 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
27532 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
27537 else
27540 { echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
27541 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6; }
27542 nonblock="unknown"
27544 cat >conftest.$ac_ext <<_ACEOF
27546 /* confdefs.h. */
27547 _ACEOF
27548 cat confdefs.h >>conftest.$ac_ext
27549 cat >>conftest.$ac_ext <<_ACEOF
27550 /* end confdefs.h. */
27552 /* headers for O_NONBLOCK test */
27553 #include <sys/types.h>
27554 #include <unistd.h>
27555 #include <fcntl.h>
27556 /* */
27557 #if defined(sun) || defined(__sun__) || \
27558 defined(__SUNPRO_C) || defined(__SUNPRO_CC)
27559 # if defined(__SVR4) || defined(__srv4__)
27560 # define PLATFORM_SOLARIS
27561 # else
27562 # define PLATFORM_SUNOS4
27563 # endif
27564 #endif
27565 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
27566 # define PLATFORM_AIX_V3
27567 #endif
27568 /* */
27569 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
27570 #error "O_NONBLOCK does not work on this platform"
27571 #endif
27574 main ()
27577 /* O_NONBLOCK source test */
27578 int socket;
27579 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
27582 return 0;
27585 _ACEOF
27586 rm -f conftest.$ac_objext
27587 if { (ac_try="$ac_compile"
27588 case "(($ac_try" in
27589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27590 *) ac_try_echo=$ac_try;;
27591 esac
27592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27593 (eval "$ac_compile") 2>conftest.er1
27594 ac_status=$?
27595 grep -v '^ *+' conftest.er1 >conftest.err
27596 rm -f conftest.er1
27597 cat conftest.err >&5
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); } && {
27600 test -z "$ac_c_werror_flag" ||
27601 test ! -s conftest.err
27602 } && test -s conftest.$ac_objext; then
27604 nonblock="O_NONBLOCK"
27606 cat >>confdefs.h <<\_ACEOF
27607 #define HAVE_O_NONBLOCK 1
27608 _ACEOF
27611 else
27612 echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 if test "$nonblock" = "unknown"; then
27621 cat >conftest.$ac_ext <<_ACEOF
27623 /* confdefs.h. */
27624 _ACEOF
27625 cat confdefs.h >>conftest.$ac_ext
27626 cat >>conftest.$ac_ext <<_ACEOF
27627 /* end confdefs.h. */
27629 /* headers for FIONBIO test */
27630 #include <unistd.h>
27631 #include <stropts.h>
27634 main ()
27637 /* FIONBIO source test (old-style unix) */
27638 int socket;
27639 int flags = ioctl(socket, FIONBIO, &flags);
27642 return 0;
27645 _ACEOF
27646 rm -f conftest.$ac_objext
27647 if { (ac_try="$ac_compile"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_compile") 2>conftest.er1
27654 ac_status=$?
27655 grep -v '^ *+' conftest.er1 >conftest.err
27656 rm -f conftest.er1
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } && {
27660 test -z "$ac_c_werror_flag" ||
27661 test ! -s conftest.err
27662 } && test -s conftest.$ac_objext; then
27664 nonblock="FIONBIO"
27666 cat >>confdefs.h <<\_ACEOF
27667 #define HAVE_FIONBIO 1
27668 _ACEOF
27671 else
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27681 if test "$nonblock" = "unknown"; then
27682 cat >conftest.$ac_ext <<_ACEOF
27684 /* confdefs.h. */
27685 _ACEOF
27686 cat confdefs.h >>conftest.$ac_ext
27687 cat >>conftest.$ac_ext <<_ACEOF
27688 /* end confdefs.h. */
27690 /* headers for ioctlsocket test (Windows) */
27691 #undef inline
27692 #ifdef HAVE_WINDOWS_H
27693 #ifndef WIN32_LEAN_AND_MEAN
27694 #define WIN32_LEAN_AND_MEAN
27695 #endif
27696 #include <windows.h>
27697 #ifdef HAVE_WINSOCK2_H
27698 #include <winsock2.h>
27699 #else
27700 #ifdef HAVE_WINSOCK_H
27701 #include <winsock.h>
27702 #endif
27703 #endif
27704 #endif
27707 main ()
27710 /* ioctlsocket source code (Windows) */
27711 SOCKET sd;
27712 unsigned long flags = 0;
27713 sd = socket(0, 0, 0);
27714 ioctlsocket(sd, FIONBIO, &flags);
27717 return 0;
27720 _ACEOF
27721 rm -f conftest.$ac_objext
27722 if { (ac_try="$ac_compile"
27723 case "(($ac_try" in
27724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27725 *) ac_try_echo=$ac_try;;
27726 esac
27727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27728 (eval "$ac_compile") 2>conftest.er1
27729 ac_status=$?
27730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
27733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } && {
27735 test -z "$ac_c_werror_flag" ||
27736 test ! -s conftest.err
27737 } && test -s conftest.$ac_objext; then
27739 nonblock="ioctlsocket"
27741 cat >>confdefs.h <<\_ACEOF
27742 #define HAVE_IOCTLSOCKET 1
27743 _ACEOF
27746 else
27747 echo "$as_me: failed program was:" >&5
27748 sed 's/^/| /' conftest.$ac_ext >&5
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 if test "$nonblock" = "unknown"; then
27757 cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h. */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h. */
27765 /* headers for IoctlSocket test (Amiga?) */
27766 #include <sys/ioctl.h>
27769 main ()
27772 /* IoctlSocket source code (Amiga?) */
27773 int socket;
27774 int flags = IoctlSocket(socket, FIONBIO, (long)1);
27777 return 0;
27780 _ACEOF
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (ac_try="$ac_link"
27783 case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786 esac
27787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_link") 2>conftest.er1
27789 ac_status=$?
27790 grep -v '^ *+' conftest.er1 >conftest.err
27791 rm -f conftest.er1
27792 cat conftest.err >&5
27793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } && {
27795 test -z "$ac_c_werror_flag" ||
27796 test ! -s conftest.err
27797 } && test -s conftest$ac_exeext &&
27798 $as_test_x conftest$ac_exeext; then
27800 nonblock="IoctlSocket"
27802 cat >>confdefs.h <<\_ACEOF
27803 #define HAVE_IOCTLSOCKET_CASE 1
27804 _ACEOF
27807 else
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27815 conftest$ac_exeext conftest.$ac_ext
27818 if test "$nonblock" = "unknown"; then
27819 cat >conftest.$ac_ext <<_ACEOF
27821 /* confdefs.h. */
27822 _ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27827 /* headers for SO_NONBLOCK test (BeOS) */
27828 #include <socket.h>
27831 main ()
27834 /* SO_NONBLOCK source code (BeOS) */
27835 long b = 1;
27836 int socket;
27837 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
27840 return 0;
27843 _ACEOF
27844 rm -f conftest.$ac_objext
27845 if { (ac_try="$ac_compile"
27846 case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_compile") 2>conftest.er1
27852 ac_status=$?
27853 grep -v '^ *+' conftest.er1 >conftest.err
27854 rm -f conftest.er1
27855 cat conftest.err >&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); } && {
27858 test -z "$ac_c_werror_flag" ||
27859 test ! -s conftest.err
27860 } && test -s conftest.$ac_objext; then
27862 nonblock="SO_NONBLOCK"
27864 cat >>confdefs.h <<\_ACEOF
27865 #define HAVE_SO_NONBLOCK 1
27866 _ACEOF
27869 else
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $nonblock" >&5
27880 echo "${ECHO_T}$nonblock" >&6; }
27882 if test "$nonblock" = "unknown"; then
27884 cat >>confdefs.h <<\_ACEOF
27885 #define HAVE_DISABLED_NONBLOCKING 1
27886 _ACEOF
27888 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
27889 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
27897 { echo "$as_me:$LINENO: checking if argv can be written to" >&5
27898 echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6; }
27899 if test "${curl_cv_writable_argv+set}" = set; then
27900 echo $ECHO_N "(cached) $ECHO_C" >&6
27901 else
27903 if test "$cross_compiling" = yes; then
27904 curl_cv_writable_argv=cross
27905 else
27906 cat >conftest.$ac_ext <<_ACEOF
27908 int main(int argc, char ** argv) {
27909 argv[0][0] = ' ';
27910 return (argv[0][0] == ' ')?0:1;
27913 _ACEOF
27914 rm -f conftest$ac_exeext
27915 if { (ac_try="$ac_link"
27916 case "(($ac_try" in
27917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27918 *) ac_try_echo=$ac_try;;
27919 esac
27920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27921 (eval "$ac_link") 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27925 { (case "(($ac_try" in
27926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927 *) ac_try_echo=$ac_try;;
27928 esac
27929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27930 (eval "$ac_try") 2>&5
27931 ac_status=$?
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); }; }; then
27934 curl_cv_writable_argv=yes
27935 else
27936 echo "$as_me: program exited with status $ac_status" >&5
27937 echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27940 ( exit $ac_status )
27941 curl_cv_writable_argv=no
27943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27950 case $curl_cv_writable_argv in
27951 yes)
27953 cat >>confdefs.h <<\_ACEOF
27954 #define HAVE_WRITABLE_ARGV 1
27955 _ACEOF
27957 { echo "$as_me:$LINENO: result: yes" >&5
27958 echo "${ECHO_T}yes" >&6; }
27961 { echo "$as_me:$LINENO: result: no" >&5
27962 echo "${ECHO_T}no" >&6; }
27965 { echo "$as_me:$LINENO: result: no" >&5
27966 echo "${ECHO_T}no" >&6; }
27967 { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
27968 echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
27970 esac
27974 # Check whether --with-krb4-includes was given.
27975 if test "${with_krb4_includes+set}" = set; then
27976 withval=$with_krb4_includes;
27977 CPPFLAGS="$CPPFLAGS -I$withval"
27978 KRB4INC="$withval"
27979 want_krb4=yes
27985 # Check whether --with-krb4-libs was given.
27986 if test "${with_krb4_libs+set}" = set; then
27987 withval=$with_krb4_libs;
27988 LDFLAGS="$LDFLAGS -L$withval"
27989 KRB4LIB="$withval"
27990 want_krb4=yes
27996 OPT_KRB4=off
27998 # Check whether --with-krb4 was given.
27999 if test "${with_krb4+set}" = set; then
28000 withval=$with_krb4;
28001 OPT_KRB4="$withval"
28002 if test X"$OPT_KRB4" != Xno; then
28003 want_krb4="yes"
28004 if test X"$OPT_KRB4" != Xyes; then
28005 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
28006 KRB4LIB="$OPT_KRB4/lib$libsuff"
28007 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
28008 KRB4INC="$OPT_KRB4/include"
28015 { echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
28016 echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6; }
28018 if test "$want_krb4" = yes
28019 then
28020 if test "$ipv6" = "yes"; then
28021 echo krb4 is not compatible with IPv6
28022 exit 1
28024 { echo "$as_me:$LINENO: result: yes" >&5
28025 echo "${ECHO_T}yes" >&6; }
28028 { echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
28029 echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6; }
28030 if test X"$OPT_KRB4" = Xyes
28031 then
28032 { echo "$as_me:$LINENO: result: defaults" >&5
28033 echo "${ECHO_T}defaults" >&6; }
28034 else
28035 { echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
28036 echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6; }
28039 { echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
28040 echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6; }
28041 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
28042 echo $ECHO_N "(cached) $ECHO_C" >&6
28043 else
28044 ac_check_lib_save_LIBS=$LIBS
28045 LIBS="-ldes $LIBS"
28046 cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h. */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28053 /* Override any GCC internal prototype to avoid an error.
28054 Use char because int might match the return type of a GCC
28055 builtin and then its argument prototype would still apply. */
28056 #ifdef __cplusplus
28057 extern "C"
28058 #endif
28059 char des_pcbc_encrypt ();
28061 main ()
28063 return des_pcbc_encrypt ();
28065 return 0;
28067 _ACEOF
28068 rm -f conftest.$ac_objext conftest$ac_exeext
28069 if { (ac_try="$ac_link"
28070 case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_link") 2>conftest.er1
28076 ac_status=$?
28077 grep -v '^ *+' conftest.er1 >conftest.err
28078 rm -f conftest.er1
28079 cat conftest.err >&5
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); } && {
28082 test -z "$ac_c_werror_flag" ||
28083 test ! -s conftest.err
28084 } && test -s conftest$ac_exeext &&
28085 $as_test_x conftest$ac_exeext; then
28086 ac_cv_lib_des_des_pcbc_encrypt=yes
28087 else
28088 echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28091 ac_cv_lib_des_des_pcbc_encrypt=no
28094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28095 conftest$ac_exeext conftest.$ac_ext
28096 LIBS=$ac_check_lib_save_LIBS
28098 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
28099 echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6; }
28100 if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
28103 for ac_header in des.h
28105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28110 echo $ECHO_N "(cached) $ECHO_C" >&6
28112 ac_res=`eval echo '${'$as_ac_Header'}'`
28113 { echo "$as_me:$LINENO: result: $ac_res" >&5
28114 echo "${ECHO_T}$ac_res" >&6; }
28115 else
28116 # Is the header compilable?
28117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28119 cat >conftest.$ac_ext <<_ACEOF
28120 /* confdefs.h. */
28121 _ACEOF
28122 cat confdefs.h >>conftest.$ac_ext
28123 cat >>conftest.$ac_ext <<_ACEOF
28124 /* end confdefs.h. */
28125 $ac_includes_default
28126 #include <$ac_header>
28127 _ACEOF
28128 rm -f conftest.$ac_objext
28129 if { (ac_try="$ac_compile"
28130 case "(($ac_try" in
28131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28132 *) ac_try_echo=$ac_try;;
28133 esac
28134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28135 (eval "$ac_compile") 2>conftest.er1
28136 ac_status=$?
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } && {
28142 test -z "$ac_c_werror_flag" ||
28143 test ! -s conftest.err
28144 } && test -s conftest.$ac_objext; then
28145 ac_header_compiler=yes
28146 else
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28150 ac_header_compiler=no
28153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28155 echo "${ECHO_T}$ac_header_compiler" >&6; }
28157 # Is the header present?
28158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28160 cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h. */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28166 #include <$ac_header>
28167 _ACEOF
28168 if { (ac_try="$ac_cpp conftest.$ac_ext"
28169 case "(($ac_try" in
28170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171 *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28175 ac_status=$?
28176 grep -v '^ *+' conftest.er1 >conftest.err
28177 rm -f conftest.er1
28178 cat conftest.err >&5
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } >/dev/null && {
28181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28182 test ! -s conftest.err
28183 }; then
28184 ac_header_preproc=yes
28185 else
28186 echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28189 ac_header_preproc=no
28192 rm -f conftest.err conftest.$ac_ext
28193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28194 echo "${ECHO_T}$ac_header_preproc" >&6; }
28196 # So? What about this header?
28197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28198 yes:no: )
28199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28203 ac_header_preproc=yes
28205 no:yes:* )
28206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28218 ( cat <<\_ASBOX
28219 ## ------------------------------------------------------------------------ ##
28220 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
28221 ## ------------------------------------------------------------------------ ##
28222 _ASBOX
28223 ) | sed "s/^/$as_me: WARNING: /" >&2
28225 esac
28226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28230 else
28231 eval "$as_ac_Header=\$ac_header_preproc"
28233 ac_res=`eval echo '${'$as_ac_Header'}'`
28234 { echo "$as_me:$LINENO: result: $ac_res" >&5
28235 echo "${ECHO_T}$ac_res" >&6; }
28238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28239 cat >>confdefs.h <<_ACEOF
28240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28241 _ACEOF
28245 done
28248 { echo "$as_me:$LINENO: checking for res_search" >&5
28249 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_res_search+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253 cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h. */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h. */
28259 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
28260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28261 #define res_search innocuous_res_search
28263 /* System header to define __stub macros and hopefully few prototypes,
28264 which can conflict with char res_search (); below.
28265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28266 <limits.h> exists even on freestanding compilers. */
28268 #ifdef __STDC__
28269 # include <limits.h>
28270 #else
28271 # include <assert.h>
28272 #endif
28274 #undef res_search
28276 /* Override any GCC internal prototype to avoid an error.
28277 Use char because int might match the return type of a GCC
28278 builtin and then its argument prototype would still apply. */
28279 #ifdef __cplusplus
28280 extern "C"
28281 #endif
28282 char res_search ();
28283 /* The GNU C library defines this for functions which it implements
28284 to always fail with ENOSYS. Some functions are actually named
28285 something starting with __ and the normal name is an alias. */
28286 #if defined __stub_res_search || defined __stub___res_search
28287 choke me
28288 #endif
28291 main ()
28293 return res_search ();
28295 return 0;
28297 _ACEOF
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302 *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305 (eval "$ac_link") 2>conftest.er1
28306 ac_status=$?
28307 grep -v '^ *+' conftest.er1 >conftest.err
28308 rm -f conftest.er1
28309 cat conftest.err >&5
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); } && {
28312 test -z "$ac_c_werror_flag" ||
28313 test ! -s conftest.err
28314 } && test -s conftest$ac_exeext &&
28315 $as_test_x conftest$ac_exeext; then
28316 ac_cv_func_res_search=yes
28317 else
28318 echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28321 ac_cv_func_res_search=no
28324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28325 conftest$ac_exeext conftest.$ac_ext
28327 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
28328 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
28329 if test $ac_cv_func_res_search = yes; then
28331 else
28333 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
28334 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
28335 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28337 else
28338 ac_check_lib_save_LIBS=$LIBS
28339 LIBS="-lresolv $LIBS"
28340 cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h. */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28347 /* Override any GCC internal prototype to avoid an error.
28348 Use char because int might match the return type of a GCC
28349 builtin and then its argument prototype would still apply. */
28350 #ifdef __cplusplus
28351 extern "C"
28352 #endif
28353 char res_search ();
28355 main ()
28357 return res_search ();
28359 return 0;
28361 _ACEOF
28362 rm -f conftest.$ac_objext conftest$ac_exeext
28363 if { (ac_try="$ac_link"
28364 case "(($ac_try" in
28365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366 *) ac_try_echo=$ac_try;;
28367 esac
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369 (eval "$ac_link") 2>conftest.er1
28370 ac_status=$?
28371 grep -v '^ *+' conftest.er1 >conftest.err
28372 rm -f conftest.er1
28373 cat conftest.err >&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); } && {
28376 test -z "$ac_c_werror_flag" ||
28377 test ! -s conftest.err
28378 } && test -s conftest$ac_exeext &&
28379 $as_test_x conftest$ac_exeext; then
28380 ac_cv_lib_resolv_res_search=yes
28381 else
28382 echo "$as_me: failed program was:" >&5
28383 sed 's/^/| /' conftest.$ac_ext >&5
28385 ac_cv_lib_resolv_res_search=no
28388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28389 conftest$ac_exeext conftest.$ac_ext
28390 LIBS=$ac_check_lib_save_LIBS
28392 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
28393 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
28394 if test $ac_cv_lib_resolv_res_search = yes; then
28395 cat >>confdefs.h <<_ACEOF
28396 #define HAVE_LIBRESOLV 1
28397 _ACEOF
28399 LIBS="-lresolv $LIBS"
28406 { echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
28407 echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6; }
28408 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
28409 echo $ECHO_N "(cached) $ECHO_C" >&6
28410 else
28411 ac_check_lib_save_LIBS=$LIBS
28412 LIBS="-lkrb $LIBS"
28413 cat >conftest.$ac_ext <<_ACEOF
28414 /* confdefs.h. */
28415 _ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h. */
28420 /* Override any GCC internal prototype to avoid an error.
28421 Use char because int might match the return type of a GCC
28422 builtin and then its argument prototype would still apply. */
28423 #ifdef __cplusplus
28424 extern "C"
28425 #endif
28426 char krb_net_read ();
28428 main ()
28430 return krb_net_read ();
28432 return 0;
28434 _ACEOF
28435 rm -f conftest.$ac_objext conftest$ac_exeext
28436 if { (ac_try="$ac_link"
28437 case "(($ac_try" in
28438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28440 esac
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 (eval "$ac_link") 2>conftest.er1
28443 ac_status=$?
28444 grep -v '^ *+' conftest.er1 >conftest.err
28445 rm -f conftest.er1
28446 cat conftest.err >&5
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } && {
28449 test -z "$ac_c_werror_flag" ||
28450 test ! -s conftest.err
28451 } && test -s conftest$ac_exeext &&
28452 $as_test_x conftest$ac_exeext; then
28453 ac_cv_lib_krb_krb_net_read=yes
28454 else
28455 echo "$as_me: failed program was:" >&5
28456 sed 's/^/| /' conftest.$ac_ext >&5
28458 ac_cv_lib_krb_krb_net_read=no
28461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28462 conftest$ac_exeext conftest.$ac_ext
28463 LIBS=$ac_check_lib_save_LIBS
28465 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
28466 echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6; }
28467 if test $ac_cv_lib_krb_krb_net_read = yes; then
28470 for ac_header in krb.h
28472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28479 ac_res=`eval echo '${'$as_ac_Header'}'`
28480 { echo "$as_me:$LINENO: result: $ac_res" >&5
28481 echo "${ECHO_T}$ac_res" >&6; }
28482 else
28483 # Is the header compilable?
28484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28486 cat >conftest.$ac_ext <<_ACEOF
28487 /* confdefs.h. */
28488 _ACEOF
28489 cat confdefs.h >>conftest.$ac_ext
28490 cat >>conftest.$ac_ext <<_ACEOF
28491 /* end confdefs.h. */
28492 $ac_includes_default
28493 #include <$ac_header>
28494 _ACEOF
28495 rm -f conftest.$ac_objext
28496 if { (ac_try="$ac_compile"
28497 case "(($ac_try" in
28498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28499 *) ac_try_echo=$ac_try;;
28500 esac
28501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28502 (eval "$ac_compile") 2>conftest.er1
28503 ac_status=$?
28504 grep -v '^ *+' conftest.er1 >conftest.err
28505 rm -f conftest.er1
28506 cat conftest.err >&5
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && {
28509 test -z "$ac_c_werror_flag" ||
28510 test ! -s conftest.err
28511 } && test -s conftest.$ac_objext; then
28512 ac_header_compiler=yes
28513 else
28514 echo "$as_me: failed program was:" >&5
28515 sed 's/^/| /' conftest.$ac_ext >&5
28517 ac_header_compiler=no
28520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28522 echo "${ECHO_T}$ac_header_compiler" >&6; }
28524 # Is the header present?
28525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28527 cat >conftest.$ac_ext <<_ACEOF
28528 /* confdefs.h. */
28529 _ACEOF
28530 cat confdefs.h >>conftest.$ac_ext
28531 cat >>conftest.$ac_ext <<_ACEOF
28532 /* end confdefs.h. */
28533 #include <$ac_header>
28534 _ACEOF
28535 if { (ac_try="$ac_cpp conftest.$ac_ext"
28536 case "(($ac_try" in
28537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28538 *) ac_try_echo=$ac_try;;
28539 esac
28540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28542 ac_status=$?
28543 grep -v '^ *+' conftest.er1 >conftest.err
28544 rm -f conftest.er1
28545 cat conftest.err >&5
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } >/dev/null && {
28548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28549 test ! -s conftest.err
28550 }; then
28551 ac_header_preproc=yes
28552 else
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ac_header_preproc=no
28559 rm -f conftest.err conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28561 echo "${ECHO_T}$ac_header_preproc" >&6; }
28563 # So? What about this header?
28564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28565 yes:no: )
28566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28570 ac_header_preproc=yes
28572 no:yes:* )
28573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28585 ( cat <<\_ASBOX
28586 ## ------------------------------------------------------------------------ ##
28587 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
28588 ## ------------------------------------------------------------------------ ##
28589 _ASBOX
28590 ) | sed "s/^/$as_me: WARNING: /" >&2
28592 esac
28593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28596 echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598 eval "$as_ac_Header=\$ac_header_preproc"
28600 ac_res=`eval echo '${'$as_ac_Header'}'`
28601 { echo "$as_me:$LINENO: result: $ac_res" >&5
28602 echo "${ECHO_T}$ac_res" >&6; }
28605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28606 cat >>confdefs.h <<_ACEOF
28607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28608 _ACEOF
28612 done
28615 LIBS="-lkrb -lcom_err -ldes $LIBS"
28618 for ac_func in krb_get_our_ip_for_realm
28620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28625 else
28626 cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h. */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h. */
28632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28634 #define $ac_func innocuous_$ac_func
28636 /* System header to define __stub macros and hopefully few prototypes,
28637 which can conflict with char $ac_func (); below.
28638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28639 <limits.h> exists even on freestanding compilers. */
28641 #ifdef __STDC__
28642 # include <limits.h>
28643 #else
28644 # include <assert.h>
28645 #endif
28647 #undef $ac_func
28649 /* Override any GCC internal prototype to avoid an error.
28650 Use char because int might match the return type of a GCC
28651 builtin and then its argument prototype would still apply. */
28652 #ifdef __cplusplus
28653 extern "C"
28654 #endif
28655 char $ac_func ();
28656 /* The GNU C library defines this for functions which it implements
28657 to always fail with ENOSYS. Some functions are actually named
28658 something starting with __ and the normal name is an alias. */
28659 #if defined __stub_$ac_func || defined __stub___$ac_func
28660 choke me
28661 #endif
28664 main ()
28666 return $ac_func ();
28668 return 0;
28670 _ACEOF
28671 rm -f conftest.$ac_objext conftest$ac_exeext
28672 if { (ac_try="$ac_link"
28673 case "(($ac_try" in
28674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675 *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678 (eval "$ac_link") 2>conftest.er1
28679 ac_status=$?
28680 grep -v '^ *+' conftest.er1 >conftest.err
28681 rm -f conftest.er1
28682 cat conftest.err >&5
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); } && {
28685 test -z "$ac_c_werror_flag" ||
28686 test ! -s conftest.err
28687 } && test -s conftest$ac_exeext &&
28688 $as_test_x conftest$ac_exeext; then
28689 eval "$as_ac_var=yes"
28690 else
28691 echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28694 eval "$as_ac_var=no"
28697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28698 conftest$ac_exeext conftest.$ac_ext
28700 ac_res=`eval echo '${'$as_ac_var'}'`
28701 { echo "$as_me:$LINENO: result: $ac_res" >&5
28702 echo "${ECHO_T}$ac_res" >&6; }
28703 if test `eval echo '${'$as_ac_var'}'` = yes; then
28704 cat >>confdefs.h <<_ACEOF
28705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28706 _ACEOF
28709 done
28713 cat >>confdefs.h <<\_ACEOF
28714 #define HAVE_KRB4 1
28715 _ACEOF
28718 KRB4_ENABLED=1
28721 curl_krb4_msg="enabled"
28724 for ac_func in strlcpy
28726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28730 echo $ECHO_N "(cached) $ECHO_C" >&6
28731 else
28732 cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h. */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28740 #define $ac_func innocuous_$ac_func
28742 /* System header to define __stub macros and hopefully few prototypes,
28743 which can conflict with char $ac_func (); below.
28744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28745 <limits.h> exists even on freestanding compilers. */
28747 #ifdef __STDC__
28748 # include <limits.h>
28749 #else
28750 # include <assert.h>
28751 #endif
28753 #undef $ac_func
28755 /* Override any GCC internal prototype to avoid an error.
28756 Use char because int might match the return type of a GCC
28757 builtin and then its argument prototype would still apply. */
28758 #ifdef __cplusplus
28759 extern "C"
28760 #endif
28761 char $ac_func ();
28762 /* The GNU C library defines this for functions which it implements
28763 to always fail with ENOSYS. Some functions are actually named
28764 something starting with __ and the normal name is an alias. */
28765 #if defined __stub_$ac_func || defined __stub___$ac_func
28766 choke me
28767 #endif
28770 main ()
28772 return $ac_func ();
28774 return 0;
28776 _ACEOF
28777 rm -f conftest.$ac_objext conftest$ac_exeext
28778 if { (ac_try="$ac_link"
28779 case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_link") 2>conftest.er1
28785 ac_status=$?
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } && {
28791 test -z "$ac_c_werror_flag" ||
28792 test ! -s conftest.err
28793 } && test -s conftest$ac_exeext &&
28794 $as_test_x conftest$ac_exeext; then
28795 eval "$as_ac_var=yes"
28796 else
28797 echo "$as_me: failed program was:" >&5
28798 sed 's/^/| /' conftest.$ac_ext >&5
28800 eval "$as_ac_var=no"
28803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28804 conftest$ac_exeext conftest.$ac_ext
28806 ac_res=`eval echo '${'$as_ac_var'}'`
28807 { echo "$as_me:$LINENO: result: $ac_res" >&5
28808 echo "${ECHO_T}$ac_res" >&6; }
28809 if test `eval echo '${'$as_ac_var'}'` = yes; then
28810 cat >>confdefs.h <<_ACEOF
28811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28812 _ACEOF
28815 done
28824 else
28825 { echo "$as_me:$LINENO: result: no" >&5
28826 echo "${ECHO_T}no" >&6; }
28831 # Check whether --with-spnego was given.
28832 if test "${with_spnego+set}" = set; then
28833 withval=$with_spnego;
28834 SPNEGO_ROOT="$withval"
28835 if test x"$SPNEGO_ROOT" != xno; then
28836 want_spnego="yes"
28842 { echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
28843 echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6; }
28844 if test x"$want_spnego" = xyes; then
28846 if test X"$SPNEGO_ROOT" = Xyes; then
28847 { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
28848 echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
28849 { (exit 1); exit 1; }; }
28850 { echo "$as_me:$LINENO: result: no" >&5
28851 echo "${ECHO_T}no" >&6; }
28852 else
28853 if test -z "$SPNEGO_LIB_DIR"; then
28854 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
28855 else
28856 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
28859 { echo "$as_me:$LINENO: result: yes" >&5
28860 echo "${ECHO_T}yes" >&6; }
28862 cat >>confdefs.h <<\_ACEOF
28863 #define HAVE_SPNEGO 1
28864 _ACEOF
28866 curl_spnego_msg="enabled"
28868 else
28869 { echo "$as_me:$LINENO: result: no" >&5
28870 echo "${ECHO_T}no" >&6; }
28875 GSSAPI_ROOT="/usr"
28877 # Check whether --with-gssapi-includes was given.
28878 if test "${with_gssapi_includes+set}" = set; then
28879 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
28880 want_gss="yes"
28886 # Check whether --with-gssapi-libs was given.
28887 if test "${with_gssapi_libs+set}" = set; then
28888 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
28889 want_gss="yes"
28895 # Check whether --with-gssapi was given.
28896 if test "${with_gssapi+set}" = set; then
28897 withval=$with_gssapi;
28898 GSSAPI_ROOT="$withval"
28899 if test x"$GSSAPI_ROOT" != xno; then
28900 want_gss="yes"
28901 if test x"$GSSAPI_ROOT" = xyes; then
28902 GSSAPI_ROOT="/usr"
28909 save_CPPFLAGS="$CPPFLAGS"
28910 { echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
28911 echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6; }
28912 if test x"$want_gss" = xyes; then
28913 { echo "$as_me:$LINENO: result: yes" >&5
28914 echo "${ECHO_T}yes" >&6; }
28916 if test -z "$GSSAPI_INCS"; then
28917 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
28918 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
28919 GSSAPI_LIBS=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
28920 elif test "$GSSAPI_ROOT" != "yes"; then
28921 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
28922 GSSAPI_LIBS="-lgssapi"
28926 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
28927 LIBS="$LIBS $GSSAPI_LIBS"
28929 if test "${ac_cv_header_gss_h+set}" = set; then
28930 { echo "$as_me:$LINENO: checking for gss.h" >&5
28931 echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
28932 if test "${ac_cv_header_gss_h+set}" = set; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28935 { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
28936 echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
28937 else
28938 # Is the header compilable?
28939 { echo "$as_me:$LINENO: checking gss.h usability" >&5
28940 echo $ECHO_N "checking gss.h usability... $ECHO_C" >&6; }
28941 cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h. */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h. */
28947 $ac_includes_default
28948 #include <gss.h>
28949 _ACEOF
28950 rm -f conftest.$ac_objext
28951 if { (ac_try="$ac_compile"
28952 case "(($ac_try" in
28953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28954 *) ac_try_echo=$ac_try;;
28955 esac
28956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28957 (eval "$ac_compile") 2>conftest.er1
28958 ac_status=$?
28959 grep -v '^ *+' conftest.er1 >conftest.err
28960 rm -f conftest.er1
28961 cat conftest.err >&5
28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963 (exit $ac_status); } && {
28964 test -z "$ac_c_werror_flag" ||
28965 test ! -s conftest.err
28966 } && test -s conftest.$ac_objext; then
28967 ac_header_compiler=yes
28968 else
28969 echo "$as_me: failed program was:" >&5
28970 sed 's/^/| /' conftest.$ac_ext >&5
28972 ac_header_compiler=no
28975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28977 echo "${ECHO_T}$ac_header_compiler" >&6; }
28979 # Is the header present?
28980 { echo "$as_me:$LINENO: checking gss.h presence" >&5
28981 echo $ECHO_N "checking gss.h presence... $ECHO_C" >&6; }
28982 cat >conftest.$ac_ext <<_ACEOF
28983 /* confdefs.h. */
28984 _ACEOF
28985 cat confdefs.h >>conftest.$ac_ext
28986 cat >>conftest.$ac_ext <<_ACEOF
28987 /* end confdefs.h. */
28988 #include <gss.h>
28989 _ACEOF
28990 if { (ac_try="$ac_cpp conftest.$ac_ext"
28991 case "(($ac_try" in
28992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28993 *) ac_try_echo=$ac_try;;
28994 esac
28995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28997 ac_status=$?
28998 grep -v '^ *+' conftest.er1 >conftest.err
28999 rm -f conftest.er1
29000 cat conftest.err >&5
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); } >/dev/null && {
29003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29004 test ! -s conftest.err
29005 }; then
29006 ac_header_preproc=yes
29007 else
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_header_preproc=no
29014 rm -f conftest.err conftest.$ac_ext
29015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29016 echo "${ECHO_T}$ac_header_preproc" >&6; }
29018 # So? What about this header?
29019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29020 yes:no: )
29021 { echo "$as_me:$LINENO: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&5
29022 echo "$as_me: WARNING: gss.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29023 { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the compiler's result" >&5
29024 echo "$as_me: WARNING: gss.h: proceeding with the compiler's result" >&2;}
29025 ac_header_preproc=yes
29027 no:yes:* )
29028 { echo "$as_me:$LINENO: WARNING: gss.h: present but cannot be compiled" >&5
29029 echo "$as_me: WARNING: gss.h: present but cannot be compiled" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: gss.h: check for missing prerequisite headers?" >&5
29031 echo "$as_me: WARNING: gss.h: check for missing prerequisite headers?" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: gss.h: see the Autoconf documentation" >&5
29033 echo "$as_me: WARNING: gss.h: see the Autoconf documentation" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&5
29035 echo "$as_me: WARNING: gss.h: section \"Present But Cannot Be Compiled\"" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: gss.h: proceeding with the preprocessor's result" >&5
29037 echo "$as_me: WARNING: gss.h: proceeding with the preprocessor's result" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: gss.h: in the future, the compiler will take precedence" >&5
29039 echo "$as_me: WARNING: gss.h: in the future, the compiler will take precedence" >&2;}
29040 ( cat <<\_ASBOX
29041 ## ------------------------------------------------------------------------ ##
29042 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29043 ## ------------------------------------------------------------------------ ##
29044 _ASBOX
29045 ) | sed "s/^/$as_me: WARNING: /" >&2
29047 esac
29048 { echo "$as_me:$LINENO: checking for gss.h" >&5
29049 echo $ECHO_N "checking for gss.h... $ECHO_C" >&6; }
29050 if test "${ac_cv_header_gss_h+set}" = set; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 else
29053 ac_cv_header_gss_h=$ac_header_preproc
29055 { echo "$as_me:$LINENO: result: $ac_cv_header_gss_h" >&5
29056 echo "${ECHO_T}$ac_cv_header_gss_h" >&6; }
29059 if test $ac_cv_header_gss_h = yes; then
29062 cat >>confdefs.h <<\_ACEOF
29063 #define HAVE_GSSGNU 1
29064 _ACEOF
29066 gnu_gss=yes
29068 else
29073 for ac_header in gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
29075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29080 echo $ECHO_N "(cached) $ECHO_C" >&6
29082 ac_res=`eval echo '${'$as_ac_Header'}'`
29083 { echo "$as_me:$LINENO: result: $ac_res" >&5
29084 echo "${ECHO_T}$ac_res" >&6; }
29085 else
29086 # Is the header compilable?
29087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29089 cat >conftest.$ac_ext <<_ACEOF
29090 /* confdefs.h. */
29091 _ACEOF
29092 cat confdefs.h >>conftest.$ac_ext
29093 cat >>conftest.$ac_ext <<_ACEOF
29094 /* end confdefs.h. */
29095 $ac_includes_default
29096 #include <$ac_header>
29097 _ACEOF
29098 rm -f conftest.$ac_objext
29099 if { (ac_try="$ac_compile"
29100 case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29103 esac
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_compile") 2>conftest.er1
29106 ac_status=$?
29107 grep -v '^ *+' conftest.er1 >conftest.err
29108 rm -f conftest.er1
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } && {
29112 test -z "$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29114 } && test -s conftest.$ac_objext; then
29115 ac_header_compiler=yes
29116 else
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29120 ac_header_compiler=no
29123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29125 echo "${ECHO_T}$ac_header_compiler" >&6; }
29127 # Is the header present?
29128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29130 cat >conftest.$ac_ext <<_ACEOF
29131 /* confdefs.h. */
29132 _ACEOF
29133 cat confdefs.h >>conftest.$ac_ext
29134 cat >>conftest.$ac_ext <<_ACEOF
29135 /* end confdefs.h. */
29136 #include <$ac_header>
29137 _ACEOF
29138 if { (ac_try="$ac_cpp conftest.$ac_ext"
29139 case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29142 esac
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29145 ac_status=$?
29146 grep -v '^ *+' conftest.er1 >conftest.err
29147 rm -f conftest.er1
29148 cat conftest.err >&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } >/dev/null && {
29151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29152 test ! -s conftest.err
29153 }; then
29154 ac_header_preproc=yes
29155 else
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29159 ac_header_preproc=no
29162 rm -f conftest.err conftest.$ac_ext
29163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29164 echo "${ECHO_T}$ac_header_preproc" >&6; }
29166 # So? What about this header?
29167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29168 yes:no: )
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29173 ac_header_preproc=yes
29175 no:yes:* )
29176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29188 ( cat <<\_ASBOX
29189 ## ------------------------------------------------------------------------ ##
29190 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29191 ## ------------------------------------------------------------------------ ##
29192 _ASBOX
29193 ) | sed "s/^/$as_me: WARNING: /" >&2
29195 esac
29196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29199 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 else
29201 eval "$as_ac_Header=\$ac_header_preproc"
29203 ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205 echo "${ECHO_T}$ac_res" >&6; }
29208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29209 cat >>confdefs.h <<_ACEOF
29210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29211 _ACEOF
29213 else
29214 not_mit=1
29217 done
29219 if test "x$not_mit" = "x1"; then
29220 if test "${ac_cv_header_gssapi_h+set}" = set; then
29221 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29222 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29223 if test "${ac_cv_header_gssapi_h+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29226 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29227 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29228 else
29229 # Is the header compilable?
29230 { echo "$as_me:$LINENO: checking gssapi.h usability" >&5
29231 echo $ECHO_N "checking gssapi.h usability... $ECHO_C" >&6; }
29232 cat >conftest.$ac_ext <<_ACEOF
29233 /* confdefs.h. */
29234 _ACEOF
29235 cat confdefs.h >>conftest.$ac_ext
29236 cat >>conftest.$ac_ext <<_ACEOF
29237 /* end confdefs.h. */
29238 $ac_includes_default
29239 #include <gssapi.h>
29240 _ACEOF
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
29249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } && {
29255 test -z "$ac_c_werror_flag" ||
29256 test ! -s conftest.err
29257 } && test -s conftest.$ac_objext; then
29258 ac_header_compiler=yes
29259 else
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 ac_header_compiler=no
29266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29267 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29268 echo "${ECHO_T}$ac_header_compiler" >&6; }
29270 # Is the header present?
29271 { echo "$as_me:$LINENO: checking gssapi.h presence" >&5
29272 echo $ECHO_N "checking gssapi.h presence... $ECHO_C" >&6; }
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h. */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29279 #include <gssapi.h>
29280 _ACEOF
29281 if { (ac_try="$ac_cpp conftest.$ac_ext"
29282 case "(($ac_try" in
29283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284 *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29288 ac_status=$?
29289 grep -v '^ *+' conftest.er1 >conftest.err
29290 rm -f conftest.er1
29291 cat conftest.err >&5
29292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293 (exit $ac_status); } >/dev/null && {
29294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29295 test ! -s conftest.err
29296 }; then
29297 ac_header_preproc=yes
29298 else
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29302 ac_header_preproc=no
29305 rm -f conftest.err conftest.$ac_ext
29306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29307 echo "${ECHO_T}$ac_header_preproc" >&6; }
29309 # So? What about this header?
29310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29311 yes:no: )
29312 { echo "$as_me:$LINENO: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
29313 echo "$as_me: WARNING: gssapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the compiler's result" >&5
29315 echo "$as_me: WARNING: gssapi.h: proceeding with the compiler's result" >&2;}
29316 ac_header_preproc=yes
29318 no:yes:* )
29319 { echo "$as_me:$LINENO: WARNING: gssapi.h: present but cannot be compiled" >&5
29320 echo "$as_me: WARNING: gssapi.h: present but cannot be compiled" >&2;}
29321 { echo "$as_me:$LINENO: WARNING: gssapi.h: check for missing prerequisite headers?" >&5
29322 echo "$as_me: WARNING: gssapi.h: check for missing prerequisite headers?" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: gssapi.h: see the Autoconf documentation" >&5
29324 echo "$as_me: WARNING: gssapi.h: see the Autoconf documentation" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&5
29326 echo "$as_me: WARNING: gssapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: gssapi.h: proceeding with the preprocessor's result" >&5
29328 echo "$as_me: WARNING: gssapi.h: proceeding with the preprocessor's result" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: gssapi.h: in the future, the compiler will take precedence" >&5
29330 echo "$as_me: WARNING: gssapi.h: in the future, the compiler will take precedence" >&2;}
29331 ( cat <<\_ASBOX
29332 ## ------------------------------------------------------------------------ ##
29333 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
29334 ## ------------------------------------------------------------------------ ##
29335 _ASBOX
29336 ) | sed "s/^/$as_me: WARNING: /" >&2
29338 esac
29339 { echo "$as_me:$LINENO: checking for gssapi.h" >&5
29340 echo $ECHO_N "checking for gssapi.h... $ECHO_C" >&6; }
29341 if test "${ac_cv_header_gssapi_h+set}" = set; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29343 else
29344 ac_cv_header_gssapi_h=$ac_header_preproc
29346 { echo "$as_me:$LINENO: result: $ac_cv_header_gssapi_h" >&5
29347 echo "${ECHO_T}$ac_cv_header_gssapi_h" >&6; }
29350 if test $ac_cv_header_gssapi_h = yes; then
29353 cat >>confdefs.h <<\_ACEOF
29354 #define HAVE_GSSHEIMDAL 1
29355 _ACEOF
29358 else
29360 want_gss=no
29361 { echo "$as_me:$LINENO: WARNING: disabling GSSAPI since no header files was found" >&5
29362 echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;}
29368 else
29370 cat >>confdefs.h <<\_ACEOF
29371 #define HAVE_GSSMIT 1
29372 _ACEOF
29374 { echo "$as_me:$LINENO: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
29375 echo $ECHO_N "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6; }
29376 cat >conftest.$ac_ext <<_ACEOF
29378 /* confdefs.h. */
29379 _ACEOF
29380 cat confdefs.h >>conftest.$ac_ext
29381 cat >>conftest.$ac_ext <<_ACEOF
29382 /* end confdefs.h. */
29384 #include <gssapi/gssapi.h>
29385 #include <gssapi/gssapi_generic.h>
29386 #include <gssapi/gssapi_krb5.h>
29389 main ()
29392 gss_import_name(
29393 (OM_uint32 *)0,
29394 (gss_buffer_t)0,
29395 GSS_C_NT_HOSTBASED_SERVICE,
29396 (gss_name_t *)0);
29399 return 0;
29402 _ACEOF
29403 rm -f conftest.$ac_objext
29404 if { (ac_try="$ac_compile"
29405 case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29408 esac
29409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_compile") 2>conftest.er1
29411 ac_status=$?
29412 grep -v '^ *+' conftest.er1 >conftest.err
29413 rm -f conftest.er1
29414 cat conftest.err >&5
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } && {
29417 test -z "$ac_c_werror_flag" ||
29418 test ! -s conftest.err
29419 } && test -s conftest.$ac_objext; then
29421 { echo "$as_me:$LINENO: result: yes" >&5
29422 echo "${ECHO_T}yes" >&6; }
29424 else
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29429 { echo "$as_me:$LINENO: result: no" >&5
29430 echo "${ECHO_T}no" >&6; }
29432 cat >>confdefs.h <<\_ACEOF
29433 #define HAVE_OLD_GSSMIT 1
29434 _ACEOF
29439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29446 else
29447 { echo "$as_me:$LINENO: result: no" >&5
29448 echo "${ECHO_T}no" >&6; }
29450 if test x"$want_gss" = xyes; then
29452 cat >>confdefs.h <<\_ACEOF
29453 #define HAVE_GSSAPI 1
29454 _ACEOF
29457 curl_gss_msg="enabled (MIT/Heimdal)"
29459 if test -n "$gnu_gss"; then
29460 curl_gss_msg="enabled (GNU GSS)"
29461 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
29462 LIBS="$LIBS -lgss"
29463 elif test -z "$GSSAPI_LIB_DIR"; then
29464 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
29465 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
29466 LIBS="$LIBS $gss_libs"
29467 elif test "$GSSAPI_ROOT" != "yes"; then
29468 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
29469 LIBS="$LIBS -lgssapi"
29470 else
29471 LIBS="$LIBS -lgssapi"
29473 else
29474 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
29475 LIBS="$LIBS -lgssapi"
29477 else
29478 CPPFLAGS="$save_CPPFLAGS"
29482 OPT_SSL=off
29483 ca="no"
29485 # Check whether --with-ssl was given.
29486 if test "${with_ssl+set}" = set; then
29487 withval=$with_ssl; OPT_SSL=$withval
29491 if test X"$OPT_SSL" != Xno; then
29492 CLEANLDFLAGS="$LDFLAGS"
29493 CLEANCPPFLAGS="$CPPFLAGS"
29494 CLEANLIBS="$LIBS"
29496 case "$OPT_SSL" in
29497 yes)
29498 if test x$cross_compiling != xyes; then
29499 PKGTEST="yes"
29501 PREFIX_OPENSSL=/usr/local/ssl
29502 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
29504 off)
29505 if test x$cross_compiling != xyes; then
29506 PKGTEST="yes"
29508 PREFIX_OPENSSL=
29511 PKGTEST="no"
29512 PREFIX_OPENSSL=$OPT_SSL
29513 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
29514 LDFLAGS="$LDFLAGS -L$LIB_OPENSSL"
29515 CPPFLAGS="$CPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
29517 esac
29519 if test "$PKGTEST" = "yes"; then
29522 # Extract the first word of "pkg-config", so it can be a program name with args.
29523 set dummy pkg-config; ac_word=$2
29524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29526 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29528 else
29529 case $PKGCONFIG in
29530 [\\/]* | ?:[\\/]*)
29531 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29535 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29536 for as_dir in $as_dummy
29538 IFS=$as_save_IFS
29539 test -z "$as_dir" && as_dir=.
29540 for ac_exec_ext in '' $ac_executable_extensions; do
29541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29542 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29544 break 2
29546 done
29547 done
29548 IFS=$as_save_IFS
29550 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
29552 esac
29554 PKGCONFIG=$ac_cv_path_PKGCONFIG
29555 if test -n "$PKGCONFIG"; then
29556 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29557 echo "${ECHO_T}$PKGCONFIG" >&6; }
29558 else
29559 { echo "$as_me:$LINENO: result: no" >&5
29560 echo "${ECHO_T}no" >&6; }
29564 if test "$PKGCONFIG" != "no" ; then
29565 { echo "$as_me:$LINENO: checking OpenSSL options with pkg-config" >&5
29566 echo $ECHO_N "checking OpenSSL options with pkg-config... $ECHO_C" >&6; }
29568 $PKGCONFIG --exists openssl
29569 SSL_EXISTS=$?
29571 if test "$SSL_EXISTS" -eq "0"; then
29572 SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
29573 SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
29574 SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
29576 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
29578 LIBS="$LIBS $SSL_LIBS"
29579 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
29580 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
29581 { echo "$as_me:$LINENO: result: found" >&5
29582 echo "${ECHO_T}found" >&6; }
29583 else
29584 { echo "$as_me:$LINENO: result: no" >&5
29585 echo "${ECHO_T}no" >&6; }
29590 { echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
29591 echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6; }
29592 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
29594 else
29595 ac_check_lib_save_LIBS=$LIBS
29596 LIBS="-lcrypto $LIBS"
29597 cat >conftest.$ac_ext <<_ACEOF
29598 /* confdefs.h. */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h. */
29604 /* Override any GCC internal prototype to avoid an error.
29605 Use char because int might match the return type of a GCC
29606 builtin and then its argument prototype would still apply. */
29607 #ifdef __cplusplus
29608 extern "C"
29609 #endif
29610 char CRYPTO_lock ();
29612 main ()
29614 return CRYPTO_lock ();
29616 return 0;
29618 _ACEOF
29619 rm -f conftest.$ac_objext conftest$ac_exeext
29620 if { (ac_try="$ac_link"
29621 case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29624 esac
29625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_link") 2>conftest.er1
29627 ac_status=$?
29628 grep -v '^ *+' conftest.er1 >conftest.err
29629 rm -f conftest.er1
29630 cat conftest.err >&5
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); } && {
29633 test -z "$ac_c_werror_flag" ||
29634 test ! -s conftest.err
29635 } && test -s conftest$ac_exeext &&
29636 $as_test_x conftest$ac_exeext; then
29637 ac_cv_lib_crypto_CRYPTO_lock=yes
29638 else
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29642 ac_cv_lib_crypto_CRYPTO_lock=no
29645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29646 conftest$ac_exeext conftest.$ac_ext
29647 LIBS=$ac_check_lib_save_LIBS
29649 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
29650 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
29651 if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
29653 HAVECRYPTO="yes"
29654 LIBS="-lcrypto $LIBS"
29656 else
29658 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
29659 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
29660 { echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
29661 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6; }
29662 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
29663 echo $ECHO_N "(cached) $ECHO_C" >&6
29664 else
29665 ac_check_lib_save_LIBS=$LIBS
29666 LIBS="-lcrypto $LIBS"
29667 cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h. */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29674 /* Override any GCC internal prototype to avoid an error.
29675 Use char because int might match the return type of a GCC
29676 builtin and then its argument prototype would still apply. */
29677 #ifdef __cplusplus
29678 extern "C"
29679 #endif
29680 char CRYPTO_add_lock ();
29682 main ()
29684 return CRYPTO_add_lock ();
29686 return 0;
29688 _ACEOF
29689 rm -f conftest.$ac_objext conftest$ac_exeext
29690 if { (ac_try="$ac_link"
29691 case "(($ac_try" in
29692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29693 *) ac_try_echo=$ac_try;;
29694 esac
29695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29696 (eval "$ac_link") 2>conftest.er1
29697 ac_status=$?
29698 grep -v '^ *+' conftest.er1 >conftest.err
29699 rm -f conftest.er1
29700 cat conftest.err >&5
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); } && {
29703 test -z "$ac_c_werror_flag" ||
29704 test ! -s conftest.err
29705 } && test -s conftest$ac_exeext &&
29706 $as_test_x conftest$ac_exeext; then
29707 ac_cv_lib_crypto_CRYPTO_add_lock=yes
29708 else
29709 echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29712 ac_cv_lib_crypto_CRYPTO_add_lock=no
29715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29716 conftest$ac_exeext conftest.$ac_ext
29717 LIBS=$ac_check_lib_save_LIBS
29719 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
29720 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
29721 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
29723 HAVECRYPTO="yes"
29724 LIBS="-lcrypto $LIBS"
29725 else
29727 LDFLAGS="$CLEANLDFLAGS"
29728 CPPFLAGS="$CLEANCPPFLAGS"
29729 LIBS="$CLEANLIBS"
29738 if test X"$HAVECRYPTO" = X"yes"; then
29741 { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
29742 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
29743 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
29744 echo $ECHO_N "(cached) $ECHO_C" >&6
29745 else
29746 ac_check_lib_save_LIBS=$LIBS
29747 LIBS="-lssl $LIBS"
29748 cat >conftest.$ac_ext <<_ACEOF
29749 /* confdefs.h. */
29750 _ACEOF
29751 cat confdefs.h >>conftest.$ac_ext
29752 cat >>conftest.$ac_ext <<_ACEOF
29753 /* end confdefs.h. */
29755 /* Override any GCC internal prototype to avoid an error.
29756 Use char because int might match the return type of a GCC
29757 builtin and then its argument prototype would still apply. */
29758 #ifdef __cplusplus
29759 extern "C"
29760 #endif
29761 char SSL_connect ();
29763 main ()
29765 return SSL_connect ();
29767 return 0;
29769 _ACEOF
29770 rm -f conftest.$ac_objext conftest$ac_exeext
29771 if { (ac_try="$ac_link"
29772 case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_link") 2>conftest.er1
29778 ac_status=$?
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } && {
29784 test -z "$ac_c_werror_flag" ||
29785 test ! -s conftest.err
29786 } && test -s conftest$ac_exeext &&
29787 $as_test_x conftest$ac_exeext; then
29788 ac_cv_lib_ssl_SSL_connect=yes
29789 else
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29793 ac_cv_lib_ssl_SSL_connect=no
29796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29797 conftest$ac_exeext conftest.$ac_ext
29798 LIBS=$ac_check_lib_save_LIBS
29800 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
29801 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
29802 if test $ac_cv_lib_ssl_SSL_connect = yes; then
29803 cat >>confdefs.h <<_ACEOF
29804 #define HAVE_LIBSSL 1
29805 _ACEOF
29807 LIBS="-lssl $LIBS"
29812 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
29813 { echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
29814 echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6; };
29815 OLIBS=$LIBS
29816 LIBS="$LIBS -lRSAglue -lrsaref"
29818 { echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
29819 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6; }
29820 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
29821 echo $ECHO_N "(cached) $ECHO_C" >&6
29822 else
29823 ac_check_lib_save_LIBS=$LIBS
29824 LIBS="-lssl $LIBS"
29825 cat >conftest.$ac_ext <<_ACEOF
29826 /* confdefs.h. */
29827 _ACEOF
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29832 /* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29835 #ifdef __cplusplus
29836 extern "C"
29837 #endif
29838 char SSL_connect ();
29840 main ()
29842 return SSL_connect ();
29844 return 0;
29846 _ACEOF
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (ac_try="$ac_link"
29849 case "(($ac_try" in
29850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29851 *) ac_try_echo=$ac_try;;
29852 esac
29853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29854 (eval "$ac_link") 2>conftest.er1
29855 ac_status=$?
29856 grep -v '^ *+' conftest.er1 >conftest.err
29857 rm -f conftest.er1
29858 cat conftest.err >&5
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); } && {
29861 test -z "$ac_c_werror_flag" ||
29862 test ! -s conftest.err
29863 } && test -s conftest$ac_exeext &&
29864 $as_test_x conftest$ac_exeext; then
29865 ac_cv_lib_ssl_SSL_connect=yes
29866 else
29867 echo "$as_me: failed program was:" >&5
29868 sed 's/^/| /' conftest.$ac_ext >&5
29870 ac_cv_lib_ssl_SSL_connect=no
29873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29874 conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29877 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
29878 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6; }
29879 if test $ac_cv_lib_ssl_SSL_connect = yes; then
29880 cat >>confdefs.h <<_ACEOF
29881 #define HAVE_LIBSSL 1
29882 _ACEOF
29884 LIBS="-lssl $LIBS"
29888 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
29889 { echo "$as_me:$LINENO: result: no" >&5
29890 echo "${ECHO_T}no" >&6; }
29891 LIBS=$OLIBS
29892 else
29893 { echo "$as_me:$LINENO: result: yes" >&5
29894 echo "${ECHO_T}yes" >&6; }
29897 else
29905 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
29906 openssl/pem.h openssl/ssl.h openssl/err.h
29908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29913 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 ac_res=`eval echo '${'$as_ac_Header'}'`
29916 { echo "$as_me:$LINENO: result: $ac_res" >&5
29917 echo "${ECHO_T}$ac_res" >&6; }
29918 else
29919 # Is the header compilable?
29920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29922 cat >conftest.$ac_ext <<_ACEOF
29923 /* confdefs.h. */
29924 _ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29928 $ac_includes_default
29929 #include <$ac_header>
29930 _ACEOF
29931 rm -f conftest.$ac_objext
29932 if { (ac_try="$ac_compile"
29933 case "(($ac_try" in
29934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29935 *) ac_try_echo=$ac_try;;
29936 esac
29937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29938 (eval "$ac_compile") 2>conftest.er1
29939 ac_status=$?
29940 grep -v '^ *+' conftest.er1 >conftest.err
29941 rm -f conftest.er1
29942 cat conftest.err >&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); } && {
29945 test -z "$ac_c_werror_flag" ||
29946 test ! -s conftest.err
29947 } && test -s conftest.$ac_objext; then
29948 ac_header_compiler=yes
29949 else
29950 echo "$as_me: failed program was:" >&5
29951 sed 's/^/| /' conftest.$ac_ext >&5
29953 ac_header_compiler=no
29956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29958 echo "${ECHO_T}$ac_header_compiler" >&6; }
29960 # Is the header present?
29961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29963 cat >conftest.$ac_ext <<_ACEOF
29964 /* confdefs.h. */
29965 _ACEOF
29966 cat confdefs.h >>conftest.$ac_ext
29967 cat >>conftest.$ac_ext <<_ACEOF
29968 /* end confdefs.h. */
29969 #include <$ac_header>
29970 _ACEOF
29971 if { (ac_try="$ac_cpp conftest.$ac_ext"
29972 case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29975 esac
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29978 ac_status=$?
29979 grep -v '^ *+' conftest.er1 >conftest.err
29980 rm -f conftest.er1
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } >/dev/null && {
29984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29985 test ! -s conftest.err
29986 }; then
29987 ac_header_preproc=yes
29988 else
29989 echo "$as_me: failed program was:" >&5
29990 sed 's/^/| /' conftest.$ac_ext >&5
29992 ac_header_preproc=no
29995 rm -f conftest.err conftest.$ac_ext
29996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29997 echo "${ECHO_T}$ac_header_preproc" >&6; }
29999 # So? What about this header?
30000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30001 yes:no: )
30002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30006 ac_header_preproc=yes
30008 no:yes:* )
30009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30021 ( cat <<\_ASBOX
30022 ## ------------------------------------------------------------------------ ##
30023 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30024 ## ------------------------------------------------------------------------ ##
30025 _ASBOX
30026 ) | sed "s/^/$as_me: WARNING: /" >&2
30028 esac
30029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30033 else
30034 eval "$as_ac_Header=\$ac_header_preproc"
30036 ac_res=`eval echo '${'$as_ac_Header'}'`
30037 { echo "$as_me:$LINENO: result: $ac_res" >&5
30038 echo "${ECHO_T}$ac_res" >&6; }
30041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30042 cat >>confdefs.h <<_ACEOF
30043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30044 _ACEOF
30045 curl_ssl_msg="enabled (OpenSSL)"
30046 OPENSSL_ENABLED=1
30048 cat >>confdefs.h <<\_ACEOF
30049 #define USE_OPENSSL 1
30050 _ACEOF
30054 done
30057 if test $ac_cv_header_openssl_x509_h = no; then
30064 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
30066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30073 ac_res=`eval echo '${'$as_ac_Header'}'`
30074 { echo "$as_me:$LINENO: result: $ac_res" >&5
30075 echo "${ECHO_T}$ac_res" >&6; }
30076 else
30077 # Is the header compilable?
30078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30080 cat >conftest.$ac_ext <<_ACEOF
30081 /* confdefs.h. */
30082 _ACEOF
30083 cat confdefs.h >>conftest.$ac_ext
30084 cat >>conftest.$ac_ext <<_ACEOF
30085 /* end confdefs.h. */
30086 $ac_includes_default
30087 #include <$ac_header>
30088 _ACEOF
30089 rm -f conftest.$ac_objext
30090 if { (ac_try="$ac_compile"
30091 case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30094 esac
30095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30096 (eval "$ac_compile") 2>conftest.er1
30097 ac_status=$?
30098 grep -v '^ *+' conftest.er1 >conftest.err
30099 rm -f conftest.er1
30100 cat conftest.err >&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); } && {
30103 test -z "$ac_c_werror_flag" ||
30104 test ! -s conftest.err
30105 } && test -s conftest.$ac_objext; then
30106 ac_header_compiler=yes
30107 else
30108 echo "$as_me: failed program was:" >&5
30109 sed 's/^/| /' conftest.$ac_ext >&5
30111 ac_header_compiler=no
30114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30116 echo "${ECHO_T}$ac_header_compiler" >&6; }
30118 # Is the header present?
30119 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30121 cat >conftest.$ac_ext <<_ACEOF
30122 /* confdefs.h. */
30123 _ACEOF
30124 cat confdefs.h >>conftest.$ac_ext
30125 cat >>conftest.$ac_ext <<_ACEOF
30126 /* end confdefs.h. */
30127 #include <$ac_header>
30128 _ACEOF
30129 if { (ac_try="$ac_cpp conftest.$ac_ext"
30130 case "(($ac_try" in
30131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132 *) ac_try_echo=$ac_try;;
30133 esac
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30136 ac_status=$?
30137 grep -v '^ *+' conftest.er1 >conftest.err
30138 rm -f conftest.er1
30139 cat conftest.err >&5
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); } >/dev/null && {
30142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30143 test ! -s conftest.err
30144 }; then
30145 ac_header_preproc=yes
30146 else
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30150 ac_header_preproc=no
30153 rm -f conftest.err conftest.$ac_ext
30154 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30155 echo "${ECHO_T}$ac_header_preproc" >&6; }
30157 # So? What about this header?
30158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30159 yes:no: )
30160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30164 ac_header_preproc=yes
30166 no:yes:* )
30167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30179 ( cat <<\_ASBOX
30180 ## ------------------------------------------------------------------------ ##
30181 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30182 ## ------------------------------------------------------------------------ ##
30183 _ASBOX
30184 ) | sed "s/^/$as_me: WARNING: /" >&2
30186 esac
30187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30191 else
30192 eval "$as_ac_Header=\$ac_header_preproc"
30194 ac_res=`eval echo '${'$as_ac_Header'}'`
30195 { echo "$as_me:$LINENO: result: $ac_res" >&5
30196 echo "${ECHO_T}$ac_res" >&6; }
30199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30200 cat >>confdefs.h <<_ACEOF
30201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30202 _ACEOF
30206 done
30209 if test $ac_cv_header_x509_h = yes &&
30210 test $ac_cv_header_crypto_h = yes &&
30211 test $ac_cv_header_ssl_h = yes; then
30212 curl_ssl_msg="enabled (OpenSSL)"
30213 OPENSSL_ENABLED=1
30218 if test X"$OPENSSL_ENABLED" = X"1"; then
30220 cat >>confdefs.h <<\_ACEOF
30221 #define USE_SSLEAY 1
30222 _ACEOF
30226 for ac_header in openssl/pkcs12.h
30228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 ac_res=`eval echo '${'$as_ac_Header'}'`
30236 { echo "$as_me:$LINENO: result: $ac_res" >&5
30237 echo "${ECHO_T}$ac_res" >&6; }
30238 else
30239 # Is the header compilable?
30240 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30242 cat >conftest.$ac_ext <<_ACEOF
30243 /* confdefs.h. */
30244 _ACEOF
30245 cat confdefs.h >>conftest.$ac_ext
30246 cat >>conftest.$ac_ext <<_ACEOF
30247 /* end confdefs.h. */
30248 $ac_includes_default
30249 #include <$ac_header>
30250 _ACEOF
30251 rm -f conftest.$ac_objext
30252 if { (ac_try="$ac_compile"
30253 case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30256 esac
30257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_compile") 2>conftest.er1
30259 ac_status=$?
30260 grep -v '^ *+' conftest.er1 >conftest.err
30261 rm -f conftest.er1
30262 cat conftest.err >&5
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); } && {
30265 test -z "$ac_c_werror_flag" ||
30266 test ! -s conftest.err
30267 } && test -s conftest.$ac_objext; then
30268 ac_header_compiler=yes
30269 else
30270 echo "$as_me: failed program was:" >&5
30271 sed 's/^/| /' conftest.$ac_ext >&5
30273 ac_header_compiler=no
30276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30278 echo "${ECHO_T}$ac_header_compiler" >&6; }
30280 # Is the header present?
30281 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30283 cat >conftest.$ac_ext <<_ACEOF
30284 /* confdefs.h. */
30285 _ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h. */
30289 #include <$ac_header>
30290 _ACEOF
30291 if { (ac_try="$ac_cpp conftest.$ac_ext"
30292 case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30295 esac
30296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30298 ac_status=$?
30299 grep -v '^ *+' conftest.er1 >conftest.err
30300 rm -f conftest.er1
30301 cat conftest.err >&5
30302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30303 (exit $ac_status); } >/dev/null && {
30304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30305 test ! -s conftest.err
30306 }; then
30307 ac_header_preproc=yes
30308 else
30309 echo "$as_me: failed program was:" >&5
30310 sed 's/^/| /' conftest.$ac_ext >&5
30312 ac_header_preproc=no
30315 rm -f conftest.err conftest.$ac_ext
30316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30317 echo "${ECHO_T}$ac_header_preproc" >&6; }
30319 # So? What about this header?
30320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30321 yes:no: )
30322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30326 ac_header_preproc=yes
30328 no:yes:* )
30329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30341 ( cat <<\_ASBOX
30342 ## ------------------------------------------------------------------------ ##
30343 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30344 ## ------------------------------------------------------------------------ ##
30345 _ASBOX
30346 ) | sed "s/^/$as_me: WARNING: /" >&2
30348 esac
30349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 else
30354 eval "$as_ac_Header=\$ac_header_preproc"
30356 ac_res=`eval echo '${'$as_ac_Header'}'`
30357 { echo "$as_me:$LINENO: result: $ac_res" >&5
30358 echo "${ECHO_T}$ac_res" >&6; }
30361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30362 cat >>confdefs.h <<_ACEOF
30363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30364 _ACEOF
30368 done
30370 else
30371 LIBS="$CLEANLIBS"
30373 USE_SSLEAY="$OPENSSL_ENABLED"
30376 if test X"$OPT_SSL" != Xoff &&
30377 test "$OPENSSL_ENABLED" != "1"; then
30378 { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
30379 echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
30380 { (exit 1); exit 1; }; }
30384 if test X"$OPENSSL_ENABLED" = X"1"; then
30385 { echo "$as_me:$LINENO: checking for ENGINE_init" >&5
30386 echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6; }
30387 if test "${ac_cv_func_ENGINE_init+set}" = set; then
30388 echo $ECHO_N "(cached) $ECHO_C" >&6
30389 else
30390 cat >conftest.$ac_ext <<_ACEOF
30391 /* confdefs.h. */
30392 _ACEOF
30393 cat confdefs.h >>conftest.$ac_ext
30394 cat >>conftest.$ac_ext <<_ACEOF
30395 /* end confdefs.h. */
30396 /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
30397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30398 #define ENGINE_init innocuous_ENGINE_init
30400 /* System header to define __stub macros and hopefully few prototypes,
30401 which can conflict with char ENGINE_init (); below.
30402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30403 <limits.h> exists even on freestanding compilers. */
30405 #ifdef __STDC__
30406 # include <limits.h>
30407 #else
30408 # include <assert.h>
30409 #endif
30411 #undef ENGINE_init
30413 /* Override any GCC internal prototype to avoid an error.
30414 Use char because int might match the return type of a GCC
30415 builtin and then its argument prototype would still apply. */
30416 #ifdef __cplusplus
30417 extern "C"
30418 #endif
30419 char ENGINE_init ();
30420 /* The GNU C library defines this for functions which it implements
30421 to always fail with ENOSYS. Some functions are actually named
30422 something starting with __ and the normal name is an alias. */
30423 #if defined __stub_ENGINE_init || defined __stub___ENGINE_init
30424 choke me
30425 #endif
30428 main ()
30430 return ENGINE_init ();
30432 return 0;
30434 _ACEOF
30435 rm -f conftest.$ac_objext conftest$ac_exeext
30436 if { (ac_try="$ac_link"
30437 case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30440 esac
30441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_link") 2>conftest.er1
30443 ac_status=$?
30444 grep -v '^ *+' conftest.er1 >conftest.err
30445 rm -f conftest.er1
30446 cat conftest.err >&5
30447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); } && {
30449 test -z "$ac_c_werror_flag" ||
30450 test ! -s conftest.err
30451 } && test -s conftest$ac_exeext &&
30452 $as_test_x conftest$ac_exeext; then
30453 ac_cv_func_ENGINE_init=yes
30454 else
30455 echo "$as_me: failed program was:" >&5
30456 sed 's/^/| /' conftest.$ac_ext >&5
30458 ac_cv_func_ENGINE_init=no
30461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30462 conftest$ac_exeext conftest.$ac_ext
30464 { echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
30465 echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6; }
30466 if test $ac_cv_func_ENGINE_init = yes; then
30469 for ac_header in openssl/engine.h
30471 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30476 echo $ECHO_N "(cached) $ECHO_C" >&6
30478 ac_res=`eval echo '${'$as_ac_Header'}'`
30479 { echo "$as_me:$LINENO: result: $ac_res" >&5
30480 echo "${ECHO_T}$ac_res" >&6; }
30481 else
30482 # Is the header compilable?
30483 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30485 cat >conftest.$ac_ext <<_ACEOF
30486 /* confdefs.h. */
30487 _ACEOF
30488 cat confdefs.h >>conftest.$ac_ext
30489 cat >>conftest.$ac_ext <<_ACEOF
30490 /* end confdefs.h. */
30491 $ac_includes_default
30492 #include <$ac_header>
30493 _ACEOF
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30499 esac
30500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_compile") 2>conftest.er1
30502 ac_status=$?
30503 grep -v '^ *+' conftest.er1 >conftest.err
30504 rm -f conftest.er1
30505 cat conftest.err >&5
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); } && {
30508 test -z "$ac_c_werror_flag" ||
30509 test ! -s conftest.err
30510 } && test -s conftest.$ac_objext; then
30511 ac_header_compiler=yes
30512 else
30513 echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30516 ac_header_compiler=no
30519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30521 echo "${ECHO_T}$ac_header_compiler" >&6; }
30523 # Is the header present?
30524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30526 cat >conftest.$ac_ext <<_ACEOF
30527 /* confdefs.h. */
30528 _ACEOF
30529 cat confdefs.h >>conftest.$ac_ext
30530 cat >>conftest.$ac_ext <<_ACEOF
30531 /* end confdefs.h. */
30532 #include <$ac_header>
30533 _ACEOF
30534 if { (ac_try="$ac_cpp conftest.$ac_ext"
30535 case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30538 esac
30539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30541 ac_status=$?
30542 grep -v '^ *+' conftest.er1 >conftest.err
30543 rm -f conftest.er1
30544 cat conftest.err >&5
30545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30546 (exit $ac_status); } >/dev/null && {
30547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30548 test ! -s conftest.err
30549 }; then
30550 ac_header_preproc=yes
30551 else
30552 echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30555 ac_header_preproc=no
30558 rm -f conftest.err conftest.$ac_ext
30559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30560 echo "${ECHO_T}$ac_header_preproc" >&6; }
30562 # So? What about this header?
30563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30564 yes:no: )
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30568 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30569 ac_header_preproc=yes
30571 no:yes:* )
30572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30577 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30579 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30583 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30584 ( cat <<\_ASBOX
30585 ## ------------------------------------------------------------------------ ##
30586 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
30587 ## ------------------------------------------------------------------------ ##
30588 _ASBOX
30589 ) | sed "s/^/$as_me: WARNING: /" >&2
30591 esac
30592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30595 echo $ECHO_N "(cached) $ECHO_C" >&6
30596 else
30597 eval "$as_ac_Header=\$ac_header_preproc"
30599 ac_res=`eval echo '${'$as_ac_Header'}'`
30600 { echo "$as_me:$LINENO: result: $ac_res" >&5
30601 echo "${ECHO_T}$ac_res" >&6; }
30604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30605 cat >>confdefs.h <<_ACEOF
30606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30607 _ACEOF
30611 done
30614 for ac_func in ENGINE_load_builtin_engines
30616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30620 echo $ECHO_N "(cached) $ECHO_C" >&6
30621 else
30622 cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h. */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h. */
30628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30630 #define $ac_func innocuous_$ac_func
30632 /* System header to define __stub macros and hopefully few prototypes,
30633 which can conflict with char $ac_func (); below.
30634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30635 <limits.h> exists even on freestanding compilers. */
30637 #ifdef __STDC__
30638 # include <limits.h>
30639 #else
30640 # include <assert.h>
30641 #endif
30643 #undef $ac_func
30645 /* Override any GCC internal prototype to avoid an error.
30646 Use char because int might match the return type of a GCC
30647 builtin and then its argument prototype would still apply. */
30648 #ifdef __cplusplus
30649 extern "C"
30650 #endif
30651 char $ac_func ();
30652 /* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655 #if defined __stub_$ac_func || defined __stub___$ac_func
30656 choke me
30657 #endif
30660 main ()
30662 return $ac_func ();
30664 return 0;
30666 _ACEOF
30667 rm -f conftest.$ac_objext conftest$ac_exeext
30668 if { (ac_try="$ac_link"
30669 case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_link") 2>conftest.er1
30675 ac_status=$?
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } && {
30681 test -z "$ac_c_werror_flag" ||
30682 test ! -s conftest.err
30683 } && test -s conftest$ac_exeext &&
30684 $as_test_x conftest$ac_exeext; then
30685 eval "$as_ac_var=yes"
30686 else
30687 echo "$as_me: failed program was:" >&5
30688 sed 's/^/| /' conftest.$ac_ext >&5
30690 eval "$as_ac_var=no"
30693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30694 conftest$ac_exeext conftest.$ac_ext
30696 ac_res=`eval echo '${'$as_ac_var'}'`
30697 { echo "$as_me:$LINENO: result: $ac_res" >&5
30698 echo "${ECHO_T}$ac_res" >&6; }
30699 if test `eval echo '${'$as_ac_var'}'` = yes; then
30700 cat >>confdefs.h <<_ACEOF
30701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30702 _ACEOF
30705 done
30717 for ac_func in RAND_status \
30718 RAND_screen \
30719 RAND_egd \
30720 CRYPTO_cleanup_all_ex_data \
30721 SSL_get_shutdown
30723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30727 echo $ECHO_N "(cached) $ECHO_C" >&6
30728 else
30729 cat >conftest.$ac_ext <<_ACEOF
30730 /* confdefs.h. */
30731 _ACEOF
30732 cat confdefs.h >>conftest.$ac_ext
30733 cat >>conftest.$ac_ext <<_ACEOF
30734 /* end confdefs.h. */
30735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30737 #define $ac_func innocuous_$ac_func
30739 /* System header to define __stub macros and hopefully few prototypes,
30740 which can conflict with char $ac_func (); below.
30741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30742 <limits.h> exists even on freestanding compilers. */
30744 #ifdef __STDC__
30745 # include <limits.h>
30746 #else
30747 # include <assert.h>
30748 #endif
30750 #undef $ac_func
30752 /* Override any GCC internal prototype to avoid an error.
30753 Use char because int might match the return type of a GCC
30754 builtin and then its argument prototype would still apply. */
30755 #ifdef __cplusplus
30756 extern "C"
30757 #endif
30758 char $ac_func ();
30759 /* The GNU C library defines this for functions which it implements
30760 to always fail with ENOSYS. Some functions are actually named
30761 something starting with __ and the normal name is an alias. */
30762 #if defined __stub_$ac_func || defined __stub___$ac_func
30763 choke me
30764 #endif
30767 main ()
30769 return $ac_func ();
30771 return 0;
30773 _ACEOF
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30779 esac
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_link") 2>conftest.er1
30782 ac_status=$?
30783 grep -v '^ *+' conftest.er1 >conftest.err
30784 rm -f conftest.er1
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext &&
30791 $as_test_x conftest$ac_exeext; then
30792 eval "$as_ac_var=yes"
30793 else
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 eval "$as_ac_var=no"
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801 conftest$ac_exeext conftest.$ac_ext
30803 ac_res=`eval echo '${'$as_ac_var'}'`
30804 { echo "$as_me:$LINENO: result: $ac_res" >&5
30805 echo "${ECHO_T}$ac_res" >&6; }
30806 if test `eval echo '${'$as_ac_var'}'` = yes; then
30807 cat >>confdefs.h <<_ACEOF
30808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30809 _ACEOF
30812 done
30816 { echo "$as_me:$LINENO: checking for yaSSL using OpenSSL compatibility mode" >&5
30817 echo $ECHO_N "checking for yaSSL using OpenSSL compatibility mode... $ECHO_C" >&6; }
30818 cat >conftest.$ac_ext <<_ACEOF
30820 /* confdefs.h. */
30821 _ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h. */
30826 #include <openssl/ssl.h>
30829 main ()
30832 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
30833 int dummy = SSL_ERROR_NONE;
30834 #else
30835 Not the yaSSL OpenSSL compatibility header.
30836 #endif
30839 return 0;
30842 _ACEOF
30843 rm -f conftest.$ac_objext
30844 if { (ac_try="$ac_compile"
30845 case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30848 esac
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_compile") 2>conftest.er1
30851 ac_status=$?
30852 grep -v '^ *+' conftest.er1 >conftest.err
30853 rm -f conftest.er1
30854 cat conftest.err >&5
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); } && {
30857 test -z "$ac_c_werror_flag" ||
30858 test ! -s conftest.err
30859 } && test -s conftest.$ac_objext; then
30861 { echo "$as_me:$LINENO: result: yes" >&5
30862 echo "${ECHO_T}yes" >&6; }
30864 cat >>confdefs.h <<_ACEOF
30865 #define USE_YASSLEMUL 1
30866 _ACEOF
30868 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
30870 else
30871 echo "$as_me: failed program was:" >&5
30872 sed 's/^/| /' conftest.$ac_ext >&5
30875 { echo "$as_me:$LINENO: result: no" >&5
30876 echo "${ECHO_T}no" >&6; }
30880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30883 if test "$OPENSSL_ENABLED" = "1"; then
30884 if test -n "$LIB_OPENSSL"; then
30886 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
30887 export LD_LIBRARY_PATH
30888 { echo "$as_me:$LINENO: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
30889 echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
30897 _cppflags=$CPPFLAGS
30898 _ldflags=$LDFLAGS
30900 # Check whether --with-zlib was given.
30901 if test "${with_zlib+set}" = set; then
30902 withval=$with_zlib; OPT_ZLIB="$withval"
30906 if test "$OPT_ZLIB" = "no" ; then
30907 { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
30908 echo "$as_me: WARNING: zlib disabled" >&2;}
30909 else
30910 if test "$OPT_ZLIB" = "yes" ; then
30911 OPT_ZLIB=""
30914 if test -z "$OPT_ZLIB" ; then
30916 { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
30917 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
30918 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
30919 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 else
30921 ac_check_lib_save_LIBS=$LIBS
30922 LIBS="-lz $LIBS"
30923 cat >conftest.$ac_ext <<_ACEOF
30924 /* confdefs.h. */
30925 _ACEOF
30926 cat confdefs.h >>conftest.$ac_ext
30927 cat >>conftest.$ac_ext <<_ACEOF
30928 /* end confdefs.h. */
30930 /* Override any GCC internal prototype to avoid an error.
30931 Use char because int might match the return type of a GCC
30932 builtin and then its argument prototype would still apply. */
30933 #ifdef __cplusplus
30934 extern "C"
30935 #endif
30936 char inflateEnd ();
30938 main ()
30940 return inflateEnd ();
30942 return 0;
30944 _ACEOF
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_link") 2>conftest.er1
30953 ac_status=$?
30954 grep -v '^ *+' conftest.er1 >conftest.err
30955 rm -f conftest.er1
30956 cat conftest.err >&5
30957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958 (exit $ac_status); } && {
30959 test -z "$ac_c_werror_flag" ||
30960 test ! -s conftest.err
30961 } && test -s conftest$ac_exeext &&
30962 $as_test_x conftest$ac_exeext; then
30963 ac_cv_lib_z_inflateEnd=yes
30964 else
30965 echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30968 ac_cv_lib_z_inflateEnd=no
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972 conftest$ac_exeext conftest.$ac_ext
30973 LIBS=$ac_check_lib_save_LIBS
30975 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
30976 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
30977 if test $ac_cv_lib_z_inflateEnd = yes; then
30978 HAVE_LIBZ="1"
30979 else
30980 OPT_ZLIB="/usr/local"
30986 if test -n "$OPT_ZLIB"; then
30987 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
30988 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
30991 if test "${ac_cv_header_zlib_h+set}" = set; then
30992 { echo "$as_me:$LINENO: checking for zlib.h" >&5
30993 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
30994 if test "${ac_cv_header_zlib_h+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30997 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
30998 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
30999 else
31000 # Is the header compilable?
31001 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
31002 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
31003 cat >conftest.$ac_ext <<_ACEOF
31004 /* confdefs.h. */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31009 $ac_includes_default
31010 #include <zlib.h>
31011 _ACEOF
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_compile") 2>conftest.er1
31020 ac_status=$?
31021 grep -v '^ *+' conftest.er1 >conftest.err
31022 rm -f conftest.er1
31023 cat conftest.err >&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } && {
31026 test -z "$ac_c_werror_flag" ||
31027 test ! -s conftest.err
31028 } && test -s conftest.$ac_objext; then
31029 ac_header_compiler=yes
31030 else
31031 echo "$as_me: failed program was:" >&5
31032 sed 's/^/| /' conftest.$ac_ext >&5
31034 ac_header_compiler=no
31037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31039 echo "${ECHO_T}$ac_header_compiler" >&6; }
31041 # Is the header present?
31042 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
31043 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
31044 cat >conftest.$ac_ext <<_ACEOF
31045 /* confdefs.h. */
31046 _ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h. */
31050 #include <zlib.h>
31051 _ACEOF
31052 if { (ac_try="$ac_cpp conftest.$ac_ext"
31053 case "(($ac_try" in
31054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31055 *) ac_try_echo=$ac_try;;
31056 esac
31057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31059 ac_status=$?
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } >/dev/null && {
31065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31066 test ! -s conftest.err
31067 }; then
31068 ac_header_preproc=yes
31069 else
31070 echo "$as_me: failed program was:" >&5
31071 sed 's/^/| /' conftest.$ac_ext >&5
31073 ac_header_preproc=no
31076 rm -f conftest.err conftest.$ac_ext
31077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31078 echo "${ECHO_T}$ac_header_preproc" >&6; }
31080 # So? What about this header?
31081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31082 yes:no: )
31083 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31084 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31085 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
31086 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
31087 ac_header_preproc=yes
31089 no:yes:* )
31090 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
31091 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
31092 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
31093 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
31094 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
31095 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
31096 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
31097 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31098 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
31099 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
31101 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
31102 ( cat <<\_ASBOX
31103 ## ------------------------------------------------------------------------ ##
31104 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
31105 ## ------------------------------------------------------------------------ ##
31106 _ASBOX
31107 ) | sed "s/^/$as_me: WARNING: /" >&2
31109 esac
31110 { echo "$as_me:$LINENO: checking for zlib.h" >&5
31111 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
31112 if test "${ac_cv_header_zlib_h+set}" = set; then
31113 echo $ECHO_N "(cached) $ECHO_C" >&6
31114 else
31115 ac_cv_header_zlib_h=$ac_header_preproc
31117 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
31118 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
31121 if test $ac_cv_header_zlib_h = yes; then
31123 HAVE_ZLIB_H="1"
31124 if test "$HAVE_LIBZ" != "1"; then
31125 { echo "$as_me:$LINENO: checking for gzread in -lz" >&5
31126 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
31127 if test "${ac_cv_lib_z_gzread+set}" = set; then
31128 echo $ECHO_N "(cached) $ECHO_C" >&6
31129 else
31130 ac_check_lib_save_LIBS=$LIBS
31131 LIBS="-lz $LIBS"
31132 cat >conftest.$ac_ext <<_ACEOF
31133 /* confdefs.h. */
31134 _ACEOF
31135 cat confdefs.h >>conftest.$ac_ext
31136 cat >>conftest.$ac_ext <<_ACEOF
31137 /* end confdefs.h. */
31139 /* Override any GCC internal prototype to avoid an error.
31140 Use char because int might match the return type of a GCC
31141 builtin and then its argument prototype would still apply. */
31142 #ifdef __cplusplus
31143 extern "C"
31144 #endif
31145 char gzread ();
31147 main ()
31149 return gzread ();
31151 return 0;
31153 _ACEOF
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31159 esac
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_link") 2>conftest.er1
31162 ac_status=$?
31163 grep -v '^ *+' conftest.er1 >conftest.err
31164 rm -f conftest.er1
31165 cat conftest.err >&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } && {
31168 test -z "$ac_c_werror_flag" ||
31169 test ! -s conftest.err
31170 } && test -s conftest$ac_exeext &&
31171 $as_test_x conftest$ac_exeext; then
31172 ac_cv_lib_z_gzread=yes
31173 else
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31177 ac_cv_lib_z_gzread=no
31180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31181 conftest$ac_exeext conftest.$ac_ext
31182 LIBS=$ac_check_lib_save_LIBS
31184 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
31185 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
31186 if test $ac_cv_lib_z_gzread = yes; then
31188 HAVE_LIBZ="1"
31190 else
31191 CPPFLAGS=$_cppflags
31192 LDFLAGS=$_ldflags
31197 else
31199 CPPFLAGS=$_cppflags
31200 LDFLAGS=$_ldflags
31206 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
31207 then
31208 { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
31209 echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
31210 HAVE_LIBZ=""
31211 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
31212 then
31213 { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
31214 echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
31215 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
31216 then
31219 cat >>confdefs.h <<\_ACEOF
31220 #define HAVE_ZLIB_H 1
31221 _ACEOF
31224 cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_LIBZ 1
31226 _ACEOF
31229 CURL_LIBS="$CURL_LIBS -lz"
31230 LIBS="$LIBS -lz"
31232 AMFIXLIB="1"
31233 { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
31234 echo "$as_me: found both libz and libz.h header" >&6;}
31235 curl_zlib_msg="enabled"
31241 if test x"$AMFIXLIB" = x1; then
31242 HAVE_LIBZ_TRUE=
31243 HAVE_LIBZ_FALSE='#'
31244 else
31245 HAVE_LIBZ_TRUE='#'
31246 HAVE_LIBZ_FALSE=
31251 OPT_LIBSSH2=off
31253 # Check whether --with-libssh2 was given.
31254 if test "${with_libssh2+set}" = set; then
31255 withval=$with_libssh2; OPT_LIBSSH2=$withval
31259 if test X"$OPT_LIBSSH2" != Xno; then
31260 CLEANLDFLAGS="$LDFLAGS"
31261 CLEANCPPFLAGS="$CPPFLAGS"
31262 CLEANLIBS="$LIBS"
31264 case "$OPT_LIBSSH2" in
31265 yes)
31266 PREFIX_LIBSSH2=/usr/local/lib
31267 LIB_LIBSSH2="$PREFIX_LIBSSH2$libsuff"
31269 off)
31270 PREFIX_LIBSSH2=
31273 PREFIX_LIBSSH2=$OPT_LIBSSH2
31274 LIB_LIBSSH2="$PREFIX_LIBSSH2/lib$libsuff"
31275 LDFLAGS="$LDFLAGS -L$LIB_LIBSSH2"
31276 CPPFLAGS="$CPPFLAGS -I$PREFIX_LIBSSH2/include"
31278 esac
31281 { echo "$as_me:$LINENO: checking for libssh2_channel_open_ex in -lssh2" >&5
31282 echo $ECHO_N "checking for libssh2_channel_open_ex in -lssh2... $ECHO_C" >&6; }
31283 if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then
31284 echo $ECHO_N "(cached) $ECHO_C" >&6
31285 else
31286 ac_check_lib_save_LIBS=$LIBS
31287 LIBS="-lssh2 $LIBS"
31288 cat >conftest.$ac_ext <<_ACEOF
31289 /* confdefs.h. */
31290 _ACEOF
31291 cat confdefs.h >>conftest.$ac_ext
31292 cat >>conftest.$ac_ext <<_ACEOF
31293 /* end confdefs.h. */
31295 /* Override any GCC internal prototype to avoid an error.
31296 Use char because int might match the return type of a GCC
31297 builtin and then its argument prototype would still apply. */
31298 #ifdef __cplusplus
31299 extern "C"
31300 #endif
31301 char libssh2_channel_open_ex ();
31303 main ()
31305 return libssh2_channel_open_ex ();
31307 return 0;
31309 _ACEOF
31310 rm -f conftest.$ac_objext conftest$ac_exeext
31311 if { (ac_try="$ac_link"
31312 case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315 esac
31316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
31318 ac_status=$?
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } && {
31324 test -z "$ac_c_werror_flag" ||
31325 test ! -s conftest.err
31326 } && test -s conftest$ac_exeext &&
31327 $as_test_x conftest$ac_exeext; then
31328 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
31329 else
31330 echo "$as_me: failed program was:" >&5
31331 sed 's/^/| /' conftest.$ac_ext >&5
31333 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
31336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31337 conftest$ac_exeext conftest.$ac_ext
31338 LIBS=$ac_check_lib_save_LIBS
31340 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
31341 echo "${ECHO_T}$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
31342 if test $ac_cv_lib_ssh2_libssh2_channel_open_ex = yes; then
31343 cat >>confdefs.h <<_ACEOF
31344 #define HAVE_LIBSSH2 1
31345 _ACEOF
31347 LIBS="-lssh2 $LIBS"
31353 for ac_header in libssh2.h
31355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31360 echo $ECHO_N "(cached) $ECHO_C" >&6
31362 ac_res=`eval echo '${'$as_ac_Header'}'`
31363 { echo "$as_me:$LINENO: result: $ac_res" >&5
31364 echo "${ECHO_T}$ac_res" >&6; }
31365 else
31366 # Is the header compilable?
31367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31369 cat >conftest.$ac_ext <<_ACEOF
31370 /* confdefs.h. */
31371 _ACEOF
31372 cat confdefs.h >>conftest.$ac_ext
31373 cat >>conftest.$ac_ext <<_ACEOF
31374 /* end confdefs.h. */
31375 $ac_includes_default
31376 #include <$ac_header>
31377 _ACEOF
31378 rm -f conftest.$ac_objext
31379 if { (ac_try="$ac_compile"
31380 case "(($ac_try" in
31381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31382 *) ac_try_echo=$ac_try;;
31383 esac
31384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31385 (eval "$ac_compile") 2>conftest.er1
31386 ac_status=$?
31387 grep -v '^ *+' conftest.er1 >conftest.err
31388 rm -f conftest.er1
31389 cat conftest.err >&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); } && {
31392 test -z "$ac_c_werror_flag" ||
31393 test ! -s conftest.err
31394 } && test -s conftest.$ac_objext; then
31395 ac_header_compiler=yes
31396 else
31397 echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.$ac_ext >&5
31400 ac_header_compiler=no
31403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31405 echo "${ECHO_T}$ac_header_compiler" >&6; }
31407 # Is the header present?
31408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31410 cat >conftest.$ac_ext <<_ACEOF
31411 /* confdefs.h. */
31412 _ACEOF
31413 cat confdefs.h >>conftest.$ac_ext
31414 cat >>conftest.$ac_ext <<_ACEOF
31415 /* end confdefs.h. */
31416 #include <$ac_header>
31417 _ACEOF
31418 if { (ac_try="$ac_cpp conftest.$ac_ext"
31419 case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31422 esac
31423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31425 ac_status=$?
31426 grep -v '^ *+' conftest.er1 >conftest.err
31427 rm -f conftest.er1
31428 cat conftest.err >&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); } >/dev/null && {
31431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31432 test ! -s conftest.err
31433 }; then
31434 ac_header_preproc=yes
31435 else
31436 echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31439 ac_header_preproc=no
31442 rm -f conftest.err conftest.$ac_ext
31443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31444 echo "${ECHO_T}$ac_header_preproc" >&6; }
31446 # So? What about this header?
31447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31448 yes:no: )
31449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31453 ac_header_preproc=yes
31455 no:yes:* )
31456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31468 ( cat <<\_ASBOX
31469 ## ------------------------------------------------------------------------ ##
31470 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
31471 ## ------------------------------------------------------------------------ ##
31472 _ASBOX
31473 ) | sed "s/^/$as_me: WARNING: /" >&2
31475 esac
31476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31479 echo $ECHO_N "(cached) $ECHO_C" >&6
31480 else
31481 eval "$as_ac_Header=\$ac_header_preproc"
31483 ac_res=`eval echo '${'$as_ac_Header'}'`
31484 { echo "$as_me:$LINENO: result: $ac_res" >&5
31485 echo "${ECHO_T}$ac_res" >&6; }
31488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31489 cat >>confdefs.h <<_ACEOF
31490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31491 _ACEOF
31492 curl_ssh_msg="enabled (libSSH2)"
31493 LIBSSH2_ENABLED=1
31495 cat >>confdefs.h <<\_ACEOF
31496 #define USE_LIBSSH2 1
31497 _ACEOF
31499 USE_LIBSSH2=1
31504 done
31507 if test X"$OPT_LIBSSH2" != Xoff &&
31508 test "$LIBSSH2_ENABLED" != "1"; then
31509 { { echo "$as_me:$LINENO: error: libSSH2 libs and/or directories were not found where specified!" >&5
31510 echo "$as_me: error: libSSH2 libs and/or directories were not found where specified!" >&2;}
31511 { (exit 1); exit 1; }; }
31514 if test "$LIBSSH2_ENABLED" = "1"; then
31515 if test -n "$LIB_LIBSSH2"; then
31517 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_LIBSSH2"
31518 export LD_LIBRARY_PATH
31519 { echo "$as_me:$LINENO: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&5
31520 echo "$as_me: Added $LIB_LIBSSH2 to LD_LIBRARY_PATH" >&6;}
31526 if test X"$OPENSSL_ENABLED" = X"1"; then
31528 # Check whether --with-egd-socket was given.
31529 if test "${with_egd_socket+set}" = set; then
31530 withval=$with_egd_socket; EGD_SOCKET="$withval"
31534 if test -n "$EGD_SOCKET" ; then
31536 cat >>confdefs.h <<_ACEOF
31537 #define EGD_SOCKET "$EGD_SOCKET"
31538 _ACEOF
31543 # Check whether --with-random was given.
31544 if test "${with_random+set}" = set; then
31545 withval=$with_random; RANDOM_FILE="$withval"
31546 else
31548 { echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
31549 echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6; }
31550 if test "${ac_cv_file___dev_urandom_+set}" = set; then
31551 echo $ECHO_N "(cached) $ECHO_C" >&6
31552 else
31553 test "$cross_compiling" = yes &&
31554 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
31555 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
31556 { (exit 1); exit 1; }; }
31557 if test -r ""/dev/urandom""; then
31558 ac_cv_file___dev_urandom_=yes
31559 else
31560 ac_cv_file___dev_urandom_=no
31563 { echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
31564 echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6; }
31565 if test $ac_cv_file___dev_urandom_ = yes; then
31566 RANDOM_FILE="/dev/urandom"
31573 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
31576 cat >>confdefs.h <<_ACEOF
31577 #define RANDOM_FILE "$RANDOM_FILE"
31578 _ACEOF
31584 OPT_GNUTLS=no
31587 # Check whether --with-gnutls was given.
31588 if test "${with_gnutls+set}" = set; then
31589 withval=$with_gnutls; OPT_GNUTLS=$withval
31593 if test "$OPENSSL_ENABLED" != "1"; then
31595 if test X"$OPT_GNUTLS" != Xno; then
31596 if test "x$OPT_GNUTLS" = "xyes"; then
31597 check=`libgnutls-config --version 2>/dev/null`
31598 if test -n "$check"; then
31599 addlib=`libgnutls-config --libs`
31600 addcflags=`libgnutls-config --cflags`
31601 version=`libgnutls-config --version`
31602 gtlsprefix=`libgnutls-config --prefix`
31604 else
31605 addlib=`$OPT_GNUTLS/bin/libgnutls-config --libs`
31606 addcflags=`$OPT_GNUTLS/bin/libgnutls-config --cflags`
31607 version=`$OPT_GNUTLS/bin/libgnutls-config --version 2>/dev/null`
31608 gtlsprefix=$OPT_GNUTLS
31609 if test -z "$version"; then
31610 version="unknown"
31613 if test -n "$addlib"; then
31615 CLEANLIBS="$LIBS"
31616 CLEANCPPFLAGS="$CPPFLAGS"
31618 LIBS="$LIBS $addlib"
31619 if test "$addcflags" != "-I/usr/include"; then
31620 CPPFLAGS="$CPPFLAGS $addcflags"
31623 { echo "$as_me:$LINENO: checking for gnutls_check_version in -lgnutls" >&5
31624 echo $ECHO_N "checking for gnutls_check_version in -lgnutls... $ECHO_C" >&6; }
31625 if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then
31626 echo $ECHO_N "(cached) $ECHO_C" >&6
31627 else
31628 ac_check_lib_save_LIBS=$LIBS
31629 LIBS="-lgnutls $LIBS"
31630 cat >conftest.$ac_ext <<_ACEOF
31631 /* confdefs.h. */
31632 _ACEOF
31633 cat confdefs.h >>conftest.$ac_ext
31634 cat >>conftest.$ac_ext <<_ACEOF
31635 /* end confdefs.h. */
31637 /* Override any GCC internal prototype to avoid an error.
31638 Use char because int might match the return type of a GCC
31639 builtin and then its argument prototype would still apply. */
31640 #ifdef __cplusplus
31641 extern "C"
31642 #endif
31643 char gnutls_check_version ();
31645 main ()
31647 return gnutls_check_version ();
31649 return 0;
31651 _ACEOF
31652 rm -f conftest.$ac_objext conftest$ac_exeext
31653 if { (ac_try="$ac_link"
31654 case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31657 esac
31658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_link") 2>conftest.er1
31660 ac_status=$?
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } && {
31666 test -z "$ac_c_werror_flag" ||
31667 test ! -s conftest.err
31668 } && test -s conftest$ac_exeext &&
31669 $as_test_x conftest$ac_exeext; then
31670 ac_cv_lib_gnutls_gnutls_check_version=yes
31671 else
31672 echo "$as_me: failed program was:" >&5
31673 sed 's/^/| /' conftest.$ac_ext >&5
31675 ac_cv_lib_gnutls_gnutls_check_version=no
31678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31679 conftest$ac_exeext conftest.$ac_ext
31680 LIBS=$ac_check_lib_save_LIBS
31682 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
31683 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
31684 if test $ac_cv_lib_gnutls_gnutls_check_version = yes; then
31687 cat >>confdefs.h <<\_ACEOF
31688 #define USE_GNUTLS 1
31689 _ACEOF
31691 USE_GNUTLS=1
31693 GNUTLS_ENABLED=1
31694 USE_GNUTLS="yes"
31695 curl_ssl_msg="enabled (GnuTLS)"
31697 else
31699 LIBS="$CLEANLIBS"
31700 CPPFLAGS="$CLEANCPPFLAGS"
31705 if test "x$USE_GNUTLS" = "xyes"; then
31706 { echo "$as_me:$LINENO: detected GnuTLS version $version" >&5
31707 echo "$as_me: detected GnuTLS version $version" >&6;}
31710 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlsprefix/lib$libsuff"
31711 export LD_LIBRARY_PATH
31712 { echo "$as_me:$LINENO: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
31713 echo "$as_me: Added $gtlsprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
31721 OPT_NSS=no
31724 # Check whether --with-nss was given.
31725 if test "${with_nss+set}" = set; then
31726 withval=$with_nss; OPT_NSS=$withval
31730 if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then
31732 if test X"$OPT_NSS" != Xno; then
31733 if test "x$OPT_NSS" = "xyes"; then
31734 check=`pkg-config --version 2>/dev/null`
31735 if test -n "$check"; then
31736 addlib=`pkg-config --libs nss`
31737 addcflags=`pkg-config --cflags nss`
31738 version=`pkg-config --modversion nss`
31739 nssprefix=`pkg-config --variable=prefix nss`
31741 else
31742 # Without pkg-config, we'll kludge in some defaults
31743 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
31744 addcflags="-I$OPT_NSS/include"
31745 version="unknown"
31746 gtlsprefix=$OPT_GNUTLS
31749 { echo "$as_me:$LINENO: checking for PK11_CreateGenericObject in -lnss3" >&5
31750 echo $ECHO_N "checking for PK11_CreateGenericObject in -lnss3... $ECHO_C" >&6; }
31751 if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then
31752 echo $ECHO_N "(cached) $ECHO_C" >&6
31753 else
31754 ac_check_lib_save_LIBS=$LIBS
31755 LIBS="-lnss3 $LIBS"
31756 cat >conftest.$ac_ext <<_ACEOF
31757 /* confdefs.h. */
31758 _ACEOF
31759 cat confdefs.h >>conftest.$ac_ext
31760 cat >>conftest.$ac_ext <<_ACEOF
31761 /* end confdefs.h. */
31763 /* Override any GCC internal prototype to avoid an error.
31764 Use char because int might match the return type of a GCC
31765 builtin and then its argument prototype would still apply. */
31766 #ifdef __cplusplus
31767 extern "C"
31768 #endif
31769 char PK11_CreateGenericObject ();
31771 main ()
31773 return PK11_CreateGenericObject ();
31775 return 0;
31777 _ACEOF
31778 rm -f conftest.$ac_objext conftest$ac_exeext
31779 if { (ac_try="$ac_link"
31780 case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31783 esac
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_link") 2>conftest.er1
31786 ac_status=$?
31787 grep -v '^ *+' conftest.er1 >conftest.err
31788 rm -f conftest.er1
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } && {
31792 test -z "$ac_c_werror_flag" ||
31793 test ! -s conftest.err
31794 } && test -s conftest$ac_exeext &&
31795 $as_test_x conftest$ac_exeext; then
31796 ac_cv_lib_nss3_PK11_CreateGenericObject=yes
31797 else
31798 echo "$as_me: failed program was:" >&5
31799 sed 's/^/| /' conftest.$ac_ext >&5
31801 ac_cv_lib_nss3_PK11_CreateGenericObject=no
31804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31805 conftest$ac_exeext conftest.$ac_ext
31806 LIBS=$ac_check_lib_save_LIBS
31808 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5
31809 echo "${ECHO_T}$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; }
31810 if test $ac_cv_lib_nss3_PK11_CreateGenericObject = yes; then
31813 cat >>confdefs.h <<\_ACEOF
31814 #define HAVE_PK11_CREATEGENERICOBJECT 1
31815 _ACEOF
31817 HAVE_PK11_CREATEGENERICOBJECT=1
31822 if test -n "$addlib"; then
31824 CLEANLIBS="$LIBS"
31825 CLEANCPPFLAGS="$CPPFLAGS"
31827 LIBS="$LIBS $addlib"
31828 if test "$addcflags" != "-I/usr/include"; then
31829 CPPFLAGS="$CPPFLAGS $addcflags"
31832 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
31833 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
31834 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
31835 echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837 ac_check_lib_save_LIBS=$LIBS
31838 LIBS="-lnss3 $LIBS"
31839 cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h. */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h. */
31846 /* Override any GCC internal prototype to avoid an error.
31847 Use char because int might match the return type of a GCC
31848 builtin and then its argument prototype would still apply. */
31849 #ifdef __cplusplus
31850 extern "C"
31851 #endif
31852 char NSS_Initialize ();
31854 main ()
31856 return NSS_Initialize ();
31858 return 0;
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (ac_try="$ac_link"
31863 case "(($ac_try" in
31864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31865 *) ac_try_echo=$ac_try;;
31866 esac
31867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31868 (eval "$ac_link") 2>conftest.er1
31869 ac_status=$?
31870 grep -v '^ *+' conftest.er1 >conftest.err
31871 rm -f conftest.er1
31872 cat conftest.err >&5
31873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874 (exit $ac_status); } && {
31875 test -z "$ac_c_werror_flag" ||
31876 test ! -s conftest.err
31877 } && test -s conftest$ac_exeext &&
31878 $as_test_x conftest$ac_exeext; then
31879 ac_cv_lib_nss3_NSS_Initialize=yes
31880 else
31881 echo "$as_me: failed program was:" >&5
31882 sed 's/^/| /' conftest.$ac_ext >&5
31884 ac_cv_lib_nss3_NSS_Initialize=no
31887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31888 conftest$ac_exeext conftest.$ac_ext
31889 LIBS=$ac_check_lib_save_LIBS
31891 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
31892 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
31893 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
31896 cat >>confdefs.h <<\_ACEOF
31897 #define USE_NSS 1
31898 _ACEOF
31900 USE_NSS=1
31902 USE_NSS="yes"
31903 NSS_ENABLED=1
31904 curl_ssl_msg="enabled (NSS)"
31906 else
31908 LIBS="$CLEANLIBS"
31909 CPPFLAGS="$CLEANCPPFLAGS"
31914 if test "x$USE_NSS" = "xyes"; then
31915 { echo "$as_me:$LINENO: detected NSS version $version" >&5
31916 echo "$as_me: detected NSS version $version" >&6;}
31919 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
31920 export LD_LIBRARY_PATH
31921 { echo "$as_me:$LINENO: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
31922 echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
31929 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED" = "x"; then
31930 { echo "$as_me:$LINENO: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
31931 echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
31932 { echo "$as_me:$LINENO: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&5
31933 echo "$as_me: WARNING: Use --with-ssl, --with-gnutls or --with-nss to address this." >&2;}
31934 else
31935 # SSL is enabled, genericly
31937 SSL_ENABLED="1"
31943 { echo "$as_me:$LINENO: checking default CA cert bundle/path" >&5
31944 echo $ECHO_N "checking default CA cert bundle/path... $ECHO_C" >&6; }
31947 # Check whether --with-ca-bundle was given.
31948 if test "${with_ca_bundle+set}" = set; then
31949 withval=$with_ca_bundle;
31950 want_ca="$withval"
31951 if test "x$want_ca" = "xyes"; then
31952 { { echo "$as_me:$LINENO: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&5
31953 echo "$as_me: error: --with-ca-bundle=FILE requires a path to the CA bundle" >&2;}
31954 { (exit 1); exit 1; }; }
31957 else
31958 want_ca="unset"
31962 # Check whether --with-ca-path was given.
31963 if test "${with_ca_path+set}" = set; then
31964 withval=$with_ca_path;
31965 want_capath="$withval"
31966 if test "x$want_capath" = "xyes"; then
31967 { { echo "$as_me:$LINENO: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&5
31968 echo "$as_me: error: --with-ca-path=DIRECTORY requires a path to the CA path directory" >&2;}
31969 { (exit 1); exit 1; }; }
31972 else
31973 want_capath="unset"
31977 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
31978 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
31979 { { echo "$as_me:$LINENO: error: Can't specify both --with-ca-bundle and --with-ca-path." >&5
31980 echo "$as_me: error: Can't specify both --with-ca-bundle and --with-ca-path." >&2;}
31981 { (exit 1); exit 1; }; }
31982 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
31983 ca="$want_ca"
31984 capath="no"
31985 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
31986 if test "x$OPENSSL_ENABLED" != "x1"; then
31987 { { echo "$as_me:$LINENO: error: --with-ca-path only works with openSSL" >&5
31988 echo "$as_me: error: --with-ca-path only works with openSSL" >&2;}
31989 { (exit 1); exit 1; }; }
31991 capath="$want_capath"
31992 ca="no"
31993 else
31994 ca="no"
31995 capath="no"
31996 if test "x$want_ca" = "xunset"; then
31997 if test "x$prefix" != xNONE; then
31998 cac="${prefix}/share/curl/curl-ca-bundle.crt"
31999 else
32000 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
32003 for a in /etc/ssl/certs/ca-certificates.crt \
32004 /etc/pki/tls/certs/ca-bundle.crt \
32005 /usr/share/ssl/certs/ca-bundle.crt \
32006 "$cac"; do
32007 if test -f "$a"; then
32008 ca="$a"
32009 break
32011 done
32013 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
32014 "x$OPENSSL_ENABLED" = "x1"; then
32015 for a in /etc/ssl/certs/; do
32016 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
32017 capath="$a"
32018 break
32020 done
32026 if test "x$ca" != "xno"; then
32027 CURL_CA_BUNDLE='"'$ca'"'
32029 cat >>confdefs.h <<_ACEOF
32030 #define CURL_CA_BUNDLE "$ca"
32031 _ACEOF
32034 { echo "$as_me:$LINENO: result: $ca" >&5
32035 echo "${ECHO_T}$ca" >&6; }
32036 elif test "x$capath" != "xno"; then
32037 CURL_CA_PATH="\"$capath\""
32039 cat >>confdefs.h <<_ACEOF
32040 #define CURL_CA_PATH "$capath"
32041 _ACEOF
32043 { echo "$as_me:$LINENO: result: $capath (capath)" >&5
32044 echo "${ECHO_T}$capath (capath)" >&6; }
32045 else
32046 { echo "$as_me:$LINENO: result: no" >&5
32047 echo "${ECHO_T}no" >&6; }
32052 { echo "$as_me:$LINENO: checking whether to build with libidn" >&5
32053 echo $ECHO_N "checking whether to build with libidn... $ECHO_C" >&6; }
32055 # Check whether --with-libidn was given.
32056 if test "${with_libidn+set}" = set; then
32057 withval=$with_libidn; LIBIDN="$withval"
32061 case "$LIBIDN" in
32063 { echo "$as_me:$LINENO: result: no" >&5
32064 echo "${ECHO_T}no" >&6; }
32066 *) { echo "$as_me:$LINENO: result: yes" >&5
32067 echo "${ECHO_T}yes" >&6; }
32069 idn=""
32070 if test -n "$LIBIDN"; then
32071 if test "x$LIBIDN" != "xyes"; then
32072 oldLDFLAGS=$LDFLAGS
32073 oldCPPFLAGS=$CPPFLAGS
32074 LDFLAGS="$LDFLAGS -L$LIBIDN/lib"
32075 CPPFLAGS="$CPPFLAGS -I$LIBIDN/include"
32076 idn="yes"
32078 { echo "$as_me:$LINENO: checking for idna_to_ascii_4i in -lidn" >&5
32079 echo $ECHO_N "checking for idna_to_ascii_4i in -lidn... $ECHO_C" >&6; }
32080 if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then
32081 echo $ECHO_N "(cached) $ECHO_C" >&6
32082 else
32083 ac_check_lib_save_LIBS=$LIBS
32084 LIBS="-lidn $LIBS"
32085 cat >conftest.$ac_ext <<_ACEOF
32086 /* confdefs.h. */
32087 _ACEOF
32088 cat confdefs.h >>conftest.$ac_ext
32089 cat >>conftest.$ac_ext <<_ACEOF
32090 /* end confdefs.h. */
32092 /* Override any GCC internal prototype to avoid an error.
32093 Use char because int might match the return type of a GCC
32094 builtin and then its argument prototype would still apply. */
32095 #ifdef __cplusplus
32096 extern "C"
32097 #endif
32098 char idna_to_ascii_4i ();
32100 main ()
32102 return idna_to_ascii_4i ();
32104 return 0;
32106 _ACEOF
32107 rm -f conftest.$ac_objext conftest$ac_exeext
32108 if { (ac_try="$ac_link"
32109 case "(($ac_try" in
32110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32111 *) ac_try_echo=$ac_try;;
32112 esac
32113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32114 (eval "$ac_link") 2>conftest.er1
32115 ac_status=$?
32116 grep -v '^ *+' conftest.er1 >conftest.err
32117 rm -f conftest.er1
32118 cat conftest.err >&5
32119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } && {
32121 test -z "$ac_c_werror_flag" ||
32122 test ! -s conftest.err
32123 } && test -s conftest$ac_exeext &&
32124 $as_test_x conftest$ac_exeext; then
32125 ac_cv_lib_idn_idna_to_ascii_4i=yes
32126 else
32127 echo "$as_me: failed program was:" >&5
32128 sed 's/^/| /' conftest.$ac_ext >&5
32130 ac_cv_lib_idn_idna_to_ascii_4i=no
32133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32134 conftest$ac_exeext conftest.$ac_ext
32135 LIBS=$ac_check_lib_save_LIBS
32137 { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5
32138 echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_4i" >&6; }
32139 if test $ac_cv_lib_idn_idna_to_ascii_4i = yes; then
32140 cat >>confdefs.h <<_ACEOF
32141 #define HAVE_LIBIDN 1
32142 _ACEOF
32144 LIBS="-lidn $LIBS"
32146 else
32147 idn=""
32148 LDFLAGS=$oldLDFLAGS
32149 CPPFLAGS=$oldCPPFLAGS
32155 if test "x$idn" != "xyes"; then
32156 idn="yes"
32158 { echo "$as_me:$LINENO: checking for idna_to_ascii_lz in -lidn" >&5
32159 echo $ECHO_N "checking for idna_to_ascii_lz in -lidn... $ECHO_C" >&6; }
32160 if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then
32161 echo $ECHO_N "(cached) $ECHO_C" >&6
32162 else
32163 ac_check_lib_save_LIBS=$LIBS
32164 LIBS="-lidn $LIBS"
32165 cat >conftest.$ac_ext <<_ACEOF
32166 /* confdefs.h. */
32167 _ACEOF
32168 cat confdefs.h >>conftest.$ac_ext
32169 cat >>conftest.$ac_ext <<_ACEOF
32170 /* end confdefs.h. */
32172 /* Override any GCC internal prototype to avoid an error.
32173 Use char because int might match the return type of a GCC
32174 builtin and then its argument prototype would still apply. */
32175 #ifdef __cplusplus
32176 extern "C"
32177 #endif
32178 char idna_to_ascii_lz ();
32180 main ()
32182 return idna_to_ascii_lz ();
32184 return 0;
32186 _ACEOF
32187 rm -f conftest.$ac_objext conftest$ac_exeext
32188 if { (ac_try="$ac_link"
32189 case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32192 esac
32193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_link") 2>conftest.er1
32195 ac_status=$?
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } && {
32201 test -z "$ac_c_werror_flag" ||
32202 test ! -s conftest.err
32203 } && test -s conftest$ac_exeext &&
32204 $as_test_x conftest$ac_exeext; then
32205 ac_cv_lib_idn_idna_to_ascii_lz=yes
32206 else
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32210 ac_cv_lib_idn_idna_to_ascii_lz=no
32213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32214 conftest$ac_exeext conftest.$ac_ext
32215 LIBS=$ac_check_lib_save_LIBS
32217 { echo "$as_me:$LINENO: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5
32218 echo "${ECHO_T}$ac_cv_lib_idn_idna_to_ascii_lz" >&6; }
32219 if test $ac_cv_lib_idn_idna_to_ascii_lz = yes; then
32220 cat >>confdefs.h <<_ACEOF
32221 #define HAVE_LIBIDN 1
32222 _ACEOF
32224 LIBS="-lidn $LIBS"
32226 else
32227 idn=""
32232 if test "x$idn" = "xyes"; then
32233 curl_idn_msg="enabled"
32234 IDN_ENABLED=1
32239 for ac_func in idn_free idna_strerror tld_strerror
32241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32245 echo $ECHO_N "(cached) $ECHO_C" >&6
32246 else
32247 cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h. */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32255 #define $ac_func innocuous_$ac_func
32257 /* System header to define __stub macros and hopefully few prototypes,
32258 which can conflict with char $ac_func (); below.
32259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260 <limits.h> exists even on freestanding compilers. */
32262 #ifdef __STDC__
32263 # include <limits.h>
32264 #else
32265 # include <assert.h>
32266 #endif
32268 #undef $ac_func
32270 /* Override any GCC internal prototype to avoid an error.
32271 Use char because int might match the return type of a GCC
32272 builtin and then its argument prototype would still apply. */
32273 #ifdef __cplusplus
32274 extern "C"
32275 #endif
32276 char $ac_func ();
32277 /* The GNU C library defines this for functions which it implements
32278 to always fail with ENOSYS. Some functions are actually named
32279 something starting with __ and the normal name is an alias. */
32280 #if defined __stub_$ac_func || defined __stub___$ac_func
32281 choke me
32282 #endif
32285 main ()
32287 return $ac_func ();
32289 return 0;
32291 _ACEOF
32292 rm -f conftest.$ac_objext conftest$ac_exeext
32293 if { (ac_try="$ac_link"
32294 case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297 esac
32298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_link") 2>conftest.er1
32300 ac_status=$?
32301 grep -v '^ *+' conftest.er1 >conftest.err
32302 rm -f conftest.er1
32303 cat conftest.err >&5
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); } && {
32306 test -z "$ac_c_werror_flag" ||
32307 test ! -s conftest.err
32308 } && test -s conftest$ac_exeext &&
32309 $as_test_x conftest$ac_exeext; then
32310 eval "$as_ac_var=yes"
32311 else
32312 echo "$as_me: failed program was:" >&5
32313 sed 's/^/| /' conftest.$ac_ext >&5
32315 eval "$as_ac_var=no"
32318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32319 conftest$ac_exeext conftest.$ac_ext
32321 ac_res=`eval echo '${'$as_ac_var'}'`
32322 { echo "$as_me:$LINENO: result: $ac_res" >&5
32323 echo "${ECHO_T}$ac_res" >&6; }
32324 if test `eval echo '${'$as_ac_var'}'` = yes; then
32325 cat >>confdefs.h <<_ACEOF
32326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32327 _ACEOF
32330 done
32334 for ac_header in idn-free.h tld.h
32336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32341 echo $ECHO_N "(cached) $ECHO_C" >&6
32343 ac_res=`eval echo '${'$as_ac_Header'}'`
32344 { echo "$as_me:$LINENO: result: $ac_res" >&5
32345 echo "${ECHO_T}$ac_res" >&6; }
32346 else
32347 # Is the header compilable?
32348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32350 cat >conftest.$ac_ext <<_ACEOF
32351 /* confdefs.h. */
32352 _ACEOF
32353 cat confdefs.h >>conftest.$ac_ext
32354 cat >>conftest.$ac_ext <<_ACEOF
32355 /* end confdefs.h. */
32356 $ac_includes_default
32357 #include <$ac_header>
32358 _ACEOF
32359 rm -f conftest.$ac_objext
32360 if { (ac_try="$ac_compile"
32361 case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_compile") 2>conftest.er1
32367 ac_status=$?
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } && {
32373 test -z "$ac_c_werror_flag" ||
32374 test ! -s conftest.err
32375 } && test -s conftest.$ac_objext; then
32376 ac_header_compiler=yes
32377 else
32378 echo "$as_me: failed program was:" >&5
32379 sed 's/^/| /' conftest.$ac_ext >&5
32381 ac_header_compiler=no
32384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32386 echo "${ECHO_T}$ac_header_compiler" >&6; }
32388 # Is the header present?
32389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32391 cat >conftest.$ac_ext <<_ACEOF
32392 /* confdefs.h. */
32393 _ACEOF
32394 cat confdefs.h >>conftest.$ac_ext
32395 cat >>conftest.$ac_ext <<_ACEOF
32396 /* end confdefs.h. */
32397 #include <$ac_header>
32398 _ACEOF
32399 if { (ac_try="$ac_cpp conftest.$ac_ext"
32400 case "(($ac_try" in
32401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32403 esac
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32406 ac_status=$?
32407 grep -v '^ *+' conftest.er1 >conftest.err
32408 rm -f conftest.er1
32409 cat conftest.err >&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } >/dev/null && {
32412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32413 test ! -s conftest.err
32414 }; then
32415 ac_header_preproc=yes
32416 else
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 ac_header_preproc=no
32423 rm -f conftest.err conftest.$ac_ext
32424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32425 echo "${ECHO_T}$ac_header_preproc" >&6; }
32427 # So? What about this header?
32428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32429 yes:no: )
32430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32434 ac_header_preproc=yes
32436 no:yes:* )
32437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32449 ( cat <<\_ASBOX
32450 ## ------------------------------------------------------------------------ ##
32451 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
32452 ## ------------------------------------------------------------------------ ##
32453 _ASBOX
32454 ) | sed "s/^/$as_me: WARNING: /" >&2
32456 esac
32457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462 eval "$as_ac_Header=\$ac_header_preproc"
32464 ac_res=`eval echo '${'$as_ac_Header'}'`
32465 { echo "$as_me:$LINENO: result: $ac_res" >&5
32466 echo "${ECHO_T}$ac_res" >&6; }
32469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32470 cat >>confdefs.h <<_ACEOF
32471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32472 _ACEOF
32476 done
32481 esac
32483 OPT_THREAD=on
32485 { echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
32486 echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6; }
32487 cat >conftest.$ac_ext <<_ACEOF
32489 #if defined(_AIX) && defined(_AIX43)
32490 printf("just fine");
32491 #else
32492 #error "this is not AIX 4.3 or later"
32493 #endif
32495 _ACEOF
32496 if { (ac_try="$ac_cpp conftest.$ac_ext"
32497 case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32500 esac
32501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32503 ac_status=$?
32504 grep -v '^ *+' conftest.er1 >conftest.err
32505 rm -f conftest.er1
32506 cat conftest.err >&5
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); } >/dev/null && {
32509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32510 test ! -s conftest.err
32511 }; then
32512 { echo "$as_me:$LINENO: result: yes" >&5
32513 echo "${ECHO_T}yes" >&6; }
32514 RECENTAIX=yes
32515 OPT_THREAD=off
32516 else
32517 echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32520 { echo "$as_me:$LINENO: result: no" >&5
32521 echo "${ECHO_T}no" >&6; }
32525 rm -f conftest.err conftest.$ac_ext
32527 # Check whether --enable-thread was given.
32528 if test "${enable_thread+set}" = set; then
32529 enableval=$enable_thread; case "$enableval" in
32531 OPT_THREAD=off
32532 { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
32533 echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
32537 esac
32543 if test X"$OPT_THREAD" = Xoff
32544 then
32546 cat >>confdefs.h <<\_ACEOF
32547 #define DISABLED_THREADSAFE 1
32548 _ACEOF
32550 else
32551 if test "$ipv6" != "yes"; then
32554 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
32555 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
32556 cat >conftest.$ac_ext <<_ACEOF
32558 /* confdefs.h. */
32559 _ACEOF
32560 cat confdefs.h >>conftest.$ac_ext
32561 cat >>conftest.$ac_ext <<_ACEOF
32562 /* end confdefs.h. */
32563 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
32564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32565 #define gethostbyname_r innocuous_gethostbyname_r
32567 /* System header to define __stub macros and hopefully few prototypes,
32568 which can conflict with char gethostbyname_r (); below.
32569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32570 <limits.h> exists even on freestanding compilers. */
32572 #ifdef __STDC__
32573 # include <limits.h>
32574 #else
32575 # include <assert.h>
32576 #endif
32578 #undef gethostbyname_r
32580 /* Override any GCC internal prototype to avoid an error.
32581 Use char because int might match the return type of a GCC
32582 builtin and then its argument prototype would still apply. */
32583 #ifdef __cplusplus
32584 extern "C"
32585 #endif
32586 char gethostbyname_r ();
32587 /* The GNU C library defines this for functions which it implements
32588 to always fail with ENOSYS. Some functions are actually named
32589 something starting with __ and the normal name is an alias. */
32590 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
32591 choke me
32592 #endif
32595 main ()
32597 return gethostbyname_r ();
32599 return 0;
32602 _ACEOF
32603 rm -f conftest.$ac_objext conftest$ac_exeext
32604 if { (ac_try="$ac_link"
32605 case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608 esac
32609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_link") 2>conftest.er1
32611 ac_status=$?
32612 grep -v '^ *+' conftest.er1 >conftest.err
32613 rm -f conftest.er1
32614 cat conftest.err >&5
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } && {
32617 test -z "$ac_c_werror_flag" ||
32618 test ! -s conftest.err
32619 } && test -s conftest$ac_exeext &&
32620 $as_test_x conftest$ac_exeext; then
32622 { echo "$as_me:$LINENO: result: yes" >&5
32623 echo "${ECHO_T}yes" >&6; }
32624 tmp_cv_gethostbyname_r="yes"
32626 else
32627 echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32631 { echo "$as_me:$LINENO: result: no" >&5
32632 echo "${ECHO_T}no" >&6; }
32633 tmp_cv_gethostbyname_r="no"
32637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32638 conftest$ac_exeext conftest.$ac_ext
32640 if test "$tmp_cv_gethostbyname_r" != "yes"; then
32641 { echo "$as_me:$LINENO: checking deeper for gethostbyname_r" >&5
32642 echo $ECHO_N "checking deeper for gethostbyname_r... $ECHO_C" >&6; }
32643 cat >conftest.$ac_ext <<_ACEOF
32645 /* confdefs.h. */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h. */
32653 main ()
32656 gethostbyname_r();
32659 return 0;
32662 _ACEOF
32663 rm -f conftest.$ac_objext conftest$ac_exeext
32664 if { (ac_try="$ac_link"
32665 case "(($ac_try" in
32666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667 *) ac_try_echo=$ac_try;;
32668 esac
32669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670 (eval "$ac_link") 2>conftest.er1
32671 ac_status=$?
32672 grep -v '^ *+' conftest.er1 >conftest.err
32673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } && {
32677 test -z "$ac_c_werror_flag" ||
32678 test ! -s conftest.err
32679 } && test -s conftest$ac_exeext &&
32680 $as_test_x conftest$ac_exeext; then
32682 { echo "$as_me:$LINENO: result: yes" >&5
32683 echo "${ECHO_T}yes" >&6; }
32684 tmp_cv_gethostbyname_r="yes"
32686 else
32687 echo "$as_me: failed program was:" >&5
32688 sed 's/^/| /' conftest.$ac_ext >&5
32691 { echo "$as_me:$LINENO: result: but still no" >&5
32692 echo "${ECHO_T}but still no" >&6; }
32693 tmp_cv_gethostbyname_r="no"
32697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32698 conftest$ac_exeext conftest.$ac_ext
32701 if test "$tmp_cv_gethostbyname_r" = "yes"; then
32703 ac_cv_gethostbyname_r_args="unknown"
32705 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
32706 echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6; }
32707 cat >conftest.$ac_ext <<_ACEOF
32709 /* confdefs.h. */
32710 _ACEOF
32711 cat confdefs.h >>conftest.$ac_ext
32712 cat >>conftest.$ac_ext <<_ACEOF
32713 /* end confdefs.h. */
32715 #undef _REENTRANT
32716 #include <string.h>
32717 #include <sys/types.h>
32718 #include <netdb.h>
32719 #undef NULL
32720 #define NULL (void *)0
32722 gethostbyname_r(const char *, struct hostent *,
32723 struct hostent_data *);
32726 main ()
32729 struct hostent_data data;
32730 gethostbyname_r(NULL, NULL, NULL);
32733 return 0;
32736 _ACEOF
32737 rm -f conftest.$ac_objext
32738 if { (ac_try="$ac_compile"
32739 case "(($ac_try" in
32740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32741 *) ac_try_echo=$ac_try;;
32742 esac
32743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32744 (eval "$ac_compile") 2>conftest.er1
32745 ac_status=$?
32746 grep -v '^ *+' conftest.er1 >conftest.err
32747 rm -f conftest.er1
32748 cat conftest.err >&5
32749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750 (exit $ac_status); } && {
32751 test -z "$ac_c_werror_flag" ||
32752 test ! -s conftest.err
32753 } && test -s conftest.$ac_objext; then
32755 { echo "$as_me:$LINENO: result: yes" >&5
32756 echo "${ECHO_T}yes" >&6; }
32758 cat >>confdefs.h <<\_ACEOF
32759 #define HAVE_GETHOSTBYNAME_R_3 1
32760 _ACEOF
32762 ac_cv_gethostbyname_r_args="3"
32764 else
32765 echo "$as_me: failed program was:" >&5
32766 sed 's/^/| /' conftest.$ac_ext >&5
32769 { echo "$as_me:$LINENO: result: no" >&5
32770 echo "${ECHO_T}no" >&6; }
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32776 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32777 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
32778 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6; }
32779 cat >conftest.$ac_ext <<_ACEOF
32781 /* confdefs.h. */
32782 _ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h. */
32787 #undef _REENTRANT
32788 #define _REENTRANT
32789 #include <string.h>
32790 #include <sys/types.h>
32791 #include <netdb.h>
32792 #undef NULL
32793 #define NULL (void *)0
32795 gethostbyname_r(const char *, struct hostent *,
32796 struct hostent_data *);
32799 main ()
32802 struct hostent_data data;
32803 gethostbyname_r(NULL, NULL, NULL);
32806 return 0;
32809 _ACEOF
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32818 ac_status=$?
32819 grep -v '^ *+' conftest.er1 >conftest.err
32820 rm -f conftest.er1
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.$ac_objext; then
32828 { echo "$as_me:$LINENO: result: yes" >&5
32829 echo "${ECHO_T}yes" >&6; }
32831 cat >>confdefs.h <<\_ACEOF
32832 #define HAVE_GETHOSTBYNAME_R_3 1
32833 _ACEOF
32835 ac_cv_gethostbyname_r_args="3"
32837 else
32838 echo "$as_me: failed program was:" >&5
32839 sed 's/^/| /' conftest.$ac_ext >&5
32842 { echo "$as_me:$LINENO: result: no" >&5
32843 echo "${ECHO_T}no" >&6; }
32847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32850 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32851 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
32852 echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6; }
32853 cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h. */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h. */
32861 #undef _REENTRANT
32862 #include <sys/types.h>
32863 #include <netdb.h>
32864 #undef NULL
32865 #define NULL (void *)0
32866 struct hostent *
32867 gethostbyname_r(const char *, struct hostent *,
32868 char *, int, int *);
32871 main ()
32874 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
32877 return 0;
32880 _ACEOF
32881 rm -f conftest.$ac_objext
32882 if { (ac_try="$ac_compile"
32883 case "(($ac_try" in
32884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32885 *) ac_try_echo=$ac_try;;
32886 esac
32887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32888 (eval "$ac_compile") 2>conftest.er1
32889 ac_status=$?
32890 grep -v '^ *+' conftest.er1 >conftest.err
32891 rm -f conftest.er1
32892 cat conftest.err >&5
32893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32894 (exit $ac_status); } && {
32895 test -z "$ac_c_werror_flag" ||
32896 test ! -s conftest.err
32897 } && test -s conftest.$ac_objext; then
32899 { echo "$as_me:$LINENO: result: yes" >&5
32900 echo "${ECHO_T}yes" >&6; }
32902 cat >>confdefs.h <<\_ACEOF
32903 #define HAVE_GETHOSTBYNAME_R_5 1
32904 _ACEOF
32906 ac_cv_gethostbyname_r_args="5"
32908 else
32909 echo "$as_me: failed program was:" >&5
32910 sed 's/^/| /' conftest.$ac_ext >&5
32913 { echo "$as_me:$LINENO: result: no" >&5
32914 echo "${ECHO_T}no" >&6; }
32918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32921 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32922 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 5 arguments" >&5
32923 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6; }
32924 cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h. */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h. */
32932 #undef _REENTRANT
32933 #define _REENTRANT
32934 #include <sys/types.h>
32935 #include <netdb.h>
32936 #undef NULL
32937 #define NULL (void *)0
32938 struct hostent *
32939 gethostbyname_r(const char *, struct hostent *,
32940 char *, int, int *);
32943 main ()
32946 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
32949 return 0;
32952 _ACEOF
32953 rm -f conftest.$ac_objext
32954 if { (ac_try="$ac_compile"
32955 case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32958 esac
32959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_compile") 2>conftest.er1
32961 ac_status=$?
32962 grep -v '^ *+' conftest.er1 >conftest.err
32963 rm -f conftest.er1
32964 cat conftest.err >&5
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); } && {
32967 test -z "$ac_c_werror_flag" ||
32968 test ! -s conftest.err
32969 } && test -s conftest.$ac_objext; then
32971 { echo "$as_me:$LINENO: result: yes" >&5
32972 echo "${ECHO_T}yes" >&6; }
32974 cat >>confdefs.h <<\_ACEOF
32975 #define HAVE_GETHOSTBYNAME_R_5 1
32976 _ACEOF
32978 ac_cv_gethostbyname_r_args="5"
32980 else
32981 echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32985 { echo "$as_me:$LINENO: result: no" >&5
32986 echo "${ECHO_T}no" >&6; }
32990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32993 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
32994 { echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
32995 echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6; }
32996 cat >conftest.$ac_ext <<_ACEOF
32998 /* confdefs.h. */
32999 _ACEOF
33000 cat confdefs.h >>conftest.$ac_ext
33001 cat >>conftest.$ac_ext <<_ACEOF
33002 /* end confdefs.h. */
33004 #undef _REENTRANT
33005 #include <sys/types.h>
33006 #include <netdb.h>
33007 #undef NULL
33008 #define NULL (void *)0
33010 gethostbyname_r(const char *, struct hostent *,
33011 char *, size_t, struct hostent **, int *);
33014 main ()
33017 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
33020 return 0;
33023 _ACEOF
33024 rm -f conftest.$ac_objext
33025 if { (ac_try="$ac_compile"
33026 case "(($ac_try" in
33027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028 *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031 (eval "$ac_compile") 2>conftest.er1
33032 ac_status=$?
33033 grep -v '^ *+' conftest.er1 >conftest.err
33034 rm -f conftest.er1
33035 cat conftest.err >&5
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } && {
33038 test -z "$ac_c_werror_flag" ||
33039 test ! -s conftest.err
33040 } && test -s conftest.$ac_objext; then
33042 { echo "$as_me:$LINENO: result: yes" >&5
33043 echo "${ECHO_T}yes" >&6; }
33045 cat >>confdefs.h <<\_ACEOF
33046 #define HAVE_GETHOSTBYNAME_R_6 1
33047 _ACEOF
33049 ac_cv_gethostbyname_r_args="6"
33051 else
33052 echo "$as_me: failed program was:" >&5
33053 sed 's/^/| /' conftest.$ac_ext >&5
33056 { echo "$as_me:$LINENO: result: no" >&5
33057 echo "${ECHO_T}no" >&6; }
33061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33064 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
33065 { echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 6 arguments" >&5
33066 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 6 arguments... $ECHO_C" >&6; }
33067 cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h. */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h. */
33075 #undef _REENTRANT
33076 #define _REENTRANT
33077 #include <sys/types.h>
33078 #include <netdb.h>
33079 #undef NULL
33080 #define NULL (void *)0
33082 gethostbyname_r(const char *, struct hostent *,
33083 char *, size_t, struct hostent **, int *);
33086 main ()
33089 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
33092 return 0;
33095 _ACEOF
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_compile") 2>conftest.er1
33104 ac_status=$?
33105 grep -v '^ *+' conftest.er1 >conftest.err
33106 rm -f conftest.er1
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest.$ac_objext; then
33114 { echo "$as_me:$LINENO: result: yes" >&5
33115 echo "${ECHO_T}yes" >&6; }
33117 cat >>confdefs.h <<\_ACEOF
33118 #define HAVE_GETHOSTBYNAME_R_6 1
33119 _ACEOF
33121 ac_cv_gethostbyname_r_args="6"
33123 else
33124 echo "$as_me: failed program was:" >&5
33125 sed 's/^/| /' conftest.$ac_ext >&5
33128 { echo "$as_me:$LINENO: result: no" >&5
33129 echo "${ECHO_T}no" >&6; }
33133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33136 if test "$ac_cv_gethostbyname_r_args" = "unknown"; then
33137 { echo "$as_me:$LINENO: WARNING: Cannot find out how to use gethostbyname_r" >&5
33138 echo "$as_me: WARNING: Cannot find out how to use gethostbyname_r" >&2;}
33139 { echo "$as_me:$LINENO: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&5
33140 echo "$as_me: WARNING: HAVE_GETHOSTBYNAME_R will not be defined" >&2;}
33141 ac_cv_func_gethostbyname_r="no"
33142 else
33144 cat >>confdefs.h <<_ACEOF
33145 #define HAVE_GETHOSTBYNAME_R 1
33146 _ACEOF
33148 ac_cv_func_gethostbyname_r="yes"
33151 else
33152 ac_cv_func_gethostbyname_r="no"
33160 for ac_func in inet_ntoa_r
33162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33166 echo $ECHO_N "(cached) $ECHO_C" >&6
33167 else
33168 cat >conftest.$ac_ext <<_ACEOF
33169 /* confdefs.h. */
33170 _ACEOF
33171 cat confdefs.h >>conftest.$ac_ext
33172 cat >>conftest.$ac_ext <<_ACEOF
33173 /* end confdefs.h. */
33174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33176 #define $ac_func innocuous_$ac_func
33178 /* System header to define __stub macros and hopefully few prototypes,
33179 which can conflict with char $ac_func (); below.
33180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33181 <limits.h> exists even on freestanding compilers. */
33183 #ifdef __STDC__
33184 # include <limits.h>
33185 #else
33186 # include <assert.h>
33187 #endif
33189 #undef $ac_func
33191 /* Override any GCC internal prototype to avoid an error.
33192 Use char because int might match the return type of a GCC
33193 builtin and then its argument prototype would still apply. */
33194 #ifdef __cplusplus
33195 extern "C"
33196 #endif
33197 char $ac_func ();
33198 /* The GNU C library defines this for functions which it implements
33199 to always fail with ENOSYS. Some functions are actually named
33200 something starting with __ and the normal name is an alias. */
33201 #if defined __stub_$ac_func || defined __stub___$ac_func
33202 choke me
33203 #endif
33206 main ()
33208 return $ac_func ();
33210 return 0;
33212 _ACEOF
33213 rm -f conftest.$ac_objext conftest$ac_exeext
33214 if { (ac_try="$ac_link"
33215 case "(($ac_try" in
33216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33217 *) ac_try_echo=$ac_try;;
33218 esac
33219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33220 (eval "$ac_link") 2>conftest.er1
33221 ac_status=$?
33222 grep -v '^ *+' conftest.er1 >conftest.err
33223 rm -f conftest.er1
33224 cat conftest.err >&5
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); } && {
33227 test -z "$ac_c_werror_flag" ||
33228 test ! -s conftest.err
33229 } && test -s conftest$ac_exeext &&
33230 $as_test_x conftest$ac_exeext; then
33231 eval "$as_ac_var=yes"
33232 else
33233 echo "$as_me: failed program was:" >&5
33234 sed 's/^/| /' conftest.$ac_ext >&5
33236 eval "$as_ac_var=no"
33239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33240 conftest$ac_exeext conftest.$ac_ext
33242 ac_res=`eval echo '${'$as_ac_var'}'`
33243 { echo "$as_me:$LINENO: result: $ac_res" >&5
33244 echo "${ECHO_T}$ac_res" >&6; }
33245 if test `eval echo '${'$as_ac_var'}'` = yes; then
33246 cat >>confdefs.h <<_ACEOF
33247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33248 _ACEOF
33250 { echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
33251 echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6; }
33252 cat >conftest.$ac_ext <<_ACEOF
33253 /* confdefs.h. */
33254 _ACEOF
33255 cat confdefs.h >>conftest.$ac_ext
33256 cat >>conftest.$ac_ext <<_ACEOF
33257 /* end confdefs.h. */
33259 #undef _REENTRANT
33260 #include <arpa/inet.h>
33261 _ACEOF
33262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33263 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
33266 cat >>confdefs.h <<\_ACEOF
33267 #define HAVE_INET_NTOA_R_DECL 1
33268 _ACEOF
33270 { echo "$as_me:$LINENO: result: yes" >&5
33271 echo "${ECHO_T}yes" >&6; }
33272 else
33274 { echo "$as_me:$LINENO: result: no" >&5
33275 echo "${ECHO_T}no" >&6; }
33276 { echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
33277 echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33278 cat >conftest.$ac_ext <<_ACEOF
33279 /* confdefs.h. */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33285 #undef _REENTRANT
33286 #define _REENTRANT
33287 #include <arpa/inet.h>
33288 _ACEOF
33289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33290 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
33293 cat >>confdefs.h <<\_ACEOF
33294 #define HAVE_INET_NTOA_R_DECL 1
33295 _ACEOF
33297 { echo "$as_me:$LINENO: result: yes" >&5
33298 echo "${ECHO_T}yes" >&6; }
33299 else
33300 { echo "$as_me:$LINENO: result: no" >&5
33301 echo "${ECHO_T}no" >&6; }
33303 rm -f conftest*
33306 rm -f conftest*
33309 done
33315 for ac_func in localtime_r
33317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33321 echo $ECHO_N "(cached) $ECHO_C" >&6
33322 else
33323 cat >conftest.$ac_ext <<_ACEOF
33324 /* confdefs.h. */
33325 _ACEOF
33326 cat confdefs.h >>conftest.$ac_ext
33327 cat >>conftest.$ac_ext <<_ACEOF
33328 /* end confdefs.h. */
33329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33331 #define $ac_func innocuous_$ac_func
33333 /* System header to define __stub macros and hopefully few prototypes,
33334 which can conflict with char $ac_func (); below.
33335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33336 <limits.h> exists even on freestanding compilers. */
33338 #ifdef __STDC__
33339 # include <limits.h>
33340 #else
33341 # include <assert.h>
33342 #endif
33344 #undef $ac_func
33346 /* Override any GCC internal prototype to avoid an error.
33347 Use char because int might match the return type of a GCC
33348 builtin and then its argument prototype would still apply. */
33349 #ifdef __cplusplus
33350 extern "C"
33351 #endif
33352 char $ac_func ();
33353 /* The GNU C library defines this for functions which it implements
33354 to always fail with ENOSYS. Some functions are actually named
33355 something starting with __ and the normal name is an alias. */
33356 #if defined __stub_$ac_func || defined __stub___$ac_func
33357 choke me
33358 #endif
33361 main ()
33363 return $ac_func ();
33365 return 0;
33367 _ACEOF
33368 rm -f conftest.$ac_objext conftest$ac_exeext
33369 if { (ac_try="$ac_link"
33370 case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_link") 2>conftest.er1
33376 ac_status=$?
33377 grep -v '^ *+' conftest.er1 >conftest.err
33378 rm -f conftest.er1
33379 cat conftest.err >&5
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); } && {
33382 test -z "$ac_c_werror_flag" ||
33383 test ! -s conftest.err
33384 } && test -s conftest$ac_exeext &&
33385 $as_test_x conftest$ac_exeext; then
33386 eval "$as_ac_var=yes"
33387 else
33388 echo "$as_me: failed program was:" >&5
33389 sed 's/^/| /' conftest.$ac_ext >&5
33391 eval "$as_ac_var=no"
33394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33395 conftest$ac_exeext conftest.$ac_ext
33397 ac_res=`eval echo '${'$as_ac_var'}'`
33398 { echo "$as_me:$LINENO: result: $ac_res" >&5
33399 echo "${ECHO_T}$ac_res" >&6; }
33400 if test `eval echo '${'$as_ac_var'}'` = yes; then
33401 cat >>confdefs.h <<_ACEOF
33402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33403 _ACEOF
33405 { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
33406 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
33407 cat >conftest.$ac_ext <<_ACEOF
33408 /* confdefs.h. */
33409 _ACEOF
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33414 #undef _REENTRANT
33415 #include <time.h>
33416 _ACEOF
33417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33418 $EGREP "localtime_r" >/dev/null 2>&1; then
33420 { echo "$as_me:$LINENO: result: yes" >&5
33421 echo "${ECHO_T}yes" >&6; }
33422 else
33424 { echo "$as_me:$LINENO: result: no" >&5
33425 echo "${ECHO_T}no" >&6; }
33426 { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
33427 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33428 cat >conftest.$ac_ext <<_ACEOF
33429 /* confdefs.h. */
33430 _ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h. */
33435 #undef _REENTRANT
33436 #define _REENTRANT
33437 #include <time.h>
33438 _ACEOF
33439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33440 $EGREP "localtime_r" >/dev/null 2>&1; then
33442 { echo "$as_me:$LINENO: result: yes" >&5
33443 echo "${ECHO_T}yes" >&6; }
33444 else
33445 { echo "$as_me:$LINENO: result: no" >&5
33446 echo "${ECHO_T}no" >&6; }
33448 rm -f conftest*
33451 rm -f conftest*
33454 done
33460 for ac_func in strerror_r
33462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33466 echo $ECHO_N "(cached) $ECHO_C" >&6
33467 else
33468 cat >conftest.$ac_ext <<_ACEOF
33469 /* confdefs.h. */
33470 _ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33476 #define $ac_func innocuous_$ac_func
33478 /* System header to define __stub macros and hopefully few prototypes,
33479 which can conflict with char $ac_func (); below.
33480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33481 <limits.h> exists even on freestanding compilers. */
33483 #ifdef __STDC__
33484 # include <limits.h>
33485 #else
33486 # include <assert.h>
33487 #endif
33489 #undef $ac_func
33491 /* Override any GCC internal prototype to avoid an error.
33492 Use char because int might match the return type of a GCC
33493 builtin and then its argument prototype would still apply. */
33494 #ifdef __cplusplus
33495 extern "C"
33496 #endif
33497 char $ac_func ();
33498 /* The GNU C library defines this for functions which it implements
33499 to always fail with ENOSYS. Some functions are actually named
33500 something starting with __ and the normal name is an alias. */
33501 #if defined __stub_$ac_func || defined __stub___$ac_func
33502 choke me
33503 #endif
33506 main ()
33508 return $ac_func ();
33510 return 0;
33512 _ACEOF
33513 rm -f conftest.$ac_objext conftest$ac_exeext
33514 if { (ac_try="$ac_link"
33515 case "(($ac_try" in
33516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33517 *) ac_try_echo=$ac_try;;
33518 esac
33519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33520 (eval "$ac_link") 2>conftest.er1
33521 ac_status=$?
33522 grep -v '^ *+' conftest.er1 >conftest.err
33523 rm -f conftest.er1
33524 cat conftest.err >&5
33525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526 (exit $ac_status); } && {
33527 test -z "$ac_c_werror_flag" ||
33528 test ! -s conftest.err
33529 } && test -s conftest$ac_exeext &&
33530 $as_test_x conftest$ac_exeext; then
33531 eval "$as_ac_var=yes"
33532 else
33533 echo "$as_me: failed program was:" >&5
33534 sed 's/^/| /' conftest.$ac_ext >&5
33536 eval "$as_ac_var=no"
33539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33540 conftest$ac_exeext conftest.$ac_ext
33542 ac_res=`eval echo '${'$as_ac_var'}'`
33543 { echo "$as_me:$LINENO: result: $ac_res" >&5
33544 echo "${ECHO_T}$ac_res" >&6; }
33545 if test `eval echo '${'$as_ac_var'}'` = yes; then
33546 cat >>confdefs.h <<_ACEOF
33547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33548 _ACEOF
33551 done
33554 if test "x$ac_cv_func_strerror_r" = "xyes"; then
33556 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
33557 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
33558 cat >conftest.$ac_ext <<_ACEOF
33559 /* confdefs.h. */
33560 _ACEOF
33561 cat confdefs.h >>conftest.$ac_ext
33562 cat >>conftest.$ac_ext <<_ACEOF
33563 /* end confdefs.h. */
33565 #undef _REENTRANT
33566 #include <string.h>
33567 _ACEOF
33568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33569 $EGREP "strerror_r" >/dev/null 2>&1; then
33571 { echo "$as_me:$LINENO: result: yes" >&5
33572 echo "${ECHO_T}yes" >&6; }
33573 else
33575 { echo "$as_me:$LINENO: result: no" >&5
33576 echo "${ECHO_T}no" >&6; }
33577 { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
33578 echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33579 cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h. */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h. */
33586 #undef _REENTRANT
33587 #define _REENTRANT
33588 #include <string.h>
33589 _ACEOF
33590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33591 $EGREP "strerror_r" >/dev/null 2>&1; then
33593 { echo "$as_me:$LINENO: result: yes" >&5
33594 echo "${ECHO_T}yes" >&6; }
33595 else
33596 { echo "$as_me:$LINENO: result: no" >&5
33597 echo "${ECHO_T}no" >&6; }
33599 cat >>confdefs.h <<\_ACEOF
33600 #define HAVE_NO_STRERROR_R_DECL 1
33601 _ACEOF
33605 rm -f conftest*
33608 rm -f conftest*
33610 { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
33611 echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
33612 if test "$cross_compiling" = yes; then
33613 cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h. */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33620 #include <features.h>
33621 #ifdef __GLIBC__
33623 #endif
33625 _ACEOF
33626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33627 $EGREP "yes" >/dev/null 2>&1; then
33628 GLIBC_STRERROR_R="1"
33630 cat >>confdefs.h <<\_ACEOF
33631 #define HAVE_GLIBC_STRERROR_R 1
33632 _ACEOF
33634 { echo "$as_me:$LINENO: result: yes" >&5
33635 echo "${ECHO_T}yes" >&6; }
33636 else
33637 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
33638 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
33641 rm -f conftest*
33643 else
33644 cat >conftest.$ac_ext <<_ACEOF
33645 /* confdefs.h. */
33646 _ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h. */
33651 #include <string.h>
33652 #include <errno.h>
33654 main () {
33655 char buffer[1024]; /* big enough to play with */
33656 char *string =
33657 strerror_r(EACCES, buffer, sizeof(buffer));
33658 /* this should've returned a string */
33659 if(!string || !string[0])
33660 return 99;
33661 return 0;
33664 _ACEOF
33665 rm -f conftest$ac_exeext
33666 if { (ac_try="$ac_link"
33667 case "(($ac_try" in
33668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669 *) ac_try_echo=$ac_try;;
33670 esac
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672 (eval "$ac_link") 2>&5
33673 ac_status=$?
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33676 { (case "(($ac_try" in
33677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33678 *) ac_try_echo=$ac_try;;
33679 esac
33680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33681 (eval "$ac_try") 2>&5
33682 ac_status=$?
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); }; }; then
33685 GLIBC_STRERROR_R="1"
33687 cat >>confdefs.h <<\_ACEOF
33688 #define HAVE_GLIBC_STRERROR_R 1
33689 _ACEOF
33691 { echo "$as_me:$LINENO: result: yes" >&5
33692 echo "${ECHO_T}yes" >&6; }
33693 else
33694 echo "$as_me: program exited with status $ac_status" >&5
33695 echo "$as_me: failed program was:" >&5
33696 sed 's/^/| /' conftest.$ac_ext >&5
33698 ( exit $ac_status )
33699 { echo "$as_me:$LINENO: result: no" >&5
33700 echo "${ECHO_T}no" >&6; }
33702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33707 if test -z "$GLIBC_STRERROR_R"; then
33709 { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
33710 echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
33711 if test "$cross_compiling" = yes; then
33712 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
33713 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
33715 else
33716 cat >conftest.$ac_ext <<_ACEOF
33717 /* confdefs.h. */
33718 _ACEOF
33719 cat confdefs.h >>conftest.$ac_ext
33720 cat >>conftest.$ac_ext <<_ACEOF
33721 /* end confdefs.h. */
33723 #include <string.h>
33724 #include <errno.h>
33726 main () {
33727 char buffer[1024]; /* big enough to play with */
33728 int error =
33729 strerror_r(EACCES, buffer, sizeof(buffer));
33730 /* This should've returned zero, and written an error string in the
33731 buffer.*/
33732 if(!buffer[0] || error)
33733 return 99;
33734 return 0;
33737 _ACEOF
33738 rm -f conftest$ac_exeext
33739 if { (ac_try="$ac_link"
33740 case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33743 esac
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_link") 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33749 { (case "(($ac_try" in
33750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751 *) ac_try_echo=$ac_try;;
33752 esac
33753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33754 (eval "$ac_try") 2>&5
33755 ac_status=$?
33756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757 (exit $ac_status); }; }; then
33759 cat >>confdefs.h <<\_ACEOF
33760 #define HAVE_POSIX_STRERROR_R 1
33761 _ACEOF
33763 { echo "$as_me:$LINENO: result: yes" >&5
33764 echo "${ECHO_T}yes" >&6; }
33765 else
33766 echo "$as_me: program exited with status $ac_status" >&5
33767 echo "$as_me: failed program was:" >&5
33768 sed 's/^/| /' conftest.$ac_ext >&5
33770 ( exit $ac_status )
33771 { echo "$as_me:$LINENO: result: no" >&5
33772 echo "${ECHO_T}no" >&6; }
33774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33783 checkfor_gmtime_r="yes"
33788 if test "x$RECENTAIX" = "xyes"; then
33791 cat >>confdefs.h <<\_ACEOF
33792 #define _THREAD_SAFE 1
33793 _ACEOF
33798 for ac_func in localtime_r
33800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33805 else
33806 cat >conftest.$ac_ext <<_ACEOF
33807 /* confdefs.h. */
33808 _ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33814 #define $ac_func innocuous_$ac_func
33816 /* System header to define __stub macros and hopefully few prototypes,
33817 which can conflict with char $ac_func (); below.
33818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33819 <limits.h> exists even on freestanding compilers. */
33821 #ifdef __STDC__
33822 # include <limits.h>
33823 #else
33824 # include <assert.h>
33825 #endif
33827 #undef $ac_func
33829 /* Override any GCC internal prototype to avoid an error.
33830 Use char because int might match the return type of a GCC
33831 builtin and then its argument prototype would still apply. */
33832 #ifdef __cplusplus
33833 extern "C"
33834 #endif
33835 char $ac_func ();
33836 /* The GNU C library defines this for functions which it implements
33837 to always fail with ENOSYS. Some functions are actually named
33838 something starting with __ and the normal name is an alias. */
33839 #if defined __stub_$ac_func || defined __stub___$ac_func
33840 choke me
33841 #endif
33844 main ()
33846 return $ac_func ();
33848 return 0;
33850 _ACEOF
33851 rm -f conftest.$ac_objext conftest$ac_exeext
33852 if { (ac_try="$ac_link"
33853 case "(($ac_try" in
33854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855 *) ac_try_echo=$ac_try;;
33856 esac
33857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33858 (eval "$ac_link") 2>conftest.er1
33859 ac_status=$?
33860 grep -v '^ *+' conftest.er1 >conftest.err
33861 rm -f conftest.er1
33862 cat conftest.err >&5
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && {
33865 test -z "$ac_c_werror_flag" ||
33866 test ! -s conftest.err
33867 } && test -s conftest$ac_exeext &&
33868 $as_test_x conftest$ac_exeext; then
33869 eval "$as_ac_var=yes"
33870 else
33871 echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33874 eval "$as_ac_var=no"
33877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33878 conftest$ac_exeext conftest.$ac_ext
33880 ac_res=`eval echo '${'$as_ac_var'}'`
33881 { echo "$as_me:$LINENO: result: $ac_res" >&5
33882 echo "${ECHO_T}$ac_res" >&6; }
33883 if test `eval echo '${'$as_ac_var'}'` = yes; then
33884 cat >>confdefs.h <<_ACEOF
33885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33886 _ACEOF
33888 { echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
33889 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6; }
33890 cat >conftest.$ac_ext <<_ACEOF
33891 /* confdefs.h. */
33892 _ACEOF
33893 cat confdefs.h >>conftest.$ac_ext
33894 cat >>conftest.$ac_ext <<_ACEOF
33895 /* end confdefs.h. */
33897 #undef _REENTRANT
33898 #include <time.h>
33899 _ACEOF
33900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33901 $EGREP "localtime_r" >/dev/null 2>&1; then
33903 { echo "$as_me:$LINENO: result: yes" >&5
33904 echo "${ECHO_T}yes" >&6; }
33905 else
33907 { echo "$as_me:$LINENO: result: no" >&5
33908 echo "${ECHO_T}no" >&6; }
33909 { echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
33910 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
33911 cat >conftest.$ac_ext <<_ACEOF
33912 /* confdefs.h. */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h. */
33918 #undef _REENTRANT
33919 #define _REENTRANT
33920 #include <time.h>
33921 _ACEOF
33922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33923 $EGREP "localtime_r" >/dev/null 2>&1; then
33925 { echo "$as_me:$LINENO: result: yes" >&5
33926 echo "${ECHO_T}yes" >&6; }
33927 else
33928 { echo "$as_me:$LINENO: result: no" >&5
33929 echo "${ECHO_T}no" >&6; }
33931 rm -f conftest*
33934 rm -f conftest*
33937 done
33943 for ac_func in strerror_r
33945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33949 echo $ECHO_N "(cached) $ECHO_C" >&6
33950 else
33951 cat >conftest.$ac_ext <<_ACEOF
33952 /* confdefs.h. */
33953 _ACEOF
33954 cat confdefs.h >>conftest.$ac_ext
33955 cat >>conftest.$ac_ext <<_ACEOF
33956 /* end confdefs.h. */
33957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33959 #define $ac_func innocuous_$ac_func
33961 /* System header to define __stub macros and hopefully few prototypes,
33962 which can conflict with char $ac_func (); below.
33963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33964 <limits.h> exists even on freestanding compilers. */
33966 #ifdef __STDC__
33967 # include <limits.h>
33968 #else
33969 # include <assert.h>
33970 #endif
33972 #undef $ac_func
33974 /* Override any GCC internal prototype to avoid an error.
33975 Use char because int might match the return type of a GCC
33976 builtin and then its argument prototype would still apply. */
33977 #ifdef __cplusplus
33978 extern "C"
33979 #endif
33980 char $ac_func ();
33981 /* The GNU C library defines this for functions which it implements
33982 to always fail with ENOSYS. Some functions are actually named
33983 something starting with __ and the normal name is an alias. */
33984 #if defined __stub_$ac_func || defined __stub___$ac_func
33985 choke me
33986 #endif
33989 main ()
33991 return $ac_func ();
33993 return 0;
33995 _ACEOF
33996 rm -f conftest.$ac_objext conftest$ac_exeext
33997 if { (ac_try="$ac_link"
33998 case "(($ac_try" in
33999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000 *) ac_try_echo=$ac_try;;
34001 esac
34002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003 (eval "$ac_link") 2>conftest.er1
34004 ac_status=$?
34005 grep -v '^ *+' conftest.er1 >conftest.err
34006 rm -f conftest.er1
34007 cat conftest.err >&5
34008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009 (exit $ac_status); } && {
34010 test -z "$ac_c_werror_flag" ||
34011 test ! -s conftest.err
34012 } && test -s conftest$ac_exeext &&
34013 $as_test_x conftest$ac_exeext; then
34014 eval "$as_ac_var=yes"
34015 else
34016 echo "$as_me: failed program was:" >&5
34017 sed 's/^/| /' conftest.$ac_ext >&5
34019 eval "$as_ac_var=no"
34022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34023 conftest$ac_exeext conftest.$ac_ext
34025 ac_res=`eval echo '${'$as_ac_var'}'`
34026 { echo "$as_me:$LINENO: result: $ac_res" >&5
34027 echo "${ECHO_T}$ac_res" >&6; }
34028 if test `eval echo '${'$as_ac_var'}'` = yes; then
34029 cat >>confdefs.h <<_ACEOF
34030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031 _ACEOF
34034 done
34037 if test "x$ac_cv_func_strerror_r" = "xyes"; then
34039 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
34040 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
34041 cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h. */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h. */
34048 #undef _REENTRANT
34049 #include <string.h>
34050 _ACEOF
34051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34052 $EGREP "strerror_r" >/dev/null 2>&1; then
34054 { echo "$as_me:$LINENO: result: yes" >&5
34055 echo "${ECHO_T}yes" >&6; }
34056 else
34058 { echo "$as_me:$LINENO: result: no" >&5
34059 echo "${ECHO_T}no" >&6; }
34060 { echo "$as_me:$LINENO: checking whether strerror_r with -D_REENTRANT is declared" >&5
34061 echo $ECHO_N "checking whether strerror_r with -D_REENTRANT is declared... $ECHO_C" >&6; }
34062 cat >conftest.$ac_ext <<_ACEOF
34063 /* confdefs.h. */
34064 _ACEOF
34065 cat confdefs.h >>conftest.$ac_ext
34066 cat >>conftest.$ac_ext <<_ACEOF
34067 /* end confdefs.h. */
34069 #undef _REENTRANT
34070 #define _REENTRANT
34071 #include <string.h>
34072 _ACEOF
34073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34074 $EGREP "strerror_r" >/dev/null 2>&1; then
34076 { echo "$as_me:$LINENO: result: yes" >&5
34077 echo "${ECHO_T}yes" >&6; }
34078 else
34079 { echo "$as_me:$LINENO: result: no" >&5
34080 echo "${ECHO_T}no" >&6; }
34082 cat >>confdefs.h <<\_ACEOF
34083 #define HAVE_NO_STRERROR_R_DECL 1
34084 _ACEOF
34088 rm -f conftest*
34091 rm -f conftest*
34093 { echo "$as_me:$LINENO: checking for a glibc strerror_r API" >&5
34094 echo $ECHO_N "checking for a glibc strerror_r API... $ECHO_C" >&6; }
34095 if test "$cross_compiling" = yes; then
34096 cat >conftest.$ac_ext <<_ACEOF
34097 /* confdefs.h. */
34098 _ACEOF
34099 cat confdefs.h >>conftest.$ac_ext
34100 cat >>conftest.$ac_ext <<_ACEOF
34101 /* end confdefs.h. */
34103 #include <features.h>
34104 #ifdef __GLIBC__
34106 #endif
34108 _ACEOF
34109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34110 $EGREP "yes" >/dev/null 2>&1; then
34111 GLIBC_STRERROR_R="1"
34113 cat >>confdefs.h <<\_ACEOF
34114 #define HAVE_GLIBC_STRERROR_R 1
34115 _ACEOF
34117 { echo "$as_me:$LINENO: result: yes" >&5
34118 echo "${ECHO_T}yes" >&6; }
34119 else
34120 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
34121 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
34124 rm -f conftest*
34126 else
34127 cat >conftest.$ac_ext <<_ACEOF
34128 /* confdefs.h. */
34129 _ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h. */
34134 #include <string.h>
34135 #include <errno.h>
34137 main () {
34138 char buffer[1024]; /* big enough to play with */
34139 char *string =
34140 strerror_r(EACCES, buffer, sizeof(buffer));
34141 /* this should've returned a string */
34142 if(!string || !string[0])
34143 return 99;
34144 return 0;
34147 _ACEOF
34148 rm -f conftest$ac_exeext
34149 if { (ac_try="$ac_link"
34150 case "(($ac_try" in
34151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34152 *) ac_try_echo=$ac_try;;
34153 esac
34154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34155 (eval "$ac_link") 2>&5
34156 ac_status=$?
34157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34159 { (case "(($ac_try" in
34160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34161 *) ac_try_echo=$ac_try;;
34162 esac
34163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34164 (eval "$ac_try") 2>&5
34165 ac_status=$?
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); }; }; then
34168 GLIBC_STRERROR_R="1"
34170 cat >>confdefs.h <<\_ACEOF
34171 #define HAVE_GLIBC_STRERROR_R 1
34172 _ACEOF
34174 { echo "$as_me:$LINENO: result: yes" >&5
34175 echo "${ECHO_T}yes" >&6; }
34176 else
34177 echo "$as_me: program exited with status $ac_status" >&5
34178 echo "$as_me: failed program was:" >&5
34179 sed 's/^/| /' conftest.$ac_ext >&5
34181 ( exit $ac_status )
34182 { echo "$as_me:$LINENO: result: no" >&5
34183 echo "${ECHO_T}no" >&6; }
34185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34190 if test -z "$GLIBC_STRERROR_R"; then
34192 { echo "$as_me:$LINENO: checking for a POSIX strerror_r API" >&5
34193 echo $ECHO_N "checking for a POSIX strerror_r API... $ECHO_C" >&6; }
34194 if test "$cross_compiling" = yes; then
34195 { echo "$as_me:$LINENO: cannot determine strerror_r() style: edit lib/config.h manually!" >&5
34196 echo "$as_me: cannot determine strerror_r() style: edit lib/config.h manually!" >&6;}
34198 else
34199 cat >conftest.$ac_ext <<_ACEOF
34200 /* confdefs.h. */
34201 _ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34206 #include <string.h>
34207 #include <errno.h>
34209 main () {
34210 char buffer[1024]; /* big enough to play with */
34211 int error =
34212 strerror_r(EACCES, buffer, sizeof(buffer));
34213 /* This should've returned zero, and written an error string in the
34214 buffer.*/
34215 if(!buffer[0] || error)
34216 return 99;
34217 return 0;
34220 _ACEOF
34221 rm -f conftest$ac_exeext
34222 if { (ac_try="$ac_link"
34223 case "(($ac_try" in
34224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34225 *) ac_try_echo=$ac_try;;
34226 esac
34227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34228 (eval "$ac_link") 2>&5
34229 ac_status=$?
34230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34232 { (case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34235 esac
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_try") 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; }; then
34242 cat >>confdefs.h <<\_ACEOF
34243 #define HAVE_POSIX_STRERROR_R 1
34244 _ACEOF
34246 { echo "$as_me:$LINENO: result: yes" >&5
34247 echo "${ECHO_T}yes" >&6; }
34248 else
34249 echo "$as_me: program exited with status $ac_status" >&5
34250 echo "$as_me: failed program was:" >&5
34251 sed 's/^/| /' conftest.$ac_ext >&5
34253 ( exit $ac_status )
34254 { echo "$as_me:$LINENO: result: no" >&5
34255 echo "${ECHO_T}no" >&6; }
34257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34266 checkfor_gmtime_r="yes"
34269 if test x$cross_compiling != xyes; then
34271 if test x$checkfor_gmtime_r = xyes; then
34274 { echo "$as_me:$LINENO: checking if gmtime_r exists and works" >&5
34275 echo $ECHO_N "checking if gmtime_r exists and works... $ECHO_C" >&6; }
34276 if test "$cross_compiling" = yes; then
34277 echo "hej"
34279 else
34280 cat >conftest.$ac_ext <<_ACEOF
34282 #include <time.h>
34283 int main(void)
34285 time_t local = 1170352587;
34286 struct tm *gmt;
34287 struct tm keeper;
34288 putenv("TZ=CST6CDT");
34289 tzset();
34290 gmt = gmtime_r(&local, &keeper);
34291 if(gmt) {
34292 return 0;
34294 return 1; /* failure */
34297 _ACEOF
34298 rm -f conftest$ac_exeext
34299 if { (ac_try="$ac_link"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34303 esac
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_link") 2>&5
34306 ac_status=$?
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34309 { (case "(($ac_try" in
34310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34311 *) ac_try_echo=$ac_try;;
34312 esac
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314 (eval "$ac_try") 2>&5
34315 ac_status=$?
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); }; }; then
34318 { echo "$as_me:$LINENO: result: yes" >&5
34319 echo "${ECHO_T}yes" >&6; }
34321 cat >>confdefs.h <<\_ACEOF
34322 #define HAVE_GMTIME_R 1
34323 _ACEOF
34326 else
34327 echo "$as_me: program exited with status $ac_status" >&5
34328 echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34331 ( exit $ac_status )
34332 { echo "$as_me:$LINENO: result: no" >&5
34333 echo "${ECHO_T}no" >&6; }
34336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34341 else
34343 for ac_func in gmtime_r
34345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34349 echo $ECHO_N "(cached) $ECHO_C" >&6
34350 else
34351 cat >conftest.$ac_ext <<_ACEOF
34352 /* confdefs.h. */
34353 _ACEOF
34354 cat confdefs.h >>conftest.$ac_ext
34355 cat >>conftest.$ac_ext <<_ACEOF
34356 /* end confdefs.h. */
34357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34359 #define $ac_func innocuous_$ac_func
34361 /* System header to define __stub macros and hopefully few prototypes,
34362 which can conflict with char $ac_func (); below.
34363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34364 <limits.h> exists even on freestanding compilers. */
34366 #ifdef __STDC__
34367 # include <limits.h>
34368 #else
34369 # include <assert.h>
34370 #endif
34372 #undef $ac_func
34374 /* Override any GCC internal prototype to avoid an error.
34375 Use char because int might match the return type of a GCC
34376 builtin and then its argument prototype would still apply. */
34377 #ifdef __cplusplus
34378 extern "C"
34379 #endif
34380 char $ac_func ();
34381 /* The GNU C library defines this for functions which it implements
34382 to always fail with ENOSYS. Some functions are actually named
34383 something starting with __ and the normal name is an alias. */
34384 #if defined __stub_$ac_func || defined __stub___$ac_func
34385 choke me
34386 #endif
34389 main ()
34391 return $ac_func ();
34393 return 0;
34395 _ACEOF
34396 rm -f conftest.$ac_objext conftest$ac_exeext
34397 if { (ac_try="$ac_link"
34398 case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34401 esac
34402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_link") 2>conftest.er1
34404 ac_status=$?
34405 grep -v '^ *+' conftest.er1 >conftest.err
34406 rm -f conftest.er1
34407 cat conftest.err >&5
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); } && {
34410 test -z "$ac_c_werror_flag" ||
34411 test ! -s conftest.err
34412 } && test -s conftest$ac_exeext &&
34413 $as_test_x conftest$ac_exeext; then
34414 eval "$as_ac_var=yes"
34415 else
34416 echo "$as_me: failed program was:" >&5
34417 sed 's/^/| /' conftest.$ac_ext >&5
34419 eval "$as_ac_var=no"
34422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34423 conftest$ac_exeext conftest.$ac_ext
34425 ac_res=`eval echo '${'$as_ac_var'}'`
34426 { echo "$as_me:$LINENO: result: $ac_res" >&5
34427 echo "${ECHO_T}$ac_res" >&6; }
34428 if test `eval echo '${'$as_ac_var'}'` = yes; then
34429 cat >>confdefs.h <<_ACEOF
34430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34431 _ACEOF
34434 done
34440 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
34441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
34442 if test "${ac_cv_header_stdc+set}" = set; then
34443 echo $ECHO_N "(cached) $ECHO_C" >&6
34444 else
34445 cat >conftest.$ac_ext <<_ACEOF
34446 /* confdefs.h. */
34447 _ACEOF
34448 cat confdefs.h >>conftest.$ac_ext
34449 cat >>conftest.$ac_ext <<_ACEOF
34450 /* end confdefs.h. */
34451 #include <stdlib.h>
34452 #include <stdarg.h>
34453 #include <string.h>
34454 #include <float.h>
34457 main ()
34461 return 0;
34463 _ACEOF
34464 rm -f conftest.$ac_objext
34465 if { (ac_try="$ac_compile"
34466 case "(($ac_try" in
34467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468 *) ac_try_echo=$ac_try;;
34469 esac
34470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471 (eval "$ac_compile") 2>conftest.er1
34472 ac_status=$?
34473 grep -v '^ *+' conftest.er1 >conftest.err
34474 rm -f conftest.er1
34475 cat conftest.err >&5
34476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477 (exit $ac_status); } && {
34478 test -z "$ac_c_werror_flag" ||
34479 test ! -s conftest.err
34480 } && test -s conftest.$ac_objext; then
34481 ac_cv_header_stdc=yes
34482 else
34483 echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34486 ac_cv_header_stdc=no
34489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34491 if test $ac_cv_header_stdc = yes; then
34492 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
34493 cat >conftest.$ac_ext <<_ACEOF
34494 /* confdefs.h. */
34495 _ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h. */
34499 #include <string.h>
34501 _ACEOF
34502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34503 $EGREP "memchr" >/dev/null 2>&1; then
34505 else
34506 ac_cv_header_stdc=no
34508 rm -f conftest*
34512 if test $ac_cv_header_stdc = yes; then
34513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
34514 cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h. */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520 #include <stdlib.h>
34522 _ACEOF
34523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34524 $EGREP "free" >/dev/null 2>&1; then
34526 else
34527 ac_cv_header_stdc=no
34529 rm -f conftest*
34533 if test $ac_cv_header_stdc = yes; then
34534 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
34535 if test "$cross_compiling" = yes; then
34537 else
34538 cat >conftest.$ac_ext <<_ACEOF
34539 /* confdefs.h. */
34540 _ACEOF
34541 cat confdefs.h >>conftest.$ac_ext
34542 cat >>conftest.$ac_ext <<_ACEOF
34543 /* end confdefs.h. */
34544 #include <ctype.h>
34545 #include <stdlib.h>
34546 #if ((' ' & 0x0FF) == 0x020)
34547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
34548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
34549 #else
34550 # define ISLOWER(c) \
34551 (('a' <= (c) && (c) <= 'i') \
34552 || ('j' <= (c) && (c) <= 'r') \
34553 || ('s' <= (c) && (c) <= 'z'))
34554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
34555 #endif
34557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
34559 main ()
34561 int i;
34562 for (i = 0; i < 256; i++)
34563 if (XOR (islower (i), ISLOWER (i))
34564 || toupper (i) != TOUPPER (i))
34565 return 2;
34566 return 0;
34568 _ACEOF
34569 rm -f conftest$ac_exeext
34570 if { (ac_try="$ac_link"
34571 case "(($ac_try" in
34572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34573 *) ac_try_echo=$ac_try;;
34574 esac
34575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34576 (eval "$ac_link") 2>&5
34577 ac_status=$?
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34580 { (case "(($ac_try" in
34581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34583 esac
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585 (eval "$ac_try") 2>&5
34586 ac_status=$?
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); }; }; then
34590 else
34591 echo "$as_me: program exited with status $ac_status" >&5
34592 echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34595 ( exit $ac_status )
34596 ac_cv_header_stdc=no
34598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34604 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
34605 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
34606 if test $ac_cv_header_stdc = yes; then
34608 cat >>confdefs.h <<\_ACEOF
34609 #define STDC_HEADERS 1
34610 _ACEOF
34616 { echo "$as_me:$LINENO: checking for malloc.h" >&5
34617 echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6; }
34618 if test "${ac_cv_header_malloc_h+set}" = set; then
34619 echo $ECHO_N "(cached) $ECHO_C" >&6
34620 else
34622 cat >conftest.$ac_ext <<_ACEOF
34624 /* confdefs.h. */
34625 _ACEOF
34626 cat confdefs.h >>conftest.$ac_ext
34627 cat >>conftest.$ac_ext <<_ACEOF
34628 /* end confdefs.h. */
34630 #include <malloc.h>
34633 main ()
34636 void *p = malloc(10);
34637 void *q = calloc(10,10);
34638 free(p);
34639 free(q);
34642 return 0;
34645 _ACEOF
34646 rm -f conftest.$ac_objext
34647 if { (ac_try="$ac_compile"
34648 case "(($ac_try" in
34649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34650 *) ac_try_echo=$ac_try;;
34651 esac
34652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34653 (eval "$ac_compile") 2>conftest.er1
34654 ac_status=$?
34655 grep -v '^ *+' conftest.er1 >conftest.err
34656 rm -f conftest.er1
34657 cat conftest.err >&5
34658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && {
34660 test -z "$ac_c_werror_flag" ||
34661 test ! -s conftest.err
34662 } && test -s conftest.$ac_objext; then
34664 ac_cv_header_malloc_h="yes"
34666 else
34667 echo "$as_me: failed program was:" >&5
34668 sed 's/^/| /' conftest.$ac_ext >&5
34671 ac_cv_header_malloc_h="no"
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34678 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
34679 echo "${ECHO_T}$ac_cv_header_malloc_h" >&6; }
34680 if test "$ac_cv_header_malloc_h" = "yes"; then
34682 cat >>confdefs.h <<_ACEOF
34683 #define HAVE_MALLOC_H 1
34684 _ACEOF
34687 cat >conftest.$ac_ext <<_ACEOF
34689 /* confdefs.h. */
34690 _ACEOF
34691 cat confdefs.h >>conftest.$ac_ext
34692 cat >>conftest.$ac_ext <<_ACEOF
34693 /* end confdefs.h. */
34695 #include <stdlib.h>
34698 main ()
34701 void *p = malloc(10);
34702 void *q = calloc(10,10);
34703 free(p);
34704 free(q);
34707 return 0;
34710 _ACEOF
34711 rm -f conftest.$ac_objext
34712 if { (ac_try="$ac_compile"
34713 case "(($ac_try" in
34714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34715 *) ac_try_echo=$ac_try;;
34716 esac
34717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34718 (eval "$ac_compile") 2>conftest.er1
34719 ac_status=$?
34720 grep -v '^ *+' conftest.er1 >conftest.err
34721 rm -f conftest.er1
34722 cat conftest.err >&5
34723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724 (exit $ac_status); } && {
34725 test -z "$ac_c_werror_flag" ||
34726 test ! -s conftest.err
34727 } && test -s conftest.$ac_objext; then
34729 curl_cv_need_header_malloc_h="no"
34731 else
34732 echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34736 curl_cv_need_header_malloc_h="yes"
34740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34742 case "$curl_cv_need_header_malloc_h" in
34743 yes)
34745 cat >>confdefs.h <<_ACEOF
34746 #define NEED_MALLOC_H 1
34747 _ACEOF
34750 esac
34792 for ac_header in sys/types.h \
34793 sys/time.h \
34794 sys/select.h \
34795 sys/socket.h \
34796 sys/ioctl.h \
34797 assert.h \
34798 unistd.h \
34799 stdlib.h \
34800 limits.h \
34801 arpa/inet.h \
34802 net/if.h \
34803 netinet/in.h \
34804 sys/un.h \
34805 netinet/tcp.h \
34806 netdb.h \
34807 sys/sockio.h \
34808 sys/stat.h \
34809 sys/param.h \
34810 termios.h \
34811 termio.h \
34812 sgtty.h \
34813 fcntl.h \
34814 alloca.h \
34815 time.h \
34816 io.h \
34817 pwd.h \
34818 utime.h \
34819 sys/utime.h \
34820 sys/poll.h \
34821 poll.h \
34822 sys/resource.h \
34823 libgen.h \
34824 locale.h \
34825 errno.h \
34826 stdbool.h \
34827 arpa/tftp.h \
34828 sys/filio.h \
34829 setjmp.h
34831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34836 else
34837 cat >conftest.$ac_ext <<_ACEOF
34838 /* confdefs.h. */
34839 _ACEOF
34840 cat confdefs.h >>conftest.$ac_ext
34841 cat >>conftest.$ac_ext <<_ACEOF
34842 /* end confdefs.h. */
34844 #ifdef HAVE_SYS_TYPES_H
34845 #include <sys/types.h>
34846 #endif
34847 #ifdef HAVE_SYS_TIME_H
34848 #include <sys/time.h>
34849 #endif
34850 #ifdef HAVE_SYS_SELECT_H
34851 #include <sys/select.h>
34852 #endif
34853 #ifdef HAVE_SYS_SOCKET_H
34854 #include <sys/socket.h>
34855 #endif
34856 #ifdef HAVE_NETINET_IN_H
34857 #include <netinet/in.h>
34858 #endif
34859 #ifdef HAVE_SYS_UN_H
34860 #include <sys/un.h>
34861 #endif
34865 #include <$ac_header>
34866 _ACEOF
34867 rm -f conftest.$ac_objext
34868 if { (ac_try="$ac_compile"
34869 case "(($ac_try" in
34870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34871 *) ac_try_echo=$ac_try;;
34872 esac
34873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34874 (eval "$ac_compile") 2>conftest.er1
34875 ac_status=$?
34876 grep -v '^ *+' conftest.er1 >conftest.err
34877 rm -f conftest.er1
34878 cat conftest.err >&5
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); } && {
34881 test -z "$ac_c_werror_flag" ||
34882 test ! -s conftest.err
34883 } && test -s conftest.$ac_objext; then
34884 eval "$as_ac_Header=yes"
34885 else
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 eval "$as_ac_Header=no"
34892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34894 ac_res=`eval echo '${'$as_ac_Header'}'`
34895 { echo "$as_me:$LINENO: result: $ac_res" >&5
34896 echo "${ECHO_T}$ac_res" >&6; }
34897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34898 cat >>confdefs.h <<_ACEOF
34899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34900 _ACEOF
34904 done
34907 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34908 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34909 if test "${ac_cv_c_const+set}" = set; then
34910 echo $ECHO_N "(cached) $ECHO_C" >&6
34911 else
34912 cat >conftest.$ac_ext <<_ACEOF
34913 /* confdefs.h. */
34914 _ACEOF
34915 cat confdefs.h >>conftest.$ac_ext
34916 cat >>conftest.$ac_ext <<_ACEOF
34917 /* end confdefs.h. */
34920 main ()
34922 /* FIXME: Include the comments suggested by Paul. */
34923 #ifndef __cplusplus
34924 /* Ultrix mips cc rejects this. */
34925 typedef int charset[2];
34926 const charset cs;
34927 /* SunOS 4.1.1 cc rejects this. */
34928 char const *const *pcpcc;
34929 char **ppc;
34930 /* NEC SVR4.0.2 mips cc rejects this. */
34931 struct point {int x, y;};
34932 static struct point const zero = {0,0};
34933 /* AIX XL C 1.02.0.0 rejects this.
34934 It does not let you subtract one const X* pointer from another in
34935 an arm of an if-expression whose if-part is not a constant
34936 expression */
34937 const char *g = "string";
34938 pcpcc = &g + (g ? g-g : 0);
34939 /* HPUX 7.0 cc rejects these. */
34940 ++pcpcc;
34941 ppc = (char**) pcpcc;
34942 pcpcc = (char const *const *) ppc;
34943 { /* SCO 3.2v4 cc rejects this. */
34944 char *t;
34945 char const *s = 0 ? (char *) 0 : (char const *) 0;
34947 *t++ = 0;
34948 if (s) return 0;
34950 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34951 int x[] = {25, 17};
34952 const int *foo = &x[0];
34953 ++foo;
34955 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34956 typedef const int *iptr;
34957 iptr p = 0;
34958 ++p;
34960 { /* AIX XL C 1.02.0.0 rejects this saying
34961 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34962 struct s { int j; const int *ap[3]; };
34963 struct s *b; b->j = 5;
34965 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34966 const int foo = 10;
34967 if (!foo) return 0;
34969 return !cs[0] && !zero.x;
34970 #endif
34973 return 0;
34975 _ACEOF
34976 rm -f conftest.$ac_objext
34977 if { (ac_try="$ac_compile"
34978 case "(($ac_try" in
34979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34980 *) ac_try_echo=$ac_try;;
34981 esac
34982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34983 (eval "$ac_compile") 2>conftest.er1
34984 ac_status=$?
34985 grep -v '^ *+' conftest.er1 >conftest.err
34986 rm -f conftest.er1
34987 cat conftest.err >&5
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); } && {
34990 test -z "$ac_c_werror_flag" ||
34991 test ! -s conftest.err
34992 } && test -s conftest.$ac_objext; then
34993 ac_cv_c_const=yes
34994 else
34995 echo "$as_me: failed program was:" >&5
34996 sed 's/^/| /' conftest.$ac_ext >&5
34998 ac_cv_c_const=no
35001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35003 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35004 echo "${ECHO_T}$ac_cv_c_const" >&6; }
35005 if test $ac_cv_c_const = no; then
35007 cat >>confdefs.h <<\_ACEOF
35008 #define const
35009 _ACEOF
35014 { echo "$as_me:$LINENO: checking for compiler support of C99 variadic macro style" >&5
35015 echo $ECHO_N "checking for compiler support of C99 variadic macro style... $ECHO_C" >&6; }
35016 if test "${curl_cv_variadic_macros_c99+set}" = set; then
35017 echo $ECHO_N "(cached) $ECHO_C" >&6
35018 else
35020 cat >conftest.$ac_ext <<_ACEOF
35022 /* confdefs.h. */
35023 _ACEOF
35024 cat confdefs.h >>conftest.$ac_ext
35025 cat >>conftest.$ac_ext <<_ACEOF
35026 /* end confdefs.h. */
35028 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
35029 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
35030 int fun3(int arg1, int arg2, int arg3);
35031 int fun2(int arg1, int arg2);
35032 int fun3(int arg1, int arg2, int arg3)
35033 { return arg1 + arg2 + arg3; }
35034 int fun2(int arg1, int arg2)
35035 { return arg1 + arg2; }
35038 main ()
35041 int res3 = c99_vmacro3(1, 2, 3);
35042 int res2 = c99_vmacro2(1, 2);
35045 return 0;
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053 *) ac_try_echo=$ac_try;;
35054 esac
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_compile") 2>conftest.er1
35057 ac_status=$?
35058 grep -v '^ *+' conftest.er1 >conftest.err
35059 rm -f conftest.er1
35060 cat conftest.err >&5
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } && {
35063 test -z "$ac_c_werror_flag" ||
35064 test ! -s conftest.err
35065 } && test -s conftest.$ac_objext; then
35067 curl_cv_variadic_macros_c99="yes"
35069 else
35070 echo "$as_me: failed program was:" >&5
35071 sed 's/^/| /' conftest.$ac_ext >&5
35074 curl_cv_variadic_macros_c99="no"
35078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35081 { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_c99" >&5
35082 echo "${ECHO_T}$curl_cv_variadic_macros_c99" >&6; }
35083 case "$curl_cv_variadic_macros_c99" in
35084 yes)
35086 cat >>confdefs.h <<_ACEOF
35087 #define HAVE_VARIADIC_MACROS_C99 1
35088 _ACEOF
35091 esac
35092 { echo "$as_me:$LINENO: checking for compiler support of old gcc variadic macro style" >&5
35093 echo $ECHO_N "checking for compiler support of old gcc variadic macro style... $ECHO_C" >&6; }
35094 if test "${curl_cv_variadic_macros_gcc+set}" = set; then
35095 echo $ECHO_N "(cached) $ECHO_C" >&6
35096 else
35098 cat >conftest.$ac_ext <<_ACEOF
35100 /* confdefs.h. */
35101 _ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h. */
35106 #define gcc_vmacro3(first, args...) fun3(first, args)
35107 #define gcc_vmacro2(first, args...) fun2(first, args)
35108 int fun3(int arg1, int arg2, int arg3);
35109 int fun2(int arg1, int arg2);
35110 int fun3(int arg1, int arg2, int arg3)
35111 { return arg1 + arg2 + arg3; }
35112 int fun2(int arg1, int arg2)
35113 { return arg1 + arg2; }
35116 main ()
35119 int res3 = gcc_vmacro3(1, 2, 3);
35120 int res2 = gcc_vmacro2(1, 2);
35123 return 0;
35126 _ACEOF
35127 rm -f conftest.$ac_objext
35128 if { (ac_try="$ac_compile"
35129 case "(($ac_try" in
35130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35131 *) ac_try_echo=$ac_try;;
35132 esac
35133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35134 (eval "$ac_compile") 2>conftest.er1
35135 ac_status=$?
35136 grep -v '^ *+' conftest.er1 >conftest.err
35137 rm -f conftest.er1
35138 cat conftest.err >&5
35139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140 (exit $ac_status); } && {
35141 test -z "$ac_c_werror_flag" ||
35142 test ! -s conftest.err
35143 } && test -s conftest.$ac_objext; then
35145 curl_cv_variadic_macros_gcc="yes"
35147 else
35148 echo "$as_me: failed program was:" >&5
35149 sed 's/^/| /' conftest.$ac_ext >&5
35152 curl_cv_variadic_macros_gcc="no"
35156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35159 { echo "$as_me:$LINENO: result: $curl_cv_variadic_macros_gcc" >&5
35160 echo "${ECHO_T}$curl_cv_variadic_macros_gcc" >&6; }
35161 case "$curl_cv_variadic_macros_gcc" in
35162 yes)
35164 cat >>confdefs.h <<_ACEOF
35165 #define HAVE_VARIADIC_MACROS_GCC 1
35166 _ACEOF
35169 esac
35171 { echo "$as_me:$LINENO: checking for size_t" >&5
35172 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35173 if test "${ac_cv_type_size_t+set}" = set; then
35174 echo $ECHO_N "(cached) $ECHO_C" >&6
35175 else
35176 cat >conftest.$ac_ext <<_ACEOF
35177 /* confdefs.h. */
35178 _ACEOF
35179 cat confdefs.h >>conftest.$ac_ext
35180 cat >>conftest.$ac_ext <<_ACEOF
35181 /* end confdefs.h. */
35182 $ac_includes_default
35183 typedef size_t ac__type_new_;
35185 main ()
35187 if ((ac__type_new_ *) 0)
35188 return 0;
35189 if (sizeof (ac__type_new_))
35190 return 0;
35192 return 0;
35194 _ACEOF
35195 rm -f conftest.$ac_objext
35196 if { (ac_try="$ac_compile"
35197 case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35200 esac
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_compile") 2>conftest.er1
35203 ac_status=$?
35204 grep -v '^ *+' conftest.er1 >conftest.err
35205 rm -f conftest.er1
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } && {
35209 test -z "$ac_c_werror_flag" ||
35210 test ! -s conftest.err
35211 } && test -s conftest.$ac_objext; then
35212 ac_cv_type_size_t=yes
35213 else
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35217 ac_cv_type_size_t=no
35220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35222 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35223 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35224 if test $ac_cv_type_size_t = yes; then
35226 else
35228 cat >>confdefs.h <<_ACEOF
35229 #define size_t unsigned int
35230 _ACEOF
35234 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
35235 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
35236 if test "${ac_cv_header_time+set}" = set; then
35237 echo $ECHO_N "(cached) $ECHO_C" >&6
35238 else
35239 cat >conftest.$ac_ext <<_ACEOF
35240 /* confdefs.h. */
35241 _ACEOF
35242 cat confdefs.h >>conftest.$ac_ext
35243 cat >>conftest.$ac_ext <<_ACEOF
35244 /* end confdefs.h. */
35245 #include <sys/types.h>
35246 #include <sys/time.h>
35247 #include <time.h>
35250 main ()
35252 if ((struct tm *) 0)
35253 return 0;
35255 return 0;
35257 _ACEOF
35258 rm -f conftest.$ac_objext
35259 if { (ac_try="$ac_compile"
35260 case "(($ac_try" in
35261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35262 *) ac_try_echo=$ac_try;;
35263 esac
35264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35265 (eval "$ac_compile") 2>conftest.er1
35266 ac_status=$?
35267 grep -v '^ *+' conftest.er1 >conftest.err
35268 rm -f conftest.er1
35269 cat conftest.err >&5
35270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271 (exit $ac_status); } && {
35272 test -z "$ac_c_werror_flag" ||
35273 test ! -s conftest.err
35274 } && test -s conftest.$ac_objext; then
35275 ac_cv_header_time=yes
35276 else
35277 echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35280 ac_cv_header_time=no
35283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
35286 echo "${ECHO_T}$ac_cv_header_time" >&6; }
35287 if test $ac_cv_header_time = yes; then
35289 cat >>confdefs.h <<\_ACEOF
35290 #define TIME_WITH_SYS_TIME 1
35291 _ACEOF
35299 for ac_header in sys/types.h sys/time.h time.h
35301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35306 echo $ECHO_N "(cached) $ECHO_C" >&6
35308 ac_res=`eval echo '${'$as_ac_Header'}'`
35309 { echo "$as_me:$LINENO: result: $ac_res" >&5
35310 echo "${ECHO_T}$ac_res" >&6; }
35311 else
35312 # Is the header compilable?
35313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35315 cat >conftest.$ac_ext <<_ACEOF
35316 /* confdefs.h. */
35317 _ACEOF
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h. */
35321 $ac_includes_default
35322 #include <$ac_header>
35323 _ACEOF
35324 rm -f conftest.$ac_objext
35325 if { (ac_try="$ac_compile"
35326 case "(($ac_try" in
35327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35328 *) ac_try_echo=$ac_try;;
35329 esac
35330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35331 (eval "$ac_compile") 2>conftest.er1
35332 ac_status=$?
35333 grep -v '^ *+' conftest.er1 >conftest.err
35334 rm -f conftest.er1
35335 cat conftest.err >&5
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } && {
35338 test -z "$ac_c_werror_flag" ||
35339 test ! -s conftest.err
35340 } && test -s conftest.$ac_objext; then
35341 ac_header_compiler=yes
35342 else
35343 echo "$as_me: failed program was:" >&5
35344 sed 's/^/| /' conftest.$ac_ext >&5
35346 ac_header_compiler=no
35349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35351 echo "${ECHO_T}$ac_header_compiler" >&6; }
35353 # Is the header present?
35354 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35356 cat >conftest.$ac_ext <<_ACEOF
35357 /* confdefs.h. */
35358 _ACEOF
35359 cat confdefs.h >>conftest.$ac_ext
35360 cat >>conftest.$ac_ext <<_ACEOF
35361 /* end confdefs.h. */
35362 #include <$ac_header>
35363 _ACEOF
35364 if { (ac_try="$ac_cpp conftest.$ac_ext"
35365 case "(($ac_try" in
35366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367 *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35371 ac_status=$?
35372 grep -v '^ *+' conftest.er1 >conftest.err
35373 rm -f conftest.er1
35374 cat conftest.err >&5
35375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376 (exit $ac_status); } >/dev/null && {
35377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35378 test ! -s conftest.err
35379 }; then
35380 ac_header_preproc=yes
35381 else
35382 echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35385 ac_header_preproc=no
35388 rm -f conftest.err conftest.$ac_ext
35389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35390 echo "${ECHO_T}$ac_header_preproc" >&6; }
35392 # So? What about this header?
35393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35394 yes:no: )
35395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35399 ac_header_preproc=yes
35401 no:yes:* )
35402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35409 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35414 ( cat <<\_ASBOX
35415 ## ------------------------------------------------------------------------ ##
35416 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
35417 ## ------------------------------------------------------------------------ ##
35418 _ASBOX
35419 ) | sed "s/^/$as_me: WARNING: /" >&2
35421 esac
35422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35426 else
35427 eval "$as_ac_Header=\$ac_header_preproc"
35429 ac_res=`eval echo '${'$as_ac_Header'}'`
35430 { echo "$as_me:$LINENO: result: $ac_res" >&5
35431 echo "${ECHO_T}$ac_res" >&6; }
35434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35435 cat >>confdefs.h <<_ACEOF
35436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35437 _ACEOF
35441 done
35443 { echo "$as_me:$LINENO: checking for struct timeval" >&5
35444 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
35445 if test "${ac_cv_struct_timeval+set}" = set; then
35446 echo $ECHO_N "(cached) $ECHO_C" >&6
35447 else
35449 cat >conftest.$ac_ext <<_ACEOF
35451 /* confdefs.h. */
35452 _ACEOF
35453 cat confdefs.h >>conftest.$ac_ext
35454 cat >>conftest.$ac_ext <<_ACEOF
35455 /* end confdefs.h. */
35457 #undef inline
35458 #ifdef HAVE_WINDOWS_H
35459 #ifndef WIN32_LEAN_AND_MEAN
35460 #define WIN32_LEAN_AND_MEAN
35461 #endif
35462 #include <windows.h>
35463 #ifdef HAVE_WINSOCK2_H
35464 #include <winsock2.h>
35465 #else
35466 #ifdef HAVE_WINSOCK_H
35467 #include <winsock.h>
35468 #endif
35469 #endif
35470 #endif
35471 #ifdef HAVE_SYS_TYPES_H
35472 #include <sys/types.h>
35473 #endif
35474 #ifdef HAVE_SYS_TIME_H
35475 #include <sys/time.h>
35476 #ifdef TIME_WITH_SYS_TIME
35477 #include <time.h>
35478 #endif
35479 #else
35480 #ifdef HAVE_TIME_H
35481 #include <time.h>
35482 #endif
35483 #endif
35486 main ()
35489 struct timeval ts;
35490 ts.tv_sec = 0;
35491 ts.tv_usec = 0;
35494 return 0;
35497 _ACEOF
35498 rm -f conftest.$ac_objext
35499 if { (ac_try="$ac_compile"
35500 case "(($ac_try" in
35501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35502 *) ac_try_echo=$ac_try;;
35503 esac
35504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35505 (eval "$ac_compile") 2>conftest.er1
35506 ac_status=$?
35507 grep -v '^ *+' conftest.er1 >conftest.err
35508 rm -f conftest.er1
35509 cat conftest.err >&5
35510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35511 (exit $ac_status); } && {
35512 test -z "$ac_c_werror_flag" ||
35513 test ! -s conftest.err
35514 } && test -s conftest.$ac_objext; then
35516 ac_cv_struct_timeval="yes"
35518 else
35519 echo "$as_me: failed program was:" >&5
35520 sed 's/^/| /' conftest.$ac_ext >&5
35523 ac_cv_struct_timeval="no"
35527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35530 { echo "$as_me:$LINENO: result: $ac_cv_struct_timeval" >&5
35531 echo "${ECHO_T}$ac_cv_struct_timeval" >&6; }
35532 case "$ac_cv_struct_timeval" in
35533 yes)
35535 cat >>confdefs.h <<_ACEOF
35536 #define HAVE_STRUCT_TIMEVAL 1
35537 _ACEOF
35540 esac
35544 if test "x$cross_compiling" != xyes; then
35546 { echo "$as_me:$LINENO: checking run-time libs availability" >&5
35547 echo $ECHO_N "checking run-time libs availability... $ECHO_C" >&6; }
35548 if test "$cross_compiling" = yes; then
35549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35550 See \`config.log' for more details." >&5
35551 echo "$as_me: error: cannot run test program while cross compiling
35552 See \`config.log' for more details." >&2;}
35553 { (exit 1); exit 1; }; }
35554 else
35555 cat >conftest.$ac_ext <<_ACEOF
35556 /* confdefs.h. */
35557 _ACEOF
35558 cat confdefs.h >>conftest.$ac_ext
35559 cat >>conftest.$ac_ext <<_ACEOF
35560 /* end confdefs.h. */
35562 main()
35564 return 0;
35567 _ACEOF
35568 rm -f conftest$ac_exeext
35569 if { (ac_try="$ac_link"
35570 case "(($ac_try" in
35571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35572 *) ac_try_echo=$ac_try;;
35573 esac
35574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35575 (eval "$ac_link") 2>&5
35576 ac_status=$?
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35579 { (case "(($ac_try" in
35580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35581 *) ac_try_echo=$ac_try;;
35582 esac
35583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35584 (eval "$ac_try") 2>&5
35585 ac_status=$?
35586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35587 (exit $ac_status); }; }; then
35588 { echo "$as_me:$LINENO: result: fine" >&5
35589 echo "${ECHO_T}fine" >&6; }
35590 else
35591 echo "$as_me: program exited with status $ac_status" >&5
35592 echo "$as_me: failed program was:" >&5
35593 sed 's/^/| /' conftest.$ac_ext >&5
35595 ( exit $ac_status )
35596 { echo "$as_me:$LINENO: result: failed" >&5
35597 echo "${ECHO_T}failed" >&6; }
35598 { { echo "$as_me:$LINENO: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&5
35599 echo "$as_me: error: one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" >&2;}
35600 { (exit 1); exit 1; }; }
35603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35611 { echo "$as_me:$LINENO: checking for size_t" >&5
35612 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
35613 if test "${ac_cv_type_size_t+set}" = set; then
35614 echo $ECHO_N "(cached) $ECHO_C" >&6
35615 else
35616 cat >conftest.$ac_ext <<_ACEOF
35617 /* confdefs.h. */
35618 _ACEOF
35619 cat confdefs.h >>conftest.$ac_ext
35620 cat >>conftest.$ac_ext <<_ACEOF
35621 /* end confdefs.h. */
35622 $ac_includes_default
35623 typedef size_t ac__type_new_;
35625 main ()
35627 if ((ac__type_new_ *) 0)
35628 return 0;
35629 if (sizeof (ac__type_new_))
35630 return 0;
35632 return 0;
35634 _ACEOF
35635 rm -f conftest.$ac_objext
35636 if { (ac_try="$ac_compile"
35637 case "(($ac_try" in
35638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35639 *) ac_try_echo=$ac_try;;
35640 esac
35641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35642 (eval "$ac_compile") 2>conftest.er1
35643 ac_status=$?
35644 grep -v '^ *+' conftest.er1 >conftest.err
35645 rm -f conftest.er1
35646 cat conftest.err >&5
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); } && {
35649 test -z "$ac_c_werror_flag" ||
35650 test ! -s conftest.err
35651 } && test -s conftest.$ac_objext; then
35652 ac_cv_type_size_t=yes
35653 else
35654 echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35657 ac_cv_type_size_t=no
35660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35662 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
35663 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
35665 # The cast to long int works around a bug in the HP C Compiler
35666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35668 # This bug is HP SR number 8606223364.
35669 { echo "$as_me:$LINENO: checking size of size_t" >&5
35670 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
35671 if test "${ac_cv_sizeof_size_t+set}" = set; then
35672 echo $ECHO_N "(cached) $ECHO_C" >&6
35673 else
35674 if test "$cross_compiling" = yes; then
35675 # Depending upon the size, compute the lo and hi bounds.
35676 cat >conftest.$ac_ext <<_ACEOF
35677 /* confdefs.h. */
35678 _ACEOF
35679 cat confdefs.h >>conftest.$ac_ext
35680 cat >>conftest.$ac_ext <<_ACEOF
35681 /* end confdefs.h. */
35682 $ac_includes_default
35683 typedef size_t ac__type_sizeof_;
35685 main ()
35687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35688 test_array [0] = 0
35691 return 0;
35693 _ACEOF
35694 rm -f conftest.$ac_objext
35695 if { (ac_try="$ac_compile"
35696 case "(($ac_try" in
35697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35698 *) ac_try_echo=$ac_try;;
35699 esac
35700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35701 (eval "$ac_compile") 2>conftest.er1
35702 ac_status=$?
35703 grep -v '^ *+' conftest.er1 >conftest.err
35704 rm -f conftest.er1
35705 cat conftest.err >&5
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); } && {
35708 test -z "$ac_c_werror_flag" ||
35709 test ! -s conftest.err
35710 } && test -s conftest.$ac_objext; then
35711 ac_lo=0 ac_mid=0
35712 while :; do
35713 cat >conftest.$ac_ext <<_ACEOF
35714 /* confdefs.h. */
35715 _ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h. */
35719 $ac_includes_default
35720 typedef size_t ac__type_sizeof_;
35722 main ()
35724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35725 test_array [0] = 0
35728 return 0;
35730 _ACEOF
35731 rm -f conftest.$ac_objext
35732 if { (ac_try="$ac_compile"
35733 case "(($ac_try" in
35734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35735 *) ac_try_echo=$ac_try;;
35736 esac
35737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35738 (eval "$ac_compile") 2>conftest.er1
35739 ac_status=$?
35740 grep -v '^ *+' conftest.er1 >conftest.err
35741 rm -f conftest.er1
35742 cat conftest.err >&5
35743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744 (exit $ac_status); } && {
35745 test -z "$ac_c_werror_flag" ||
35746 test ! -s conftest.err
35747 } && test -s conftest.$ac_objext; then
35748 ac_hi=$ac_mid; break
35749 else
35750 echo "$as_me: failed program was:" >&5
35751 sed 's/^/| /' conftest.$ac_ext >&5
35753 ac_lo=`expr $ac_mid + 1`
35754 if test $ac_lo -le $ac_mid; then
35755 ac_lo= ac_hi=
35756 break
35758 ac_mid=`expr 2 '*' $ac_mid + 1`
35761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35762 done
35763 else
35764 echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35767 cat >conftest.$ac_ext <<_ACEOF
35768 /* confdefs.h. */
35769 _ACEOF
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35773 $ac_includes_default
35774 typedef size_t ac__type_sizeof_;
35776 main ()
35778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35779 test_array [0] = 0
35782 return 0;
35784 _ACEOF
35785 rm -f conftest.$ac_objext
35786 if { (ac_try="$ac_compile"
35787 case "(($ac_try" in
35788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35789 *) ac_try_echo=$ac_try;;
35790 esac
35791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35792 (eval "$ac_compile") 2>conftest.er1
35793 ac_status=$?
35794 grep -v '^ *+' conftest.er1 >conftest.err
35795 rm -f conftest.er1
35796 cat conftest.err >&5
35797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35798 (exit $ac_status); } && {
35799 test -z "$ac_c_werror_flag" ||
35800 test ! -s conftest.err
35801 } && test -s conftest.$ac_objext; then
35802 ac_hi=-1 ac_mid=-1
35803 while :; do
35804 cat >conftest.$ac_ext <<_ACEOF
35805 /* confdefs.h. */
35806 _ACEOF
35807 cat confdefs.h >>conftest.$ac_ext
35808 cat >>conftest.$ac_ext <<_ACEOF
35809 /* end confdefs.h. */
35810 $ac_includes_default
35811 typedef size_t ac__type_sizeof_;
35813 main ()
35815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35816 test_array [0] = 0
35819 return 0;
35821 _ACEOF
35822 rm -f conftest.$ac_objext
35823 if { (ac_try="$ac_compile"
35824 case "(($ac_try" in
35825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35826 *) ac_try_echo=$ac_try;;
35827 esac
35828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35829 (eval "$ac_compile") 2>conftest.er1
35830 ac_status=$?
35831 grep -v '^ *+' conftest.er1 >conftest.err
35832 rm -f conftest.er1
35833 cat conftest.err >&5
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); } && {
35836 test -z "$ac_c_werror_flag" ||
35837 test ! -s conftest.err
35838 } && test -s conftest.$ac_objext; then
35839 ac_lo=$ac_mid; break
35840 else
35841 echo "$as_me: failed program was:" >&5
35842 sed 's/^/| /' conftest.$ac_ext >&5
35844 ac_hi=`expr '(' $ac_mid ')' - 1`
35845 if test $ac_mid -le $ac_hi; then
35846 ac_lo= ac_hi=
35847 break
35849 ac_mid=`expr 2 '*' $ac_mid`
35852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35853 done
35854 else
35855 echo "$as_me: failed program was:" >&5
35856 sed 's/^/| /' conftest.$ac_ext >&5
35858 ac_lo= ac_hi=
35861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35865 # Binary search between lo and hi bounds.
35866 while test "x$ac_lo" != "x$ac_hi"; do
35867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35868 cat >conftest.$ac_ext <<_ACEOF
35869 /* confdefs.h. */
35870 _ACEOF
35871 cat confdefs.h >>conftest.$ac_ext
35872 cat >>conftest.$ac_ext <<_ACEOF
35873 /* end confdefs.h. */
35874 $ac_includes_default
35875 typedef size_t ac__type_sizeof_;
35877 main ()
35879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35880 test_array [0] = 0
35883 return 0;
35885 _ACEOF
35886 rm -f conftest.$ac_objext
35887 if { (ac_try="$ac_compile"
35888 case "(($ac_try" in
35889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890 *) ac_try_echo=$ac_try;;
35891 esac
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893 (eval "$ac_compile") 2>conftest.er1
35894 ac_status=$?
35895 grep -v '^ *+' conftest.er1 >conftest.err
35896 rm -f conftest.er1
35897 cat conftest.err >&5
35898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899 (exit $ac_status); } && {
35900 test -z "$ac_c_werror_flag" ||
35901 test ! -s conftest.err
35902 } && test -s conftest.$ac_objext; then
35903 ac_hi=$ac_mid
35904 else
35905 echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35908 ac_lo=`expr '(' $ac_mid ')' + 1`
35911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35912 done
35913 case $ac_lo in
35914 ?*) ac_cv_sizeof_size_t=$ac_lo;;
35915 '') if test "$ac_cv_type_size_t" = yes; then
35916 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
35917 See \`config.log' for more details." >&5
35918 echo "$as_me: error: cannot compute sizeof (size_t)
35919 See \`config.log' for more details." >&2;}
35920 { (exit 77); exit 77; }; }
35921 else
35922 ac_cv_sizeof_size_t=0
35923 fi ;;
35924 esac
35925 else
35926 cat >conftest.$ac_ext <<_ACEOF
35927 /* confdefs.h. */
35928 _ACEOF
35929 cat confdefs.h >>conftest.$ac_ext
35930 cat >>conftest.$ac_ext <<_ACEOF
35931 /* end confdefs.h. */
35932 $ac_includes_default
35933 typedef size_t ac__type_sizeof_;
35934 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35935 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35936 #include <stdio.h>
35937 #include <stdlib.h>
35939 main ()
35942 FILE *f = fopen ("conftest.val", "w");
35943 if (! f)
35944 return 1;
35945 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35947 long int i = longval ();
35948 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35949 return 1;
35950 fprintf (f, "%ld\n", i);
35952 else
35954 unsigned long int i = ulongval ();
35955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35956 return 1;
35957 fprintf (f, "%lu\n", i);
35959 return ferror (f) || fclose (f) != 0;
35962 return 0;
35964 _ACEOF
35965 rm -f conftest$ac_exeext
35966 if { (ac_try="$ac_link"
35967 case "(($ac_try" in
35968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969 *) ac_try_echo=$ac_try;;
35970 esac
35971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35972 (eval "$ac_link") 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35976 { (case "(($ac_try" in
35977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35978 *) ac_try_echo=$ac_try;;
35979 esac
35980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35981 (eval "$ac_try") 2>&5
35982 ac_status=$?
35983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35984 (exit $ac_status); }; }; then
35985 ac_cv_sizeof_size_t=`cat conftest.val`
35986 else
35987 echo "$as_me: program exited with status $ac_status" >&5
35988 echo "$as_me: failed program was:" >&5
35989 sed 's/^/| /' conftest.$ac_ext >&5
35991 ( exit $ac_status )
35992 if test "$ac_cv_type_size_t" = yes; then
35993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
35994 See \`config.log' for more details." >&5
35995 echo "$as_me: error: cannot compute sizeof (size_t)
35996 See \`config.log' for more details." >&2;}
35997 { (exit 77); exit 77; }; }
35998 else
35999 ac_cv_sizeof_size_t=0
36002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36004 rm -f conftest.val
36006 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
36007 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
36011 cat >>confdefs.h <<_ACEOF
36012 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
36013 _ACEOF
36016 { echo "$as_me:$LINENO: checking for int" >&5
36017 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
36018 if test "${ac_cv_type_int+set}" = set; then
36019 echo $ECHO_N "(cached) $ECHO_C" >&6
36020 else
36021 cat >conftest.$ac_ext <<_ACEOF
36022 /* confdefs.h. */
36023 _ACEOF
36024 cat confdefs.h >>conftest.$ac_ext
36025 cat >>conftest.$ac_ext <<_ACEOF
36026 /* end confdefs.h. */
36027 $ac_includes_default
36028 typedef int ac__type_new_;
36030 main ()
36032 if ((ac__type_new_ *) 0)
36033 return 0;
36034 if (sizeof (ac__type_new_))
36035 return 0;
36037 return 0;
36039 _ACEOF
36040 rm -f conftest.$ac_objext
36041 if { (ac_try="$ac_compile"
36042 case "(($ac_try" in
36043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36044 *) ac_try_echo=$ac_try;;
36045 esac
36046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36047 (eval "$ac_compile") 2>conftest.er1
36048 ac_status=$?
36049 grep -v '^ *+' conftest.er1 >conftest.err
36050 rm -f conftest.er1
36051 cat conftest.err >&5
36052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36053 (exit $ac_status); } && {
36054 test -z "$ac_c_werror_flag" ||
36055 test ! -s conftest.err
36056 } && test -s conftest.$ac_objext; then
36057 ac_cv_type_int=yes
36058 else
36059 echo "$as_me: failed program was:" >&5
36060 sed 's/^/| /' conftest.$ac_ext >&5
36062 ac_cv_type_int=no
36065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36067 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
36068 echo "${ECHO_T}$ac_cv_type_int" >&6; }
36070 # The cast to long int works around a bug in the HP C Compiler
36071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36073 # This bug is HP SR number 8606223364.
36074 { echo "$as_me:$LINENO: checking size of int" >&5
36075 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
36076 if test "${ac_cv_sizeof_int+set}" = set; then
36077 echo $ECHO_N "(cached) $ECHO_C" >&6
36078 else
36079 if test "$cross_compiling" = yes; then
36080 # Depending upon the size, compute the lo and hi bounds.
36081 cat >conftest.$ac_ext <<_ACEOF
36082 /* confdefs.h. */
36083 _ACEOF
36084 cat confdefs.h >>conftest.$ac_ext
36085 cat >>conftest.$ac_ext <<_ACEOF
36086 /* end confdefs.h. */
36087 $ac_includes_default
36088 typedef int ac__type_sizeof_;
36090 main ()
36092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36093 test_array [0] = 0
36096 return 0;
36098 _ACEOF
36099 rm -f conftest.$ac_objext
36100 if { (ac_try="$ac_compile"
36101 case "(($ac_try" in
36102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36103 *) ac_try_echo=$ac_try;;
36104 esac
36105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36106 (eval "$ac_compile") 2>conftest.er1
36107 ac_status=$?
36108 grep -v '^ *+' conftest.er1 >conftest.err
36109 rm -f conftest.er1
36110 cat conftest.err >&5
36111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36112 (exit $ac_status); } && {
36113 test -z "$ac_c_werror_flag" ||
36114 test ! -s conftest.err
36115 } && test -s conftest.$ac_objext; then
36116 ac_lo=0 ac_mid=0
36117 while :; do
36118 cat >conftest.$ac_ext <<_ACEOF
36119 /* confdefs.h. */
36120 _ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h. */
36124 $ac_includes_default
36125 typedef int ac__type_sizeof_;
36127 main ()
36129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36130 test_array [0] = 0
36133 return 0;
36135 _ACEOF
36136 rm -f conftest.$ac_objext
36137 if { (ac_try="$ac_compile"
36138 case "(($ac_try" in
36139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36140 *) ac_try_echo=$ac_try;;
36141 esac
36142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36143 (eval "$ac_compile") 2>conftest.er1
36144 ac_status=$?
36145 grep -v '^ *+' conftest.er1 >conftest.err
36146 rm -f conftest.er1
36147 cat conftest.err >&5
36148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149 (exit $ac_status); } && {
36150 test -z "$ac_c_werror_flag" ||
36151 test ! -s conftest.err
36152 } && test -s conftest.$ac_objext; then
36153 ac_hi=$ac_mid; break
36154 else
36155 echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.$ac_ext >&5
36158 ac_lo=`expr $ac_mid + 1`
36159 if test $ac_lo -le $ac_mid; then
36160 ac_lo= ac_hi=
36161 break
36163 ac_mid=`expr 2 '*' $ac_mid + 1`
36166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36167 done
36168 else
36169 echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36172 cat >conftest.$ac_ext <<_ACEOF
36173 /* confdefs.h. */
36174 _ACEOF
36175 cat confdefs.h >>conftest.$ac_ext
36176 cat >>conftest.$ac_ext <<_ACEOF
36177 /* end confdefs.h. */
36178 $ac_includes_default
36179 typedef int ac__type_sizeof_;
36181 main ()
36183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36184 test_array [0] = 0
36187 return 0;
36189 _ACEOF
36190 rm -f conftest.$ac_objext
36191 if { (ac_try="$ac_compile"
36192 case "(($ac_try" in
36193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36194 *) ac_try_echo=$ac_try;;
36195 esac
36196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36197 (eval "$ac_compile") 2>conftest.er1
36198 ac_status=$?
36199 grep -v '^ *+' conftest.er1 >conftest.err
36200 rm -f conftest.er1
36201 cat conftest.err >&5
36202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203 (exit $ac_status); } && {
36204 test -z "$ac_c_werror_flag" ||
36205 test ! -s conftest.err
36206 } && test -s conftest.$ac_objext; then
36207 ac_hi=-1 ac_mid=-1
36208 while :; do
36209 cat >conftest.$ac_ext <<_ACEOF
36210 /* confdefs.h. */
36211 _ACEOF
36212 cat confdefs.h >>conftest.$ac_ext
36213 cat >>conftest.$ac_ext <<_ACEOF
36214 /* end confdefs.h. */
36215 $ac_includes_default
36216 typedef int ac__type_sizeof_;
36218 main ()
36220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36221 test_array [0] = 0
36224 return 0;
36226 _ACEOF
36227 rm -f conftest.$ac_objext
36228 if { (ac_try="$ac_compile"
36229 case "(($ac_try" in
36230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231 *) ac_try_echo=$ac_try;;
36232 esac
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_compile") 2>conftest.er1
36235 ac_status=$?
36236 grep -v '^ *+' conftest.er1 >conftest.err
36237 rm -f conftest.er1
36238 cat conftest.err >&5
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); } && {
36241 test -z "$ac_c_werror_flag" ||
36242 test ! -s conftest.err
36243 } && test -s conftest.$ac_objext; then
36244 ac_lo=$ac_mid; break
36245 else
36246 echo "$as_me: failed program was:" >&5
36247 sed 's/^/| /' conftest.$ac_ext >&5
36249 ac_hi=`expr '(' $ac_mid ')' - 1`
36250 if test $ac_mid -le $ac_hi; then
36251 ac_lo= ac_hi=
36252 break
36254 ac_mid=`expr 2 '*' $ac_mid`
36257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36258 done
36259 else
36260 echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36263 ac_lo= ac_hi=
36266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36270 # Binary search between lo and hi bounds.
36271 while test "x$ac_lo" != "x$ac_hi"; do
36272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36273 cat >conftest.$ac_ext <<_ACEOF
36274 /* confdefs.h. */
36275 _ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h. */
36279 $ac_includes_default
36280 typedef int ac__type_sizeof_;
36282 main ()
36284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36285 test_array [0] = 0
36288 return 0;
36290 _ACEOF
36291 rm -f conftest.$ac_objext
36292 if { (ac_try="$ac_compile"
36293 case "(($ac_try" in
36294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36295 *) ac_try_echo=$ac_try;;
36296 esac
36297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36298 (eval "$ac_compile") 2>conftest.er1
36299 ac_status=$?
36300 grep -v '^ *+' conftest.er1 >conftest.err
36301 rm -f conftest.er1
36302 cat conftest.err >&5
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); } && {
36305 test -z "$ac_c_werror_flag" ||
36306 test ! -s conftest.err
36307 } && test -s conftest.$ac_objext; then
36308 ac_hi=$ac_mid
36309 else
36310 echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36313 ac_lo=`expr '(' $ac_mid ')' + 1`
36316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36317 done
36318 case $ac_lo in
36319 ?*) ac_cv_sizeof_int=$ac_lo;;
36320 '') if test "$ac_cv_type_int" = yes; then
36321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36322 See \`config.log' for more details." >&5
36323 echo "$as_me: error: cannot compute sizeof (int)
36324 See \`config.log' for more details." >&2;}
36325 { (exit 77); exit 77; }; }
36326 else
36327 ac_cv_sizeof_int=0
36328 fi ;;
36329 esac
36330 else
36331 cat >conftest.$ac_ext <<_ACEOF
36332 /* confdefs.h. */
36333 _ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h. */
36337 $ac_includes_default
36338 typedef int ac__type_sizeof_;
36339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36341 #include <stdio.h>
36342 #include <stdlib.h>
36344 main ()
36347 FILE *f = fopen ("conftest.val", "w");
36348 if (! f)
36349 return 1;
36350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36352 long int i = longval ();
36353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36354 return 1;
36355 fprintf (f, "%ld\n", i);
36357 else
36359 unsigned long int i = ulongval ();
36360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36361 return 1;
36362 fprintf (f, "%lu\n", i);
36364 return ferror (f) || fclose (f) != 0;
36367 return 0;
36369 _ACEOF
36370 rm -f conftest$ac_exeext
36371 if { (ac_try="$ac_link"
36372 case "(($ac_try" in
36373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36374 *) ac_try_echo=$ac_try;;
36375 esac
36376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36377 (eval "$ac_link") 2>&5
36378 ac_status=$?
36379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36381 { (case "(($ac_try" in
36382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36383 *) ac_try_echo=$ac_try;;
36384 esac
36385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36386 (eval "$ac_try") 2>&5
36387 ac_status=$?
36388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36389 (exit $ac_status); }; }; then
36390 ac_cv_sizeof_int=`cat conftest.val`
36391 else
36392 echo "$as_me: program exited with status $ac_status" >&5
36393 echo "$as_me: failed program was:" >&5
36394 sed 's/^/| /' conftest.$ac_ext >&5
36396 ( exit $ac_status )
36397 if test "$ac_cv_type_int" = yes; then
36398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36399 See \`config.log' for more details." >&5
36400 echo "$as_me: error: cannot compute sizeof (int)
36401 See \`config.log' for more details." >&2;}
36402 { (exit 77); exit 77; }; }
36403 else
36404 ac_cv_sizeof_int=0
36407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36409 rm -f conftest.val
36411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36412 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36416 cat >>confdefs.h <<_ACEOF
36417 #define SIZEOF_INT $ac_cv_sizeof_int
36418 _ACEOF
36421 { echo "$as_me:$LINENO: checking for long" >&5
36422 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
36423 if test "${ac_cv_type_long+set}" = set; then
36424 echo $ECHO_N "(cached) $ECHO_C" >&6
36425 else
36426 cat >conftest.$ac_ext <<_ACEOF
36427 /* confdefs.h. */
36428 _ACEOF
36429 cat confdefs.h >>conftest.$ac_ext
36430 cat >>conftest.$ac_ext <<_ACEOF
36431 /* end confdefs.h. */
36432 $ac_includes_default
36433 typedef long ac__type_new_;
36435 main ()
36437 if ((ac__type_new_ *) 0)
36438 return 0;
36439 if (sizeof (ac__type_new_))
36440 return 0;
36442 return 0;
36444 _ACEOF
36445 rm -f conftest.$ac_objext
36446 if { (ac_try="$ac_compile"
36447 case "(($ac_try" in
36448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36449 *) ac_try_echo=$ac_try;;
36450 esac
36451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36452 (eval "$ac_compile") 2>conftest.er1
36453 ac_status=$?
36454 grep -v '^ *+' conftest.er1 >conftest.err
36455 rm -f conftest.er1
36456 cat conftest.err >&5
36457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458 (exit $ac_status); } && {
36459 test -z "$ac_c_werror_flag" ||
36460 test ! -s conftest.err
36461 } && test -s conftest.$ac_objext; then
36462 ac_cv_type_long=yes
36463 else
36464 echo "$as_me: failed program was:" >&5
36465 sed 's/^/| /' conftest.$ac_ext >&5
36467 ac_cv_type_long=no
36470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36472 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36473 echo "${ECHO_T}$ac_cv_type_long" >&6; }
36475 # The cast to long int works around a bug in the HP C Compiler
36476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36478 # This bug is HP SR number 8606223364.
36479 { echo "$as_me:$LINENO: checking size of long" >&5
36480 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
36481 if test "${ac_cv_sizeof_long+set}" = set; then
36482 echo $ECHO_N "(cached) $ECHO_C" >&6
36483 else
36484 if test "$cross_compiling" = yes; then
36485 # Depending upon the size, compute the lo and hi bounds.
36486 cat >conftest.$ac_ext <<_ACEOF
36487 /* confdefs.h. */
36488 _ACEOF
36489 cat confdefs.h >>conftest.$ac_ext
36490 cat >>conftest.$ac_ext <<_ACEOF
36491 /* end confdefs.h. */
36492 $ac_includes_default
36493 typedef long ac__type_sizeof_;
36495 main ()
36497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36498 test_array [0] = 0
36501 return 0;
36503 _ACEOF
36504 rm -f conftest.$ac_objext
36505 if { (ac_try="$ac_compile"
36506 case "(($ac_try" in
36507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36508 *) ac_try_echo=$ac_try;;
36509 esac
36510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36511 (eval "$ac_compile") 2>conftest.er1
36512 ac_status=$?
36513 grep -v '^ *+' conftest.er1 >conftest.err
36514 rm -f conftest.er1
36515 cat conftest.err >&5
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); } && {
36518 test -z "$ac_c_werror_flag" ||
36519 test ! -s conftest.err
36520 } && test -s conftest.$ac_objext; then
36521 ac_lo=0 ac_mid=0
36522 while :; do
36523 cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h. */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h. */
36529 $ac_includes_default
36530 typedef long ac__type_sizeof_;
36532 main ()
36534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36535 test_array [0] = 0
36538 return 0;
36540 _ACEOF
36541 rm -f conftest.$ac_objext
36542 if { (ac_try="$ac_compile"
36543 case "(($ac_try" in
36544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36545 *) ac_try_echo=$ac_try;;
36546 esac
36547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36548 (eval "$ac_compile") 2>conftest.er1
36549 ac_status=$?
36550 grep -v '^ *+' conftest.er1 >conftest.err
36551 rm -f conftest.er1
36552 cat conftest.err >&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } && {
36555 test -z "$ac_c_werror_flag" ||
36556 test ! -s conftest.err
36557 } && test -s conftest.$ac_objext; then
36558 ac_hi=$ac_mid; break
36559 else
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36563 ac_lo=`expr $ac_mid + 1`
36564 if test $ac_lo -le $ac_mid; then
36565 ac_lo= ac_hi=
36566 break
36568 ac_mid=`expr 2 '*' $ac_mid + 1`
36571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36572 done
36573 else
36574 echo "$as_me: failed program was:" >&5
36575 sed 's/^/| /' conftest.$ac_ext >&5
36577 cat >conftest.$ac_ext <<_ACEOF
36578 /* confdefs.h. */
36579 _ACEOF
36580 cat confdefs.h >>conftest.$ac_ext
36581 cat >>conftest.$ac_ext <<_ACEOF
36582 /* end confdefs.h. */
36583 $ac_includes_default
36584 typedef long ac__type_sizeof_;
36586 main ()
36588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36589 test_array [0] = 0
36592 return 0;
36594 _ACEOF
36595 rm -f conftest.$ac_objext
36596 if { (ac_try="$ac_compile"
36597 case "(($ac_try" in
36598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36599 *) ac_try_echo=$ac_try;;
36600 esac
36601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36602 (eval "$ac_compile") 2>conftest.er1
36603 ac_status=$?
36604 grep -v '^ *+' conftest.er1 >conftest.err
36605 rm -f conftest.er1
36606 cat conftest.err >&5
36607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36608 (exit $ac_status); } && {
36609 test -z "$ac_c_werror_flag" ||
36610 test ! -s conftest.err
36611 } && test -s conftest.$ac_objext; then
36612 ac_hi=-1 ac_mid=-1
36613 while :; do
36614 cat >conftest.$ac_ext <<_ACEOF
36615 /* confdefs.h. */
36616 _ACEOF
36617 cat confdefs.h >>conftest.$ac_ext
36618 cat >>conftest.$ac_ext <<_ACEOF
36619 /* end confdefs.h. */
36620 $ac_includes_default
36621 typedef long ac__type_sizeof_;
36623 main ()
36625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36626 test_array [0] = 0
36629 return 0;
36631 _ACEOF
36632 rm -f conftest.$ac_objext
36633 if { (ac_try="$ac_compile"
36634 case "(($ac_try" in
36635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36636 *) ac_try_echo=$ac_try;;
36637 esac
36638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36639 (eval "$ac_compile") 2>conftest.er1
36640 ac_status=$?
36641 grep -v '^ *+' conftest.er1 >conftest.err
36642 rm -f conftest.er1
36643 cat conftest.err >&5
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); } && {
36646 test -z "$ac_c_werror_flag" ||
36647 test ! -s conftest.err
36648 } && test -s conftest.$ac_objext; then
36649 ac_lo=$ac_mid; break
36650 else
36651 echo "$as_me: failed program was:" >&5
36652 sed 's/^/| /' conftest.$ac_ext >&5
36654 ac_hi=`expr '(' $ac_mid ')' - 1`
36655 if test $ac_mid -le $ac_hi; then
36656 ac_lo= ac_hi=
36657 break
36659 ac_mid=`expr 2 '*' $ac_mid`
36662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36663 done
36664 else
36665 echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.$ac_ext >&5
36668 ac_lo= ac_hi=
36671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36675 # Binary search between lo and hi bounds.
36676 while test "x$ac_lo" != "x$ac_hi"; do
36677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36678 cat >conftest.$ac_ext <<_ACEOF
36679 /* confdefs.h. */
36680 _ACEOF
36681 cat confdefs.h >>conftest.$ac_ext
36682 cat >>conftest.$ac_ext <<_ACEOF
36683 /* end confdefs.h. */
36684 $ac_includes_default
36685 typedef long ac__type_sizeof_;
36687 main ()
36689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36690 test_array [0] = 0
36693 return 0;
36695 _ACEOF
36696 rm -f conftest.$ac_objext
36697 if { (ac_try="$ac_compile"
36698 case "(($ac_try" in
36699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700 *) ac_try_echo=$ac_try;;
36701 esac
36702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36703 (eval "$ac_compile") 2>conftest.er1
36704 ac_status=$?
36705 grep -v '^ *+' conftest.er1 >conftest.err
36706 rm -f conftest.er1
36707 cat conftest.err >&5
36708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36709 (exit $ac_status); } && {
36710 test -z "$ac_c_werror_flag" ||
36711 test ! -s conftest.err
36712 } && test -s conftest.$ac_objext; then
36713 ac_hi=$ac_mid
36714 else
36715 echo "$as_me: failed program was:" >&5
36716 sed 's/^/| /' conftest.$ac_ext >&5
36718 ac_lo=`expr '(' $ac_mid ')' + 1`
36721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36722 done
36723 case $ac_lo in
36724 ?*) ac_cv_sizeof_long=$ac_lo;;
36725 '') if test "$ac_cv_type_long" = yes; then
36726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
36727 See \`config.log' for more details." >&5
36728 echo "$as_me: error: cannot compute sizeof (long)
36729 See \`config.log' for more details." >&2;}
36730 { (exit 77); exit 77; }; }
36731 else
36732 ac_cv_sizeof_long=0
36733 fi ;;
36734 esac
36735 else
36736 cat >conftest.$ac_ext <<_ACEOF
36737 /* confdefs.h. */
36738 _ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h. */
36742 $ac_includes_default
36743 typedef long ac__type_sizeof_;
36744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36746 #include <stdio.h>
36747 #include <stdlib.h>
36749 main ()
36752 FILE *f = fopen ("conftest.val", "w");
36753 if (! f)
36754 return 1;
36755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36757 long int i = longval ();
36758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36759 return 1;
36760 fprintf (f, "%ld\n", i);
36762 else
36764 unsigned long int i = ulongval ();
36765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36766 return 1;
36767 fprintf (f, "%lu\n", i);
36769 return ferror (f) || fclose (f) != 0;
36772 return 0;
36774 _ACEOF
36775 rm -f conftest$ac_exeext
36776 if { (ac_try="$ac_link"
36777 case "(($ac_try" in
36778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36779 *) ac_try_echo=$ac_try;;
36780 esac
36781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36782 (eval "$ac_link") 2>&5
36783 ac_status=$?
36784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36786 { (case "(($ac_try" in
36787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36788 *) ac_try_echo=$ac_try;;
36789 esac
36790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36791 (eval "$ac_try") 2>&5
36792 ac_status=$?
36793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36794 (exit $ac_status); }; }; then
36795 ac_cv_sizeof_long=`cat conftest.val`
36796 else
36797 echo "$as_me: program exited with status $ac_status" >&5
36798 echo "$as_me: failed program was:" >&5
36799 sed 's/^/| /' conftest.$ac_ext >&5
36801 ( exit $ac_status )
36802 if test "$ac_cv_type_long" = yes; then
36803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
36804 See \`config.log' for more details." >&5
36805 echo "$as_me: error: cannot compute sizeof (long)
36806 See \`config.log' for more details." >&2;}
36807 { (exit 77); exit 77; }; }
36808 else
36809 ac_cv_sizeof_long=0
36812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36814 rm -f conftest.val
36816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36817 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
36821 cat >>confdefs.h <<_ACEOF
36822 #define SIZEOF_LONG $ac_cv_sizeof_long
36823 _ACEOF
36827 if test -z "$ac_cv_sizeof_long" ||
36828 test "$ac_cv_sizeof_long" -eq "0"; then
36829 { { echo "$as_me:$LINENO: error: cannot find out size of long." >&5
36830 echo "$as_me: error: cannot find out size of long." >&2;}
36831 { (exit 1); exit 1; }; }
36834 cat >>confdefs.h <<_EOF
36835 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
36836 _EOF
36839 { echo "$as_me:$LINENO: checking for time_t" >&5
36840 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
36841 if test "${ac_cv_type_time_t+set}" = set; then
36842 echo $ECHO_N "(cached) $ECHO_C" >&6
36843 else
36844 cat >conftest.$ac_ext <<_ACEOF
36845 /* confdefs.h. */
36846 _ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h. */
36850 $ac_includes_default
36851 typedef time_t ac__type_new_;
36853 main ()
36855 if ((ac__type_new_ *) 0)
36856 return 0;
36857 if (sizeof (ac__type_new_))
36858 return 0;
36860 return 0;
36862 _ACEOF
36863 rm -f conftest.$ac_objext
36864 if { (ac_try="$ac_compile"
36865 case "(($ac_try" in
36866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36867 *) ac_try_echo=$ac_try;;
36868 esac
36869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36870 (eval "$ac_compile") 2>conftest.er1
36871 ac_status=$?
36872 grep -v '^ *+' conftest.er1 >conftest.err
36873 rm -f conftest.er1
36874 cat conftest.err >&5
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); } && {
36877 test -z "$ac_c_werror_flag" ||
36878 test ! -s conftest.err
36879 } && test -s conftest.$ac_objext; then
36880 ac_cv_type_time_t=yes
36881 else
36882 echo "$as_me: failed program was:" >&5
36883 sed 's/^/| /' conftest.$ac_ext >&5
36885 ac_cv_type_time_t=no
36888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36890 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
36891 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
36893 # The cast to long int works around a bug in the HP C Compiler
36894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36896 # This bug is HP SR number 8606223364.
36897 { echo "$as_me:$LINENO: checking size of time_t" >&5
36898 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
36899 if test "${ac_cv_sizeof_time_t+set}" = set; then
36900 echo $ECHO_N "(cached) $ECHO_C" >&6
36901 else
36902 if test "$cross_compiling" = yes; then
36903 # Depending upon the size, compute the lo and hi bounds.
36904 cat >conftest.$ac_ext <<_ACEOF
36905 /* confdefs.h. */
36906 _ACEOF
36907 cat confdefs.h >>conftest.$ac_ext
36908 cat >>conftest.$ac_ext <<_ACEOF
36909 /* end confdefs.h. */
36910 $ac_includes_default
36911 typedef time_t ac__type_sizeof_;
36913 main ()
36915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36916 test_array [0] = 0
36919 return 0;
36921 _ACEOF
36922 rm -f conftest.$ac_objext
36923 if { (ac_try="$ac_compile"
36924 case "(($ac_try" in
36925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36926 *) ac_try_echo=$ac_try;;
36927 esac
36928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36929 (eval "$ac_compile") 2>conftest.er1
36930 ac_status=$?
36931 grep -v '^ *+' conftest.er1 >conftest.err
36932 rm -f conftest.er1
36933 cat conftest.err >&5
36934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36935 (exit $ac_status); } && {
36936 test -z "$ac_c_werror_flag" ||
36937 test ! -s conftest.err
36938 } && test -s conftest.$ac_objext; then
36939 ac_lo=0 ac_mid=0
36940 while :; do
36941 cat >conftest.$ac_ext <<_ACEOF
36942 /* confdefs.h. */
36943 _ACEOF
36944 cat confdefs.h >>conftest.$ac_ext
36945 cat >>conftest.$ac_ext <<_ACEOF
36946 /* end confdefs.h. */
36947 $ac_includes_default
36948 typedef time_t ac__type_sizeof_;
36950 main ()
36952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36953 test_array [0] = 0
36956 return 0;
36958 _ACEOF
36959 rm -f conftest.$ac_objext
36960 if { (ac_try="$ac_compile"
36961 case "(($ac_try" in
36962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36963 *) ac_try_echo=$ac_try;;
36964 esac
36965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36966 (eval "$ac_compile") 2>conftest.er1
36967 ac_status=$?
36968 grep -v '^ *+' conftest.er1 >conftest.err
36969 rm -f conftest.er1
36970 cat conftest.err >&5
36971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972 (exit $ac_status); } && {
36973 test -z "$ac_c_werror_flag" ||
36974 test ! -s conftest.err
36975 } && test -s conftest.$ac_objext; then
36976 ac_hi=$ac_mid; break
36977 else
36978 echo "$as_me: failed program was:" >&5
36979 sed 's/^/| /' conftest.$ac_ext >&5
36981 ac_lo=`expr $ac_mid + 1`
36982 if test $ac_lo -le $ac_mid; then
36983 ac_lo= ac_hi=
36984 break
36986 ac_mid=`expr 2 '*' $ac_mid + 1`
36989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36990 done
36991 else
36992 echo "$as_me: failed program was:" >&5
36993 sed 's/^/| /' conftest.$ac_ext >&5
36995 cat >conftest.$ac_ext <<_ACEOF
36996 /* confdefs.h. */
36997 _ACEOF
36998 cat confdefs.h >>conftest.$ac_ext
36999 cat >>conftest.$ac_ext <<_ACEOF
37000 /* end confdefs.h. */
37001 $ac_includes_default
37002 typedef time_t ac__type_sizeof_;
37004 main ()
37006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37007 test_array [0] = 0
37010 return 0;
37012 _ACEOF
37013 rm -f conftest.$ac_objext
37014 if { (ac_try="$ac_compile"
37015 case "(($ac_try" in
37016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37017 *) ac_try_echo=$ac_try;;
37018 esac
37019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37020 (eval "$ac_compile") 2>conftest.er1
37021 ac_status=$?
37022 grep -v '^ *+' conftest.er1 >conftest.err
37023 rm -f conftest.er1
37024 cat conftest.err >&5
37025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37026 (exit $ac_status); } && {
37027 test -z "$ac_c_werror_flag" ||
37028 test ! -s conftest.err
37029 } && test -s conftest.$ac_objext; then
37030 ac_hi=-1 ac_mid=-1
37031 while :; do
37032 cat >conftest.$ac_ext <<_ACEOF
37033 /* confdefs.h. */
37034 _ACEOF
37035 cat confdefs.h >>conftest.$ac_ext
37036 cat >>conftest.$ac_ext <<_ACEOF
37037 /* end confdefs.h. */
37038 $ac_includes_default
37039 typedef time_t ac__type_sizeof_;
37041 main ()
37043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37044 test_array [0] = 0
37047 return 0;
37049 _ACEOF
37050 rm -f conftest.$ac_objext
37051 if { (ac_try="$ac_compile"
37052 case "(($ac_try" in
37053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37054 *) ac_try_echo=$ac_try;;
37055 esac
37056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37057 (eval "$ac_compile") 2>conftest.er1
37058 ac_status=$?
37059 grep -v '^ *+' conftest.er1 >conftest.err
37060 rm -f conftest.er1
37061 cat conftest.err >&5
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); } && {
37064 test -z "$ac_c_werror_flag" ||
37065 test ! -s conftest.err
37066 } && test -s conftest.$ac_objext; then
37067 ac_lo=$ac_mid; break
37068 else
37069 echo "$as_me: failed program was:" >&5
37070 sed 's/^/| /' conftest.$ac_ext >&5
37072 ac_hi=`expr '(' $ac_mid ')' - 1`
37073 if test $ac_mid -le $ac_hi; then
37074 ac_lo= ac_hi=
37075 break
37077 ac_mid=`expr 2 '*' $ac_mid`
37080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37081 done
37082 else
37083 echo "$as_me: failed program was:" >&5
37084 sed 's/^/| /' conftest.$ac_ext >&5
37086 ac_lo= ac_hi=
37089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37093 # Binary search between lo and hi bounds.
37094 while test "x$ac_lo" != "x$ac_hi"; do
37095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37096 cat >conftest.$ac_ext <<_ACEOF
37097 /* confdefs.h. */
37098 _ACEOF
37099 cat confdefs.h >>conftest.$ac_ext
37100 cat >>conftest.$ac_ext <<_ACEOF
37101 /* end confdefs.h. */
37102 $ac_includes_default
37103 typedef time_t ac__type_sizeof_;
37105 main ()
37107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37108 test_array [0] = 0
37111 return 0;
37113 _ACEOF
37114 rm -f conftest.$ac_objext
37115 if { (ac_try="$ac_compile"
37116 case "(($ac_try" in
37117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37118 *) ac_try_echo=$ac_try;;
37119 esac
37120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37121 (eval "$ac_compile") 2>conftest.er1
37122 ac_status=$?
37123 grep -v '^ *+' conftest.er1 >conftest.err
37124 rm -f conftest.er1
37125 cat conftest.err >&5
37126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); } && {
37128 test -z "$ac_c_werror_flag" ||
37129 test ! -s conftest.err
37130 } && test -s conftest.$ac_objext; then
37131 ac_hi=$ac_mid
37132 else
37133 echo "$as_me: failed program was:" >&5
37134 sed 's/^/| /' conftest.$ac_ext >&5
37136 ac_lo=`expr '(' $ac_mid ')' + 1`
37139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37140 done
37141 case $ac_lo in
37142 ?*) ac_cv_sizeof_time_t=$ac_lo;;
37143 '') if test "$ac_cv_type_time_t" = yes; then
37144 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
37145 See \`config.log' for more details." >&5
37146 echo "$as_me: error: cannot compute sizeof (time_t)
37147 See \`config.log' for more details." >&2;}
37148 { (exit 77); exit 77; }; }
37149 else
37150 ac_cv_sizeof_time_t=0
37151 fi ;;
37152 esac
37153 else
37154 cat >conftest.$ac_ext <<_ACEOF
37155 /* confdefs.h. */
37156 _ACEOF
37157 cat confdefs.h >>conftest.$ac_ext
37158 cat >>conftest.$ac_ext <<_ACEOF
37159 /* end confdefs.h. */
37160 $ac_includes_default
37161 typedef time_t ac__type_sizeof_;
37162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37164 #include <stdio.h>
37165 #include <stdlib.h>
37167 main ()
37170 FILE *f = fopen ("conftest.val", "w");
37171 if (! f)
37172 return 1;
37173 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37175 long int i = longval ();
37176 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37177 return 1;
37178 fprintf (f, "%ld\n", i);
37180 else
37182 unsigned long int i = ulongval ();
37183 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37184 return 1;
37185 fprintf (f, "%lu\n", i);
37187 return ferror (f) || fclose (f) != 0;
37190 return 0;
37192 _ACEOF
37193 rm -f conftest$ac_exeext
37194 if { (ac_try="$ac_link"
37195 case "(($ac_try" in
37196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37197 *) ac_try_echo=$ac_try;;
37198 esac
37199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37200 (eval "$ac_link") 2>&5
37201 ac_status=$?
37202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37204 { (case "(($ac_try" in
37205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37206 *) ac_try_echo=$ac_try;;
37207 esac
37208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37209 (eval "$ac_try") 2>&5
37210 ac_status=$?
37211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37212 (exit $ac_status); }; }; then
37213 ac_cv_sizeof_time_t=`cat conftest.val`
37214 else
37215 echo "$as_me: program exited with status $ac_status" >&5
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37219 ( exit $ac_status )
37220 if test "$ac_cv_type_time_t" = yes; then
37221 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
37222 See \`config.log' for more details." >&5
37223 echo "$as_me: error: cannot compute sizeof (time_t)
37224 See \`config.log' for more details." >&2;}
37225 { (exit 77); exit 77; }; }
37226 else
37227 ac_cv_sizeof_time_t=0
37230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37232 rm -f conftest.val
37234 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
37235 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
37239 cat >>confdefs.h <<_ACEOF
37240 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
37241 _ACEOF
37244 { echo "$as_me:$LINENO: checking for off_t" >&5
37245 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37246 if test "${ac_cv_type_off_t+set}" = set; then
37247 echo $ECHO_N "(cached) $ECHO_C" >&6
37248 else
37249 cat >conftest.$ac_ext <<_ACEOF
37250 /* confdefs.h. */
37251 _ACEOF
37252 cat confdefs.h >>conftest.$ac_ext
37253 cat >>conftest.$ac_ext <<_ACEOF
37254 /* end confdefs.h. */
37255 $ac_includes_default
37256 typedef off_t ac__type_new_;
37258 main ()
37260 if ((ac__type_new_ *) 0)
37261 return 0;
37262 if (sizeof (ac__type_new_))
37263 return 0;
37265 return 0;
37267 _ACEOF
37268 rm -f conftest.$ac_objext
37269 if { (ac_try="$ac_compile"
37270 case "(($ac_try" in
37271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37272 *) ac_try_echo=$ac_try;;
37273 esac
37274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37275 (eval "$ac_compile") 2>conftest.er1
37276 ac_status=$?
37277 grep -v '^ *+' conftest.er1 >conftest.err
37278 rm -f conftest.er1
37279 cat conftest.err >&5
37280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281 (exit $ac_status); } && {
37282 test -z "$ac_c_werror_flag" ||
37283 test ! -s conftest.err
37284 } && test -s conftest.$ac_objext; then
37285 ac_cv_type_off_t=yes
37286 else
37287 echo "$as_me: failed program was:" >&5
37288 sed 's/^/| /' conftest.$ac_ext >&5
37290 ac_cv_type_off_t=no
37293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37295 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37296 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37298 # The cast to long int works around a bug in the HP C Compiler
37299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37301 # This bug is HP SR number 8606223364.
37302 { echo "$as_me:$LINENO: checking size of off_t" >&5
37303 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
37304 if test "${ac_cv_sizeof_off_t+set}" = set; then
37305 echo $ECHO_N "(cached) $ECHO_C" >&6
37306 else
37307 if test "$cross_compiling" = yes; then
37308 # Depending upon the size, compute the lo and hi bounds.
37309 cat >conftest.$ac_ext <<_ACEOF
37310 /* confdefs.h. */
37311 _ACEOF
37312 cat confdefs.h >>conftest.$ac_ext
37313 cat >>conftest.$ac_ext <<_ACEOF
37314 /* end confdefs.h. */
37315 $ac_includes_default
37316 typedef off_t ac__type_sizeof_;
37318 main ()
37320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37321 test_array [0] = 0
37324 return 0;
37326 _ACEOF
37327 rm -f conftest.$ac_objext
37328 if { (ac_try="$ac_compile"
37329 case "(($ac_try" in
37330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37331 *) ac_try_echo=$ac_try;;
37332 esac
37333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37334 (eval "$ac_compile") 2>conftest.er1
37335 ac_status=$?
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } && {
37341 test -z "$ac_c_werror_flag" ||
37342 test ! -s conftest.err
37343 } && test -s conftest.$ac_objext; then
37344 ac_lo=0 ac_mid=0
37345 while :; do
37346 cat >conftest.$ac_ext <<_ACEOF
37347 /* confdefs.h. */
37348 _ACEOF
37349 cat confdefs.h >>conftest.$ac_ext
37350 cat >>conftest.$ac_ext <<_ACEOF
37351 /* end confdefs.h. */
37352 $ac_includes_default
37353 typedef off_t ac__type_sizeof_;
37355 main ()
37357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37358 test_array [0] = 0
37361 return 0;
37363 _ACEOF
37364 rm -f conftest.$ac_objext
37365 if { (ac_try="$ac_compile"
37366 case "(($ac_try" in
37367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37368 *) ac_try_echo=$ac_try;;
37369 esac
37370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37371 (eval "$ac_compile") 2>conftest.er1
37372 ac_status=$?
37373 grep -v '^ *+' conftest.er1 >conftest.err
37374 rm -f conftest.er1
37375 cat conftest.err >&5
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); } && {
37378 test -z "$ac_c_werror_flag" ||
37379 test ! -s conftest.err
37380 } && test -s conftest.$ac_objext; then
37381 ac_hi=$ac_mid; break
37382 else
37383 echo "$as_me: failed program was:" >&5
37384 sed 's/^/| /' conftest.$ac_ext >&5
37386 ac_lo=`expr $ac_mid + 1`
37387 if test $ac_lo -le $ac_mid; then
37388 ac_lo= ac_hi=
37389 break
37391 ac_mid=`expr 2 '*' $ac_mid + 1`
37394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37395 done
37396 else
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37400 cat >conftest.$ac_ext <<_ACEOF
37401 /* confdefs.h. */
37402 _ACEOF
37403 cat confdefs.h >>conftest.$ac_ext
37404 cat >>conftest.$ac_ext <<_ACEOF
37405 /* end confdefs.h. */
37406 $ac_includes_default
37407 typedef off_t ac__type_sizeof_;
37409 main ()
37411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37412 test_array [0] = 0
37415 return 0;
37417 _ACEOF
37418 rm -f conftest.$ac_objext
37419 if { (ac_try="$ac_compile"
37420 case "(($ac_try" in
37421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37422 *) ac_try_echo=$ac_try;;
37423 esac
37424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37425 (eval "$ac_compile") 2>conftest.er1
37426 ac_status=$?
37427 grep -v '^ *+' conftest.er1 >conftest.err
37428 rm -f conftest.er1
37429 cat conftest.err >&5
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); } && {
37432 test -z "$ac_c_werror_flag" ||
37433 test ! -s conftest.err
37434 } && test -s conftest.$ac_objext; then
37435 ac_hi=-1 ac_mid=-1
37436 while :; do
37437 cat >conftest.$ac_ext <<_ACEOF
37438 /* confdefs.h. */
37439 _ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h. */
37443 $ac_includes_default
37444 typedef off_t ac__type_sizeof_;
37446 main ()
37448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37449 test_array [0] = 0
37452 return 0;
37454 _ACEOF
37455 rm -f conftest.$ac_objext
37456 if { (ac_try="$ac_compile"
37457 case "(($ac_try" in
37458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37459 *) ac_try_echo=$ac_try;;
37460 esac
37461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37462 (eval "$ac_compile") 2>conftest.er1
37463 ac_status=$?
37464 grep -v '^ *+' conftest.er1 >conftest.err
37465 rm -f conftest.er1
37466 cat conftest.err >&5
37467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468 (exit $ac_status); } && {
37469 test -z "$ac_c_werror_flag" ||
37470 test ! -s conftest.err
37471 } && test -s conftest.$ac_objext; then
37472 ac_lo=$ac_mid; break
37473 else
37474 echo "$as_me: failed program was:" >&5
37475 sed 's/^/| /' conftest.$ac_ext >&5
37477 ac_hi=`expr '(' $ac_mid ')' - 1`
37478 if test $ac_mid -le $ac_hi; then
37479 ac_lo= ac_hi=
37480 break
37482 ac_mid=`expr 2 '*' $ac_mid`
37485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37486 done
37487 else
37488 echo "$as_me: failed program was:" >&5
37489 sed 's/^/| /' conftest.$ac_ext >&5
37491 ac_lo= ac_hi=
37494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37498 # Binary search between lo and hi bounds.
37499 while test "x$ac_lo" != "x$ac_hi"; do
37500 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37501 cat >conftest.$ac_ext <<_ACEOF
37502 /* confdefs.h. */
37503 _ACEOF
37504 cat confdefs.h >>conftest.$ac_ext
37505 cat >>conftest.$ac_ext <<_ACEOF
37506 /* end confdefs.h. */
37507 $ac_includes_default
37508 typedef off_t ac__type_sizeof_;
37510 main ()
37512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37513 test_array [0] = 0
37516 return 0;
37518 _ACEOF
37519 rm -f conftest.$ac_objext
37520 if { (ac_try="$ac_compile"
37521 case "(($ac_try" in
37522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37524 esac
37525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37526 (eval "$ac_compile") 2>conftest.er1
37527 ac_status=$?
37528 grep -v '^ *+' conftest.er1 >conftest.err
37529 rm -f conftest.er1
37530 cat conftest.err >&5
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } && {
37533 test -z "$ac_c_werror_flag" ||
37534 test ! -s conftest.err
37535 } && test -s conftest.$ac_objext; then
37536 ac_hi=$ac_mid
37537 else
37538 echo "$as_me: failed program was:" >&5
37539 sed 's/^/| /' conftest.$ac_ext >&5
37541 ac_lo=`expr '(' $ac_mid ')' + 1`
37544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37545 done
37546 case $ac_lo in
37547 ?*) ac_cv_sizeof_off_t=$ac_lo;;
37548 '') if test "$ac_cv_type_off_t" = yes; then
37549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
37550 See \`config.log' for more details." >&5
37551 echo "$as_me: error: cannot compute sizeof (off_t)
37552 See \`config.log' for more details." >&2;}
37553 { (exit 77); exit 77; }; }
37554 else
37555 ac_cv_sizeof_off_t=0
37556 fi ;;
37557 esac
37558 else
37559 cat >conftest.$ac_ext <<_ACEOF
37560 /* confdefs.h. */
37561 _ACEOF
37562 cat confdefs.h >>conftest.$ac_ext
37563 cat >>conftest.$ac_ext <<_ACEOF
37564 /* end confdefs.h. */
37565 $ac_includes_default
37566 typedef off_t ac__type_sizeof_;
37567 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37568 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37569 #include <stdio.h>
37570 #include <stdlib.h>
37572 main ()
37575 FILE *f = fopen ("conftest.val", "w");
37576 if (! f)
37577 return 1;
37578 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37580 long int i = longval ();
37581 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37582 return 1;
37583 fprintf (f, "%ld\n", i);
37585 else
37587 unsigned long int i = ulongval ();
37588 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37589 return 1;
37590 fprintf (f, "%lu\n", i);
37592 return ferror (f) || fclose (f) != 0;
37595 return 0;
37597 _ACEOF
37598 rm -f conftest$ac_exeext
37599 if { (ac_try="$ac_link"
37600 case "(($ac_try" in
37601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602 *) ac_try_echo=$ac_try;;
37603 esac
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605 (eval "$ac_link") 2>&5
37606 ac_status=$?
37607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37609 { (case "(($ac_try" in
37610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37611 *) ac_try_echo=$ac_try;;
37612 esac
37613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37614 (eval "$ac_try") 2>&5
37615 ac_status=$?
37616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617 (exit $ac_status); }; }; then
37618 ac_cv_sizeof_off_t=`cat conftest.val`
37619 else
37620 echo "$as_me: program exited with status $ac_status" >&5
37621 echo "$as_me: failed program was:" >&5
37622 sed 's/^/| /' conftest.$ac_ext >&5
37624 ( exit $ac_status )
37625 if test "$ac_cv_type_off_t" = yes; then
37626 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
37627 See \`config.log' for more details." >&5
37628 echo "$as_me: error: cannot compute sizeof (off_t)
37629 See \`config.log' for more details." >&2;}
37630 { (exit 77); exit 77; }; }
37631 else
37632 ac_cv_sizeof_off_t=0
37635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37637 rm -f conftest.val
37639 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
37640 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
37644 cat >>confdefs.h <<_ACEOF
37645 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
37646 _ACEOF
37650 soname_bump=no
37651 if test x"$ac_cv_native_windows" != "xyes" &&
37652 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
37653 { echo "$as_me:$LINENO: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
37654 echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
37655 { echo "$as_me:$LINENO: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
37656 echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
37657 soname_bump=yes
37661 { echo "$as_me:$LINENO: checking for long long" >&5
37662 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
37663 if test "${ac_cv_type_long_long+set}" = set; then
37664 echo $ECHO_N "(cached) $ECHO_C" >&6
37665 else
37666 cat >conftest.$ac_ext <<_ACEOF
37667 /* confdefs.h. */
37668 _ACEOF
37669 cat confdefs.h >>conftest.$ac_ext
37670 cat >>conftest.$ac_ext <<_ACEOF
37671 /* end confdefs.h. */
37672 $ac_includes_default
37673 typedef long long ac__type_new_;
37675 main ()
37677 if ((ac__type_new_ *) 0)
37678 return 0;
37679 if (sizeof (ac__type_new_))
37680 return 0;
37682 return 0;
37684 _ACEOF
37685 rm -f conftest.$ac_objext
37686 if { (ac_try="$ac_compile"
37687 case "(($ac_try" in
37688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689 *) ac_try_echo=$ac_try;;
37690 esac
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692 (eval "$ac_compile") 2>conftest.er1
37693 ac_status=$?
37694 grep -v '^ *+' conftest.er1 >conftest.err
37695 rm -f conftest.er1
37696 cat conftest.err >&5
37697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698 (exit $ac_status); } && {
37699 test -z "$ac_c_werror_flag" ||
37700 test ! -s conftest.err
37701 } && test -s conftest.$ac_objext; then
37702 ac_cv_type_long_long=yes
37703 else
37704 echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.$ac_ext >&5
37707 ac_cv_type_long_long=no
37710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37712 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37713 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
37714 if test $ac_cv_type_long_long = yes; then
37716 cat >>confdefs.h <<\_ACEOF
37717 #define HAVE_LONGLONG 1
37718 _ACEOF
37720 longlong="yes"
37725 if test "xyes" = "x$longlong"; then
37726 { echo "$as_me:$LINENO: checking if numberLL works" >&5
37727 echo $ECHO_N "checking if numberLL works... $ECHO_C" >&6; }
37728 cat >conftest.$ac_ext <<_ACEOF
37729 long long val = 1000LL;
37730 _ACEOF
37731 rm -f conftest.$ac_objext
37732 if { (ac_try="$ac_compile"
37733 case "(($ac_try" in
37734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37735 *) ac_try_echo=$ac_try;;
37736 esac
37737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37738 (eval "$ac_compile") 2>conftest.er1
37739 ac_status=$?
37740 grep -v '^ *+' conftest.er1 >conftest.err
37741 rm -f conftest.er1
37742 cat conftest.err >&5
37743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744 (exit $ac_status); } && {
37745 test -z "$ac_c_werror_flag" ||
37746 test ! -s conftest.err
37747 } && test -s conftest.$ac_objext; then
37749 cat >>confdefs.h <<\_ACEOF
37750 #define HAVE_LL 1
37751 _ACEOF
37753 { echo "$as_me:$LINENO: result: yes" >&5
37754 echo "${ECHO_T}yes" >&6; }
37755 else
37756 echo "$as_me: failed program was:" >&5
37757 sed 's/^/| /' conftest.$ac_ext >&5
37759 { echo "$as_me:$LINENO: result: no" >&5
37760 echo "${ECHO_T}no" >&6; }
37764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37768 # check for ssize_t
37769 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37770 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37771 if test "${ac_cv_type_ssize_t+set}" = set; then
37772 echo $ECHO_N "(cached) $ECHO_C" >&6
37773 else
37774 cat >conftest.$ac_ext <<_ACEOF
37775 /* confdefs.h. */
37776 _ACEOF
37777 cat confdefs.h >>conftest.$ac_ext
37778 cat >>conftest.$ac_ext <<_ACEOF
37779 /* end confdefs.h. */
37780 $ac_includes_default
37781 typedef ssize_t ac__type_new_;
37783 main ()
37785 if ((ac__type_new_ *) 0)
37786 return 0;
37787 if (sizeof (ac__type_new_))
37788 return 0;
37790 return 0;
37792 _ACEOF
37793 rm -f conftest.$ac_objext
37794 if { (ac_try="$ac_compile"
37795 case "(($ac_try" in
37796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37797 *) ac_try_echo=$ac_try;;
37798 esac
37799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37800 (eval "$ac_compile") 2>conftest.er1
37801 ac_status=$?
37802 grep -v '^ *+' conftest.er1 >conftest.err
37803 rm -f conftest.er1
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } && {
37807 test -z "$ac_c_werror_flag" ||
37808 test ! -s conftest.err
37809 } && test -s conftest.$ac_objext; then
37810 ac_cv_type_ssize_t=yes
37811 else
37812 echo "$as_me: failed program was:" >&5
37813 sed 's/^/| /' conftest.$ac_ext >&5
37815 ac_cv_type_ssize_t=no
37818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37820 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37821 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37822 if test $ac_cv_type_ssize_t = yes; then
37824 else
37826 cat >>confdefs.h <<\_ACEOF
37827 #define ssize_t int
37828 _ACEOF
37833 # check for bool type
37834 { echo "$as_me:$LINENO: checking for bool" >&5
37835 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
37836 if test "${ac_cv_type_bool+set}" = set; then
37837 echo $ECHO_N "(cached) $ECHO_C" >&6
37838 else
37839 cat >conftest.$ac_ext <<_ACEOF
37840 /* confdefs.h. */
37841 _ACEOF
37842 cat confdefs.h >>conftest.$ac_ext
37843 cat >>conftest.$ac_ext <<_ACEOF
37844 /* end confdefs.h. */
37846 #ifdef HAVE_SYS_TYPES_H
37847 #include <sys/types.h>
37848 #endif
37849 #ifdef HAVE_STDBOOL_H
37850 #include <stdbool.h>
37851 #endif
37854 typedef bool ac__type_new_;
37856 main ()
37858 if ((ac__type_new_ *) 0)
37859 return 0;
37860 if (sizeof (ac__type_new_))
37861 return 0;
37863 return 0;
37865 _ACEOF
37866 rm -f conftest.$ac_objext
37867 if { (ac_try="$ac_compile"
37868 case "(($ac_try" in
37869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870 *) ac_try_echo=$ac_try;;
37871 esac
37872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37873 (eval "$ac_compile") 2>conftest.er1
37874 ac_status=$?
37875 grep -v '^ *+' conftest.er1 >conftest.err
37876 rm -f conftest.er1
37877 cat conftest.err >&5
37878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879 (exit $ac_status); } && {
37880 test -z "$ac_c_werror_flag" ||
37881 test ! -s conftest.err
37882 } && test -s conftest.$ac_objext; then
37883 ac_cv_type_bool=yes
37884 else
37885 echo "$as_me: failed program was:" >&5
37886 sed 's/^/| /' conftest.$ac_ext >&5
37888 ac_cv_type_bool=no
37891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37893 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
37894 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
37895 if test $ac_cv_type_bool = yes; then
37898 cat >>confdefs.h <<\_ACEOF
37899 #define HAVE_BOOL_T 1
37900 _ACEOF
37906 # Check for socklen_t or equivalent
37908 { echo "$as_me:$LINENO: checking for socklen_t" >&5
37909 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
37910 if test "${ac_cv_type_socklen_t+set}" = set; then
37911 echo $ECHO_N "(cached) $ECHO_C" >&6
37912 else
37913 cat >conftest.$ac_ext <<_ACEOF
37914 /* confdefs.h. */
37915 _ACEOF
37916 cat confdefs.h >>conftest.$ac_ext
37917 cat >>conftest.$ac_ext <<_ACEOF
37918 /* end confdefs.h. */
37920 #undef inline
37921 #ifdef HAVE_WINDOWS_H
37922 #ifndef WIN32_LEAN_AND_MEAN
37923 #define WIN32_LEAN_AND_MEAN
37924 #endif
37925 #include <windows.h>
37926 #ifdef HAVE_WINSOCK2_H
37927 #include <winsock2.h>
37928 #ifdef HAVE_WS2TCPIP_H
37929 #include <ws2tcpip.h>
37930 #endif
37931 #endif
37932 #else
37933 #ifdef HAVE_SYS_TYPES_H
37934 #include <sys/types.h>
37935 #endif
37936 #ifdef HAVE_SYS_SOCKET_H
37937 #include <sys/socket.h>
37938 #endif
37939 #endif
37942 typedef socklen_t ac__type_new_;
37944 main ()
37946 if ((ac__type_new_ *) 0)
37947 return 0;
37948 if (sizeof (ac__type_new_))
37949 return 0;
37951 return 0;
37953 _ACEOF
37954 rm -f conftest.$ac_objext
37955 if { (ac_try="$ac_compile"
37956 case "(($ac_try" in
37957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37958 *) ac_try_echo=$ac_try;;
37959 esac
37960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37961 (eval "$ac_compile") 2>conftest.er1
37962 ac_status=$?
37963 grep -v '^ *+' conftest.er1 >conftest.err
37964 rm -f conftest.er1
37965 cat conftest.err >&5
37966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967 (exit $ac_status); } && {
37968 test -z "$ac_c_werror_flag" ||
37969 test ! -s conftest.err
37970 } && test -s conftest.$ac_objext; then
37971 ac_cv_type_socklen_t=yes
37972 else
37973 echo "$as_me: failed program was:" >&5
37974 sed 's/^/| /' conftest.$ac_ext >&5
37976 ac_cv_type_socklen_t=no
37979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37981 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37982 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
37983 if test $ac_cv_type_socklen_t = yes; then
37985 else
37987 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
37988 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
37989 if test "${curl_cv_socklen_t_equiv+set}" = set; then
37990 echo $ECHO_N "(cached) $ECHO_C" >&6
37991 else
37993 curl_cv_socklen_t_equiv="unknown"
37994 for arg1 in 'int' 'SOCKET'; do
37995 for arg2 in "struct sockaddr" void; do
37996 for t in int size_t unsigned long "unsigned long"; do
37997 if test "$curl_cv_socklen_t_equiv" = "unknown"; then
37998 cat >conftest.$ac_ext <<_ACEOF
38000 /* confdefs.h. */
38001 _ACEOF
38002 cat confdefs.h >>conftest.$ac_ext
38003 cat >>conftest.$ac_ext <<_ACEOF
38004 /* end confdefs.h. */
38006 #undef inline
38007 #ifdef HAVE_WINDOWS_H
38008 #ifndef WIN32_LEAN_AND_MEAN
38009 #define WIN32_LEAN_AND_MEAN
38010 #endif
38011 #include <windows.h>
38012 #ifdef HAVE_WINSOCK2_H
38013 #include <winsock2.h>
38014 #else
38015 #ifdef HAVE_WINSOCK_H
38016 #include <winsock.h>
38017 #endif
38018 #endif
38019 #define GETPEERNCALLCONV PASCAL
38020 #else
38021 #ifdef HAVE_SYS_TYPES_H
38022 #include <sys/types.h>
38023 #endif
38024 #ifdef HAVE_SYS_SOCKET_H
38025 #include <sys/socket.h>
38026 #endif
38027 #define GETPEERNCALLCONV
38028 #endif
38029 extern int GETPEERNCALLCONV getpeername($arg1, $arg2 *, $t *);
38032 main ()
38035 $t len=0;
38036 getpeername(0,0,&len);
38039 return 0;
38042 _ACEOF
38043 rm -f conftest.$ac_objext
38044 if { (ac_try="$ac_compile"
38045 case "(($ac_try" in
38046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38047 *) ac_try_echo=$ac_try;;
38048 esac
38049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38050 (eval "$ac_compile") 2>conftest.er1
38051 ac_status=$?
38052 grep -v '^ *+' conftest.er1 >conftest.err
38053 rm -f conftest.er1
38054 cat conftest.err >&5
38055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38056 (exit $ac_status); } && {
38057 test -z "$ac_c_werror_flag" ||
38058 test ! -s conftest.err
38059 } && test -s conftest.$ac_objext; then
38061 curl_cv_socklen_t_equiv="$t"
38063 else
38064 echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38072 done
38073 done
38074 done
38077 { echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
38078 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6; }
38079 case "$curl_cv_socklen_t_equiv" in
38080 unknown)
38081 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
38082 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
38083 { (exit 1); exit 1; }; }
38087 cat >>confdefs.h <<_ACEOF
38088 #define socklen_t $curl_cv_socklen_t_equiv
38089 _ACEOF
38092 esac
38099 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
38100 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
38101 if test "${ac_cv_type_in_addr_t+set}" = set; then
38102 echo $ECHO_N "(cached) $ECHO_C" >&6
38103 else
38104 cat >conftest.$ac_ext <<_ACEOF
38105 /* confdefs.h. */
38106 _ACEOF
38107 cat confdefs.h >>conftest.$ac_ext
38108 cat >>conftest.$ac_ext <<_ACEOF
38109 /* end confdefs.h. */
38111 #undef inline
38112 #ifdef HAVE_WINDOWS_H
38113 #ifndef WIN32_LEAN_AND_MEAN
38114 #define WIN32_LEAN_AND_MEAN
38115 #endif
38116 #include <windows.h>
38117 #ifdef HAVE_WINSOCK2_H
38118 #include <winsock2.h>
38119 #else
38120 #ifdef HAVE_WINSOCK_H
38121 #include <winsock.h>
38122 #endif
38123 #endif
38124 #else
38125 #ifdef HAVE_SYS_TYPES_H
38126 #include <sys/types.h>
38127 #endif
38128 #ifdef HAVE_SYS_SOCKET_H
38129 #include <sys/socket.h>
38130 #endif
38131 #ifdef HAVE_NETINET_IN_H
38132 #include <netinet/in.h>
38133 #endif
38134 #ifdef HAVE_ARPA_INET_H
38135 #include <arpa/inet.h>
38136 #endif
38137 #endif
38140 typedef in_addr_t ac__type_new_;
38142 main ()
38144 if ((ac__type_new_ *) 0)
38145 return 0;
38146 if (sizeof (ac__type_new_))
38147 return 0;
38149 return 0;
38151 _ACEOF
38152 rm -f conftest.$ac_objext
38153 if { (ac_try="$ac_compile"
38154 case "(($ac_try" in
38155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38156 *) ac_try_echo=$ac_try;;
38157 esac
38158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38159 (eval "$ac_compile") 2>conftest.er1
38160 ac_status=$?
38161 grep -v '^ *+' conftest.er1 >conftest.err
38162 rm -f conftest.er1
38163 cat conftest.err >&5
38164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38165 (exit $ac_status); } && {
38166 test -z "$ac_c_werror_flag" ||
38167 test ! -s conftest.err
38168 } && test -s conftest.$ac_objext; then
38169 ac_cv_type_in_addr_t=yes
38170 else
38171 echo "$as_me: failed program was:" >&5
38172 sed 's/^/| /' conftest.$ac_ext >&5
38174 ac_cv_type_in_addr_t=no
38177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38179 { echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
38180 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6; }
38181 if test $ac_cv_type_in_addr_t = yes; then
38183 else
38185 { echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
38186 echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6; }
38187 if test "${curl_cv_in_addr_t_equiv+set}" = set; then
38188 echo $ECHO_N "(cached) $ECHO_C" >&6
38189 else
38191 curl_cv_in_addr_t_equiv="unknown"
38192 for t in "unsigned long" int size_t unsigned long; do
38193 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
38194 cat >conftest.$ac_ext <<_ACEOF
38196 /* confdefs.h. */
38197 _ACEOF
38198 cat confdefs.h >>conftest.$ac_ext
38199 cat >>conftest.$ac_ext <<_ACEOF
38200 /* end confdefs.h. */
38202 #undef inline
38203 #ifdef HAVE_WINDOWS_H
38204 #ifndef WIN32_LEAN_AND_MEAN
38205 #define WIN32_LEAN_AND_MEAN
38206 #endif
38207 #include <windows.h>
38208 #ifdef HAVE_WINSOCK2_H
38209 #include <winsock2.h>
38210 #else
38211 #ifdef HAVE_WINSOCK_H
38212 #include <winsock.h>
38213 #endif
38214 #endif
38215 #else
38216 #ifdef HAVE_SYS_TYPES_H
38217 #include <sys/types.h>
38218 #endif
38219 #ifdef HAVE_SYS_SOCKET_H
38220 #include <sys/socket.h>
38221 #endif
38222 #ifdef HAVE_NETINET_IN_H
38223 #include <netinet/in.h>
38224 #endif
38225 #ifdef HAVE_ARPA_INET_H
38226 #include <arpa/inet.h>
38227 #endif
38228 #endif
38231 main ()
38234 $t data = inet_addr ("1.2.3.4");
38237 return 0;
38240 _ACEOF
38241 rm -f conftest.$ac_objext conftest$ac_exeext
38242 if { (ac_try="$ac_link"
38243 case "(($ac_try" in
38244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38245 *) ac_try_echo=$ac_try;;
38246 esac
38247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38248 (eval "$ac_link") 2>conftest.er1
38249 ac_status=$?
38250 grep -v '^ *+' conftest.er1 >conftest.err
38251 rm -f conftest.er1
38252 cat conftest.err >&5
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); } && {
38255 test -z "$ac_c_werror_flag" ||
38256 test ! -s conftest.err
38257 } && test -s conftest$ac_exeext &&
38258 $as_test_x conftest$ac_exeext; then
38260 curl_cv_in_addr_t_equiv="$t"
38262 else
38263 echo "$as_me: failed program was:" >&5
38264 sed 's/^/| /' conftest.$ac_ext >&5
38269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38270 conftest$ac_exeext conftest.$ac_ext
38272 done
38275 { echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
38276 echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6; }
38277 case "$curl_cv_in_addr_t_equiv" in
38278 unknown)
38279 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
38280 echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
38281 { (exit 1); exit 1; }; }
38285 cat >>confdefs.h <<_ACEOF
38286 #define in_addr_t $curl_cv_in_addr_t_equiv
38287 _ACEOF
38290 esac
38297 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
38298 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
38299 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
38300 echo $ECHO_N "(cached) $ECHO_C" >&6
38301 else
38302 cat >conftest.$ac_ext <<_ACEOF
38303 /* confdefs.h. */
38304 _ACEOF
38305 cat confdefs.h >>conftest.$ac_ext
38306 cat >>conftest.$ac_ext <<_ACEOF
38307 /* end confdefs.h. */
38309 #undef inline
38310 #ifdef HAVE_WINDOWS_H
38311 #ifndef WIN32_LEAN_AND_MEAN
38312 #define WIN32_LEAN_AND_MEAN
38313 #endif
38314 #include <windows.h>
38315 #ifdef HAVE_WINSOCK2_H
38316 #include <winsock2.h>
38317 #endif
38318 #else
38319 #ifdef HAVE_SYS_TYPES_H
38320 #include <sys/types.h>
38321 #endif
38322 #ifdef HAVE_SYS_SOCKET_H
38323 #include <sys/socket.h>
38324 #endif
38325 #ifdef HAVE_NETINET_IN_H
38326 #include <netinet/in.h>
38327 #endif
38328 #ifdef HAVE_ARPA_INET_H
38329 #include <arpa/inet.h>
38330 #endif
38331 #endif
38334 typedef struct sockaddr_storage ac__type_new_;
38336 main ()
38338 if ((ac__type_new_ *) 0)
38339 return 0;
38340 if (sizeof (ac__type_new_))
38341 return 0;
38343 return 0;
38345 _ACEOF
38346 rm -f conftest.$ac_objext
38347 if { (ac_try="$ac_compile"
38348 case "(($ac_try" in
38349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38350 *) ac_try_echo=$ac_try;;
38351 esac
38352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38353 (eval "$ac_compile") 2>conftest.er1
38354 ac_status=$?
38355 grep -v '^ *+' conftest.er1 >conftest.err
38356 rm -f conftest.er1
38357 cat conftest.err >&5
38358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359 (exit $ac_status); } && {
38360 test -z "$ac_c_werror_flag" ||
38361 test ! -s conftest.err
38362 } && test -s conftest.$ac_objext; then
38363 ac_cv_type_struct_sockaddr_storage=yes
38364 else
38365 echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38368 ac_cv_type_struct_sockaddr_storage=no
38371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38373 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
38374 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
38375 if test $ac_cv_type_struct_sockaddr_storage = yes; then
38377 cat >>confdefs.h <<\_ACEOF
38378 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
38379 _ACEOF
38387 for ac_header in signal.h
38389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38394 echo $ECHO_N "(cached) $ECHO_C" >&6
38396 ac_res=`eval echo '${'$as_ac_Header'}'`
38397 { echo "$as_me:$LINENO: result: $ac_res" >&5
38398 echo "${ECHO_T}$ac_res" >&6; }
38399 else
38400 # Is the header compilable?
38401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38403 cat >conftest.$ac_ext <<_ACEOF
38404 /* confdefs.h. */
38405 _ACEOF
38406 cat confdefs.h >>conftest.$ac_ext
38407 cat >>conftest.$ac_ext <<_ACEOF
38408 /* end confdefs.h. */
38409 $ac_includes_default
38410 #include <$ac_header>
38411 _ACEOF
38412 rm -f conftest.$ac_objext
38413 if { (ac_try="$ac_compile"
38414 case "(($ac_try" in
38415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38416 *) ac_try_echo=$ac_try;;
38417 esac
38418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38419 (eval "$ac_compile") 2>conftest.er1
38420 ac_status=$?
38421 grep -v '^ *+' conftest.er1 >conftest.err
38422 rm -f conftest.er1
38423 cat conftest.err >&5
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); } && {
38426 test -z "$ac_c_werror_flag" ||
38427 test ! -s conftest.err
38428 } && test -s conftest.$ac_objext; then
38429 ac_header_compiler=yes
38430 else
38431 echo "$as_me: failed program was:" >&5
38432 sed 's/^/| /' conftest.$ac_ext >&5
38434 ac_header_compiler=no
38437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38439 echo "${ECHO_T}$ac_header_compiler" >&6; }
38441 # Is the header present?
38442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38444 cat >conftest.$ac_ext <<_ACEOF
38445 /* confdefs.h. */
38446 _ACEOF
38447 cat confdefs.h >>conftest.$ac_ext
38448 cat >>conftest.$ac_ext <<_ACEOF
38449 /* end confdefs.h. */
38450 #include <$ac_header>
38451 _ACEOF
38452 if { (ac_try="$ac_cpp conftest.$ac_ext"
38453 case "(($ac_try" in
38454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38455 *) ac_try_echo=$ac_try;;
38456 esac
38457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38459 ac_status=$?
38460 grep -v '^ *+' conftest.er1 >conftest.err
38461 rm -f conftest.er1
38462 cat conftest.err >&5
38463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38464 (exit $ac_status); } >/dev/null && {
38465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38466 test ! -s conftest.err
38467 }; then
38468 ac_header_preproc=yes
38469 else
38470 echo "$as_me: failed program was:" >&5
38471 sed 's/^/| /' conftest.$ac_ext >&5
38473 ac_header_preproc=no
38476 rm -f conftest.err conftest.$ac_ext
38477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38478 echo "${ECHO_T}$ac_header_preproc" >&6; }
38480 # So? What about this header?
38481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38482 yes:no: )
38483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38487 ac_header_preproc=yes
38489 no:yes:* )
38490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38502 ( cat <<\_ASBOX
38503 ## ------------------------------------------------------------------------ ##
38504 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
38505 ## ------------------------------------------------------------------------ ##
38506 _ASBOX
38507 ) | sed "s/^/$as_me: WARNING: /" >&2
38509 esac
38510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38513 echo $ECHO_N "(cached) $ECHO_C" >&6
38514 else
38515 eval "$as_ac_Header=\$ac_header_preproc"
38517 ac_res=`eval echo '${'$as_ac_Header'}'`
38518 { echo "$as_me:$LINENO: result: $ac_res" >&5
38519 echo "${ECHO_T}$ac_res" >&6; }
38522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38523 cat >>confdefs.h <<_ACEOF
38524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38525 _ACEOF
38529 done
38531 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
38532 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
38533 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
38534 echo $ECHO_N "(cached) $ECHO_C" >&6
38535 else
38536 cat >conftest.$ac_ext <<_ACEOF
38537 /* confdefs.h. */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h. */
38543 #ifdef HAVE_SIGNAL_H
38544 #include <signal.h>
38545 #endif
38548 typedef sig_atomic_t ac__type_new_;
38550 main ()
38552 if ((ac__type_new_ *) 0)
38553 return 0;
38554 if (sizeof (ac__type_new_))
38555 return 0;
38557 return 0;
38559 _ACEOF
38560 rm -f conftest.$ac_objext
38561 if { (ac_try="$ac_compile"
38562 case "(($ac_try" in
38563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38564 *) ac_try_echo=$ac_try;;
38565 esac
38566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38567 (eval "$ac_compile") 2>conftest.er1
38568 ac_status=$?
38569 grep -v '^ *+' conftest.er1 >conftest.err
38570 rm -f conftest.er1
38571 cat conftest.err >&5
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); } && {
38574 test -z "$ac_c_werror_flag" ||
38575 test ! -s conftest.err
38576 } && test -s conftest.$ac_objext; then
38577 ac_cv_type_sig_atomic_t=yes
38578 else
38579 echo "$as_me: failed program was:" >&5
38580 sed 's/^/| /' conftest.$ac_ext >&5
38582 ac_cv_type_sig_atomic_t=no
38585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38587 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
38588 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
38589 if test $ac_cv_type_sig_atomic_t = yes; then
38592 cat >>confdefs.h <<\_ACEOF
38593 #define HAVE_SIG_ATOMIC_T 1
38594 _ACEOF
38599 case "$ac_cv_type_sig_atomic_t" in
38600 yes)
38602 { echo "$as_me:$LINENO: checking if sig_atomic_t is already defined as volatile" >&5
38603 echo $ECHO_N "checking if sig_atomic_t is already defined as volatile... $ECHO_C" >&6; }
38604 cat >conftest.$ac_ext <<_ACEOF
38606 /* confdefs.h. */
38607 _ACEOF
38608 cat confdefs.h >>conftest.$ac_ext
38609 cat >>conftest.$ac_ext <<_ACEOF
38610 /* end confdefs.h. */
38612 #ifdef HAVE_SIGNAL_H
38613 #include <signal.h>
38614 #endif
38617 main ()
38620 static volatile sig_atomic_t dummy = 0;
38623 return 0;
38626 _ACEOF
38627 rm -f conftest.$ac_objext conftest$ac_exeext
38628 if { (ac_try="$ac_link"
38629 case "(($ac_try" in
38630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38631 *) ac_try_echo=$ac_try;;
38632 esac
38633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38634 (eval "$ac_link") 2>conftest.er1
38635 ac_status=$?
38636 grep -v '^ *+' conftest.er1 >conftest.err
38637 rm -f conftest.er1
38638 cat conftest.err >&5
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); } && {
38641 test -z "$ac_c_werror_flag" ||
38642 test ! -s conftest.err
38643 } && test -s conftest$ac_exeext &&
38644 $as_test_x conftest$ac_exeext; then
38646 { echo "$as_me:$LINENO: result: no" >&5
38647 echo "${ECHO_T}no" >&6; }
38648 ac_cv_sig_atomic_t_volatile="no"
38650 else
38651 echo "$as_me: failed program was:" >&5
38652 sed 's/^/| /' conftest.$ac_ext >&5
38655 { echo "$as_me:$LINENO: result: yes" >&5
38656 echo "${ECHO_T}yes" >&6; }
38657 ac_cv_sig_atomic_t_volatile="yes"
38661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38662 conftest$ac_exeext conftest.$ac_ext
38664 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
38666 cat >>confdefs.h <<\_ACEOF
38667 #define HAVE_SIG_ATOMIC_T_VOLATILE 1
38668 _ACEOF
38672 esac
38675 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
38676 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
38677 if test "${ac_cv_type_signal+set}" = set; then
38678 echo $ECHO_N "(cached) $ECHO_C" >&6
38679 else
38680 cat >conftest.$ac_ext <<_ACEOF
38681 /* confdefs.h. */
38682 _ACEOF
38683 cat confdefs.h >>conftest.$ac_ext
38684 cat >>conftest.$ac_ext <<_ACEOF
38685 /* end confdefs.h. */
38686 #include <sys/types.h>
38687 #include <signal.h>
38690 main ()
38692 return *(signal (0, 0)) (0) == 1;
38694 return 0;
38696 _ACEOF
38697 rm -f conftest.$ac_objext
38698 if { (ac_try="$ac_compile"
38699 case "(($ac_try" in
38700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701 *) ac_try_echo=$ac_try;;
38702 esac
38703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38704 (eval "$ac_compile") 2>conftest.er1
38705 ac_status=$?
38706 grep -v '^ *+' conftest.er1 >conftest.err
38707 rm -f conftest.er1
38708 cat conftest.err >&5
38709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710 (exit $ac_status); } && {
38711 test -z "$ac_c_werror_flag" ||
38712 test ! -s conftest.err
38713 } && test -s conftest.$ac_objext; then
38714 ac_cv_type_signal=int
38715 else
38716 echo "$as_me: failed program was:" >&5
38717 sed 's/^/| /' conftest.$ac_ext >&5
38719 ac_cv_type_signal=void
38722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38724 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
38725 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
38727 cat >>confdefs.h <<_ACEOF
38728 #define RETSIGTYPE $ac_cv_type_signal
38729 _ACEOF
38736 for ac_header in sys/select.h sys/socket.h
38738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38743 echo $ECHO_N "(cached) $ECHO_C" >&6
38745 ac_res=`eval echo '${'$as_ac_Header'}'`
38746 { echo "$as_me:$LINENO: result: $ac_res" >&5
38747 echo "${ECHO_T}$ac_res" >&6; }
38748 else
38749 # Is the header compilable?
38750 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38752 cat >conftest.$ac_ext <<_ACEOF
38753 /* confdefs.h. */
38754 _ACEOF
38755 cat confdefs.h >>conftest.$ac_ext
38756 cat >>conftest.$ac_ext <<_ACEOF
38757 /* end confdefs.h. */
38758 $ac_includes_default
38759 #include <$ac_header>
38760 _ACEOF
38761 rm -f conftest.$ac_objext
38762 if { (ac_try="$ac_compile"
38763 case "(($ac_try" in
38764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38765 *) ac_try_echo=$ac_try;;
38766 esac
38767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38768 (eval "$ac_compile") 2>conftest.er1
38769 ac_status=$?
38770 grep -v '^ *+' conftest.er1 >conftest.err
38771 rm -f conftest.er1
38772 cat conftest.err >&5
38773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774 (exit $ac_status); } && {
38775 test -z "$ac_c_werror_flag" ||
38776 test ! -s conftest.err
38777 } && test -s conftest.$ac_objext; then
38778 ac_header_compiler=yes
38779 else
38780 echo "$as_me: failed program was:" >&5
38781 sed 's/^/| /' conftest.$ac_ext >&5
38783 ac_header_compiler=no
38786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38788 echo "${ECHO_T}$ac_header_compiler" >&6; }
38790 # Is the header present?
38791 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38793 cat >conftest.$ac_ext <<_ACEOF
38794 /* confdefs.h. */
38795 _ACEOF
38796 cat confdefs.h >>conftest.$ac_ext
38797 cat >>conftest.$ac_ext <<_ACEOF
38798 /* end confdefs.h. */
38799 #include <$ac_header>
38800 _ACEOF
38801 if { (ac_try="$ac_cpp conftest.$ac_ext"
38802 case "(($ac_try" in
38803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38804 *) ac_try_echo=$ac_try;;
38805 esac
38806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38808 ac_status=$?
38809 grep -v '^ *+' conftest.er1 >conftest.err
38810 rm -f conftest.er1
38811 cat conftest.err >&5
38812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813 (exit $ac_status); } >/dev/null && {
38814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38815 test ! -s conftest.err
38816 }; then
38817 ac_header_preproc=yes
38818 else
38819 echo "$as_me: failed program was:" >&5
38820 sed 's/^/| /' conftest.$ac_ext >&5
38822 ac_header_preproc=no
38825 rm -f conftest.err conftest.$ac_ext
38826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38827 echo "${ECHO_T}$ac_header_preproc" >&6; }
38829 # So? What about this header?
38830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38831 yes:no: )
38832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38836 ac_header_preproc=yes
38838 no:yes:* )
38839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38846 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38851 ( cat <<\_ASBOX
38852 ## ------------------------------------------------------------------------ ##
38853 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
38854 ## ------------------------------------------------------------------------ ##
38855 _ASBOX
38856 ) | sed "s/^/$as_me: WARNING: /" >&2
38858 esac
38859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38862 echo $ECHO_N "(cached) $ECHO_C" >&6
38863 else
38864 eval "$as_ac_Header=\$ac_header_preproc"
38866 ac_res=`eval echo '${'$as_ac_Header'}'`
38867 { echo "$as_me:$LINENO: result: $ac_res" >&5
38868 echo "${ECHO_T}$ac_res" >&6; }
38871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38872 cat >>confdefs.h <<_ACEOF
38873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38874 _ACEOF
38878 done
38881 { echo "$as_me:$LINENO: checking for select" >&5
38882 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
38883 cat >conftest.$ac_ext <<_ACEOF
38885 /* confdefs.h. */
38886 _ACEOF
38887 cat confdefs.h >>conftest.$ac_ext
38888 cat >>conftest.$ac_ext <<_ACEOF
38889 /* end confdefs.h. */
38891 #undef inline
38892 #ifdef HAVE_WINDOWS_H
38893 #ifndef WIN32_LEAN_AND_MEAN
38894 #define WIN32_LEAN_AND_MEAN
38895 #endif
38896 #include <windows.h>
38897 #ifdef HAVE_WINSOCK2_H
38898 #include <winsock2.h>
38899 #else
38900 #ifdef HAVE_WINSOCK_H
38901 #include <winsock.h>
38902 #endif
38903 #endif
38904 #endif
38905 #ifdef HAVE_SYS_TYPES_H
38906 #include <sys/types.h>
38907 #endif
38908 #ifdef HAVE_SYS_TIME_H
38909 #include <sys/time.h>
38910 #ifdef TIME_WITH_SYS_TIME
38911 #include <time.h>
38912 #endif
38913 #else
38914 #ifdef HAVE_TIME_H
38915 #include <time.h>
38916 #endif
38917 #endif
38918 #ifndef HAVE_WINDOWS_H
38919 #ifdef HAVE_SYS_SELECT_H
38920 #include <sys/select.h>
38921 #endif
38922 #ifdef HAVE_SYS_SOCKET_H
38923 #include <sys/socket.h>
38924 #endif
38925 #endif
38928 main ()
38931 select(0, 0, 0, 0, 0);
38934 return 0;
38937 _ACEOF
38938 rm -f conftest.$ac_objext conftest$ac_exeext
38939 if { (ac_try="$ac_link"
38940 case "(($ac_try" in
38941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38942 *) ac_try_echo=$ac_try;;
38943 esac
38944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38945 (eval "$ac_link") 2>conftest.er1
38946 ac_status=$?
38947 grep -v '^ *+' conftest.er1 >conftest.err
38948 rm -f conftest.er1
38949 cat conftest.err >&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); } && {
38952 test -z "$ac_c_werror_flag" ||
38953 test ! -s conftest.err
38954 } && test -s conftest$ac_exeext &&
38955 $as_test_x conftest$ac_exeext; then
38957 { echo "$as_me:$LINENO: result: yes" >&5
38958 echo "${ECHO_T}yes" >&6; }
38959 curl_cv_select="yes"
38961 else
38962 echo "$as_me: failed program was:" >&5
38963 sed 's/^/| /' conftest.$ac_ext >&5
38966 { echo "$as_me:$LINENO: result: no" >&5
38967 echo "${ECHO_T}no" >&6; }
38968 curl_cv_select="no"
38972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38973 conftest$ac_exeext conftest.$ac_ext
38975 if test "$curl_cv_select" = "yes"; then
38976 { echo "$as_me:$LINENO: checking types of args and return type for select" >&5
38977 echo $ECHO_N "checking types of args and return type for select... $ECHO_C" >&6; }
38978 if test "${curl_cv_func_select_args+set}" = set; then
38979 echo $ECHO_N "(cached) $ECHO_C" >&6
38980 else
38982 curl_cv_func_select_args="unknown"
38983 for sel_retv in 'int' 'ssize_t'; do
38984 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
38985 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
38986 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
38987 if test "$curl_cv_func_select_args" = "unknown"; then
38988 cat >conftest.$ac_ext <<_ACEOF
38990 /* confdefs.h. */
38991 _ACEOF
38992 cat confdefs.h >>conftest.$ac_ext
38993 cat >>conftest.$ac_ext <<_ACEOF
38994 /* end confdefs.h. */
38996 #undef inline
38997 #ifdef HAVE_WINDOWS_H
38998 #ifndef WIN32_LEAN_AND_MEAN
38999 #define WIN32_LEAN_AND_MEAN
39000 #endif
39001 #include <windows.h>
39002 #ifdef HAVE_WINSOCK2_H
39003 #include <winsock2.h>
39004 #else
39005 #ifdef HAVE_WINSOCK_H
39006 #include <winsock.h>
39007 #endif
39008 #endif
39009 #define SELECTCALLCONV PASCAL
39010 #endif
39011 #ifdef HAVE_SYS_TYPES_H
39012 #include <sys/types.h>
39013 #endif
39014 #ifdef HAVE_SYS_TIME_H
39015 #include <sys/time.h>
39016 #ifdef TIME_WITH_SYS_TIME
39017 #include <time.h>
39018 #endif
39019 #else
39020 #ifdef HAVE_TIME_H
39021 #include <time.h>
39022 #endif
39023 #endif
39024 #ifndef HAVE_WINDOWS_H
39025 #ifdef HAVE_SYS_SELECT_H
39026 #include <sys/select.h>
39027 #endif
39028 #ifdef HAVE_SYS_SOCKET_H
39029 #include <sys/socket.h>
39030 #endif
39031 #define SELECTCALLCONV
39032 #endif
39033 #ifndef HAVE_STRUCT_TIMEVAL
39034 struct timeval {
39035 long tv_sec;
39036 long tv_usec;
39038 #endif
39039 extern $sel_retv SELECTCALLCONV select($sel_arg1,
39040 $sel_arg234,
39041 $sel_arg234,
39042 $sel_arg234,
39043 $sel_arg5);
39046 main ()
39049 $sel_arg1 nfds=0;
39050 $sel_arg234 rfds=0;
39051 $sel_arg234 wfds=0;
39052 $sel_arg234 efds=0;
39053 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
39056 return 0;
39059 _ACEOF
39060 rm -f conftest.$ac_objext
39061 if { (ac_try="$ac_compile"
39062 case "(($ac_try" in
39063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39064 *) ac_try_echo=$ac_try;;
39065 esac
39066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39067 (eval "$ac_compile") 2>conftest.er1
39068 ac_status=$?
39069 grep -v '^ *+' conftest.er1 >conftest.err
39070 rm -f conftest.er1
39071 cat conftest.err >&5
39072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073 (exit $ac_status); } && {
39074 test -z "$ac_c_werror_flag" ||
39075 test ! -s conftest.err
39076 } && test -s conftest.$ac_objext; then
39078 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
39080 else
39081 echo "$as_me: failed program was:" >&5
39082 sed 's/^/| /' conftest.$ac_ext >&5
39087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39089 done
39090 done
39091 done
39092 done
39095 { echo "$as_me:$LINENO: result: $curl_cv_func_select_args" >&5
39096 echo "${ECHO_T}$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
39097 if test "$curl_cv_func_select_args" = "unknown"; then
39098 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for select args" >&5
39099 echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
39100 { echo "$as_me:$LINENO: WARNING: HAVE_SELECT will not be defined" >&5
39101 echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
39102 else
39103 select_prev_IFS=$IFS; IFS=','
39104 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
39105 IFS=$select_prev_IFS
39106 shift
39108 sel_qual_type_arg5=$3
39111 cat >>confdefs.h <<_ACEOF
39112 #define SELECT_TYPE_ARG1 $1
39113 _ACEOF
39116 cat >>confdefs.h <<_ACEOF
39117 #define SELECT_TYPE_ARG234 $2
39118 _ACEOF
39121 cat >>confdefs.h <<_ACEOF
39122 #define SELECT_TYPE_RETV $4
39123 _ACEOF
39126 prev_sh_opts=$-
39128 case $prev_sh_opts in
39129 *f*)
39132 set -f
39134 esac
39136 case "$sel_qual_type_arg5" in
39137 const*)
39138 sel_qual_arg5=const
39139 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
39142 sel_qual_arg5=
39143 sel_type_arg5=$sel_qual_type_arg5
39145 esac
39148 cat >>confdefs.h <<_ACEOF
39149 #define SELECT_QUAL_ARG5 $sel_qual_arg5
39150 _ACEOF
39153 cat >>confdefs.h <<_ACEOF
39154 #define SELECT_TYPE_ARG5 $sel_type_arg5
39155 _ACEOF
39158 case $prev_sh_opts in
39159 *f*)
39162 set +f
39164 esac
39167 cat >>confdefs.h <<_ACEOF
39168 #define HAVE_SELECT 1
39169 _ACEOF
39171 ac_cv_func_select="yes"
39179 for ac_header in sys/types.h sys/socket.h
39181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39186 echo $ECHO_N "(cached) $ECHO_C" >&6
39188 ac_res=`eval echo '${'$as_ac_Header'}'`
39189 { echo "$as_me:$LINENO: result: $ac_res" >&5
39190 echo "${ECHO_T}$ac_res" >&6; }
39191 else
39192 # Is the header compilable?
39193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39195 cat >conftest.$ac_ext <<_ACEOF
39196 /* confdefs.h. */
39197 _ACEOF
39198 cat confdefs.h >>conftest.$ac_ext
39199 cat >>conftest.$ac_ext <<_ACEOF
39200 /* end confdefs.h. */
39201 $ac_includes_default
39202 #include <$ac_header>
39203 _ACEOF
39204 rm -f conftest.$ac_objext
39205 if { (ac_try="$ac_compile"
39206 case "(($ac_try" in
39207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39208 *) ac_try_echo=$ac_try;;
39209 esac
39210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39211 (eval "$ac_compile") 2>conftest.er1
39212 ac_status=$?
39213 grep -v '^ *+' conftest.er1 >conftest.err
39214 rm -f conftest.er1
39215 cat conftest.err >&5
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); } && {
39218 test -z "$ac_c_werror_flag" ||
39219 test ! -s conftest.err
39220 } && test -s conftest.$ac_objext; then
39221 ac_header_compiler=yes
39222 else
39223 echo "$as_me: failed program was:" >&5
39224 sed 's/^/| /' conftest.$ac_ext >&5
39226 ac_header_compiler=no
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39231 echo "${ECHO_T}$ac_header_compiler" >&6; }
39233 # Is the header present?
39234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39236 cat >conftest.$ac_ext <<_ACEOF
39237 /* confdefs.h. */
39238 _ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h. */
39242 #include <$ac_header>
39243 _ACEOF
39244 if { (ac_try="$ac_cpp conftest.$ac_ext"
39245 case "(($ac_try" in
39246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39247 *) ac_try_echo=$ac_try;;
39248 esac
39249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39251 ac_status=$?
39252 grep -v '^ *+' conftest.er1 >conftest.err
39253 rm -f conftest.er1
39254 cat conftest.err >&5
39255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39256 (exit $ac_status); } >/dev/null && {
39257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39258 test ! -s conftest.err
39259 }; then
39260 ac_header_preproc=yes
39261 else
39262 echo "$as_me: failed program was:" >&5
39263 sed 's/^/| /' conftest.$ac_ext >&5
39265 ac_header_preproc=no
39268 rm -f conftest.err conftest.$ac_ext
39269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39270 echo "${ECHO_T}$ac_header_preproc" >&6; }
39272 # So? What about this header?
39273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39274 yes:no: )
39275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39279 ac_header_preproc=yes
39281 no:yes:* )
39282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39294 ( cat <<\_ASBOX
39295 ## ------------------------------------------------------------------------ ##
39296 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
39297 ## ------------------------------------------------------------------------ ##
39298 _ASBOX
39299 ) | sed "s/^/$as_me: WARNING: /" >&2
39301 esac
39302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39305 echo $ECHO_N "(cached) $ECHO_C" >&6
39306 else
39307 eval "$as_ac_Header=\$ac_header_preproc"
39309 ac_res=`eval echo '${'$as_ac_Header'}'`
39310 { echo "$as_me:$LINENO: result: $ac_res" >&5
39311 echo "${ECHO_T}$ac_res" >&6; }
39314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39315 cat >>confdefs.h <<_ACEOF
39316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39317 _ACEOF
39321 done
39324 { echo "$as_me:$LINENO: checking for recv" >&5
39325 echo $ECHO_N "checking for recv... $ECHO_C" >&6; }
39326 cat >conftest.$ac_ext <<_ACEOF
39328 /* confdefs.h. */
39329 _ACEOF
39330 cat confdefs.h >>conftest.$ac_ext
39331 cat >>conftest.$ac_ext <<_ACEOF
39332 /* end confdefs.h. */
39334 #undef inline
39335 #ifdef HAVE_WINDOWS_H
39336 #ifndef WIN32_LEAN_AND_MEAN
39337 #define WIN32_LEAN_AND_MEAN
39338 #endif
39339 #include <windows.h>
39340 #ifdef HAVE_WINSOCK2_H
39341 #include <winsock2.h>
39342 #else
39343 #ifdef HAVE_WINSOCK_H
39344 #include <winsock.h>
39345 #endif
39346 #endif
39347 #else
39348 #ifdef HAVE_SYS_TYPES_H
39349 #include <sys/types.h>
39350 #endif
39351 #ifdef HAVE_SYS_SOCKET_H
39352 #include <sys/socket.h>
39353 #endif
39354 #endif
39357 main ()
39360 recv(0, 0, 0, 0);
39363 return 0;
39366 _ACEOF
39367 rm -f conftest.$ac_objext conftest$ac_exeext
39368 if { (ac_try="$ac_link"
39369 case "(($ac_try" in
39370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39371 *) ac_try_echo=$ac_try;;
39372 esac
39373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39374 (eval "$ac_link") 2>conftest.er1
39375 ac_status=$?
39376 grep -v '^ *+' conftest.er1 >conftest.err
39377 rm -f conftest.er1
39378 cat conftest.err >&5
39379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380 (exit $ac_status); } && {
39381 test -z "$ac_c_werror_flag" ||
39382 test ! -s conftest.err
39383 } && test -s conftest$ac_exeext &&
39384 $as_test_x conftest$ac_exeext; then
39386 { echo "$as_me:$LINENO: result: yes" >&5
39387 echo "${ECHO_T}yes" >&6; }
39388 curl_cv_recv="yes"
39390 else
39391 echo "$as_me: failed program was:" >&5
39392 sed 's/^/| /' conftest.$ac_ext >&5
39395 { echo "$as_me:$LINENO: result: no" >&5
39396 echo "${ECHO_T}no" >&6; }
39397 curl_cv_recv="no"
39401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39402 conftest$ac_exeext conftest.$ac_ext
39404 if test "$curl_cv_recv" = "yes"; then
39405 { echo "$as_me:$LINENO: checking types of args and return type for recv" >&5
39406 echo $ECHO_N "checking types of args and return type for recv... $ECHO_C" >&6; }
39407 if test "${curl_cv_func_recv_args+set}" = set; then
39408 echo $ECHO_N "(cached) $ECHO_C" >&6
39409 else
39411 curl_cv_func_recv_args="unknown"
39412 for recv_retv in 'int' 'ssize_t'; do
39413 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
39414 for recv_arg2 in 'char *' 'void *'; do
39415 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
39416 for recv_arg4 in 'int' 'unsigned int'; do
39417 if test "$curl_cv_func_recv_args" = "unknown"; then
39418 cat >conftest.$ac_ext <<_ACEOF
39420 /* confdefs.h. */
39421 _ACEOF
39422 cat confdefs.h >>conftest.$ac_ext
39423 cat >>conftest.$ac_ext <<_ACEOF
39424 /* end confdefs.h. */
39426 #undef inline
39427 #ifdef HAVE_WINDOWS_H
39428 #ifndef WIN32_LEAN_AND_MEAN
39429 #define WIN32_LEAN_AND_MEAN
39430 #endif
39431 #include <windows.h>
39432 #ifdef HAVE_WINSOCK2_H
39433 #include <winsock2.h>
39434 #else
39435 #ifdef HAVE_WINSOCK_H
39436 #include <winsock.h>
39437 #endif
39438 #endif
39439 #define RECVCALLCONV PASCAL
39440 #else
39441 #ifdef HAVE_SYS_TYPES_H
39442 #include <sys/types.h>
39443 #endif
39444 #ifdef HAVE_SYS_SOCKET_H
39445 #include <sys/socket.h>
39446 #endif
39447 #define RECVCALLCONV
39448 #endif
39449 extern $recv_retv RECVCALLCONV
39450 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
39453 main ()
39456 $recv_arg1 s=0;
39457 $recv_arg2 buf=0;
39458 $recv_arg3 len=0;
39459 $recv_arg4 flags=0;
39460 $recv_retv res = recv(s, buf, len, flags);
39463 return 0;
39466 _ACEOF
39467 rm -f conftest.$ac_objext
39468 if { (ac_try="$ac_compile"
39469 case "(($ac_try" in
39470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39471 *) ac_try_echo=$ac_try;;
39472 esac
39473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39474 (eval "$ac_compile") 2>conftest.er1
39475 ac_status=$?
39476 grep -v '^ *+' conftest.er1 >conftest.err
39477 rm -f conftest.er1
39478 cat conftest.err >&5
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } && {
39481 test -z "$ac_c_werror_flag" ||
39482 test ! -s conftest.err
39483 } && test -s conftest.$ac_objext; then
39485 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
39487 else
39488 echo "$as_me: failed program was:" >&5
39489 sed 's/^/| /' conftest.$ac_ext >&5
39494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39496 done
39497 done
39498 done
39499 done
39500 done
39503 { echo "$as_me:$LINENO: result: $curl_cv_func_recv_args" >&5
39504 echo "${ECHO_T}$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
39505 if test "$curl_cv_func_recv_args" = "unknown"; then
39506 { { echo "$as_me:$LINENO: error: Cannot find proper types to use for recv args" >&5
39507 echo "$as_me: error: Cannot find proper types to use for recv args" >&2;}
39508 { (exit 1); exit 1; }; }
39509 else
39510 recv_prev_IFS=$IFS; IFS=','
39511 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
39512 IFS=$recv_prev_IFS
39513 shift
39516 cat >>confdefs.h <<_ACEOF
39517 #define RECV_TYPE_ARG1 $1
39518 _ACEOF
39521 cat >>confdefs.h <<_ACEOF
39522 #define RECV_TYPE_ARG2 $2
39523 _ACEOF
39526 cat >>confdefs.h <<_ACEOF
39527 #define RECV_TYPE_ARG3 $3
39528 _ACEOF
39531 cat >>confdefs.h <<_ACEOF
39532 #define RECV_TYPE_ARG4 $4
39533 _ACEOF
39536 cat >>confdefs.h <<_ACEOF
39537 #define RECV_TYPE_RETV $5
39538 _ACEOF
39542 cat >>confdefs.h <<_ACEOF
39543 #define HAVE_RECV 1
39544 _ACEOF
39546 ac_cv_func_recv="yes"
39548 else
39549 { { echo "$as_me:$LINENO: error: Unable to link function recv" >&5
39550 echo "$as_me: error: Unable to link function recv" >&2;}
39551 { (exit 1); exit 1; }; }
39557 for ac_header in sys/types.h sys/socket.h
39559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39564 echo $ECHO_N "(cached) $ECHO_C" >&6
39566 ac_res=`eval echo '${'$as_ac_Header'}'`
39567 { echo "$as_me:$LINENO: result: $ac_res" >&5
39568 echo "${ECHO_T}$ac_res" >&6; }
39569 else
39570 # Is the header compilable?
39571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
39572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
39573 cat >conftest.$ac_ext <<_ACEOF
39574 /* confdefs.h. */
39575 _ACEOF
39576 cat confdefs.h >>conftest.$ac_ext
39577 cat >>conftest.$ac_ext <<_ACEOF
39578 /* end confdefs.h. */
39579 $ac_includes_default
39580 #include <$ac_header>
39581 _ACEOF
39582 rm -f conftest.$ac_objext
39583 if { (ac_try="$ac_compile"
39584 case "(($ac_try" in
39585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39586 *) ac_try_echo=$ac_try;;
39587 esac
39588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39589 (eval "$ac_compile") 2>conftest.er1
39590 ac_status=$?
39591 grep -v '^ *+' conftest.er1 >conftest.err
39592 rm -f conftest.er1
39593 cat conftest.err >&5
39594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595 (exit $ac_status); } && {
39596 test -z "$ac_c_werror_flag" ||
39597 test ! -s conftest.err
39598 } && test -s conftest.$ac_objext; then
39599 ac_header_compiler=yes
39600 else
39601 echo "$as_me: failed program was:" >&5
39602 sed 's/^/| /' conftest.$ac_ext >&5
39604 ac_header_compiler=no
39607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39609 echo "${ECHO_T}$ac_header_compiler" >&6; }
39611 # Is the header present?
39612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
39613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
39614 cat >conftest.$ac_ext <<_ACEOF
39615 /* confdefs.h. */
39616 _ACEOF
39617 cat confdefs.h >>conftest.$ac_ext
39618 cat >>conftest.$ac_ext <<_ACEOF
39619 /* end confdefs.h. */
39620 #include <$ac_header>
39621 _ACEOF
39622 if { (ac_try="$ac_cpp conftest.$ac_ext"
39623 case "(($ac_try" in
39624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39625 *) ac_try_echo=$ac_try;;
39626 esac
39627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39629 ac_status=$?
39630 grep -v '^ *+' conftest.er1 >conftest.err
39631 rm -f conftest.er1
39632 cat conftest.err >&5
39633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634 (exit $ac_status); } >/dev/null && {
39635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39636 test ! -s conftest.err
39637 }; then
39638 ac_header_preproc=yes
39639 else
39640 echo "$as_me: failed program was:" >&5
39641 sed 's/^/| /' conftest.$ac_ext >&5
39643 ac_header_preproc=no
39646 rm -f conftest.err conftest.$ac_ext
39647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39648 echo "${ECHO_T}$ac_header_preproc" >&6; }
39650 # So? What about this header?
39651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39652 yes:no: )
39653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39657 ac_header_preproc=yes
39659 no:yes:* )
39660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
39668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39672 ( cat <<\_ASBOX
39673 ## ------------------------------------------------------------------------ ##
39674 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
39675 ## ------------------------------------------------------------------------ ##
39676 _ASBOX
39677 ) | sed "s/^/$as_me: WARNING: /" >&2
39679 esac
39680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39683 echo $ECHO_N "(cached) $ECHO_C" >&6
39684 else
39685 eval "$as_ac_Header=\$ac_header_preproc"
39687 ac_res=`eval echo '${'$as_ac_Header'}'`
39688 { echo "$as_me:$LINENO: result: $ac_res" >&5
39689 echo "${ECHO_T}$ac_res" >&6; }
39692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39693 cat >>confdefs.h <<_ACEOF
39694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39695 _ACEOF
39699 done
39702 { echo "$as_me:$LINENO: checking for recvfrom" >&5
39703 echo $ECHO_N "checking for recvfrom... $ECHO_C" >&6; }
39704 cat >conftest.$ac_ext <<_ACEOF
39706 /* confdefs.h. */
39707 _ACEOF
39708 cat confdefs.h >>conftest.$ac_ext
39709 cat >>conftest.$ac_ext <<_ACEOF
39710 /* end confdefs.h. */
39712 #undef inline
39713 #ifdef HAVE_WINDOWS_H
39714 #ifndef WIN32_LEAN_AND_MEAN
39715 #define WIN32_LEAN_AND_MEAN
39716 #endif
39717 #include <windows.h>
39718 #ifdef HAVE_WINSOCK2_H
39719 #include <winsock2.h>
39720 #else
39721 #ifdef HAVE_WINSOCK_H
39722 #include <winsock.h>
39723 #endif
39724 #endif
39725 #else
39726 #ifdef HAVE_SYS_TYPES_H
39727 #include <sys/types.h>
39728 #endif
39729 #ifdef HAVE_SYS_SOCKET_H
39730 #include <sys/socket.h>
39731 #endif
39732 #endif
39735 main ()
39738 recvfrom(0, 0, 0, 0, 0, 0);
39741 return 0;
39744 _ACEOF
39745 rm -f conftest.$ac_objext conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749 *) ac_try_echo=$ac_try;;
39750 esac
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752 (eval "$ac_link") 2>conftest.er1
39753 ac_status=$?
39754 grep -v '^ *+' conftest.er1 >conftest.err
39755 rm -f conftest.er1
39756 cat conftest.err >&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } && {
39759 test -z "$ac_c_werror_flag" ||
39760 test ! -s conftest.err
39761 } && test -s conftest$ac_exeext &&
39762 $as_test_x conftest$ac_exeext; then
39764 { echo "$as_me:$LINENO: result: yes" >&5
39765 echo "${ECHO_T}yes" >&6; }
39766 curl_cv_recvfrom="yes"
39768 else
39769 echo "$as_me: failed program was:" >&5
39770 sed 's/^/| /' conftest.$ac_ext >&5
39773 { echo "$as_me:$LINENO: result: no" >&5
39774 echo "${ECHO_T}no" >&6; }
39775 curl_cv_recvfrom="no"
39779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39780 conftest$ac_exeext conftest.$ac_ext
39782 if test "$curl_cv_recvfrom" = "yes"; then
39783 { echo "$as_me:$LINENO: checking types of args and return type for recvfrom" >&5
39784 echo $ECHO_N "checking types of args and return type for recvfrom... $ECHO_C" >&6; }
39785 if test "${curl_cv_func_recvfrom_args+set}" = set; then
39786 echo $ECHO_N "(cached) $ECHO_C" >&6
39787 else
39789 curl_cv_func_recvfrom_args="unknown"
39790 for recvfrom_retv in 'int' 'ssize_t'; do
39791 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do
39792 for recvfrom_arg2 in 'char *' 'void *'; do
39793 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
39794 for recvfrom_arg4 in 'int' 'unsigned int'; do
39795 for recvfrom_arg5 in 'struct sockaddr *' 'void *'; do
39796 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do
39797 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
39798 cat >conftest.$ac_ext <<_ACEOF
39800 /* confdefs.h. */
39801 _ACEOF
39802 cat confdefs.h >>conftest.$ac_ext
39803 cat >>conftest.$ac_ext <<_ACEOF
39804 /* end confdefs.h. */
39806 #undef inline
39807 #ifdef HAVE_WINDOWS_H
39808 #ifndef WIN32_LEAN_AND_MEAN
39809 #define WIN32_LEAN_AND_MEAN
39810 #endif
39811 #include <windows.h>
39812 #ifdef HAVE_WINSOCK2_H
39813 #include <winsock2.h>
39814 #else
39815 #ifdef HAVE_WINSOCK_H
39816 #include <winsock.h>
39817 #endif
39818 #endif
39819 #define RECVFROMCALLCONV PASCAL
39820 #else
39821 #ifdef HAVE_SYS_TYPES_H
39822 #include <sys/types.h>
39823 #endif
39824 #ifdef HAVE_SYS_SOCKET_H
39825 #include <sys/socket.h>
39826 #endif
39827 #define RECVFROMCALLCONV
39828 #endif
39829 extern $recvfrom_retv RECVFROMCALLCONV
39830 recvfrom($recvfrom_arg1, $recvfrom_arg2,
39831 $recvfrom_arg3, $recvfrom_arg4,
39832 $recvfrom_arg5, $recvfrom_arg6);
39835 main ()
39838 $recvfrom_arg1 s=0;
39839 $recvfrom_arg2 buf=0;
39840 $recvfrom_arg3 len=0;
39841 $recvfrom_arg4 flags=0;
39842 $recvfrom_arg5 addr=0;
39843 $recvfrom_arg6 addrlen=0;
39844 $recvfrom_retv res=0;
39845 res = recvfrom(s, buf, len, flags, addr, addrlen);
39848 return 0;
39851 _ACEOF
39852 rm -f conftest.$ac_objext
39853 if { (ac_try="$ac_compile"
39854 case "(($ac_try" in
39855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39856 *) ac_try_echo=$ac_try;;
39857 esac
39858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39859 (eval "$ac_compile") 2>conftest.er1
39860 ac_status=$?
39861 grep -v '^ *+' conftest.er1 >conftest.err
39862 rm -f conftest.er1
39863 cat conftest.err >&5
39864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865 (exit $ac_status); } && {
39866 test -z "$ac_c_werror_flag" ||
39867 test ! -s conftest.err
39868 } && test -s conftest.$ac_objext; then
39870 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv"
39872 else
39873 echo "$as_me: failed program was:" >&5
39874 sed 's/^/| /' conftest.$ac_ext >&5
39879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39881 done
39882 done
39883 done
39884 done
39885 done
39886 done
39887 done
39890 { echo "$as_me:$LINENO: result: $curl_cv_func_recvfrom_args" >&5
39891 echo "${ECHO_T}$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK
39892 # Nearly last minute change for this release starts here
39894 cat >>confdefs.h <<_ACEOF
39895 #define HAVE_RECVFROM 1
39896 _ACEOF
39898 ac_cv_func_recvfrom="yes"
39899 # Nearly last minute change for this release ends here
39900 if test "$curl_cv_func_recvfrom_args" = "unknown"; then
39901 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for recvfrom args" >&5
39902 echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;}
39903 else
39904 recvfrom_prev_IFS=$IFS; IFS=','
39905 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'`
39906 IFS=$recvfrom_prev_IFS
39907 shift
39909 recvfrom_ptrt_arg2=$2
39910 recvfrom_ptrt_arg5=$5
39911 recvfrom_ptrt_arg6=$6
39914 cat >>confdefs.h <<_ACEOF
39915 #define RECVFROM_TYPE_ARG1 $1
39916 _ACEOF
39919 cat >>confdefs.h <<_ACEOF
39920 #define RECVFROM_TYPE_ARG3 $3
39921 _ACEOF
39924 cat >>confdefs.h <<_ACEOF
39925 #define RECVFROM_TYPE_ARG4 $4
39926 _ACEOF
39929 cat >>confdefs.h <<_ACEOF
39930 #define RECVFROM_TYPE_RETV $7
39931 _ACEOF
39934 prev_sh_opts=$-
39936 case $prev_sh_opts in
39937 *f*)
39940 set -f
39942 esac
39944 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'`
39945 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'`
39946 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'`
39949 cat >>confdefs.h <<_ACEOF
39950 #define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2
39951 _ACEOF
39954 cat >>confdefs.h <<_ACEOF
39955 #define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5
39956 _ACEOF
39959 cat >>confdefs.h <<_ACEOF
39960 #define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6
39961 _ACEOF
39964 if test "$recvfrom_type_arg2" = "void"; then
39966 cat >>confdefs.h <<_ACEOF
39967 #define RECVFROM_TYPE_ARG2_IS_VOID 1
39968 _ACEOF
39971 if test "$recvfrom_type_arg5" = "void"; then
39973 cat >>confdefs.h <<_ACEOF
39974 #define RECVFROM_TYPE_ARG5_IS_VOID 1
39975 _ACEOF
39978 if test "$recvfrom_type_arg6" = "void"; then
39980 cat >>confdefs.h <<_ACEOF
39981 #define RECVFROM_TYPE_ARG6_IS_VOID 1
39982 _ACEOF
39986 case $prev_sh_opts in
39987 *f*)
39990 set +f
39992 esac
39995 cat >>confdefs.h <<_ACEOF
39996 #define HAVE_RECVFROM 1
39997 _ACEOF
39999 ac_cv_func_recvfrom="yes"
40001 else
40002 { echo "$as_me:$LINENO: WARNING: Unable to link function recvfrom" >&5
40003 echo "$as_me: WARNING: Unable to link function recvfrom" >&2;}
40009 for ac_header in sys/types.h sys/socket.h
40011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40016 echo $ECHO_N "(cached) $ECHO_C" >&6
40018 ac_res=`eval echo '${'$as_ac_Header'}'`
40019 { echo "$as_me:$LINENO: result: $ac_res" >&5
40020 echo "${ECHO_T}$ac_res" >&6; }
40021 else
40022 # Is the header compilable?
40023 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40025 cat >conftest.$ac_ext <<_ACEOF
40026 /* confdefs.h. */
40027 _ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40031 $ac_includes_default
40032 #include <$ac_header>
40033 _ACEOF
40034 rm -f conftest.$ac_objext
40035 if { (ac_try="$ac_compile"
40036 case "(($ac_try" in
40037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40038 *) ac_try_echo=$ac_try;;
40039 esac
40040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40041 (eval "$ac_compile") 2>conftest.er1
40042 ac_status=$?
40043 grep -v '^ *+' conftest.er1 >conftest.err
40044 rm -f conftest.er1
40045 cat conftest.err >&5
40046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40047 (exit $ac_status); } && {
40048 test -z "$ac_c_werror_flag" ||
40049 test ! -s conftest.err
40050 } && test -s conftest.$ac_objext; then
40051 ac_header_compiler=yes
40052 else
40053 echo "$as_me: failed program was:" >&5
40054 sed 's/^/| /' conftest.$ac_ext >&5
40056 ac_header_compiler=no
40059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40060 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40061 echo "${ECHO_T}$ac_header_compiler" >&6; }
40063 # Is the header present?
40064 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40066 cat >conftest.$ac_ext <<_ACEOF
40067 /* confdefs.h. */
40068 _ACEOF
40069 cat confdefs.h >>conftest.$ac_ext
40070 cat >>conftest.$ac_ext <<_ACEOF
40071 /* end confdefs.h. */
40072 #include <$ac_header>
40073 _ACEOF
40074 if { (ac_try="$ac_cpp conftest.$ac_ext"
40075 case "(($ac_try" in
40076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40077 *) ac_try_echo=$ac_try;;
40078 esac
40079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40081 ac_status=$?
40082 grep -v '^ *+' conftest.er1 >conftest.err
40083 rm -f conftest.er1
40084 cat conftest.err >&5
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); } >/dev/null && {
40087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40088 test ! -s conftest.err
40089 }; then
40090 ac_header_preproc=yes
40091 else
40092 echo "$as_me: failed program was:" >&5
40093 sed 's/^/| /' conftest.$ac_ext >&5
40095 ac_header_preproc=no
40098 rm -f conftest.err conftest.$ac_ext
40099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40100 echo "${ECHO_T}$ac_header_preproc" >&6; }
40102 # So? What about this header?
40103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40104 yes:no: )
40105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40109 ac_header_preproc=yes
40111 no:yes:* )
40112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40115 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40119 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40124 ( cat <<\_ASBOX
40125 ## ------------------------------------------------------------------------ ##
40126 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
40127 ## ------------------------------------------------------------------------ ##
40128 _ASBOX
40129 ) | sed "s/^/$as_me: WARNING: /" >&2
40131 esac
40132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40135 echo $ECHO_N "(cached) $ECHO_C" >&6
40136 else
40137 eval "$as_ac_Header=\$ac_header_preproc"
40139 ac_res=`eval echo '${'$as_ac_Header'}'`
40140 { echo "$as_me:$LINENO: result: $ac_res" >&5
40141 echo "${ECHO_T}$ac_res" >&6; }
40144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40145 cat >>confdefs.h <<_ACEOF
40146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40147 _ACEOF
40151 done
40154 { echo "$as_me:$LINENO: checking for send" >&5
40155 echo $ECHO_N "checking for send... $ECHO_C" >&6; }
40156 cat >conftest.$ac_ext <<_ACEOF
40158 /* confdefs.h. */
40159 _ACEOF
40160 cat confdefs.h >>conftest.$ac_ext
40161 cat >>conftest.$ac_ext <<_ACEOF
40162 /* end confdefs.h. */
40164 #undef inline
40165 #ifdef HAVE_WINDOWS_H
40166 #ifndef WIN32_LEAN_AND_MEAN
40167 #define WIN32_LEAN_AND_MEAN
40168 #endif
40169 #include <windows.h>
40170 #ifdef HAVE_WINSOCK2_H
40171 #include <winsock2.h>
40172 #else
40173 #ifdef HAVE_WINSOCK_H
40174 #include <winsock.h>
40175 #endif
40176 #endif
40177 #else
40178 #ifdef HAVE_SYS_TYPES_H
40179 #include <sys/types.h>
40180 #endif
40181 #ifdef HAVE_SYS_SOCKET_H
40182 #include <sys/socket.h>
40183 #endif
40184 #endif
40187 main ()
40190 send(0, 0, 0, 0);
40193 return 0;
40196 _ACEOF
40197 rm -f conftest.$ac_objext conftest$ac_exeext
40198 if { (ac_try="$ac_link"
40199 case "(($ac_try" in
40200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40201 *) ac_try_echo=$ac_try;;
40202 esac
40203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40204 (eval "$ac_link") 2>conftest.er1
40205 ac_status=$?
40206 grep -v '^ *+' conftest.er1 >conftest.err
40207 rm -f conftest.er1
40208 cat conftest.err >&5
40209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210 (exit $ac_status); } && {
40211 test -z "$ac_c_werror_flag" ||
40212 test ! -s conftest.err
40213 } && test -s conftest$ac_exeext &&
40214 $as_test_x conftest$ac_exeext; then
40216 { echo "$as_me:$LINENO: result: yes" >&5
40217 echo "${ECHO_T}yes" >&6; }
40218 curl_cv_send="yes"
40220 else
40221 echo "$as_me: failed program was:" >&5
40222 sed 's/^/| /' conftest.$ac_ext >&5
40225 { echo "$as_me:$LINENO: result: no" >&5
40226 echo "${ECHO_T}no" >&6; }
40227 curl_cv_send="no"
40231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40232 conftest$ac_exeext conftest.$ac_ext
40234 if test "$curl_cv_send" = "yes"; then
40235 { echo "$as_me:$LINENO: checking types of args and return type for send" >&5
40236 echo $ECHO_N "checking types of args and return type for send... $ECHO_C" >&6; }
40237 if test "${curl_cv_func_send_args+set}" = set; then
40238 echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40241 curl_cv_func_send_args="unknown"
40242 for send_retv in 'int' 'ssize_t'; do
40243 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
40244 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
40245 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
40246 for send_arg4 in 'int' 'unsigned int'; do
40247 if test "$curl_cv_func_send_args" = "unknown"; then
40248 cat >conftest.$ac_ext <<_ACEOF
40250 /* confdefs.h. */
40251 _ACEOF
40252 cat confdefs.h >>conftest.$ac_ext
40253 cat >>conftest.$ac_ext <<_ACEOF
40254 /* end confdefs.h. */
40256 #undef inline
40257 #ifdef HAVE_WINDOWS_H
40258 #ifndef WIN32_LEAN_AND_MEAN
40259 #define WIN32_LEAN_AND_MEAN
40260 #endif
40261 #include <windows.h>
40262 #ifdef HAVE_WINSOCK2_H
40263 #include <winsock2.h>
40264 #else
40265 #ifdef HAVE_WINSOCK_H
40266 #include <winsock.h>
40267 #endif
40268 #endif
40269 #define SENDCALLCONV PASCAL
40270 #else
40271 #ifdef HAVE_SYS_TYPES_H
40272 #include <sys/types.h>
40273 #endif
40274 #ifdef HAVE_SYS_SOCKET_H
40275 #include <sys/socket.h>
40276 #endif
40277 #define SENDCALLCONV
40278 #endif
40279 extern $send_retv SENDCALLCONV
40280 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
40283 main ()
40286 $send_arg1 s=0;
40287 $send_arg3 len=0;
40288 $send_arg4 flags=0;
40289 $send_retv res = send(s, 0, len, flags);
40292 return 0;
40295 _ACEOF
40296 rm -f conftest.$ac_objext
40297 if { (ac_try="$ac_compile"
40298 case "(($ac_try" in
40299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40300 *) ac_try_echo=$ac_try;;
40301 esac
40302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40303 (eval "$ac_compile") 2>conftest.er1
40304 ac_status=$?
40305 grep -v '^ *+' conftest.er1 >conftest.err
40306 rm -f conftest.er1
40307 cat conftest.err >&5
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } && {
40310 test -z "$ac_c_werror_flag" ||
40311 test ! -s conftest.err
40312 } && test -s conftest.$ac_objext; then
40314 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
40316 else
40317 echo "$as_me: failed program was:" >&5
40318 sed 's/^/| /' conftest.$ac_ext >&5
40323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40325 done
40326 done
40327 done
40328 done
40329 done
40332 { echo "$as_me:$LINENO: result: $curl_cv_func_send_args" >&5
40333 echo "${ECHO_T}$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
40334 if test "$curl_cv_func_send_args" = "unknown"; then
40335 { { echo "$as_me:$LINENO: error: Cannot find proper types to use for send args" >&5
40336 echo "$as_me: error: Cannot find proper types to use for send args" >&2;}
40337 { (exit 1); exit 1; }; }
40338 else
40339 send_prev_IFS=$IFS; IFS=','
40340 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
40341 IFS=$send_prev_IFS
40342 shift
40344 send_qual_type_arg2=$2
40347 cat >>confdefs.h <<_ACEOF
40348 #define SEND_TYPE_ARG1 $1
40349 _ACEOF
40352 cat >>confdefs.h <<_ACEOF
40353 #define SEND_TYPE_ARG3 $3
40354 _ACEOF
40357 cat >>confdefs.h <<_ACEOF
40358 #define SEND_TYPE_ARG4 $4
40359 _ACEOF
40362 cat >>confdefs.h <<_ACEOF
40363 #define SEND_TYPE_RETV $5
40364 _ACEOF
40367 prev_sh_opts=$-
40369 case $prev_sh_opts in
40370 *f*)
40373 set -f
40375 esac
40377 case "$send_qual_type_arg2" in
40378 const*)
40379 send_qual_arg2=const
40380 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
40383 send_qual_arg2=
40384 send_type_arg2=$send_qual_type_arg2
40386 esac
40389 cat >>confdefs.h <<_ACEOF
40390 #define SEND_QUAL_ARG2 $send_qual_arg2
40391 _ACEOF
40394 cat >>confdefs.h <<_ACEOF
40395 #define SEND_TYPE_ARG2 $send_type_arg2
40396 _ACEOF
40399 case $prev_sh_opts in
40400 *f*)
40403 set +f
40405 esac
40408 cat >>confdefs.h <<_ACEOF
40409 #define HAVE_SEND 1
40410 _ACEOF
40412 ac_cv_func_send="yes"
40414 else
40415 { { echo "$as_me:$LINENO: error: Unable to link function send" >&5
40416 echo "$as_me: error: Unable to link function send" >&2;}
40417 { (exit 1); exit 1; }; }
40423 for ac_header in sys/types.h sys/socket.h
40425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 ac_res=`eval echo '${'$as_ac_Header'}'`
40433 { echo "$as_me:$LINENO: result: $ac_res" >&5
40434 echo "${ECHO_T}$ac_res" >&6; }
40435 else
40436 # Is the header compilable?
40437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40439 cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h. */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h. */
40445 $ac_includes_default
40446 #include <$ac_header>
40447 _ACEOF
40448 rm -f conftest.$ac_objext
40449 if { (ac_try="$ac_compile"
40450 case "(($ac_try" in
40451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40452 *) ac_try_echo=$ac_try;;
40453 esac
40454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40455 (eval "$ac_compile") 2>conftest.er1
40456 ac_status=$?
40457 grep -v '^ *+' conftest.er1 >conftest.err
40458 rm -f conftest.er1
40459 cat conftest.err >&5
40460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40461 (exit $ac_status); } && {
40462 test -z "$ac_c_werror_flag" ||
40463 test ! -s conftest.err
40464 } && test -s conftest.$ac_objext; then
40465 ac_header_compiler=yes
40466 else
40467 echo "$as_me: failed program was:" >&5
40468 sed 's/^/| /' conftest.$ac_ext >&5
40470 ac_header_compiler=no
40473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40474 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40475 echo "${ECHO_T}$ac_header_compiler" >&6; }
40477 # Is the header present?
40478 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40479 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40480 cat >conftest.$ac_ext <<_ACEOF
40481 /* confdefs.h. */
40482 _ACEOF
40483 cat confdefs.h >>conftest.$ac_ext
40484 cat >>conftest.$ac_ext <<_ACEOF
40485 /* end confdefs.h. */
40486 #include <$ac_header>
40487 _ACEOF
40488 if { (ac_try="$ac_cpp conftest.$ac_ext"
40489 case "(($ac_try" in
40490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40491 *) ac_try_echo=$ac_try;;
40492 esac
40493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40495 ac_status=$?
40496 grep -v '^ *+' conftest.er1 >conftest.err
40497 rm -f conftest.er1
40498 cat conftest.err >&5
40499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40500 (exit $ac_status); } >/dev/null && {
40501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40502 test ! -s conftest.err
40503 }; then
40504 ac_header_preproc=yes
40505 else
40506 echo "$as_me: failed program was:" >&5
40507 sed 's/^/| /' conftest.$ac_ext >&5
40509 ac_header_preproc=no
40512 rm -f conftest.err conftest.$ac_ext
40513 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40514 echo "${ECHO_T}$ac_header_preproc" >&6; }
40516 # So? What about this header?
40517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40518 yes:no: )
40519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40520 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40522 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40523 ac_header_preproc=yes
40525 no:yes:* )
40526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40527 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40529 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40531 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40533 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40537 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40538 ( cat <<\_ASBOX
40539 ## ------------------------------------------------------------------------ ##
40540 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
40541 ## ------------------------------------------------------------------------ ##
40542 _ASBOX
40543 ) | sed "s/^/$as_me: WARNING: /" >&2
40545 esac
40546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40549 echo $ECHO_N "(cached) $ECHO_C" >&6
40550 else
40551 eval "$as_ac_Header=\$ac_header_preproc"
40553 ac_res=`eval echo '${'$as_ac_Header'}'`
40554 { echo "$as_me:$LINENO: result: $ac_res" >&5
40555 echo "${ECHO_T}$ac_res" >&6; }
40558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40559 cat >>confdefs.h <<_ACEOF
40560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40561 _ACEOF
40565 done
40567 { echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
40568 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6; }
40569 if test "${ac_cv_msg_nosignal+set}" = set; then
40570 echo $ECHO_N "(cached) $ECHO_C" >&6
40571 else
40573 cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h. */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h. */
40581 #undef inline
40582 #ifdef HAVE_WINDOWS_H
40583 #ifndef WIN32_LEAN_AND_MEAN
40584 #define WIN32_LEAN_AND_MEAN
40585 #endif
40586 #include <windows.h>
40587 #ifdef HAVE_WINSOCK2_H
40588 #include <winsock2.h>
40589 #else
40590 #ifdef HAVE_WINSOCK_H
40591 #include <winsock.h>
40592 #endif
40593 #endif
40594 #else
40595 #ifdef HAVE_SYS_TYPES_H
40596 #include <sys/types.h>
40597 #endif
40598 #ifdef HAVE_SYS_SOCKET_H
40599 #include <sys/socket.h>
40600 #endif
40601 #endif
40604 main ()
40607 int flag=MSG_NOSIGNAL;
40610 return 0;
40613 _ACEOF
40614 rm -f conftest.$ac_objext
40615 if { (ac_try="$ac_compile"
40616 case "(($ac_try" in
40617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618 *) ac_try_echo=$ac_try;;
40619 esac
40620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40621 (eval "$ac_compile") 2>conftest.er1
40622 ac_status=$?
40623 grep -v '^ *+' conftest.er1 >conftest.err
40624 rm -f conftest.er1
40625 cat conftest.err >&5
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); } && {
40628 test -z "$ac_c_werror_flag" ||
40629 test ! -s conftest.err
40630 } && test -s conftest.$ac_objext; then
40632 ac_cv_msg_nosignal="yes"
40634 else
40635 echo "$as_me: failed program was:" >&5
40636 sed 's/^/| /' conftest.$ac_ext >&5
40639 ac_cv_msg_nosignal="no"
40643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40646 { echo "$as_me:$LINENO: result: $ac_cv_msg_nosignal" >&5
40647 echo "${ECHO_T}$ac_cv_msg_nosignal" >&6; }
40648 case "$ac_cv_msg_nosignal" in
40649 yes)
40651 cat >>confdefs.h <<_ACEOF
40652 #define HAVE_MSG_NOSIGNAL 1
40653 _ACEOF
40656 esac
40660 case $host in
40661 *msdosdjgpp)
40662 ac_cv_func_pipe=no
40663 skipcheck_pipe=yes
40664 { echo "$as_me:$LINENO: skip check for pipe on msdosdjgpp" >&5
40665 echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40667 esac
40706 for ac_func in basename \
40707 closesocket \
40708 fork \
40709 ftruncate \
40710 geteuid \
40711 gethostbyaddr \
40712 getpass_r \
40713 getppid \
40714 getprotobyname \
40715 getpwuid \
40716 getrlimit \
40717 gettimeofday \
40718 inet_addr \
40719 inet_ntoa \
40720 inet_pton \
40721 perror \
40722 pipe \
40723 poll \
40724 setlocale \
40725 setmode \
40726 setrlimit \
40727 sigaction \
40728 siginterrupt \
40729 signal \
40730 sigsetjmp \
40731 socket \
40732 strcasecmp \
40733 strcasestr \
40734 strcmpi \
40735 strdup \
40736 stricmp \
40737 strlcat \
40738 strstr \
40739 strtok_r \
40740 strtoll \
40741 uname \
40742 utime
40745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40749 echo $ECHO_N "(cached) $ECHO_C" >&6
40750 else
40751 cat >conftest.$ac_ext <<_ACEOF
40752 /* confdefs.h. */
40753 _ACEOF
40754 cat confdefs.h >>conftest.$ac_ext
40755 cat >>conftest.$ac_ext <<_ACEOF
40756 /* end confdefs.h. */
40757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40759 #define $ac_func innocuous_$ac_func
40761 /* System header to define __stub macros and hopefully few prototypes,
40762 which can conflict with char $ac_func (); below.
40763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40764 <limits.h> exists even on freestanding compilers. */
40766 #ifdef __STDC__
40767 # include <limits.h>
40768 #else
40769 # include <assert.h>
40770 #endif
40772 #undef $ac_func
40774 /* Override any GCC internal prototype to avoid an error.
40775 Use char because int might match the return type of a GCC
40776 builtin and then its argument prototype would still apply. */
40777 #ifdef __cplusplus
40778 extern "C"
40779 #endif
40780 char $ac_func ();
40781 /* The GNU C library defines this for functions which it implements
40782 to always fail with ENOSYS. Some functions are actually named
40783 something starting with __ and the normal name is an alias. */
40784 #if defined __stub_$ac_func || defined __stub___$ac_func
40785 choke me
40786 #endif
40789 main ()
40791 return $ac_func ();
40793 return 0;
40795 _ACEOF
40796 rm -f conftest.$ac_objext conftest$ac_exeext
40797 if { (ac_try="$ac_link"
40798 case "(($ac_try" in
40799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40800 *) ac_try_echo=$ac_try;;
40801 esac
40802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40803 (eval "$ac_link") 2>conftest.er1
40804 ac_status=$?
40805 grep -v '^ *+' conftest.er1 >conftest.err
40806 rm -f conftest.er1
40807 cat conftest.err >&5
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); } && {
40810 test -z "$ac_c_werror_flag" ||
40811 test ! -s conftest.err
40812 } && test -s conftest$ac_exeext &&
40813 $as_test_x conftest$ac_exeext; then
40814 eval "$as_ac_var=yes"
40815 else
40816 echo "$as_me: failed program was:" >&5
40817 sed 's/^/| /' conftest.$ac_ext >&5
40819 eval "$as_ac_var=no"
40822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40823 conftest$ac_exeext conftest.$ac_ext
40825 ac_res=`eval echo '${'$as_ac_var'}'`
40826 { echo "$as_me:$LINENO: result: $ac_res" >&5
40827 echo "${ECHO_T}$ac_res" >&6; }
40828 if test `eval echo '${'$as_ac_var'}'` = yes; then
40829 cat >>confdefs.h <<_ACEOF
40830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40831 _ACEOF
40834 else
40836 func="$ac_func"
40837 eval skipcheck=\$skipcheck_$func
40838 if test "x$skipcheck" != "xyes"; then
40839 { echo "$as_me:$LINENO: checking deeper for $func" >&5
40840 echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6; }
40841 cat >conftest.$ac_ext <<_ACEOF
40843 /* confdefs.h. */
40844 _ACEOF
40845 cat confdefs.h >>conftest.$ac_ext
40846 cat >>conftest.$ac_ext <<_ACEOF
40847 /* end confdefs.h. */
40851 main ()
40854 $func ();
40857 return 0;
40860 _ACEOF
40861 rm -f conftest.$ac_objext conftest$ac_exeext
40862 if { (ac_try="$ac_link"
40863 case "(($ac_try" in
40864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40865 *) ac_try_echo=$ac_try;;
40866 esac
40867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40868 (eval "$ac_link") 2>conftest.er1
40869 ac_status=$?
40870 grep -v '^ *+' conftest.er1 >conftest.err
40871 rm -f conftest.er1
40872 cat conftest.err >&5
40873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874 (exit $ac_status); } && {
40875 test -z "$ac_c_werror_flag" ||
40876 test ! -s conftest.err
40877 } && test -s conftest$ac_exeext &&
40878 $as_test_x conftest$ac_exeext; then
40880 { echo "$as_me:$LINENO: result: yes" >&5
40881 echo "${ECHO_T}yes" >&6; }
40882 eval "ac_cv_func_$func=yes"
40884 cat >>confdefs.h <<_ACEOF
40885 #define `echo "HAVE_$func" | $as_tr_cpp` 1
40886 _ACEOF
40889 else
40890 echo "$as_me: failed program was:" >&5
40891 sed 's/^/| /' conftest.$ac_ext >&5
40894 { echo "$as_me:$LINENO: result: but still no" >&5
40895 echo "${ECHO_T}but still no" >&6; }
40899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40900 conftest$ac_exeext conftest.$ac_ext
40904 done
40908 if test "$ac_cv_func_sigsetjmp" != "yes"; then
40909 { echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
40910 echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6; }
40911 cat >conftest.$ac_ext <<_ACEOF
40913 /* confdefs.h. */
40914 _ACEOF
40915 cat confdefs.h >>conftest.$ac_ext
40916 cat >>conftest.$ac_ext <<_ACEOF
40917 /* end confdefs.h. */
40919 #include <setjmp.h>
40922 main ()
40925 sigjmp_buf jmpenv;
40926 sigsetjmp(jmpenv, 1);
40929 return 0;
40932 _ACEOF
40933 rm -f conftest.$ac_objext conftest$ac_exeext
40934 if { (ac_try="$ac_link"
40935 case "(($ac_try" in
40936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40937 *) ac_try_echo=$ac_try;;
40938 esac
40939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40940 (eval "$ac_link") 2>conftest.er1
40941 ac_status=$?
40942 grep -v '^ *+' conftest.er1 >conftest.err
40943 rm -f conftest.er1
40944 cat conftest.err >&5
40945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946 (exit $ac_status); } && {
40947 test -z "$ac_c_werror_flag" ||
40948 test ! -s conftest.err
40949 } && test -s conftest$ac_exeext &&
40950 $as_test_x conftest$ac_exeext; then
40952 { echo "$as_me:$LINENO: result: yes" >&5
40953 echo "${ECHO_T}yes" >&6; }
40955 cat >>confdefs.h <<\_ACEOF
40956 #define HAVE_SIGSETJMP 1
40957 _ACEOF
40960 else
40961 echo "$as_me: failed program was:" >&5
40962 sed 's/^/| /' conftest.$ac_ext >&5
40965 { echo "$as_me:$LINENO: result: no" >&5
40966 echo "${ECHO_T}no" >&6; }
40970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40971 conftest$ac_exeext conftest.$ac_ext
40974 { echo "$as_me:$LINENO: checking whether basename is declared" >&5
40975 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6; }
40976 if test "${ac_cv_have_decl_basename+set}" = set; then
40977 echo $ECHO_N "(cached) $ECHO_C" >&6
40978 else
40979 cat >conftest.$ac_ext <<_ACEOF
40980 /* confdefs.h. */
40981 _ACEOF
40982 cat confdefs.h >>conftest.$ac_ext
40983 cat >>conftest.$ac_ext <<_ACEOF
40984 /* end confdefs.h. */
40985 #ifdef HAVE_STRING_H
40986 #include <string.h>
40987 #endif
40988 #ifdef HAVE_LIBGEN_H
40989 #include <libgen.h>
40990 #endif
40991 #ifdef HAVE_UNISTD_H
40992 #include <unistd.h>
40993 #endif
40997 main ()
40999 #ifndef basename
41000 (void) basename;
41001 #endif
41004 return 0;
41006 _ACEOF
41007 rm -f conftest.$ac_objext
41008 if { (ac_try="$ac_compile"
41009 case "(($ac_try" in
41010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41011 *) ac_try_echo=$ac_try;;
41012 esac
41013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41014 (eval "$ac_compile") 2>conftest.er1
41015 ac_status=$?
41016 grep -v '^ *+' conftest.er1 >conftest.err
41017 rm -f conftest.er1
41018 cat conftest.err >&5
41019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41020 (exit $ac_status); } && {
41021 test -z "$ac_c_werror_flag" ||
41022 test ! -s conftest.err
41023 } && test -s conftest.$ac_objext; then
41024 ac_cv_have_decl_basename=yes
41025 else
41026 echo "$as_me: failed program was:" >&5
41027 sed 's/^/| /' conftest.$ac_ext >&5
41029 ac_cv_have_decl_basename=no
41032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
41035 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6; }
41036 if test $ac_cv_have_decl_basename = yes; then
41038 else
41040 cat >>confdefs.h <<\_ACEOF
41041 #define NEED_BASENAME_PROTO 1
41042 _ACEOF
41047 { echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
41048 echo $ECHO_N "checking whether inet_pton is declared... $ECHO_C" >&6; }
41049 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41051 else
41052 cat >conftest.$ac_ext <<_ACEOF
41053 /* confdefs.h. */
41054 _ACEOF
41055 cat confdefs.h >>conftest.$ac_ext
41056 cat >>conftest.$ac_ext <<_ACEOF
41057 /* end confdefs.h. */
41059 #ifdef HAVE_ARPA_INET_H
41060 #include <arpa/inet.h>
41061 #endif
41066 main ()
41068 #ifndef inet_pton
41069 (void) inet_pton;
41070 #endif
41073 return 0;
41075 _ACEOF
41076 rm -f conftest.$ac_objext
41077 if { (ac_try="$ac_compile"
41078 case "(($ac_try" in
41079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080 *) ac_try_echo=$ac_try;;
41081 esac
41082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41083 (eval "$ac_compile") 2>conftest.er1
41084 ac_status=$?
41085 grep -v '^ *+' conftest.er1 >conftest.err
41086 rm -f conftest.er1
41087 cat conftest.err >&5
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); } && {
41090 test -z "$ac_c_werror_flag" ||
41091 test ! -s conftest.err
41092 } && test -s conftest.$ac_objext; then
41093 ac_cv_have_decl_inet_pton=yes
41094 else
41095 echo "$as_me: failed program was:" >&5
41096 sed 's/^/| /' conftest.$ac_ext >&5
41098 ac_cv_have_decl_inet_pton=no
41101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
41104 echo "${ECHO_T}$ac_cv_have_decl_inet_pton" >&6; }
41105 if test $ac_cv_have_decl_inet_pton = yes; then
41107 else
41109 cat >>confdefs.h <<\_ACEOF
41110 #define HAVE_NO_INET_PTON_PROTO 1
41111 _ACEOF
41120 for ac_header in sys/types.h sys/socket.h netdb.h
41122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41127 echo $ECHO_N "(cached) $ECHO_C" >&6
41129 ac_res=`eval echo '${'$as_ac_Header'}'`
41130 { echo "$as_me:$LINENO: result: $ac_res" >&5
41131 echo "${ECHO_T}$ac_res" >&6; }
41132 else
41133 # Is the header compilable?
41134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41136 cat >conftest.$ac_ext <<_ACEOF
41137 /* confdefs.h. */
41138 _ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h. */
41142 $ac_includes_default
41143 #include <$ac_header>
41144 _ACEOF
41145 rm -f conftest.$ac_objext
41146 if { (ac_try="$ac_compile"
41147 case "(($ac_try" in
41148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41149 *) ac_try_echo=$ac_try;;
41150 esac
41151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41152 (eval "$ac_compile") 2>conftest.er1
41153 ac_status=$?
41154 grep -v '^ *+' conftest.er1 >conftest.err
41155 rm -f conftest.er1
41156 cat conftest.err >&5
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); } && {
41159 test -z "$ac_c_werror_flag" ||
41160 test ! -s conftest.err
41161 } && test -s conftest.$ac_objext; then
41162 ac_header_compiler=yes
41163 else
41164 echo "$as_me: failed program was:" >&5
41165 sed 's/^/| /' conftest.$ac_ext >&5
41167 ac_header_compiler=no
41170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41172 echo "${ECHO_T}$ac_header_compiler" >&6; }
41174 # Is the header present?
41175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41177 cat >conftest.$ac_ext <<_ACEOF
41178 /* confdefs.h. */
41179 _ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h. */
41183 #include <$ac_header>
41184 _ACEOF
41185 if { (ac_try="$ac_cpp conftest.$ac_ext"
41186 case "(($ac_try" in
41187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41188 *) ac_try_echo=$ac_try;;
41189 esac
41190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41192 ac_status=$?
41193 grep -v '^ *+' conftest.er1 >conftest.err
41194 rm -f conftest.er1
41195 cat conftest.err >&5
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); } >/dev/null && {
41198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41199 test ! -s conftest.err
41200 }; then
41201 ac_header_preproc=yes
41202 else
41203 echo "$as_me: failed program was:" >&5
41204 sed 's/^/| /' conftest.$ac_ext >&5
41206 ac_header_preproc=no
41209 rm -f conftest.err conftest.$ac_ext
41210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41211 echo "${ECHO_T}$ac_header_preproc" >&6; }
41213 # So? What about this header?
41214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41215 yes:no: )
41216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41220 ac_header_preproc=yes
41222 no:yes:* )
41223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41235 ( cat <<\_ASBOX
41236 ## ------------------------------------------------------------------------ ##
41237 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
41238 ## ------------------------------------------------------------------------ ##
41239 _ASBOX
41240 ) | sed "s/^/$as_me: WARNING: /" >&2
41242 esac
41243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41246 echo $ECHO_N "(cached) $ECHO_C" >&6
41247 else
41248 eval "$as_ac_Header=\$ac_header_preproc"
41250 ac_res=`eval echo '${'$as_ac_Header'}'`
41251 { echo "$as_me:$LINENO: result: $ac_res" >&5
41252 echo "${ECHO_T}$ac_res" >&6; }
41255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41256 cat >>confdefs.h <<_ACEOF
41257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41258 _ACEOF
41262 done
41265 { echo "$as_me:$LINENO: checking for getnameinfo" >&5
41266 echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6; }
41267 cat >conftest.$ac_ext <<_ACEOF
41269 /* confdefs.h. */
41270 _ACEOF
41271 cat confdefs.h >>conftest.$ac_ext
41272 cat >>conftest.$ac_ext <<_ACEOF
41273 /* end confdefs.h. */
41274 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo.
41275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41276 #define getnameinfo innocuous_getnameinfo
41278 /* System header to define __stub macros and hopefully few prototypes,
41279 which can conflict with char getnameinfo (); below.
41280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41281 <limits.h> exists even on freestanding compilers. */
41283 #ifdef __STDC__
41284 # include <limits.h>
41285 #else
41286 # include <assert.h>
41287 #endif
41289 #undef getnameinfo
41291 /* Override any GCC internal prototype to avoid an error.
41292 Use char because int might match the return type of a GCC
41293 builtin and then its argument prototype would still apply. */
41294 #ifdef __cplusplus
41295 extern "C"
41296 #endif
41297 char getnameinfo ();
41298 /* The GNU C library defines this for functions which it implements
41299 to always fail with ENOSYS. Some functions are actually named
41300 something starting with __ and the normal name is an alias. */
41301 #if defined __stub_getnameinfo || defined __stub___getnameinfo
41302 choke me
41303 #endif
41306 main ()
41308 return getnameinfo ();
41310 return 0;
41313 _ACEOF
41314 rm -f conftest.$ac_objext conftest$ac_exeext
41315 if { (ac_try="$ac_link"
41316 case "(($ac_try" in
41317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41318 *) ac_try_echo=$ac_try;;
41319 esac
41320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41321 (eval "$ac_link") 2>conftest.er1
41322 ac_status=$?
41323 grep -v '^ *+' conftest.er1 >conftest.err
41324 rm -f conftest.er1
41325 cat conftest.err >&5
41326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41327 (exit $ac_status); } && {
41328 test -z "$ac_c_werror_flag" ||
41329 test ! -s conftest.err
41330 } && test -s conftest$ac_exeext &&
41331 $as_test_x conftest$ac_exeext; then
41333 { echo "$as_me:$LINENO: result: yes" >&5
41334 echo "${ECHO_T}yes" >&6; }
41335 curl_cv_getnameinfo="yes"
41337 else
41338 echo "$as_me: failed program was:" >&5
41339 sed 's/^/| /' conftest.$ac_ext >&5
41342 { echo "$as_me:$LINENO: result: no" >&5
41343 echo "${ECHO_T}no" >&6; }
41344 curl_cv_getnameinfo="no"
41348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41349 conftest$ac_exeext conftest.$ac_ext
41351 if test "$curl_cv_getnameinfo" != "yes"; then
41352 { echo "$as_me:$LINENO: checking deeper for getnameinfo" >&5
41353 echo $ECHO_N "checking deeper for getnameinfo... $ECHO_C" >&6; }
41354 cat >conftest.$ac_ext <<_ACEOF
41356 /* confdefs.h. */
41357 _ACEOF
41358 cat confdefs.h >>conftest.$ac_ext
41359 cat >>conftest.$ac_ext <<_ACEOF
41360 /* end confdefs.h. */
41364 main ()
41367 getnameinfo();
41370 return 0;
41373 _ACEOF
41374 rm -f conftest.$ac_objext conftest$ac_exeext
41375 if { (ac_try="$ac_link"
41376 case "(($ac_try" in
41377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41378 *) ac_try_echo=$ac_try;;
41379 esac
41380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41381 (eval "$ac_link") 2>conftest.er1
41382 ac_status=$?
41383 grep -v '^ *+' conftest.er1 >conftest.err
41384 rm -f conftest.er1
41385 cat conftest.err >&5
41386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41387 (exit $ac_status); } && {
41388 test -z "$ac_c_werror_flag" ||
41389 test ! -s conftest.err
41390 } && test -s conftest$ac_exeext &&
41391 $as_test_x conftest$ac_exeext; then
41393 { echo "$as_me:$LINENO: result: yes" >&5
41394 echo "${ECHO_T}yes" >&6; }
41395 curl_cv_getnameinfo="yes"
41397 else
41398 echo "$as_me: failed program was:" >&5
41399 sed 's/^/| /' conftest.$ac_ext >&5
41402 { echo "$as_me:$LINENO: result: but still no" >&5
41403 echo "${ECHO_T}but still no" >&6; }
41404 curl_cv_getnameinfo="no"
41408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41409 conftest$ac_exeext conftest.$ac_ext
41412 if test "$curl_cv_getnameinfo" != "yes"; then
41413 { echo "$as_me:$LINENO: checking deeper and deeper for getnameinfo" >&5
41414 echo $ECHO_N "checking deeper and deeper for getnameinfo... $ECHO_C" >&6; }
41415 cat >conftest.$ac_ext <<_ACEOF
41417 /* confdefs.h. */
41418 _ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h. */
41423 #undef inline
41424 #ifdef HAVE_WINDOWS_H
41425 #ifndef WIN32_LEAN_AND_MEAN
41426 #define WIN32_LEAN_AND_MEAN
41427 #endif
41428 #include <windows.h>
41429 #ifdef HAVE_WINSOCK2_H
41430 #include <winsock2.h>
41431 #ifdef HAVE_WS2TCPIP_H
41432 #include <ws2tcpip.h>
41433 #endif
41434 #endif
41435 #else
41436 #ifdef HAVE_SYS_TYPES_H
41437 #include <sys/types.h>
41438 #endif
41439 #ifdef HAVE_SYS_SOCKET_H
41440 #include <sys/socket.h>
41441 #endif
41442 #ifdef HAVE_NETDB_H
41443 #include <netdb.h>
41444 #endif
41445 #endif
41448 main ()
41451 getnameinfo(0, 0, 0, 0, 0, 0, 0);
41454 return 0;
41457 _ACEOF
41458 rm -f conftest.$ac_objext conftest$ac_exeext
41459 if { (ac_try="$ac_link"
41460 case "(($ac_try" in
41461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41462 *) ac_try_echo=$ac_try;;
41463 esac
41464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41465 (eval "$ac_link") 2>conftest.er1
41466 ac_status=$?
41467 grep -v '^ *+' conftest.er1 >conftest.err
41468 rm -f conftest.er1
41469 cat conftest.err >&5
41470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41471 (exit $ac_status); } && {
41472 test -z "$ac_c_werror_flag" ||
41473 test ! -s conftest.err
41474 } && test -s conftest$ac_exeext &&
41475 $as_test_x conftest$ac_exeext; then
41477 { echo "$as_me:$LINENO: result: yes" >&5
41478 echo "${ECHO_T}yes" >&6; }
41479 curl_cv_getnameinfo="yes"
41481 else
41482 echo "$as_me: failed program was:" >&5
41483 sed 's/^/| /' conftest.$ac_ext >&5
41486 { echo "$as_me:$LINENO: result: but still no" >&5
41487 echo "${ECHO_T}but still no" >&6; }
41488 curl_cv_getnameinfo="no"
41492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41493 conftest$ac_exeext conftest.$ac_ext
41496 if test "$curl_cv_getnameinfo" = "yes"; then
41497 { echo "$as_me:$LINENO: checking types of arguments for getnameinfo" >&5
41498 echo $ECHO_N "checking types of arguments for getnameinfo... $ECHO_C" >&6; }
41499 if test "${curl_cv_func_getnameinfo_args+set}" = set; then
41500 echo $ECHO_N "(cached) $ECHO_C" >&6
41501 else
41503 curl_cv_func_getnameinfo_args="unknown"
41504 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
41505 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
41506 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
41507 for gni_arg7 in 'int' 'unsigned int'; do
41508 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
41509 cat >conftest.$ac_ext <<_ACEOF
41511 /* confdefs.h. */
41512 _ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h. */
41517 #undef inline
41518 #ifdef HAVE_WINDOWS_H
41519 #ifndef WIN32_LEAN_AND_MEAN
41520 #define WIN32_LEAN_AND_MEAN
41521 #endif
41522 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
41523 #undef _WIN32_WINNT
41524 #define _WIN32_WINNT 0x0501
41525 #endif
41526 #include <windows.h>
41527 #ifdef HAVE_WINSOCK2_H
41528 #include <winsock2.h>
41529 #ifdef HAVE_WS2TCPIP_H
41530 #include <ws2tcpip.h>
41531 #endif
41532 #endif
41533 #define GNICALLCONV WSAAPI
41534 #else
41535 #ifdef HAVE_SYS_TYPES_H
41536 #include <sys/types.h>
41537 #endif
41538 #ifdef HAVE_SYS_SOCKET_H
41539 #include <sys/socket.h>
41540 #endif
41541 #ifdef HAVE_NETDB_H
41542 #include <netdb.h>
41543 #endif
41544 #define GNICALLCONV
41545 #endif
41546 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
41547 char *, $gni_arg46,
41548 char *, $gni_arg46,
41549 $gni_arg7);
41552 main ()
41555 $gni_arg2 salen=0;
41556 $gni_arg46 hostlen=0;
41557 $gni_arg46 servlen=0;
41558 $gni_arg7 flags=0;
41559 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
41562 return 0;
41565 _ACEOF
41566 rm -f conftest.$ac_objext
41567 if { (ac_try="$ac_compile"
41568 case "(($ac_try" in
41569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41570 *) ac_try_echo=$ac_try;;
41571 esac
41572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41573 (eval "$ac_compile") 2>conftest.er1
41574 ac_status=$?
41575 grep -v '^ *+' conftest.er1 >conftest.err
41576 rm -f conftest.er1
41577 cat conftest.err >&5
41578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41579 (exit $ac_status); } && {
41580 test -z "$ac_c_werror_flag" ||
41581 test ! -s conftest.err
41582 } && test -s conftest.$ac_objext; then
41584 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
41586 else
41587 echo "$as_me: failed program was:" >&5
41588 sed 's/^/| /' conftest.$ac_ext >&5
41593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41595 done
41596 done
41597 done
41598 done
41601 { echo "$as_me:$LINENO: result: $curl_cv_func_getnameinfo_args" >&5
41602 echo "${ECHO_T}$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
41603 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
41604 { echo "$as_me:$LINENO: WARNING: Cannot find proper types to use for getnameinfo args" >&5
41605 echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
41606 { echo "$as_me:$LINENO: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
41607 echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
41608 else
41609 gni_prev_IFS=$IFS; IFS=','
41610 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
41611 IFS=$gni_prev_IFS
41612 shift
41614 gni_qual_type_arg1=$1
41617 cat >>confdefs.h <<_ACEOF
41618 #define GETNAMEINFO_TYPE_ARG2 $2
41619 _ACEOF
41622 cat >>confdefs.h <<_ACEOF
41623 #define GETNAMEINFO_TYPE_ARG46 $3
41624 _ACEOF
41627 cat >>confdefs.h <<_ACEOF
41628 #define GETNAMEINFO_TYPE_ARG7 $4
41629 _ACEOF
41632 prev_sh_opts=$-
41634 case $prev_sh_opts in
41635 *f*)
41638 set -f
41640 esac
41642 case "$gni_qual_type_arg1" in
41643 const*)
41644 gni_qual_arg1=const
41645 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
41648 gni_qual_arg1=
41649 gni_type_arg1=$gni_qual_type_arg1
41651 esac
41654 cat >>confdefs.h <<_ACEOF
41655 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
41656 _ACEOF
41659 cat >>confdefs.h <<_ACEOF
41660 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
41661 _ACEOF
41664 case $prev_sh_opts in
41665 *f*)
41668 set +f
41670 esac
41673 cat >>confdefs.h <<_ACEOF
41674 #define HAVE_GETNAMEINFO 1
41675 _ACEOF
41677 ac_cv_func_getnameinfo="yes"
41682 if test "$ipv6" = "yes"; then
41684 { echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
41685 echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6; }
41686 if test "${ac_cv_working_getaddrinfo+set}" = set; then
41687 echo $ECHO_N "(cached) $ECHO_C" >&6
41688 else
41690 if test "$cross_compiling" = yes; then
41692 ac_cv_working_getaddrinfo="yes"
41694 else
41695 cat >conftest.$ac_ext <<_ACEOF
41696 /* confdefs.h. */
41697 _ACEOF
41698 cat confdefs.h >>conftest.$ac_ext
41699 cat >>conftest.$ac_ext <<_ACEOF
41700 /* end confdefs.h. */
41702 #include <netdb.h>
41703 #include <sys/types.h>
41704 #include <sys/socket.h>
41706 int main(void)
41708 struct addrinfo hints, *ai;
41709 int error;
41711 memset(&hints, 0, sizeof(hints));
41712 hints.ai_flags = AI_NUMERICHOST;
41713 hints.ai_family = AF_UNSPEC;
41714 hints.ai_socktype = SOCK_STREAM;
41715 error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
41716 if (error) {
41717 return 1;
41719 return 0;
41722 _ACEOF
41723 rm -f conftest$ac_exeext
41724 if { (ac_try="$ac_link"
41725 case "(($ac_try" in
41726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41727 *) ac_try_echo=$ac_try;;
41728 esac
41729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41730 (eval "$ac_link") 2>&5
41731 ac_status=$?
41732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41734 { (case "(($ac_try" in
41735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41736 *) ac_try_echo=$ac_try;;
41737 esac
41738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41739 (eval "$ac_try") 2>&5
41740 ac_status=$?
41741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41742 (exit $ac_status); }; }; then
41744 ac_cv_working_getaddrinfo="yes"
41746 else
41747 echo "$as_me: program exited with status $ac_status" >&5
41748 echo "$as_me: failed program was:" >&5
41749 sed 's/^/| /' conftest.$ac_ext >&5
41751 ( exit $ac_status )
41753 ac_cv_working_getaddrinfo="no"
41756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41761 { echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
41762 echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6; }
41763 if test "$ac_cv_working_getaddrinfo" = "yes"; then
41765 cat >>confdefs.h <<\_ACEOF
41766 #define HAVE_GETADDRINFO 1
41767 _ACEOF
41770 cat >>confdefs.h <<\_ACEOF
41771 #define ENABLE_IPV6 1
41772 _ACEOF
41775 IPV6_ENABLED=1
41786 for ac_header in stdio.h sys/types.h sys/socket.h \
41787 netdb.h netinet/in.h arpa/inet.h
41789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41794 echo $ECHO_N "(cached) $ECHO_C" >&6
41796 ac_res=`eval echo '${'$as_ac_Header'}'`
41797 { echo "$as_me:$LINENO: result: $ac_res" >&5
41798 echo "${ECHO_T}$ac_res" >&6; }
41799 else
41800 # Is the header compilable?
41801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41803 cat >conftest.$ac_ext <<_ACEOF
41804 /* confdefs.h. */
41805 _ACEOF
41806 cat confdefs.h >>conftest.$ac_ext
41807 cat >>conftest.$ac_ext <<_ACEOF
41808 /* end confdefs.h. */
41809 $ac_includes_default
41810 #include <$ac_header>
41811 _ACEOF
41812 rm -f conftest.$ac_objext
41813 if { (ac_try="$ac_compile"
41814 case "(($ac_try" in
41815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41816 *) ac_try_echo=$ac_try;;
41817 esac
41818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41819 (eval "$ac_compile") 2>conftest.er1
41820 ac_status=$?
41821 grep -v '^ *+' conftest.er1 >conftest.err
41822 rm -f conftest.er1
41823 cat conftest.err >&5
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); } && {
41826 test -z "$ac_c_werror_flag" ||
41827 test ! -s conftest.err
41828 } && test -s conftest.$ac_objext; then
41829 ac_header_compiler=yes
41830 else
41831 echo "$as_me: failed program was:" >&5
41832 sed 's/^/| /' conftest.$ac_ext >&5
41834 ac_header_compiler=no
41837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41839 echo "${ECHO_T}$ac_header_compiler" >&6; }
41841 # Is the header present?
41842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41844 cat >conftest.$ac_ext <<_ACEOF
41845 /* confdefs.h. */
41846 _ACEOF
41847 cat confdefs.h >>conftest.$ac_ext
41848 cat >>conftest.$ac_ext <<_ACEOF
41849 /* end confdefs.h. */
41850 #include <$ac_header>
41851 _ACEOF
41852 if { (ac_try="$ac_cpp conftest.$ac_ext"
41853 case "(($ac_try" in
41854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41855 *) ac_try_echo=$ac_try;;
41856 esac
41857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41859 ac_status=$?
41860 grep -v '^ *+' conftest.er1 >conftest.err
41861 rm -f conftest.er1
41862 cat conftest.err >&5
41863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41864 (exit $ac_status); } >/dev/null && {
41865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41866 test ! -s conftest.err
41867 }; then
41868 ac_header_preproc=yes
41869 else
41870 echo "$as_me: failed program was:" >&5
41871 sed 's/^/| /' conftest.$ac_ext >&5
41873 ac_header_preproc=no
41876 rm -f conftest.err conftest.$ac_ext
41877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41878 echo "${ECHO_T}$ac_header_preproc" >&6; }
41880 # So? What about this header?
41881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41882 yes:no: )
41883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41887 ac_header_preproc=yes
41889 no:yes:* )
41890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41902 ( cat <<\_ASBOX
41903 ## ------------------------------------------------------------------------ ##
41904 ## Report this to a suitable curl mailing list => http://curl.haxx.se/mail/ ##
41905 ## ------------------------------------------------------------------------ ##
41906 _ASBOX
41907 ) | sed "s/^/$as_me: WARNING: /" >&2
41909 esac
41910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41913 echo $ECHO_N "(cached) $ECHO_C" >&6
41914 else
41915 eval "$as_ac_Header=\$ac_header_preproc"
41917 ac_res=`eval echo '${'$as_ac_Header'}'`
41918 { echo "$as_me:$LINENO: result: $ac_res" >&5
41919 echo "${ECHO_T}$ac_res" >&6; }
41922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41923 cat >>confdefs.h <<_ACEOF
41924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41925 _ACEOF
41929 done
41932 { echo "$as_me:$LINENO: checking for working NI_WITHSCOPEID" >&5
41933 echo $ECHO_N "checking for working NI_WITHSCOPEID... $ECHO_C" >&6; }
41934 if test "${ac_cv_working_ni_withscopeid+set}" = set; then
41935 echo $ECHO_N "(cached) $ECHO_C" >&6
41936 else
41938 if test "$cross_compiling" = yes; then
41940 # Program is not run when cross-compiling. So we assume
41941 # NI_WITHSCOPEID will work if we are able to compile it.
41942 cat >conftest.$ac_ext <<_ACEOF
41944 /* confdefs.h. */
41945 _ACEOF
41946 cat confdefs.h >>conftest.$ac_ext
41947 cat >>conftest.$ac_ext <<_ACEOF
41948 /* end confdefs.h. */
41950 #include <sys/types.h>
41951 #include <sys/socket.h>
41952 #include <netdb.h>
41955 main ()
41958 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
41961 return 0;
41964 _ACEOF
41965 rm -f conftest.$ac_objext
41966 if { (ac_try="$ac_compile"
41967 case "(($ac_try" in
41968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969 *) ac_try_echo=$ac_try;;
41970 esac
41971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41972 (eval "$ac_compile") 2>conftest.er1
41973 ac_status=$?
41974 grep -v '^ *+' conftest.er1 >conftest.err
41975 rm -f conftest.er1
41976 cat conftest.err >&5
41977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978 (exit $ac_status); } && {
41979 test -z "$ac_c_werror_flag" ||
41980 test ! -s conftest.err
41981 } && test -s conftest.$ac_objext; then
41983 ac_cv_working_ni_withscopeid="yes"
41985 else
41986 echo "$as_me: failed program was:" >&5
41987 sed 's/^/| /' conftest.$ac_ext >&5
41990 ac_cv_working_ni_withscopeid="no"
41994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
41996 else
41997 cat >conftest.$ac_ext <<_ACEOF
41999 /* confdefs.h. */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42005 #ifdef HAVE_STDIO_H
42006 #include <stdio.h>
42007 #endif
42008 #ifdef HAVE_SYS_TYPES_H
42009 #include <sys/types.h>
42010 #endif
42011 #ifdef HAVE_SYS_SOCKET_H
42012 #include <sys/socket.h>
42013 #endif
42014 #ifdef HAVE_NETDB_H
42015 #include <netdb.h>
42016 #endif
42017 #ifdef HAVE_NETINET_IN_H
42018 #include <netinet/in.h>
42019 #endif
42020 #ifdef HAVE_ARPA_INET_H
42021 #include <arpa/inet.h>
42022 #endif
42025 main ()
42028 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
42029 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
42030 struct sockaddr_storage sa;
42031 #else
42032 unsigned char sa[256];
42033 #endif
42034 char hostbuf[NI_MAXHOST];
42035 int rc;
42036 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
42037 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
42038 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
42039 int fd = socket(AF_INET6, SOCK_STREAM, 0);
42040 if(fd < 0) {
42041 perror("socket()");
42042 return 1; /* Error creating socket */
42044 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
42045 if(rc) {
42046 perror("getsockname()");
42047 return 2; /* Error retrieving socket name */
42049 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
42050 if(rc) {
42051 printf("rc = %s\n", gai_strerror(rc));
42052 return 3; /* Error translating socket address */
42054 return 0; /* Ok, NI_WITHSCOPEID works */
42055 #else
42056 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
42057 #endif
42060 return 0;
42061 } # AC-LANG-PROGRAM
42063 _ACEOF
42064 rm -f conftest$ac_exeext
42065 if { (ac_try="$ac_link"
42066 case "(($ac_try" in
42067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42068 *) ac_try_echo=$ac_try;;
42069 esac
42070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42071 (eval "$ac_link") 2>&5
42072 ac_status=$?
42073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42075 { (case "(($ac_try" in
42076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42077 *) ac_try_echo=$ac_try;;
42078 esac
42079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42080 (eval "$ac_try") 2>&5
42081 ac_status=$?
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); }; }; then
42085 # Exit code == 0. Program worked.
42086 ac_cv_working_ni_withscopeid="yes"
42088 else
42089 echo "$as_me: program exited with status $ac_status" >&5
42090 echo "$as_me: failed program was:" >&5
42091 sed 's/^/| /' conftest.$ac_ext >&5
42093 ( exit $ac_status )
42095 # Exit code != 0. Program failed.
42096 ac_cv_working_ni_withscopeid="no"
42099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42102 # AC-RUN-IFELSE
42105 { echo "$as_me:$LINENO: result: $ac_cv_working_ni_withscopeid" >&5
42106 echo "${ECHO_T}$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
42107 case "$ac_cv_working_ni_withscopeid" in
42108 yes)
42110 cat >>confdefs.h <<\_ACEOF
42111 #define HAVE_NI_WITHSCOPEID 1
42112 _ACEOF
42115 esac
42119 { echo "$as_me:$LINENO: checking if we are Mac OS X (to disable poll)" >&5
42120 echo $ECHO_N "checking if we are Mac OS X (to disable poll)... $ECHO_C" >&6; }
42121 disable_poll=no
42122 case $host in
42123 *-*-darwin*)
42124 disable_poll="yes";
42128 esac
42129 { echo "$as_me:$LINENO: result: $disable_poll" >&5
42130 echo "${ECHO_T}$disable_poll" >&6; }
42132 if test "$disable_poll" = "no"; then
42134 if test "$ac_cv_func_poll" = "yes"; then
42135 { echo "$as_me:$LINENO: checking if poll works with NULL inputs" >&5
42136 echo $ECHO_N "checking if poll works with NULL inputs... $ECHO_C" >&6; }
42137 if test "$cross_compiling" = yes; then
42138 { echo "$as_me:$LINENO: result: cross-compiling assumes yes" >&5
42139 echo "${ECHO_T}cross-compiling assumes yes" >&6; }
42141 cat >>confdefs.h <<\_ACEOF
42142 #define HAVE_POLL_FINE 1
42143 _ACEOF
42146 else
42147 cat >conftest.$ac_ext <<_ACEOF
42149 #ifdef HAVE_SYS_POLL_H
42150 #include <sys/poll.h>
42151 #elif defined(HAVE_POLL_H)
42152 #include <poll.h>
42153 #endif
42155 int main(void)
42157 /* make this return 0 == timeout since there's nothing to read from */
42158 return poll((void *)0, 0, 10 /*ms*/);
42161 _ACEOF
42162 rm -f conftest$ac_exeext
42163 if { (ac_try="$ac_link"
42164 case "(($ac_try" in
42165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42166 *) ac_try_echo=$ac_try;;
42167 esac
42168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42169 (eval "$ac_link") 2>&5
42170 ac_status=$?
42171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42173 { (case "(($ac_try" in
42174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42175 *) ac_try_echo=$ac_try;;
42176 esac
42177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42178 (eval "$ac_try") 2>&5
42179 ac_status=$?
42180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42181 (exit $ac_status); }; }; then
42182 { echo "$as_me:$LINENO: result: yes" >&5
42183 echo "${ECHO_T}yes" >&6; }
42185 cat >>confdefs.h <<\_ACEOF
42186 #define HAVE_POLL_FINE 1
42187 _ACEOF
42189 else
42190 echo "$as_me: program exited with status $ac_status" >&5
42191 echo "$as_me: failed program was:" >&5
42192 sed 's/^/| /' conftest.$ac_ext >&5
42194 ( exit $ac_status )
42195 { echo "$as_me:$LINENO: result: no" >&5
42196 echo "${ECHO_T}no" >&6; }
42198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42201 fi fi
42203 # Extract the first word of "perl", so it can be a program name with args.
42204 set dummy perl; ac_word=$2
42205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42207 if test "${ac_cv_path_PERL+set}" = set; then
42208 echo $ECHO_N "(cached) $ECHO_C" >&6
42209 else
42210 case $PERL in
42211 [\\/]* | ?:[\\/]*)
42212 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
42215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42216 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
42217 for as_dir in $as_dummy
42219 IFS=$as_save_IFS
42220 test -z "$as_dir" && as_dir=.
42221 for ac_exec_ext in '' $ac_executable_extensions; do
42222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42223 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
42224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42225 break 2
42227 done
42228 done
42229 IFS=$as_save_IFS
42232 esac
42234 PERL=$ac_cv_path_PERL
42235 if test -n "$PERL"; then
42236 { echo "$as_me:$LINENO: result: $PERL" >&5
42237 echo "${ECHO_T}$PERL" >&6; }
42238 else
42239 { echo "$as_me:$LINENO: result: no" >&5
42240 echo "${ECHO_T}no" >&6; }
42246 for ac_prog in gnroff nroff
42248 # Extract the first word of "$ac_prog", so it can be a program name with args.
42249 set dummy $ac_prog; ac_word=$2
42250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42252 if test "${ac_cv_path_NROFF+set}" = set; then
42253 echo $ECHO_N "(cached) $ECHO_C" >&6
42254 else
42255 case $NROFF in
42256 [\\/]* | ?:[\\/]*)
42257 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
42260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42261 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
42262 for as_dir in $as_dummy
42264 IFS=$as_save_IFS
42265 test -z "$as_dir" && as_dir=.
42266 for ac_exec_ext in '' $ac_executable_extensions; do
42267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42268 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
42269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42270 break 2
42272 done
42273 done
42274 IFS=$as_save_IFS
42277 esac
42279 NROFF=$ac_cv_path_NROFF
42280 if test -n "$NROFF"; then
42281 { echo "$as_me:$LINENO: result: $NROFF" >&5
42282 echo "${ECHO_T}$NROFF" >&6; }
42283 else
42284 { echo "$as_me:$LINENO: result: no" >&5
42285 echo "${ECHO_T}no" >&6; }
42289 test -n "$NROFF" && break
42290 done
42294 if test -n "$NROFF"; then
42296 { echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
42297 echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6; }
42298 MANOPT="-man"
42299 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
42300 if test -z "$mancheck"; then
42301 MANOPT="-mandoc"
42302 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
42303 if test -z "$mancheck"; then
42304 MANOPT=""
42305 { echo "$as_me:$LINENO: result: failed" >&5
42306 echo "${ECHO_T}failed" >&6; }
42307 { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
42308 echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
42309 else
42310 { echo "$as_me:$LINENO: result: $MANOPT" >&5
42311 echo "${ECHO_T}$MANOPT" >&6; }
42313 else
42314 { echo "$as_me:$LINENO: result: $MANOPT" >&5
42315 echo "${ECHO_T}$MANOPT" >&6; }
42320 if test -z "$MANOPT"
42321 then
42322 { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
42323 echo "$as_me: WARNING: disabling built-in manual" >&2;}
42324 USE_MANUAL="no";
42328 if test "$USE_MANUAL" = "1"; then
42330 cat >>confdefs.h <<\_ACEOF
42331 #define USE_MANUAL 1
42332 _ACEOF
42334 curl_manual_msg="enabled"
42339 if test x"$USE_MANUAL" = x1; then
42340 USE_MANUAL_TRUE=
42341 USE_MANUAL_FALSE='#'
42342 else
42343 USE_MANUAL_TRUE='#'
42344 USE_MANUAL_FALSE=
42348 { echo "$as_me:$LINENO: checking whether to enable c-ares" >&5
42349 echo $ECHO_N "checking whether to enable c-ares... $ECHO_C" >&6; }
42350 # Check whether --enable-ares was given.
42351 if test "${enable_ares+set}" = set; then
42352 enableval=$enable_ares; case "$enableval" in
42354 { echo "$as_me:$LINENO: result: no" >&5
42355 echo "${ECHO_T}no" >&6; }
42357 *) { echo "$as_me:$LINENO: result: yes" >&5
42358 echo "${ECHO_T}yes" >&6; }
42360 if test "x$IPV6_ENABLED" = "x1"; then
42361 { echo "$as_me:$LINENO: c-ares may not work properly with ipv6" >&5
42362 echo "$as_me: c-ares may not work properly with ipv6" >&6;}
42366 cat >>confdefs.h <<\_ACEOF
42367 #define USE_ARES 1
42368 _ACEOF
42370 HAVE_ARES="1"
42372 curl_ares_msg="enabled"
42374 LIBS="-lcares $LIBS"
42376 if test "x$enableval" = "xyes" ; then
42377 if test -d "$srcdir/ares"; then
42378 aresembedded="yes"
42379 subdirs="$subdirs ares"
42381 aresinc=`cd $srcdir/ares && pwd`
42382 CPPFLAGS="$CPPFLAGS -I$aresinc"
42384 pwd=`pwd`
42385 LDFLAGS="$LDFLAGS -L$pwd/ares"
42387 else
42388 CPPFLAGS="$CPPFLAGS -I$enableval/include"
42389 LDFLAGS="$LDFLAGS -L$enableval/lib"
42392 if test -z "$aresembedded"; then
42393 { echo "$as_me:$LINENO: checking that c-ares is good and recent enough" >&5
42394 echo $ECHO_N "checking that c-ares is good and recent enough... $ECHO_C" >&6; }
42395 cat >conftest.$ac_ext <<_ACEOF
42397 /* confdefs.h. */
42398 _ACEOF
42399 cat confdefs.h >>conftest.$ac_ext
42400 cat >>conftest.$ac_ext <<_ACEOF
42401 /* end confdefs.h. */
42403 #include <ares.h>
42404 /* set of dummy functions in case c-ares was built with debug */
42405 void curl_dofree() { }
42406 void curl_sclose() { }
42407 void curl_domalloc() { }
42408 void curl_docalloc() { }
42409 void curl_socket() { }
42412 main ()
42415 ares_channel channel;
42416 ares_cancel(channel); /* added in 1.2.0 */
42417 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
42420 return 0;
42423 _ACEOF
42424 rm -f conftest.$ac_objext conftest$ac_exeext
42425 if { (ac_try="$ac_link"
42426 case "(($ac_try" in
42427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42428 *) ac_try_echo=$ac_try;;
42429 esac
42430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42431 (eval "$ac_link") 2>conftest.er1
42432 ac_status=$?
42433 grep -v '^ *+' conftest.er1 >conftest.err
42434 rm -f conftest.er1
42435 cat conftest.err >&5
42436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42437 (exit $ac_status); } && {
42438 test -z "$ac_c_werror_flag" ||
42439 test ! -s conftest.err
42440 } && test -s conftest$ac_exeext &&
42441 $as_test_x conftest$ac_exeext; then
42443 { echo "$as_me:$LINENO: result: yes" >&5
42444 echo "${ECHO_T}yes" >&6; }
42446 else
42447 echo "$as_me: failed program was:" >&5
42448 sed 's/^/| /' conftest.$ac_ext >&5
42451 { echo "$as_me:$LINENO: result: no" >&5
42452 echo "${ECHO_T}no" >&6; }
42453 { { echo "$as_me:$LINENO: error: c-ares library defective or too old" >&5
42454 echo "$as_me: error: c-ares library defective or too old" >&2;}
42455 { (exit 1); exit 1; }; }
42459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42460 conftest$ac_exeext conftest.$ac_ext
42463 esac
42464 else
42465 { echo "$as_me:$LINENO: result: no" >&5
42466 echo "${ECHO_T}no" >&6; }
42471 { echo "$as_me:$LINENO: checking whether to enable verbose strings" >&5
42472 echo $ECHO_N "checking whether to enable verbose strings... $ECHO_C" >&6; }
42473 # Check whether --enable-verbose was given.
42474 if test "${enable_verbose+set}" = set; then
42475 enableval=$enable_verbose; case "$enableval" in
42477 { echo "$as_me:$LINENO: result: no" >&5
42478 echo "${ECHO_T}no" >&6; }
42480 cat >>confdefs.h <<\_ACEOF
42481 #define CURL_DISABLE_VERBOSE_STRINGS 1
42482 _ACEOF
42484 curl_verbose_msg="no"
42486 *) { echo "$as_me:$LINENO: result: yes" >&5
42487 echo "${ECHO_T}yes" >&6; }
42489 esac
42490 else
42491 { echo "$as_me:$LINENO: result: yes" >&5
42492 echo "${ECHO_T}yes" >&6; }
42497 { echo "$as_me:$LINENO: checking whether to enable SSPI support (Windows native builds only)" >&5
42498 echo $ECHO_N "checking whether to enable SSPI support (Windows native builds only)... $ECHO_C" >&6; }
42499 # Check whether --enable-sspi was given.
42500 if test "${enable_sspi+set}" = set; then
42501 enableval=$enable_sspi; case "$enableval" in
42502 yes)
42503 if test "$ac_cv_native_windows" = "yes"; then
42504 { echo "$as_me:$LINENO: result: yes" >&5
42505 echo "${ECHO_T}yes" >&6; }
42507 cat >>confdefs.h <<\_ACEOF
42508 #define USE_WINDOWS_SSPI 1
42509 _ACEOF
42511 USE_WINDOWS_SSPI=1
42513 curl_sspi_msg="yes"
42514 else
42515 { echo "$as_me:$LINENO: result: no" >&5
42516 echo "${ECHO_T}no" >&6; }
42517 { echo "$as_me:$LINENO: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
42518 echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
42522 { echo "$as_me:$LINENO: result: no" >&5
42523 echo "${ECHO_T}no" >&6; }
42525 esac
42526 else
42527 { echo "$as_me:$LINENO: result: no" >&5
42528 echo "${ECHO_T}no" >&6; }
42533 { echo "$as_me:$LINENO: checking whether to enable debug options" >&5
42534 echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6; }
42535 # Check whether --enable-debug was given.
42536 if test "${enable_debug+set}" = set; then
42537 enableval=$enable_debug; case "$enableval" in
42539 { echo "$as_me:$LINENO: result: no" >&5
42540 echo "${ECHO_T}no" >&6; }
42542 *) { echo "$as_me:$LINENO: result: yes" >&5
42543 echo "${ECHO_T}yes" >&6; }
42545 CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
42546 CFLAGS="$CFLAGS -g"
42549 if test "z$ICC" = "z"; then
42551 ICC="no"
42552 { echo "$as_me:$LINENO: checking for icc in use" >&5
42553 echo $ECHO_N "checking for icc in use... $ECHO_C" >&6; }
42554 if test "$GCC" = "yes"; then
42555 cat >conftest.$ac_ext <<_ACEOF
42556 /* confdefs.h. */
42557 _ACEOF
42558 cat confdefs.h >>conftest.$ac_ext
42559 cat >>conftest.$ac_ext <<_ACEOF
42560 /* end confdefs.h. */
42561 __INTEL_COMPILER
42562 _ACEOF
42563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42564 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
42565 ICC="no"
42566 else
42567 ICC="yes"
42568 { echo "$as_me:$LINENO: result: yes" >&5
42569 echo "${ECHO_T}yes" >&6; }
42573 rm -f conftest*
42576 if test "$ICC" = "no"; then
42577 # this is not ICC
42578 { echo "$as_me:$LINENO: result: no" >&5
42579 echo "${ECHO_T}no" >&6; }
42584 if test "$GCC" = "yes"; then
42586 { echo "$as_me:$LINENO: checking gcc version" >&5
42587 echo $ECHO_N "checking gcc version... $ECHO_C" >&6; }
42588 gccver=`$CC -dumpversion`
42589 num1=`echo $gccver | cut -d . -f1`
42590 num2=`echo $gccver | cut -d . -f2`
42591 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
42592 { echo "$as_me:$LINENO: result: $gccver" >&5
42593 echo "${ECHO_T}$gccver" >&6; }
42595 if test "$ICC" = "yes"; then
42598 WARN="-wd279,269,981,1418,1419"
42600 if test "$gccnum" -gt "600"; then
42601 WARN="-Wall $WARN"
42603 else WARN="-W -Wall -Wwrite-strings -pedantic -Wpointer-arith -Wnested-externs -Winline -Wmissing-prototypes"
42606 if test "$gccnum" -ge "207"; then
42607 WARN="$WARN -Wmissing-declarations"
42610 if test "$gccnum" -gt "295"; then
42611 WARN="$WARN -Wundef -Wno-long-long -Wsign-compare -Wshadow -Wno-multichar"
42614 if test "$gccnum" -ge "296"; then
42615 WARN="$WARN -Wfloat-equal"
42618 if test "$gccnum" -gt "296"; then
42619 WARN="$WARN -Wno-format-nonliteral"
42623 if test "$gccnum" -ge "303"; then
42624 WARN="$WARN -Wendif-labels -Wstrict-prototypes"
42627 if test "$gccnum" -ge "304"; then
42628 # try these on gcc 3.4
42629 WARN="$WARN -Wdeclaration-after-statement"
42632 for flag in $CPPFLAGS; do
42633 case "$flag" in
42634 -I*)
42635 add=`echo $flag | sed 's/^-I/-isystem /g'`
42636 WARN="$WARN $add"
42638 esac
42639 done
42642 CFLAGS="$CFLAGS $WARN"
42644 { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
42645 echo "$as_me: Added this set of compiler options: $WARN" >&6;}
42647 else
42648 { echo "$as_me:$LINENO: Added no extra compiler options" >&5
42649 echo "$as_me: Added no extra compiler options" >&6;}
42652 NEWFLAGS=""
42653 for flag in $CFLAGS; do
42654 case "$flag" in
42655 -O*)
42658 NEWFLAGS="$NEWFLAGS $flag"
42660 esac
42661 done
42662 CFLAGS=$NEWFLAGS
42666 esac
42668 else
42669 { echo "$as_me:$LINENO: result: no" >&5
42670 echo "${ECHO_T}no" >&6; }
42675 { echo "$as_me:$LINENO: checking whether to enable cryptographic authentication methods" >&5
42676 echo $ECHO_N "checking whether to enable cryptographic authentication methods... $ECHO_C" >&6; }
42677 # Check whether --enable-crypto-auth was given.
42678 if test "${enable_crypto_auth+set}" = set; then
42679 enableval=$enable_crypto_auth; case "$enableval" in
42681 { echo "$as_me:$LINENO: result: no" >&5
42682 echo "${ECHO_T}no" >&6; }
42684 cat >>confdefs.h <<\_ACEOF
42685 #define CURL_DISABLE_CRYPTO_AUTH 1
42686 _ACEOF
42689 *) { echo "$as_me:$LINENO: result: yes" >&5
42690 echo "${ECHO_T}yes" >&6; }
42692 esac
42693 else
42694 { echo "$as_me:$LINENO: result: yes" >&5
42695 echo "${ECHO_T}yes" >&6; }
42700 { echo "$as_me:$LINENO: checking whether to enable support for cookies" >&5
42701 echo $ECHO_N "checking whether to enable support for cookies... $ECHO_C" >&6; }
42702 # Check whether --enable-cookies was given.
42703 if test "${enable_cookies+set}" = set; then
42704 enableval=$enable_cookies; case "$enableval" in
42706 { echo "$as_me:$LINENO: result: no" >&5
42707 echo "${ECHO_T}no" >&6; }
42709 cat >>confdefs.h <<\_ACEOF
42710 #define CURL_DISABLE_COOKIES 1
42711 _ACEOF
42714 *) { echo "$as_me:$LINENO: result: yes" >&5
42715 echo "${ECHO_T}yes" >&6; }
42717 esac
42718 else
42719 { echo "$as_me:$LINENO: result: yes" >&5
42720 echo "${ECHO_T}yes" >&6; }
42725 { echo "$as_me:$LINENO: checking whether to enable hidden symbols in the library" >&5
42726 echo $ECHO_N "checking whether to enable hidden symbols in the library... $ECHO_C" >&6; }
42727 # Check whether --enable-hidden-symbols was given.
42728 if test "${enable_hidden_symbols+set}" = set; then
42729 enableval=$enable_hidden_symbols; case "$enableval" in
42731 { echo "$as_me:$LINENO: result: no" >&5
42732 echo "${ECHO_T}no" >&6; }
42735 { echo "$as_me:$LINENO: checking whether $CC supports it" >&5
42736 echo $ECHO_N "checking whether $CC supports it... $ECHO_C" >&6; }
42737 if test "$GCC" = yes ; then
42738 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
42739 { echo "$as_me:$LINENO: result: yes" >&5
42740 echo "${ECHO_T}yes" >&6; }
42742 cat >>confdefs.h <<\_ACEOF
42743 #define CURL_HIDDEN_SYMBOLS 1
42744 _ACEOF
42747 cat >>confdefs.h <<\_ACEOF
42748 #define CURL_EXTERN_SYMBOL __attribute__ ((visibility ("default")))
42749 _ACEOF
42751 CFLAGS="$CFLAGS -fvisibility=hidden"
42752 else
42753 { echo "$as_me:$LINENO: result: no" >&5
42754 echo "${ECHO_T}no" >&6; }
42757 else
42758 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
42759 { echo "$as_me:$LINENO: result: yes" >&5
42760 echo "${ECHO_T}yes" >&6; }
42762 cat >>confdefs.h <<\_ACEOF
42763 #define CURL_HIDDEN_SYMBOLS 1
42764 _ACEOF
42767 cat >>confdefs.h <<\_ACEOF
42768 #define CURL_EXTERN_SYMBOL __global
42769 _ACEOF
42771 CFLAGS="$CFLAGS -xldscope=hidden"
42772 else
42773 { echo "$as_me:$LINENO: result: no" >&5
42774 echo "${ECHO_T}no" >&6; }
42778 esac
42779 else
42780 { echo "$as_me:$LINENO: result: no" >&5
42781 echo "${ECHO_T}no" >&6; }
42787 { echo "$as_me:$LINENO: checking whether to enforce SONAME bump" >&5
42788 echo $ECHO_N "checking whether to enforce SONAME bump... $ECHO_C" >&6; }
42789 # Check whether --enable-soname-bump was given.
42790 if test "${enable_soname_bump+set}" = set; then
42791 enableval=$enable_soname_bump; case "$enableval" in
42792 yes) { echo "$as_me:$LINENO: result: yes" >&5
42793 echo "${ECHO_T}yes" >&6; }
42794 soname_bump=yes
42797 { echo "$as_me:$LINENO: result: no" >&5
42798 echo "${ECHO_T}no" >&6; }
42800 esac
42801 else
42802 { echo "$as_me:$LINENO: result: $soname_bump" >&5
42803 echo "${ECHO_T}$soname_bump" >&6; }
42809 if test x$soname_bump = xyes; then
42810 SONAME_BUMP_TRUE=
42811 SONAME_BUMP_FALSE='#'
42812 else
42813 SONAME_BUMP_TRUE='#'
42814 SONAME_BUMP_FALSE=
42819 if test ! -z "$winsock_LIB"; then
42822 LIBS="$LIBS $winsock_LIB"
42823 TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB"
42827 LIBCURL_LIBS=$LIBS
42832 LIBS=$ALL_LIBS
42835 if test x$cross_compiling = xyes; then
42836 CROSSCOMPILING_TRUE=
42837 CROSSCOMPILING_FALSE='#'
42838 else
42839 CROSSCOMPILING_TRUE='#'
42840 CROSSCOMPILING_FALSE=
42844 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/DOS/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
42846 cat >confcache <<\_ACEOF
42847 # This file is a shell script that caches the results of configure
42848 # tests run on this system so they can be shared between configure
42849 # scripts and configure runs, see configure's option --config-cache.
42850 # It is not useful on other systems. If it contains results you don't
42851 # want to keep, you may remove or edit it.
42853 # config.status only pays attention to the cache file if you give it
42854 # the --recheck option to rerun configure.
42856 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42857 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42858 # following values.
42860 _ACEOF
42862 # The following way of writing the cache mishandles newlines in values,
42863 # but we know of no workaround that is simple, portable, and efficient.
42864 # So, we kill variables containing newlines.
42865 # Ultrix sh set writes to stderr and can't be redirected directly,
42866 # and sets the high bit in the cache file unless we assign to the vars.
42868 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42869 eval ac_val=\$$ac_var
42870 case $ac_val in #(
42871 *${as_nl}*)
42872 case $ac_var in #(
42873 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42874 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42875 esac
42876 case $ac_var in #(
42877 _ | IFS | as_nl) ;; #(
42878 *) $as_unset $ac_var ;;
42879 esac ;;
42880 esac
42881 done
42883 (set) 2>&1 |
42884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42885 *${as_nl}ac_space=\ *)
42886 # `set' does not quote correctly, so add quotes (double-quote
42887 # substitution turns \\\\ into \\, and sed turns \\ into \).
42888 sed -n \
42889 "s/'/'\\\\''/g;
42890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42891 ;; #(
42893 # `set' quotes correctly as required by POSIX, so do not add quotes.
42894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42896 esac |
42897 sort
42899 sed '
42900 /^ac_cv_env_/b end
42901 t clear
42902 :clear
42903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42904 t end
42905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42906 :end' >>confcache
42907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42908 if test -w "$cache_file"; then
42909 test "x$cache_file" != "x/dev/null" &&
42910 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42911 echo "$as_me: updating cache $cache_file" >&6;}
42912 cat confcache >$cache_file
42913 else
42914 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42915 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42918 rm -f confcache
42920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42921 # Let make expand exec_prefix.
42922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42924 DEFS=-DHAVE_CONFIG_H
42926 ac_libobjs=
42927 ac_ltlibobjs=
42928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42929 # 1. Remove the extension, and $U if already installed.
42930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42931 ac_i=`echo "$ac_i" | sed "$ac_script"`
42932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42933 # will be set to the directory where LIBOBJS objects are built.
42934 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42935 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42936 done
42937 LIBOBJS=$ac_libobjs
42939 LTLIBOBJS=$ac_ltlibobjs
42942 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
42943 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
42944 Usually this means the macro was only invoked conditionally." >&5
42945 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
42946 Usually this means the macro was only invoked conditionally." >&2;}
42947 { (exit 1); exit 1; }; }
42949 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42950 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42951 Usually this means the macro was only invoked conditionally." >&5
42952 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42953 Usually this means the macro was only invoked conditionally." >&2;}
42954 { (exit 1); exit 1; }; }
42956 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42957 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42958 Usually this means the macro was only invoked conditionally." >&5
42959 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42960 Usually this means the macro was only invoked conditionally." >&2;}
42961 { (exit 1); exit 1; }; }
42963 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
42964 { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
42965 Usually this means the macro was only invoked conditionally." >&5
42966 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
42967 Usually this means the macro was only invoked conditionally." >&2;}
42968 { (exit 1); exit 1; }; }
42970 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
42971 { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
42972 Usually this means the macro was only invoked conditionally." >&5
42973 echo "$as_me: error: conditional \"MIMPURE\" was never defined.
42974 Usually this means the macro was only invoked conditionally." >&2;}
42975 { (exit 1); exit 1; }; }
42977 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
42978 { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
42979 Usually this means the macro was only invoked conditionally." >&5
42980 echo "$as_me: error: conditional \"STATICLIB\" was never defined.
42981 Usually this means the macro was only invoked conditionally." >&2;}
42982 { (exit 1); exit 1; }; }
42984 if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then
42985 { { echo "$as_me:$LINENO: error: conditional \"STATICLIB\" was never defined.
42986 Usually this means the macro was only invoked conditionally." >&5
42987 echo "$as_me: error: conditional \"STATICLIB\" was never defined.
42988 Usually this means the macro was only invoked conditionally." >&2;}
42989 { (exit 1); exit 1; }; }
42991 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
42992 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
42993 Usually this means the macro was only invoked conditionally." >&5
42994 echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
42995 Usually this means the macro was only invoked conditionally." >&2;}
42996 { (exit 1); exit 1; }; }
42998 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
42999 { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
43000 Usually this means the macro was only invoked conditionally." >&5
43001 echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
43002 Usually this means the macro was only invoked conditionally." >&2;}
43003 { (exit 1); exit 1; }; }
43005 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
43006 { { echo "$as_me:$LINENO: error: conditional \"SONAME_BUMP\" was never defined.
43007 Usually this means the macro was only invoked conditionally." >&5
43008 echo "$as_me: error: conditional \"SONAME_BUMP\" was never defined.
43009 Usually this means the macro was only invoked conditionally." >&2;}
43010 { (exit 1); exit 1; }; }
43012 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
43013 { { echo "$as_me:$LINENO: error: conditional \"CROSSCOMPILING\" was never defined.
43014 Usually this means the macro was only invoked conditionally." >&5
43015 echo "$as_me: error: conditional \"CROSSCOMPILING\" was never defined.
43016 Usually this means the macro was only invoked conditionally." >&2;}
43017 { (exit 1); exit 1; }; }
43020 : ${CONFIG_STATUS=./config.status}
43021 ac_clean_files_save=$ac_clean_files
43022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43025 cat >$CONFIG_STATUS <<_ACEOF
43026 #! $SHELL
43027 # Generated by $as_me.
43028 # Run this file to recreate the current configuration.
43029 # Compiler output produced by configure, useful for debugging
43030 # configure, is in config.log if it exists.
43032 debug=false
43033 ac_cs_recheck=false
43034 ac_cs_silent=false
43035 SHELL=\${CONFIG_SHELL-$SHELL}
43036 _ACEOF
43038 cat >>$CONFIG_STATUS <<\_ACEOF
43039 ## --------------------- ##
43040 ## M4sh Initialization. ##
43041 ## --------------------- ##
43043 # Be more Bourne compatible
43044 DUALCASE=1; export DUALCASE # for MKS sh
43045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43046 emulate sh
43047 NULLCMD=:
43048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43049 # is contrary to our usage. Disable this feature.
43050 alias -g '${1+"$@"}'='"$@"'
43051 setopt NO_GLOB_SUBST
43052 else
43053 case `(set -o) 2>/dev/null` in
43054 *posix*) set -o posix ;;
43055 esac
43062 # PATH needs CR
43063 # Avoid depending upon Character Ranges.
43064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43067 as_cr_digits='0123456789'
43068 as_cr_alnum=$as_cr_Letters$as_cr_digits
43070 # The user is always right.
43071 if test "${PATH_SEPARATOR+set}" != set; then
43072 echo "#! /bin/sh" >conf$$.sh
43073 echo "exit 0" >>conf$$.sh
43074 chmod +x conf$$.sh
43075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43076 PATH_SEPARATOR=';'
43077 else
43078 PATH_SEPARATOR=:
43080 rm -f conf$$.sh
43083 # Support unset when possible.
43084 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43085 as_unset=unset
43086 else
43087 as_unset=false
43091 # IFS
43092 # We need space, tab and new line, in precisely that order. Quoting is
43093 # there to prevent editors from complaining about space-tab.
43094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43095 # splitting by setting IFS to empty value.)
43096 as_nl='
43098 IFS=" "" $as_nl"
43100 # Find who we are. Look in the path if we contain no directory separator.
43101 case $0 in
43102 *[\\/]* ) as_myself=$0 ;;
43103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43104 for as_dir in $PATH
43106 IFS=$as_save_IFS
43107 test -z "$as_dir" && as_dir=.
43108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43109 done
43110 IFS=$as_save_IFS
43113 esac
43114 # We did not find ourselves, most probably we were run as `sh COMMAND'
43115 # in which case we are not to be found in the path.
43116 if test "x$as_myself" = x; then
43117 as_myself=$0
43119 if test ! -f "$as_myself"; then
43120 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43121 { (exit 1); exit 1; }
43124 # Work around bugs in pre-3.0 UWIN ksh.
43125 for as_var in ENV MAIL MAILPATH
43126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43127 done
43128 PS1='$ '
43129 PS2='> '
43130 PS4='+ '
43132 # NLS nuisances.
43133 for as_var in \
43134 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43135 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43136 LC_TELEPHONE LC_TIME
43138 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43139 eval $as_var=C; export $as_var
43140 else
43141 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43143 done
43145 # Required to use basename.
43146 if expr a : '\(a\)' >/dev/null 2>&1 &&
43147 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43148 as_expr=expr
43149 else
43150 as_expr=false
43153 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43154 as_basename=basename
43155 else
43156 as_basename=false
43160 # Name of the executable.
43161 as_me=`$as_basename -- "$0" ||
43162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43163 X"$0" : 'X\(//\)$' \| \
43164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43165 echo X/"$0" |
43166 sed '/^.*\/\([^/][^/]*\)\/*$/{
43167 s//\1/
43170 /^X\/\(\/\/\)$/{
43171 s//\1/
43174 /^X\/\(\/\).*/{
43175 s//\1/
43178 s/.*/./; q'`
43180 # CDPATH.
43181 $as_unset CDPATH
43185 as_lineno_1=$LINENO
43186 as_lineno_2=$LINENO
43187 test "x$as_lineno_1" != "x$as_lineno_2" &&
43188 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43190 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43191 # uniformly replaced by the line number. The first 'sed' inserts a
43192 # line-number line after each line using $LINENO; the second 'sed'
43193 # does the real work. The second script uses 'N' to pair each
43194 # line-number line with the line containing $LINENO, and appends
43195 # trailing '-' during substitution so that $LINENO is not a special
43196 # case at line end.
43197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43198 # scripts with optimization help from Paolo Bonzini. Blame Lee
43199 # E. McMahon (1931-1989) for sed's syntax. :-)
43200 sed -n '
43202 /[$]LINENO/=
43203 ' <$as_myself |
43204 sed '
43205 s/[$]LINENO.*/&-/
43206 t lineno
43208 :lineno
43210 :loop
43211 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43212 t loop
43213 s/-\n.*//
43214 ' >$as_me.lineno &&
43215 chmod +x "$as_me.lineno" ||
43216 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43217 { (exit 1); exit 1; }; }
43219 # Don't try to exec as it changes $[0], causing all sort of problems
43220 # (the dirname of $[0] is not the place where we might find the
43221 # original and so on. Autoconf is especially sensitive to this).
43222 . "./$as_me.lineno"
43223 # Exit status is that of the last command.
43224 exit
43228 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43229 as_dirname=dirname
43230 else
43231 as_dirname=false
43234 ECHO_C= ECHO_N= ECHO_T=
43235 case `echo -n x` in
43236 -n*)
43237 case `echo 'x\c'` in
43238 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43239 *) ECHO_C='\c';;
43240 esac;;
43242 ECHO_N='-n';;
43243 esac
43245 if expr a : '\(a\)' >/dev/null 2>&1 &&
43246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43247 as_expr=expr
43248 else
43249 as_expr=false
43252 rm -f conf$$ conf$$.exe conf$$.file
43253 if test -d conf$$.dir; then
43254 rm -f conf$$.dir/conf$$.file
43255 else
43256 rm -f conf$$.dir
43257 mkdir conf$$.dir
43259 echo >conf$$.file
43260 if ln -s conf$$.file conf$$ 2>/dev/null; then
43261 as_ln_s='ln -s'
43262 # ... but there are two gotchas:
43263 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43264 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43265 # In both cases, we have to default to `cp -p'.
43266 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43267 as_ln_s='cp -p'
43268 elif ln conf$$.file conf$$ 2>/dev/null; then
43269 as_ln_s=ln
43270 else
43271 as_ln_s='cp -p'
43273 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43274 rmdir conf$$.dir 2>/dev/null
43276 if mkdir -p . 2>/dev/null; then
43277 as_mkdir_p=:
43278 else
43279 test -d ./-p && rmdir ./-p
43280 as_mkdir_p=false
43283 if test -x / >/dev/null 2>&1; then
43284 as_test_x='test -x'
43285 else
43286 if ls -dL / >/dev/null 2>&1; then
43287 as_ls_L_option=L
43288 else
43289 as_ls_L_option=
43291 as_test_x='
43292 eval sh -c '\''
43293 if test -d "$1"; then
43294 test -d "$1/.";
43295 else
43296 case $1 in
43297 -*)set "./$1";;
43298 esac;
43299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43300 ???[sx]*):;;*)false;;esac;fi
43301 '\'' sh
43304 as_executable_p=$as_test_x
43306 # Sed expression to map a string onto a valid CPP name.
43307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43309 # Sed expression to map a string onto a valid variable name.
43310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43313 exec 6>&1
43315 # Save the log message, to keep $[0] and so on meaningful, and to
43316 # report actual input values of CONFIG_FILES etc. instead of their
43317 # values after options handling.
43318 ac_log="
43319 This file was extended by curl $as_me -, which was
43320 generated by GNU Autoconf 2.61. Invocation command line was
43322 CONFIG_FILES = $CONFIG_FILES
43323 CONFIG_HEADERS = $CONFIG_HEADERS
43324 CONFIG_LINKS = $CONFIG_LINKS
43325 CONFIG_COMMANDS = $CONFIG_COMMANDS
43326 $ $0 $@
43328 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43331 _ACEOF
43333 cat >>$CONFIG_STATUS <<_ACEOF
43334 # Files that config.status was made for.
43335 config_files="$ac_config_files"
43336 config_headers="$ac_config_headers"
43337 config_commands="$ac_config_commands"
43339 _ACEOF
43341 cat >>$CONFIG_STATUS <<\_ACEOF
43342 ac_cs_usage="\
43343 \`$as_me' instantiates files from templates according to the
43344 current configuration.
43346 Usage: $0 [OPTIONS] [FILE]...
43348 -h, --help print this help, then exit
43349 -V, --version print version number and configuration settings, then exit
43350 -q, --quiet do not print progress messages
43351 -d, --debug don't remove temporary files
43352 --recheck update $as_me by reconfiguring in the same conditions
43353 --file=FILE[:TEMPLATE]
43354 instantiate the configuration file FILE
43355 --header=FILE[:TEMPLATE]
43356 instantiate the configuration header FILE
43358 Configuration files:
43359 $config_files
43361 Configuration headers:
43362 $config_headers
43364 Configuration commands:
43365 $config_commands
43367 Report bugs to <bug-autoconf@gnu.org>."
43369 _ACEOF
43370 cat >>$CONFIG_STATUS <<_ACEOF
43371 ac_cs_version="\\
43372 curl config.status -
43373 configured by $0, generated by GNU Autoconf 2.61,
43374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43376 Copyright (C) 2006 Free Software Foundation, Inc.
43377 This config.status script is free software; the Free Software Foundation
43378 gives unlimited permission to copy, distribute and modify it."
43380 ac_pwd='$ac_pwd'
43381 srcdir='$srcdir'
43382 INSTALL='$INSTALL'
43383 _ACEOF
43385 cat >>$CONFIG_STATUS <<\_ACEOF
43386 # If no file are specified by the user, then we need to provide default
43387 # value. By we need to know if files were specified by the user.
43388 ac_need_defaults=:
43389 while test $# != 0
43391 case $1 in
43392 --*=*)
43393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43394 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43395 ac_shift=:
43398 ac_option=$1
43399 ac_optarg=$2
43400 ac_shift=shift
43402 esac
43404 case $ac_option in
43405 # Handling of the options.
43406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43407 ac_cs_recheck=: ;;
43408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43409 echo "$ac_cs_version"; exit ;;
43410 --debug | --debu | --deb | --de | --d | -d )
43411 debug=: ;;
43412 --file | --fil | --fi | --f )
43413 $ac_shift
43414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43415 ac_need_defaults=false;;
43416 --header | --heade | --head | --hea )
43417 $ac_shift
43418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43419 ac_need_defaults=false;;
43420 --he | --h)
43421 # Conflict between --help and --header
43422 { echo "$as_me: error: ambiguous option: $1
43423 Try \`$0 --help' for more information." >&2
43424 { (exit 1); exit 1; }; };;
43425 --help | --hel | -h )
43426 echo "$ac_cs_usage"; exit ;;
43427 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43428 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43429 ac_cs_silent=: ;;
43431 # This is an error.
43432 -*) { echo "$as_me: error: unrecognized option: $1
43433 Try \`$0 --help' for more information." >&2
43434 { (exit 1); exit 1; }; } ;;
43436 *) ac_config_targets="$ac_config_targets $1"
43437 ac_need_defaults=false ;;
43439 esac
43440 shift
43441 done
43443 ac_configure_extra_args=
43445 if $ac_cs_silent; then
43446 exec 6>/dev/null
43447 ac_configure_extra_args="$ac_configure_extra_args --silent"
43450 _ACEOF
43451 cat >>$CONFIG_STATUS <<_ACEOF
43452 if \$ac_cs_recheck; then
43453 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43454 CONFIG_SHELL=$SHELL
43455 export CONFIG_SHELL
43456 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43459 _ACEOF
43460 cat >>$CONFIG_STATUS <<\_ACEOF
43461 exec 5>>config.log
43463 echo
43464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43465 ## Running $as_me. ##
43466 _ASBOX
43467 echo "$ac_log"
43468 } >&5
43470 _ACEOF
43471 cat >>$CONFIG_STATUS <<_ACEOF
43473 # INIT-COMMANDS
43475 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43477 _ACEOF
43479 cat >>$CONFIG_STATUS <<\_ACEOF
43481 # Handling of arguments.
43482 for ac_config_target in $ac_config_targets
43484 case $ac_config_target in
43485 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
43486 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
43487 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
43488 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43489 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43490 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
43491 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
43492 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
43493 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
43494 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
43495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43496 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
43497 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
43498 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
43499 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
43500 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
43501 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
43502 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
43503 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
43504 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
43505 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
43506 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
43507 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
43508 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
43509 "packages/DOS/Makefile") CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
43510 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
43511 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
43512 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
43513 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
43514 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
43515 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
43516 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
43517 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
43519 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43520 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43521 { (exit 1); exit 1; }; };;
43522 esac
43523 done
43526 # If the user did not use the arguments to specify the items to instantiate,
43527 # then the envvar interface is used. Set only those that are not.
43528 # We use the long form for the default assignment because of an extremely
43529 # bizarre bug on SunOS 4.1.3.
43530 if $ac_need_defaults; then
43531 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43532 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43533 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43536 # Have a temporary directory for convenience. Make it in the build tree
43537 # simply because there is no reason against having it here, and in addition,
43538 # creating and moving files from /tmp can sometimes cause problems.
43539 # Hook for its removal unless debugging.
43540 # Note that there is a small window in which the directory will not be cleaned:
43541 # after its creation but before its name has been assigned to `$tmp'.
43542 $debug ||
43544 tmp=
43545 trap 'exit_status=$?
43546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43548 trap '{ (exit 1); exit 1; }' 1 2 13 15
43550 # Create a (secure) tmp directory for tmp files.
43553 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43554 test -n "$tmp" && test -d "$tmp"
43555 } ||
43557 tmp=./conf$$-$RANDOM
43558 (umask 077 && mkdir "$tmp")
43559 } ||
43561 echo "$me: cannot create a temporary directory in ." >&2
43562 { (exit 1); exit 1; }
43566 # Set up the sed scripts for CONFIG_FILES section.
43569 # No need to generate the scripts if there are no CONFIG_FILES.
43570 # This happens for instance when ./config.status config.h
43571 if test -n "$CONFIG_FILES"; then
43573 _ACEOF
43577 ac_delim='%!_!# '
43578 for ac_last_try in false false false false false :; do
43579 cat >conf$$subs.sed <<_ACEOF
43580 SHELL!$SHELL$ac_delim
43581 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43582 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43583 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43584 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43585 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43586 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43587 exec_prefix!$exec_prefix$ac_delim
43588 prefix!$prefix$ac_delim
43589 program_transform_name!$program_transform_name$ac_delim
43590 bindir!$bindir$ac_delim
43591 sbindir!$sbindir$ac_delim
43592 libexecdir!$libexecdir$ac_delim
43593 datarootdir!$datarootdir$ac_delim
43594 datadir!$datadir$ac_delim
43595 sysconfdir!$sysconfdir$ac_delim
43596 sharedstatedir!$sharedstatedir$ac_delim
43597 localstatedir!$localstatedir$ac_delim
43598 includedir!$includedir$ac_delim
43599 oldincludedir!$oldincludedir$ac_delim
43600 docdir!$docdir$ac_delim
43601 infodir!$infodir$ac_delim
43602 htmldir!$htmldir$ac_delim
43603 dvidir!$dvidir$ac_delim
43604 pdfdir!$pdfdir$ac_delim
43605 psdir!$psdir$ac_delim
43606 libdir!$libdir$ac_delim
43607 localedir!$localedir$ac_delim
43608 mandir!$mandir$ac_delim
43609 DEFS!$DEFS$ac_delim
43610 ECHO_C!$ECHO_C$ac_delim
43611 ECHO_N!$ECHO_N$ac_delim
43612 ECHO_T!$ECHO_T$ac_delim
43613 LIBS!$LIBS$ac_delim
43614 build_alias!$build_alias$ac_delim
43615 host_alias!$host_alias$ac_delim
43616 target_alias!$target_alias$ac_delim
43617 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
43618 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
43619 MAINT!$MAINT$ac_delim
43620 SED!$SED$ac_delim
43621 GREP!$GREP$ac_delim
43622 EGREP!$EGREP$ac_delim
43623 AR!$AR$ac_delim
43624 libext!$libext$ac_delim
43625 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
43626 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
43627 INSTALL_DATA!$INSTALL_DATA$ac_delim
43628 CYGPATH_W!$CYGPATH_W$ac_delim
43629 PACKAGE!$PACKAGE$ac_delim
43630 VERSION!$VERSION$ac_delim
43631 ACLOCAL!$ACLOCAL$ac_delim
43632 AUTOCONF!$AUTOCONF$ac_delim
43633 AUTOMAKE!$AUTOMAKE$ac_delim
43634 AUTOHEADER!$AUTOHEADER$ac_delim
43635 MAKEINFO!$MAKEINFO$ac_delim
43636 install_sh!$install_sh$ac_delim
43637 STRIP!$STRIP$ac_delim
43638 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
43639 mkdir_p!$mkdir_p$ac_delim
43640 AWK!$AWK$ac_delim
43641 SET_MAKE!$SET_MAKE$ac_delim
43642 am__leading_dot!$am__leading_dot$ac_delim
43643 AMTAR!$AMTAR$ac_delim
43644 am__tar!$am__tar$ac_delim
43645 am__untar!$am__untar$ac_delim
43646 VERSIONNUM!$VERSIONNUM$ac_delim
43647 PKGADD_PKG!$PKGADD_PKG$ac_delim
43648 PKGADD_NAME!$PKGADD_NAME$ac_delim
43649 PKGADD_VENDOR!$PKGADD_VENDOR$ac_delim
43650 build!$build$ac_delim
43651 build_cpu!$build_cpu$ac_delim
43652 build_vendor!$build_vendor$ac_delim
43653 build_os!$build_os$ac_delim
43654 host!$host$ac_delim
43655 host_cpu!$host_cpu$ac_delim
43656 host_vendor!$host_vendor$ac_delim
43657 host_os!$host_os$ac_delim
43658 CC!$CC$ac_delim
43659 CFLAGS!$CFLAGS$ac_delim
43660 LDFLAGS!$LDFLAGS$ac_delim
43661 CPPFLAGS!$CPPFLAGS$ac_delim
43662 ac_ct_CC!$ac_ct_CC$ac_delim
43663 EXEEXT!$EXEEXT$ac_delim
43664 OBJEXT!$OBJEXT$ac_delim
43665 DEPDIR!$DEPDIR$ac_delim
43666 am__include!$am__include$ac_delim
43667 am__quote!$am__quote$ac_delim
43668 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
43669 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
43670 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
43671 CCDEPMODE!$CCDEPMODE$ac_delim
43672 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
43673 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
43674 CPP!$CPP$ac_delim
43675 LN_S!$LN_S$ac_delim
43676 ECHO!$ECHO$ac_delim
43677 _ACEOF
43679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43680 break
43681 elif $ac_last_try; then
43682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43683 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43684 { (exit 1); exit 1; }; }
43685 else
43686 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43688 done
43690 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43691 if test -n "$ac_eof"; then
43692 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43693 ac_eof=`expr $ac_eof + 1`
43696 cat >>$CONFIG_STATUS <<_ACEOF
43697 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43699 _ACEOF
43700 sed '
43701 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43702 s/^/s,@/; s/!/@,|#_!!_#|/
43705 s/'"$ac_delim"'$/,g/; t
43706 s/$/\\/; p
43707 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43708 ' >>$CONFIG_STATUS <conf$$subs.sed
43709 rm -f conf$$subs.sed
43710 cat >>$CONFIG_STATUS <<_ACEOF
43711 CEOF$ac_eof
43712 _ACEOF
43715 ac_delim='%!_!# '
43716 for ac_last_try in false false false false false :; do
43717 cat >conf$$subs.sed <<_ACEOF
43718 RANLIB!$RANLIB$ac_delim
43719 DSYMUTIL!$DSYMUTIL$ac_delim
43720 NMEDIT!$NMEDIT$ac_delim
43721 DLLTOOL!$DLLTOOL$ac_delim
43722 AS!$AS$ac_delim
43723 OBJDUMP!$OBJDUMP$ac_delim
43724 LIBTOOL!$LIBTOOL$ac_delim
43725 NO_UNDEFINED_TRUE!$NO_UNDEFINED_TRUE$ac_delim
43726 NO_UNDEFINED_FALSE!$NO_UNDEFINED_FALSE$ac_delim
43727 MIMPURE_TRUE!$MIMPURE_TRUE$ac_delim
43728 MIMPURE_FALSE!$MIMPURE_FALSE$ac_delim
43729 STATICLIB_TRUE!$STATICLIB_TRUE$ac_delim
43730 STATICLIB_FALSE!$STATICLIB_FALSE$ac_delim
43731 REQUIRE_LIB_DEPS!$REQUIRE_LIB_DEPS$ac_delim
43732 CURL_DISABLE_HTTP!$CURL_DISABLE_HTTP$ac_delim
43733 CURL_DISABLE_FTP!$CURL_DISABLE_FTP$ac_delim
43734 CURL_DISABLE_FILE!$CURL_DISABLE_FILE$ac_delim
43735 CURL_DISABLE_LDAP!$CURL_DISABLE_LDAP$ac_delim
43736 CURL_DISABLE_LDAPS!$CURL_DISABLE_LDAPS$ac_delim
43737 CURL_DISABLE_DICT!$CURL_DISABLE_DICT$ac_delim
43738 CURL_DISABLE_TELNET!$CURL_DISABLE_TELNET$ac_delim
43739 CURL_DISABLE_TFTP!$CURL_DISABLE_TFTP$ac_delim
43740 KRB4_ENABLED!$KRB4_ENABLED$ac_delim
43741 PKGCONFIG!$PKGCONFIG$ac_delim
43742 USE_SSLEAY!$USE_SSLEAY$ac_delim
43743 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
43744 HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
43745 HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
43746 USE_LIBSSH2!$USE_LIBSSH2$ac_delim
43747 RANDOM_FILE!$RANDOM_FILE$ac_delim
43748 USE_GNUTLS!$USE_GNUTLS$ac_delim
43749 HAVE_PK11_CREATEGENERICOBJECT!$HAVE_PK11_CREATEGENERICOBJECT$ac_delim
43750 USE_NSS!$USE_NSS$ac_delim
43751 SSL_ENABLED!$SSL_ENABLED$ac_delim
43752 CURL_CA_BUNDLE!$CURL_CA_BUNDLE$ac_delim
43753 IDN_ENABLED!$IDN_ENABLED$ac_delim
43754 IPV6_ENABLED!$IPV6_ENABLED$ac_delim
43755 PERL!$PERL$ac_delim
43756 NROFF!$NROFF$ac_delim
43757 MANOPT!$MANOPT$ac_delim
43758 USE_MANUAL_TRUE!$USE_MANUAL_TRUE$ac_delim
43759 USE_MANUAL_FALSE!$USE_MANUAL_FALSE$ac_delim
43760 HAVE_ARES!$HAVE_ARES$ac_delim
43761 subdirs!$subdirs$ac_delim
43762 USE_WINDOWS_SSPI!$USE_WINDOWS_SSPI$ac_delim
43763 SONAME_BUMP_TRUE!$SONAME_BUMP_TRUE$ac_delim
43764 SONAME_BUMP_FALSE!$SONAME_BUMP_FALSE$ac_delim
43765 LIBCURL_LIBS!$LIBCURL_LIBS$ac_delim
43766 CURL_LIBS!$CURL_LIBS$ac_delim
43767 TEST_SERVER_LIBS!$TEST_SERVER_LIBS$ac_delim
43768 CROSSCOMPILING_TRUE!$CROSSCOMPILING_TRUE$ac_delim
43769 CROSSCOMPILING_FALSE!$CROSSCOMPILING_FALSE$ac_delim
43770 LIBOBJS!$LIBOBJS$ac_delim
43771 LTLIBOBJS!$LTLIBOBJS$ac_delim
43772 _ACEOF
43774 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
43775 break
43776 elif $ac_last_try; then
43777 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43778 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43779 { (exit 1); exit 1; }; }
43780 else
43781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43783 done
43785 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43786 if test -n "$ac_eof"; then
43787 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43788 ac_eof=`expr $ac_eof + 1`
43791 cat >>$CONFIG_STATUS <<_ACEOF
43792 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43794 _ACEOF
43795 sed '
43796 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43797 s/^/s,@/; s/!/@,|#_!!_#|/
43800 s/'"$ac_delim"'$/,g/; t
43801 s/$/\\/; p
43802 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43803 ' >>$CONFIG_STATUS <conf$$subs.sed
43804 rm -f conf$$subs.sed
43805 cat >>$CONFIG_STATUS <<_ACEOF
43806 :end
43807 s/|#_!!_#|//g
43808 CEOF$ac_eof
43809 _ACEOF
43812 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43813 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43814 # trailing colons and then remove the whole line if VPATH becomes empty
43815 # (actually we leave an empty line to preserve line numbers).
43816 if test "x$srcdir" = x.; then
43817 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43818 s/:*\$(srcdir):*/:/
43819 s/:*\${srcdir}:*/:/
43820 s/:*@srcdir@:*/:/
43821 s/^\([^=]*=[ ]*\):*/\1/
43822 s/:*$//
43823 s/^[^=]*=[ ]*$//
43827 cat >>$CONFIG_STATUS <<\_ACEOF
43828 fi # test -n "$CONFIG_FILES"
43831 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
43833 case $ac_tag in
43834 :[FHLC]) ac_mode=$ac_tag; continue;;
43835 esac
43836 case $ac_mode$ac_tag in
43837 :[FHL]*:*);;
43838 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43839 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43840 { (exit 1); exit 1; }; };;
43841 :[FH]-) ac_tag=-:-;;
43842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43843 esac
43844 ac_save_IFS=$IFS
43845 IFS=:
43846 set x $ac_tag
43847 IFS=$ac_save_IFS
43848 shift
43849 ac_file=$1
43850 shift
43852 case $ac_mode in
43853 :L) ac_source=$1;;
43854 :[FH])
43855 ac_file_inputs=
43856 for ac_f
43858 case $ac_f in
43859 -) ac_f="$tmp/stdin";;
43860 *) # Look for the file first in the build tree, then in the source tree
43861 # (if the path is not absolute). The absolute path cannot be DOS-style,
43862 # because $ac_f cannot contain `:'.
43863 test -f "$ac_f" ||
43864 case $ac_f in
43865 [\\/$]*) false;;
43866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43867 esac ||
43868 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43869 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43870 { (exit 1); exit 1; }; };;
43871 esac
43872 ac_file_inputs="$ac_file_inputs $ac_f"
43873 done
43875 # Let's still pretend it is `configure' which instantiates (i.e., don't
43876 # use $as_me), people would be surprised to read:
43877 # /* config.h. Generated by config.status. */
43878 configure_input="Generated from "`IFS=:
43879 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
43880 if test x"$ac_file" != x-; then
43881 configure_input="$ac_file. $configure_input"
43882 { echo "$as_me:$LINENO: creating $ac_file" >&5
43883 echo "$as_me: creating $ac_file" >&6;}
43886 case $ac_tag in
43887 *:-:* | *:-) cat >"$tmp/stdin";;
43888 esac
43890 esac
43892 ac_dir=`$as_dirname -- "$ac_file" ||
43893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43894 X"$ac_file" : 'X\(//\)[^/]' \| \
43895 X"$ac_file" : 'X\(//\)$' \| \
43896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43897 echo X"$ac_file" |
43898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43899 s//\1/
43902 /^X\(\/\/\)[^/].*/{
43903 s//\1/
43906 /^X\(\/\/\)$/{
43907 s//\1/
43910 /^X\(\/\).*/{
43911 s//\1/
43914 s/.*/./; q'`
43915 { as_dir="$ac_dir"
43916 case $as_dir in #(
43917 -*) as_dir=./$as_dir;;
43918 esac
43919 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
43920 as_dirs=
43921 while :; do
43922 case $as_dir in #(
43923 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
43924 *) as_qdir=$as_dir;;
43925 esac
43926 as_dirs="'$as_qdir' $as_dirs"
43927 as_dir=`$as_dirname -- "$as_dir" ||
43928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43929 X"$as_dir" : 'X\(//\)[^/]' \| \
43930 X"$as_dir" : 'X\(//\)$' \| \
43931 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43932 echo X"$as_dir" |
43933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43934 s//\1/
43937 /^X\(\/\/\)[^/].*/{
43938 s//\1/
43941 /^X\(\/\/\)$/{
43942 s//\1/
43945 /^X\(\/\).*/{
43946 s//\1/
43949 s/.*/./; q'`
43950 test -d "$as_dir" && break
43951 done
43952 test -z "$as_dirs" || eval "mkdir $as_dirs"
43953 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
43954 echo "$as_me: error: cannot create directory $as_dir" >&2;}
43955 { (exit 1); exit 1; }; }; }
43956 ac_builddir=.
43958 case "$ac_dir" in
43959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43961 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43962 # A ".." for each directory in $ac_dir_suffix.
43963 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
43964 case $ac_top_builddir_sub in
43965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43967 esac ;;
43968 esac
43969 ac_abs_top_builddir=$ac_pwd
43970 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43971 # for backward compatibility:
43972 ac_top_builddir=$ac_top_build_prefix
43974 case $srcdir in
43975 .) # We are building in place.
43976 ac_srcdir=.
43977 ac_top_srcdir=$ac_top_builddir_sub
43978 ac_abs_top_srcdir=$ac_pwd ;;
43979 [\\/]* | ?:[\\/]* ) # Absolute name.
43980 ac_srcdir=$srcdir$ac_dir_suffix;
43981 ac_top_srcdir=$srcdir
43982 ac_abs_top_srcdir=$srcdir ;;
43983 *) # Relative name.
43984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43985 ac_top_srcdir=$ac_top_build_prefix$srcdir
43986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43987 esac
43988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43991 case $ac_mode in
43994 # CONFIG_FILE
43997 case $INSTALL in
43998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44000 esac
44001 _ACEOF
44003 cat >>$CONFIG_STATUS <<\_ACEOF
44004 # If the template does not know about datarootdir, expand it.
44005 # FIXME: This hack should be removed a few years after 2.60.
44006 ac_datarootdir_hack=; ac_datarootdir_seen=
44008 case `sed -n '/datarootdir/ {
44012 /@datadir@/p
44013 /@docdir@/p
44014 /@infodir@/p
44015 /@localedir@/p
44016 /@mandir@/p
44017 ' $ac_file_inputs` in
44018 *datarootdir*) ac_datarootdir_seen=yes;;
44019 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44020 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44021 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44022 _ACEOF
44023 cat >>$CONFIG_STATUS <<_ACEOF
44024 ac_datarootdir_hack='
44025 s&@datadir@&$datadir&g
44026 s&@docdir@&$docdir&g
44027 s&@infodir@&$infodir&g
44028 s&@localedir@&$localedir&g
44029 s&@mandir@&$mandir&g
44030 s&\\\${datarootdir}&$datarootdir&g' ;;
44031 esac
44032 _ACEOF
44034 # Neutralize VPATH when `$srcdir' = `.'.
44035 # Shell code in configure.ac might set extrasub.
44036 # FIXME: do we really want to maintain this feature?
44037 cat >>$CONFIG_STATUS <<_ACEOF
44038 sed "$ac_vpsub
44039 $extrasub
44040 _ACEOF
44041 cat >>$CONFIG_STATUS <<\_ACEOF
44043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44044 s&@configure_input@&$configure_input&;t t
44045 s&@top_builddir@&$ac_top_builddir_sub&;t t
44046 s&@srcdir@&$ac_srcdir&;t t
44047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44048 s&@top_srcdir@&$ac_top_srcdir&;t t
44049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44050 s&@builddir@&$ac_builddir&;t t
44051 s&@abs_builddir@&$ac_abs_builddir&;t t
44052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44053 s&@INSTALL@&$ac_INSTALL&;t t
44054 $ac_datarootdir_hack
44055 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
44057 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44058 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44059 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44060 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44061 which seems to be undefined. Please make sure it is defined." >&5
44062 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44063 which seems to be undefined. Please make sure it is defined." >&2;}
44065 rm -f "$tmp/stdin"
44066 case $ac_file in
44067 -) cat "$tmp/out"; rm -f "$tmp/out";;
44068 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44069 esac
44073 # CONFIG_HEADER
44075 _ACEOF
44077 # Transform confdefs.h into a sed script `conftest.defines', that
44078 # substitutes the proper values into config.h.in to produce config.h.
44079 rm -f conftest.defines conftest.tail
44080 # First, append a space to every undef/define line, to ease matching.
44081 echo 's/$/ /' >conftest.defines
44082 # Then, protect against being on the right side of a sed subst, or in
44083 # an unquoted here document, in config.status. If some macros were
44084 # called several times there might be several #defines for the same
44085 # symbol, which is useless. But do not sort them, since the last
44086 # AC_DEFINE must be honored.
44087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44088 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44089 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44090 # PARAMS is the parameter list in the macro definition--in most cases, it's
44091 # just an empty string.
44092 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44093 ac_dB='\\)[ (].*,\\1define\\2'
44094 ac_dC=' '
44095 ac_dD=' ,'
44097 uniq confdefs.h |
44098 sed -n '
44099 t rset
44100 :rset
44101 s/^[ ]*#[ ]*define[ ][ ]*//
44102 t ok
44105 s/[\\&,]/\\&/g
44106 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44107 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44108 ' >>conftest.defines
44110 # Remove the space that was appended to ease matching.
44111 # Then replace #undef with comments. This is necessary, for
44112 # example, in the case of _POSIX_SOURCE, which is predefined and required
44113 # on some systems where configure will not decide to define it.
44114 # (The regexp can be short, since the line contains either #define or #undef.)
44115 echo 's/ $//
44116 s,^[ #]*u.*,/* & */,' >>conftest.defines
44118 # Break up conftest.defines:
44119 ac_max_sed_lines=50
44121 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44122 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44123 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44124 # et cetera.
44125 ac_in='$ac_file_inputs'
44126 ac_out='"$tmp/out1"'
44127 ac_nxt='"$tmp/out2"'
44129 while :
44131 # Write a here document:
44132 cat >>$CONFIG_STATUS <<_ACEOF
44133 # First, check the format of the line:
44134 cat >"\$tmp/defines.sed" <<\\CEOF
44135 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44136 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44138 :def
44139 _ACEOF
44140 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44141 echo 'CEOF
44142 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44143 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44144 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44145 grep . conftest.tail >/dev/null || break
44146 rm -f conftest.defines
44147 mv conftest.tail conftest.defines
44148 done
44149 rm -f conftest.defines conftest.tail
44151 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44152 cat >>$CONFIG_STATUS <<\_ACEOF
44153 if test x"$ac_file" != x-; then
44154 echo "/* $configure_input */" >"$tmp/config.h"
44155 cat "$ac_result" >>"$tmp/config.h"
44156 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44157 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44158 echo "$as_me: $ac_file is unchanged" >&6;}
44159 else
44160 rm -f $ac_file
44161 mv "$tmp/config.h" $ac_file
44163 else
44164 echo "/* $configure_input */"
44165 cat "$ac_result"
44167 rm -f "$tmp/out12"
44168 # Compute $ac_file's index in $config_headers.
44169 _am_stamp_count=1
44170 for _am_header in $config_headers :; do
44171 case $_am_header in
44172 $ac_file | $ac_file:* )
44173 break ;;
44175 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44176 esac
44177 done
44178 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
44179 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44180 X$ac_file : 'X\(//\)[^/]' \| \
44181 X$ac_file : 'X\(//\)$' \| \
44182 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
44183 echo X$ac_file |
44184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44185 s//\1/
44188 /^X\(\/\/\)[^/].*/{
44189 s//\1/
44192 /^X\(\/\/\)$/{
44193 s//\1/
44196 /^X\(\/\).*/{
44197 s//\1/
44200 s/.*/./; q'`/stamp-h$_am_stamp_count
44203 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44204 echo "$as_me: executing $ac_file commands" >&6;}
44206 esac
44209 case $ac_file$ac_mode in
44210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44211 # Strip MF so we end up with the name of the file.
44212 mf=`echo "$mf" | sed -e 's/:.*$//'`
44213 # Check whether this is an Automake generated Makefile or not.
44214 # We used to match only the files named `Makefile.in', but
44215 # some people rename them; so instead we look at the file content.
44216 # Grep'ing the first line is not enough: some people post-process
44217 # each Makefile.in and add a new line on top of each file to say so.
44218 # So let's grep whole file.
44219 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44220 dirpart=`$as_dirname -- "$mf" ||
44221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44222 X"$mf" : 'X\(//\)[^/]' \| \
44223 X"$mf" : 'X\(//\)$' \| \
44224 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
44225 echo X"$mf" |
44226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44227 s//\1/
44230 /^X\(\/\/\)[^/].*/{
44231 s//\1/
44234 /^X\(\/\/\)$/{
44235 s//\1/
44238 /^X\(\/\).*/{
44239 s//\1/
44242 s/.*/./; q'`
44243 else
44244 continue
44246 # Extract the definition of DEPDIR, am__include, and am__quote
44247 # from the Makefile without running `make'.
44248 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44249 test -z "$DEPDIR" && continue
44250 am__include=`sed -n 's/^am__include = //p' < "$mf"`
44251 test -z "am__include" && continue
44252 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44253 # When using ansi2knr, U may be empty or an underscore; expand it
44254 U=`sed -n 's/^U = //p' < "$mf"`
44255 # Find all dependency output files, they are included files with
44256 # $(DEPDIR) in their names. We invoke sed twice because it is the
44257 # simplest approach to changing $(DEPDIR) to its actual value in the
44258 # expansion.
44259 for file in `sed -n "
44260 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44261 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44262 # Make sure the directory exists.
44263 test -f "$dirpart/$file" && continue
44264 fdir=`$as_dirname -- "$file" ||
44265 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44266 X"$file" : 'X\(//\)[^/]' \| \
44267 X"$file" : 'X\(//\)$' \| \
44268 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
44269 echo X"$file" |
44270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44271 s//\1/
44274 /^X\(\/\/\)[^/].*/{
44275 s//\1/
44278 /^X\(\/\/\)$/{
44279 s//\1/
44282 /^X\(\/\).*/{
44283 s//\1/
44286 s/.*/./; q'`
44287 { as_dir=$dirpart/$fdir
44288 case $as_dir in #(
44289 -*) as_dir=./$as_dir;;
44290 esac
44291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44292 as_dirs=
44293 while :; do
44294 case $as_dir in #(
44295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44296 *) as_qdir=$as_dir;;
44297 esac
44298 as_dirs="'$as_qdir' $as_dirs"
44299 as_dir=`$as_dirname -- "$as_dir" ||
44300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44301 X"$as_dir" : 'X\(//\)[^/]' \| \
44302 X"$as_dir" : 'X\(//\)$' \| \
44303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44304 echo X"$as_dir" |
44305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44306 s//\1/
44309 /^X\(\/\/\)[^/].*/{
44310 s//\1/
44313 /^X\(\/\/\)$/{
44314 s//\1/
44317 /^X\(\/\).*/{
44318 s//\1/
44321 s/.*/./; q'`
44322 test -d "$as_dir" && break
44323 done
44324 test -z "$as_dirs" || eval "mkdir $as_dirs"
44325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44326 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44327 { (exit 1); exit 1; }; }; }
44328 # echo "creating $dirpart/$file"
44329 echo '# dummy' > "$dirpart/$file"
44330 done
44331 done
44334 esac
44335 done # for ac_tag
44338 { (exit 0); exit 0; }
44339 _ACEOF
44340 chmod +x $CONFIG_STATUS
44341 ac_clean_files=$ac_clean_files_save
44344 # configure is writing to config.log, and then calls config.status.
44345 # config.status does its own redirection, appending to config.log.
44346 # Unfortunately, on DOS this fails, as config.log is still kept open
44347 # by configure, so config.status won't be able to write to it; its
44348 # output is simply discarded. So we exec the FD to /dev/null,
44349 # effectively closing config.log, so it can be properly (re)opened and
44350 # appended to by config.status. When coming back to configure, we
44351 # need to make the FD available again.
44352 if test "$no_create" != yes; then
44353 ac_cs_success=:
44354 ac_config_status_args=
44355 test "$silent" = yes &&
44356 ac_config_status_args="$ac_config_status_args --quiet"
44357 exec 5>/dev/null
44358 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44359 exec 5>>config.log
44360 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44361 # would make configure fail if this is the last instruction.
44362 $ac_cs_success || { (exit 1); exit 1; }
44366 # CONFIG_SUBDIRS section.
44368 if test "$no_recursion" != yes; then
44370 # Remove --cache-file and --srcdir arguments so they do not pile up.
44371 ac_sub_configure_args=
44372 ac_prev=
44373 eval "set x $ac_configure_args"
44374 shift
44375 for ac_arg
44377 if test -n "$ac_prev"; then
44378 ac_prev=
44379 continue
44381 case $ac_arg in
44382 -cache-file | --cache-file | --cache-fil | --cache-fi \
44383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44384 ac_prev=cache_file ;;
44385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44387 | --c=*)
44389 --config-cache | -C)
44391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44392 ac_prev=srcdir ;;
44393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44395 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44396 ac_prev=prefix ;;
44397 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44400 case $ac_arg in
44401 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44402 esac
44403 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
44404 esac
44405 done
44407 # Always prepend --prefix to ensure using the same prefix
44408 # in subdir configurations.
44409 ac_arg="--prefix=$prefix"
44410 case $ac_arg in
44411 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44412 esac
44413 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44415 # Pass --silent
44416 if test "$silent" = yes; then
44417 ac_sub_configure_args="--silent $ac_sub_configure_args"
44420 ac_popdir=`pwd`
44421 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44423 # Do not complain, so a configure script can configure whichever
44424 # parts of a large source tree are present.
44425 test -d "$srcdir/$ac_dir" || continue
44427 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44428 echo "$as_me:$LINENO: $ac_msg" >&5
44429 echo "$ac_msg" >&6
44430 { as_dir="$ac_dir"
44431 case $as_dir in #(
44432 -*) as_dir=./$as_dir;;
44433 esac
44434 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44435 as_dirs=
44436 while :; do
44437 case $as_dir in #(
44438 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44439 *) as_qdir=$as_dir;;
44440 esac
44441 as_dirs="'$as_qdir' $as_dirs"
44442 as_dir=`$as_dirname -- "$as_dir" ||
44443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44444 X"$as_dir" : 'X\(//\)[^/]' \| \
44445 X"$as_dir" : 'X\(//\)$' \| \
44446 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44447 echo X"$as_dir" |
44448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44449 s//\1/
44452 /^X\(\/\/\)[^/].*/{
44453 s//\1/
44456 /^X\(\/\/\)$/{
44457 s//\1/
44460 /^X\(\/\).*/{
44461 s//\1/
44464 s/.*/./; q'`
44465 test -d "$as_dir" && break
44466 done
44467 test -z "$as_dirs" || eval "mkdir $as_dirs"
44468 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44469 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44470 { (exit 1); exit 1; }; }; }
44471 ac_builddir=.
44473 case "$ac_dir" in
44474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44476 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44477 # A ".." for each directory in $ac_dir_suffix.
44478 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44479 case $ac_top_builddir_sub in
44480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44482 esac ;;
44483 esac
44484 ac_abs_top_builddir=$ac_pwd
44485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44486 # for backward compatibility:
44487 ac_top_builddir=$ac_top_build_prefix
44489 case $srcdir in
44490 .) # We are building in place.
44491 ac_srcdir=.
44492 ac_top_srcdir=$ac_top_builddir_sub
44493 ac_abs_top_srcdir=$ac_pwd ;;
44494 [\\/]* | ?:[\\/]* ) # Absolute name.
44495 ac_srcdir=$srcdir$ac_dir_suffix;
44496 ac_top_srcdir=$srcdir
44497 ac_abs_top_srcdir=$srcdir ;;
44498 *) # Relative name.
44499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44500 ac_top_srcdir=$ac_top_build_prefix$srcdir
44501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44502 esac
44503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44506 cd "$ac_dir"
44508 # Check for guested configure; otherwise get Cygnus style configure.
44509 if test -f "$ac_srcdir/configure.gnu"; then
44510 ac_sub_configure=$ac_srcdir/configure.gnu
44511 elif test -f "$ac_srcdir/configure"; then
44512 ac_sub_configure=$ac_srcdir/configure
44513 elif test -f "$ac_srcdir/configure.in"; then
44514 # This should be Cygnus configure.
44515 ac_sub_configure=$ac_aux_dir/configure
44516 else
44517 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
44518 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44519 ac_sub_configure=
44522 # The recursion is here.
44523 if test -n "$ac_sub_configure"; then
44524 # Make the cache file name correct relative to the subdirectory.
44525 case $cache_file in
44526 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44527 *) # Relative name.
44528 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44529 esac
44531 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
44532 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44533 # The eval makes quoting arguments work.
44534 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44535 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44536 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
44537 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
44538 { (exit 1); exit 1; }; }
44541 cd "$ac_popdir"
44542 done
44546 { echo "$as_me:$LINENO: Configured to build curl/libcurl:
44548 curl version: ${VERSION}
44549 Host setup: ${host}
44550 Install prefix: ${prefix}
44551 Compiler: ${CC}
44552 SSL support: ${curl_ssl_msg}
44553 SSH support: ${curl_ssh_msg}
44554 zlib support: ${curl_zlib_msg}
44555 krb4 support: ${curl_krb4_msg}
44556 GSSAPI support: ${curl_gss_msg}
44557 SPNEGO support: ${curl_spnego_msg}
44558 c-ares support: ${curl_ares_msg}
44559 ipv6 support: ${curl_ipv6_msg}
44560 IDN support: ${curl_idn_msg}
44561 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44562 Built-in manual: ${curl_manual_msg}
44563 Verbose errors: ${curl_verbose_msg}
44564 SSPI support: ${curl_sspi_msg}
44565 ca cert bundle: ${ca}
44566 ca cert path: ${capath}
44567 LDAP support: ${curl_ldap_msg}
44568 LDAPS support: ${curl_ldaps_msg}
44569 " >&5
44570 echo "$as_me: Configured to build curl/libcurl:
44572 curl version: ${VERSION}
44573 Host setup: ${host}
44574 Install prefix: ${prefix}
44575 Compiler: ${CC}
44576 SSL support: ${curl_ssl_msg}
44577 SSH support: ${curl_ssh_msg}
44578 zlib support: ${curl_zlib_msg}
44579 krb4 support: ${curl_krb4_msg}
44580 GSSAPI support: ${curl_gss_msg}
44581 SPNEGO support: ${curl_spnego_msg}
44582 c-ares support: ${curl_ares_msg}
44583 ipv6 support: ${curl_ipv6_msg}
44584 IDN support: ${curl_idn_msg}
44585 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44586 Built-in manual: ${curl_manual_msg}
44587 Verbose errors: ${curl_verbose_msg}
44588 SSPI support: ${curl_sspi_msg}
44589 ca cert bundle: ${ca}
44590 ca cert path: ${capath}
44591 LDAP support: ${curl_ldap_msg}
44592 LDAPS support: ${curl_ldaps_msg}
44593 " >&6;}
44595 if test "x$soname_bump" = "xyes"; then
44597 cat <<EOM
44598 SONAME bump: yes - WARNING: this library will be built with the SONAME
44599 number bumped due to (a detected) ABI breakage.
44600 See lib/README.curl_off_t for details on this.