2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for curl -.
5 # Report bugs to <curl-bug@haxx.se>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
12 # This configure script may be copied, distributed and modified under the
13 # terms of the curl license; see COPYING for more details
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be Bourne compatible
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 DUALCASE=1; export DUALCASE # for MKS sh
30 # Support unset when possible.
31 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38 # Work around bugs in pre-3.0 UWIN ksh.
39 $as_unset ENV MAIL MAILPATH
46 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
47 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51 eval $as_var=C; export $as_var
57 # Required to use basename.
58 if expr a : '\(a\)' >/dev/null 2>&1; then
64 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
71 # Name of the executable.
72 as_me=`$as_basename "$0" ||
73 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74 X"$0" : 'X\(//\)$' \| \
75 X"$0" : 'X\(/\)$' \| \
76 . : '\(.\)' 2>/dev/null ||
78 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
79 /^X\/\(\/\/\)$/{ s//\1/; q; }
80 /^X\/\(\/\).*/{ s//\1/; q; }
84 # PATH needs CR, and LINENO needs CR and PATH.
85 # Avoid depending upon Character Ranges.
86 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
87 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
88 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
89 as_cr_digits='0123456789'
90 as_cr_alnum=$as_cr_Letters$as_cr_digits
92 # The user is always right.
93 if test "${PATH_SEPARATOR+set}" != set; then
94 echo "#! /bin/sh" >conf$$.sh
95 echo "exit 0" >>conf$$.sh
97 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
108 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
109 test "x$as_lineno_1" != "x$as_lineno_2" &&
110 test "x$as_lineno_3" = "x$as_lineno_2" || {
111 # Find who we are. Look in the path if we contain no path at all
114 *[\\/]* ) as_myself=$0 ;;
115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119 test -z "$as_dir" && as_dir=.
120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
125 # We did not find ourselves, most probably we were run as `sh COMMAND'
126 # in which case we are not to be found in the path.
127 if test "x$as_myself" = x; then
130 if test ! -f "$as_myself"; then
131 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
132 { (exit 1); exit 1; }; }
134 case $CONFIG_SHELL in
136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140 test -z "$as_dir" && as_dir=.
141 for as_base in sh bash ksh sh5; do
144 if ("$as_dir/$as_base" -c '
147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
148 test "x$as_lineno_1" != "x$as_lineno_2" &&
149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
150 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
151 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
152 CONFIG_SHELL=$as_dir/$as_base
154 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
162 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
163 # uniformly replaced by the line number. The first 'sed' inserts a
164 # line-number line before each line; the second 'sed' does the real
165 # work. The second script uses 'N' to pair each line-number line
166 # with the numbered line, and appends trailing '-' during
167 # substitution so that $LINENO is not a special case at line end.
168 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
169 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
170 sed '=' <$as_myself |
175 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178 s,^['$as_cr_digits']*\n,,
180 chmod +x $as_me.lineno ||
181 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
182 { (exit 1); exit 1; }; }
184 # Don't try to exec as it changes $[0], causing all sort of problems
185 # (the dirname of $[0] is not the place where we might find the
186 # original and so on. Autoconf is especially sensible to this).
188 # Exit status is that of the last command.
193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
194 *c*,-n*) ECHO_N= ECHO_C='
196 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
197 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
200 if expr a : '\(a\)' >/dev/null 2>&1; then
206 rm -f conf$$ conf$$.exe conf$$.file
208 if ln -s conf$$.file conf$$ 2>/dev/null; then
209 # We could just check for DJGPP; but this test a) works b) is more generic
210 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
211 if test -f conf$$.exe; then
212 # Don't use ln at all; we don't have any links
217 elif ln conf$$.file conf$$ 2>/dev/null; then
222 rm -f conf$$ conf$$.exe conf$$.file
224 if mkdir -p . 2>/dev/null; then
227 test -d ./-p && rmdir ./-p
231 as_executable_p="test -f"
233 # Sed expression to map a string onto a valid CPP name.
234 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236 # Sed expression to map a string onto a valid variable name.
237 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241 # We need space, tab and new line, in precisely that order.
251 # Check that we are running under the correct shell.
252 SHELL=${CONFIG_SHELL-/bin/sh}
256 # Remove one level of quotation (which was required for Make).
257 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 if test "X$1" = X--no-reexec; then
263 # Discard the --no-reexec flag, and continue.
265 elif test "X$1" = X--fallback-echo; then
266 # Avoid inline document here, it may be left over
268 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
269 # Yippee, $echo works!
272 # Restart under the correct shell.
273 exec $SHELL "$0" --no-reexec ${1+"$@"}
276 if test "X$1" = X--fallback-echo; then
277 # used as fallback echo
285 # The HP-UX ksh and POSIX shell print the target directory to stdout
287 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
289 if test -z "$ECHO"; then
290 if test "X${echo_test_string+set}" != Xset; then
291 # find a string as large as possible, as long as the shell can cope with it
292 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
293 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
294 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
295 echo_test_string="`eval $cmd`" &&
296 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
303 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
304 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
305 test "X$echo_testing_string" = "X$echo_test_string"; then
308 # The Solaris, AIX, and Digital Unix default echo programs unquote
309 # backslashes. This makes it impossible to quote backslashes using
310 # echo "$something" | sed 's/\\/\\\\/g'
312 # So, first we look for a working echo in the user's PATH.
314 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
315 for dir in $PATH /usr/ucb; do
317 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
318 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
319 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
320 test "X$echo_testing_string" = "X$echo_test_string"; then
327 if test "X$echo" = Xecho; then
328 # We didn't find a better echo, so look for alternatives.
329 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
330 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
331 test "X$echo_testing_string" = "X$echo_test_string"; then
332 # This shell has a builtin print -r that does the trick.
334 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
335 test "X$CONFIG_SHELL" != X/bin/ksh; then
336 # If we have ksh, try running configure again with it.
337 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
338 export ORIGINAL_CONFIG_SHELL
339 CONFIG_SHELL=/bin/ksh
341 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
346 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
350 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
351 test "X$echo_testing_string" = 'X\t' &&
352 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
353 test "X$echo_testing_string" = "X$echo_test_string"; then
354 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356 SHELL="$CONFIG_SHELL"
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
360 test "X$echo_testing_string" = 'X\t' &&
361 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
362 test "X$echo_testing_string" = "X$echo_test_string"; then
363 echo="$CONFIG_SHELL $0 --fallback-echo"
365 # maybe with a smaller string...
368 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
369 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
376 if test "$prev" != 'sed 50q "$0"'; then
377 echo_test_string=`eval $prev`
378 export echo_test_string
379 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381 # Oops. We lost completely, so just stick with echo.
390 # Copy echo and quote the copy suitably for passing to libtool from
391 # the Makefile, instead of quoting the original, which is used later.
393 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
394 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
400 tagnames=${tagnames+${tagnames},}CXX
402 tagnames=${tagnames+${tagnames},}F77
405 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
406 # so uname gets run too.
407 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
414 ac_default_prefix=/usr/local
415 ac_config_libobj_dir=.
420 SHELL=${CONFIG_SHELL-/bin/sh}
422 # Maximum number of lines to put in a shell here document.
423 # This variable seems obsolete. It should probably be removed, and
424 # only ac_max_sed_lines should be used.
425 : ${ac_max_here_lines=38}
427 # Identity of this package.
429 PACKAGE_TARNAME='curl'
431 PACKAGE_STRING='curl -'
432 PACKAGE_BUGREPORT='curl-bug@haxx.se'
434 ac_unique_file="lib/urldata.h"
435 # Factoring default headers for most tests.
436 ac_includes_default="\
439 # include <sys/types.h>
442 # include <sys/stat.h>
453 # if !STDC_HEADERS && HAVE_MEMORY_H
459 # include <strings.h>
462 # include <inttypes.h>
472 ac_subdirs_all="$ac_subdirs_all ares"
473 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT SED AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot VERSIONNUM PKGADD_PKG PKGADD_NAME PKGADD_VENDOR build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NO_UNDEFINED_TRUE NO_UNDEFINED_FALSE MIMPURE_TRUE MIMPURE_FALSE CURL_DISABLE_HTTP CURL_DISABLE_GOPHER CURL_DISABLE_FTP CURL_DISABLE_FILE CURL_DISABLE_LDAP CURL_DISABLE_DICT CURL_DISABLE_TELNET IPV6_ENABLED RANDOM_FILE KRB4_ENABLED PKGCONFIG OPENSSL_ENABLED CURL_CA_BUNDLE CABUNDLE_TRUE CABUNDLE_FALSE HAVE_LIBZ HAVE_LIBZ_TRUE HAVE_LIBZ_FALSE PERL NROFF MANOPT YACC USE_MANUAL_TRUE USE_MANUAL_FALSE HAVE_ARES subdirs LIBOBJS LTLIBOBJS'
476 # Initialize some variables set by options.
478 ac_init_version=false
479 # The variables have the same names as the options, with
480 # dashes changed to underlines.
488 program_transform_name=s,x,x,
496 # Installation directory options.
497 # These are left unexpanded so users can "make install exec_prefix=/foo"
498 # and all the variables that are supposed to be based on exec_prefix
499 # by default will actually change.
500 # Use braces instead of parens because sh, perl, etc. also accept them.
501 bindir='${exec_prefix}/bin'
502 sbindir='${exec_prefix}/sbin'
503 libexecdir='${exec_prefix}/libexec'
504 datadir='${prefix}/share'
505 sysconfdir='${prefix}/etc'
506 sharedstatedir='${prefix}/com'
507 localstatedir='${prefix}/var'
508 libdir='${exec_prefix}/lib'
509 includedir='${prefix}/include'
510 oldincludedir='/usr/include'
511 infodir='${prefix}/info'
512 mandir='${prefix}/man'
517 # If the previous option needs an argument, assign it.
518 if test -n "$ac_prev"; then
519 eval "$ac_prev=\$ac_option"
524 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526 # Accept the important Cygnus configure options, so we can diagnose typos.
530 -bindir | --bindir | --bindi | --bind | --bin | --bi)
532 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535 -build | --build | --buil | --bui | --bu)
536 ac_prev=build_alias ;;
537 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
538 build_alias=$ac_optarg ;;
540 -cache-file | --cache-file | --cache-fil | --cache-fi \
541 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
542 ac_prev=cache_file ;;
543 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
544 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
545 cache_file=$ac_optarg ;;
548 cache_file=config.cache ;;
550 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554 datadir=$ac_optarg ;;
556 -disable-* | --disable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 eval "enable_$ac_feature=no" ;;
565 -enable-* | --enable-*)
566 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
567 # Reject names that are not valid shell variable names.
568 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570 { (exit 1); exit 1; }; }
571 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576 eval "enable_$ac_feature='$ac_optarg'" ;;
578 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
579 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
580 | --exec | --exe | --ex)
581 ac_prev=exec_prefix ;;
582 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
583 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
584 | --exec=* | --exe=* | --ex=*)
585 exec_prefix=$ac_optarg ;;
587 -gas | --gas | --ga | --g)
588 # Obsolete; use --with-gas.
591 -help | --help | --hel | --he | -h)
593 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
594 ac_init_help=recursive ;;
595 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
596 ac_init_help=short ;;
598 -host | --host | --hos | --ho)
599 ac_prev=host_alias ;;
600 -host=* | --host=* | --hos=* | --ho=*)
601 host_alias=$ac_optarg ;;
603 -includedir | --includedir | --includedi | --included | --include \
604 | --includ | --inclu | --incl | --inc)
605 ac_prev=includedir ;;
606 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
607 | --includ=* | --inclu=* | --incl=* | --inc=*)
608 includedir=$ac_optarg ;;
610 -infodir | --infodir | --infodi | --infod | --info | --inf)
612 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
613 infodir=$ac_optarg ;;
615 -libdir | --libdir | --libdi | --libd)
617 -libdir=* | --libdir=* | --libdi=* | --libd=*)
620 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
621 | --libexe | --libex | --libe)
622 ac_prev=libexecdir ;;
623 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
624 | --libexe=* | --libex=* | --libe=*)
625 libexecdir=$ac_optarg ;;
627 -localstatedir | --localstatedir | --localstatedi | --localstated \
628 | --localstate | --localstat | --localsta | --localst \
629 | --locals | --local | --loca | --loc | --lo)
630 ac_prev=localstatedir ;;
631 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
632 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
633 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
634 localstatedir=$ac_optarg ;;
636 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 # Obsolete; use --without-fp.
645 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646 | --no-cr | --no-c | -n)
649 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
650 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
654 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
655 | --oldin | --oldi | --old | --ol | --o)
656 ac_prev=oldincludedir ;;
657 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
658 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
659 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
660 oldincludedir=$ac_optarg ;;
662 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667 -program-prefix | --program-prefix | --program-prefi | --program-pref \
668 | --program-pre | --program-pr | --program-p)
669 ac_prev=program_prefix ;;
670 -program-prefix=* | --program-prefix=* | --program-prefi=* \
671 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
672 program_prefix=$ac_optarg ;;
674 -program-suffix | --program-suffix | --program-suffi | --program-suff \
675 | --program-suf | --program-su | --program-s)
676 ac_prev=program_suffix ;;
677 -program-suffix=* | --program-suffix=* | --program-suffi=* \
678 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
679 program_suffix=$ac_optarg ;;
681 -program-transform-name | --program-transform-name \
682 | --program-transform-nam | --program-transform-na \
683 | --program-transform-n | --program-transform- \
684 | --program-transform | --program-transfor \
685 | --program-transfo | --program-transf \
686 | --program-trans | --program-tran \
687 | --progr-tra | --program-tr | --program-t)
688 ac_prev=program_transform_name ;;
689 -program-transform-name=* | --program-transform-name=* \
690 | --program-transform-nam=* | --program-transform-na=* \
691 | --program-transform-n=* | --program-transform-=* \
692 | --program-transform=* | --program-transfor=* \
693 | --program-transfo=* | --program-transf=* \
694 | --program-trans=* | --program-tran=* \
695 | --progr-tra=* | --program-tr=* | --program-t=*)
696 program_transform_name=$ac_optarg ;;
698 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
699 | -silent | --silent | --silen | --sile | --sil)
702 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706 sbindir=$ac_optarg ;;
708 -sharedstatedir | --sharedstatedir | --sharedstatedi \
709 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
710 | --sharedst | --shareds | --shared | --share | --shar \
712 ac_prev=sharedstatedir ;;
713 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
714 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
715 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717 sharedstatedir=$ac_optarg ;;
719 -site | --site | --sit)
721 -site=* | --site=* | --sit=*)
724 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
730 | --syscon | --sysco | --sysc | --sys | --sy)
731 ac_prev=sysconfdir ;;
732 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
733 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
734 sysconfdir=$ac_optarg ;;
736 -target | --target | --targe | --targ | --tar | --ta | --t)
737 ac_prev=target_alias ;;
738 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
739 target_alias=$ac_optarg ;;
741 -v | -verbose | --verbose | --verbos | --verbo | --verb)
744 -version | --version | --versio | --versi | --vers | -V)
748 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
749 # Reject names that are not valid shell variable names.
750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751 { echo "$as_me: error: invalid package name: $ac_package" >&2
752 { (exit 1); exit 1; }; }
753 ac_package=`echo $ac_package| sed 's/-/_/g'`
755 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758 eval "with_$ac_package='$ac_optarg'" ;;
760 -without-* | --without-*)
761 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
762 # Reject names that are not valid shell variable names.
763 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764 { echo "$as_me: error: invalid package name: $ac_package" >&2
765 { (exit 1); exit 1; }; }
766 ac_package=`echo $ac_package | sed 's/-/_/g'`
767 eval "with_$ac_package=no" ;;
770 # Obsolete; use --with-x.
773 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
774 | --x-incl | --x-inc | --x-in | --x-i)
775 ac_prev=x_includes ;;
776 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
777 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
778 x_includes=$ac_optarg ;;
780 -x-libraries | --x-libraries | --x-librarie | --x-librari \
781 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
782 ac_prev=x_libraries ;;
783 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
784 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
785 x_libraries=$ac_optarg ;;
787 -*) { echo "$as_me: error: unrecognized option: $ac_option
788 Try \`$0 --help' for more information." >&2
789 { (exit 1); exit 1; }; }
793 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
796 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
797 { (exit 1); exit 1; }; }
798 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
799 eval "$ac_envvar='$ac_optarg'"
803 # FIXME: should be removed in autoconf 3.0.
804 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
805 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
806 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
807 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
813 if test -n "$ac_prev"; then
814 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
815 { echo "$as_me: error: missing argument to $ac_option" >&2
816 { (exit 1); exit 1; }; }
819 # Be sure to have absolute paths.
820 for ac_var in exec_prefix prefix
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # Be sure to have absolute paths.
831 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
832 localstatedir libdir includedir oldincludedir infodir mandir
834 eval ac_val=$`echo $ac_var`
836 [\\/$]* | ?:[\\/]* ) ;;
837 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
838 { (exit 1); exit 1; }; };;
842 # There might be people who depend on the old broken behavior: `$host'
843 # used to hold the argument of --host etc.
844 # FIXME: To remove some day.
849 # FIXME: To remove some day.
850 if test "x$host_alias" != x; then
851 if test "x$build_alias" = x; then
852 cross_compiling=maybe
853 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
854 If a cross compiler is detected then cross compile mode will be used." >&2
855 elif test "x$build_alias" != "x$host_alias"; then
861 test -n "$host_alias" && ac_tool_prefix=$host_alias-
863 test "$silent" = yes && exec 6>/dev/null
866 # Find the source files, if location was not specified.
867 if test -z "$srcdir"; then
868 ac_srcdir_defaulted=yes
869 # Try the directory containing this script, then its parent.
870 ac_confdir=`(dirname "$0") 2>/dev/null ||
871 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
872 X"$0" : 'X\(//\)[^/]' \| \
873 X"$0" : 'X\(//\)$' \| \
874 X"$0" : 'X\(/\)' \| \
875 . : '\(.\)' 2>/dev/null ||
877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
879 /^X\(\/\/\)$/{ s//\1/; q; }
880 /^X\(\/\).*/{ s//\1/; q; }
883 if test ! -r $srcdir/$ac_unique_file; then
887 ac_srcdir_defaulted=no
889 if test ! -r $srcdir/$ac_unique_file; then
890 if test "$ac_srcdir_defaulted" = yes; then
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
892 { (exit 1); exit 1; }; }
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
895 { (exit 1); exit 1; }; }
898 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
899 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
900 { (exit 1); exit 1; }; }
901 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
902 ac_env_build_alias_set=${build_alias+set}
903 ac_env_build_alias_value=$build_alias
904 ac_cv_env_build_alias_set=${build_alias+set}
905 ac_cv_env_build_alias_value=$build_alias
906 ac_env_host_alias_set=${host_alias+set}
907 ac_env_host_alias_value=$host_alias
908 ac_cv_env_host_alias_set=${host_alias+set}
909 ac_cv_env_host_alias_value=$host_alias
910 ac_env_target_alias_set=${target_alias+set}
911 ac_env_target_alias_value=$target_alias
912 ac_cv_env_target_alias_set=${target_alias+set}
913 ac_cv_env_target_alias_value=$target_alias
914 ac_env_CC_set=${CC+set}
916 ac_cv_env_CC_set=${CC+set}
917 ac_cv_env_CC_value=$CC
918 ac_env_CFLAGS_set=${CFLAGS+set}
919 ac_env_CFLAGS_value=$CFLAGS
920 ac_cv_env_CFLAGS_set=${CFLAGS+set}
921 ac_cv_env_CFLAGS_value=$CFLAGS
922 ac_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_env_LDFLAGS_value=$LDFLAGS
924 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
925 ac_cv_env_LDFLAGS_value=$LDFLAGS
926 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_env_CPPFLAGS_value=$CPPFLAGS
928 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
929 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
930 ac_env_CPP_set=${CPP+set}
931 ac_env_CPP_value=$CPP
932 ac_cv_env_CPP_set=${CPP+set}
933 ac_cv_env_CPP_value=$CPP
934 ac_env_CXX_set=${CXX+set}
935 ac_env_CXX_value=$CXX
936 ac_cv_env_CXX_set=${CXX+set}
937 ac_cv_env_CXX_value=$CXX
938 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
939 ac_env_CXXFLAGS_value=$CXXFLAGS
940 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
941 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
942 ac_env_CXXCPP_set=${CXXCPP+set}
943 ac_env_CXXCPP_value=$CXXCPP
944 ac_cv_env_CXXCPP_set=${CXXCPP+set}
945 ac_cv_env_CXXCPP_value=$CXXCPP
946 ac_env_F77_set=${F77+set}
947 ac_env_F77_value=$F77
948 ac_cv_env_F77_set=${F77+set}
949 ac_cv_env_F77_value=$F77
950 ac_env_FFLAGS_set=${FFLAGS+set}
951 ac_env_FFLAGS_value=$FFLAGS
952 ac_cv_env_FFLAGS_set=${FFLAGS+set}
953 ac_cv_env_FFLAGS_value=$FFLAGS
956 # Report the --help message.
958 if test "$ac_init_help" = "long"; then
959 # Omit some internal or obsolete options to make the list less imposing.
960 # This message is too long to be a string in the A/UX 3.1 sh.
962 \`configure' configures curl - to adapt to many kinds of systems.
964 Usage: $0 [OPTION]... [VAR=VALUE]...
966 To assign environment variables (e.g., CC, CFLAGS...), specify them as
967 VAR=VALUE. See below for descriptions of some of the useful variables.
969 Defaults for the options are specified in brackets.
972 -h, --help display this help and exit
973 --help=short display options specific to this package
974 --help=recursive display the short help of all the included packages
975 -V, --version display version information and exit
976 -q, --quiet, --silent do not print \`checking...' messages
977 --cache-file=FILE cache test results in FILE [disabled]
978 -C, --config-cache alias for \`--cache-file=config.cache'
979 -n, --no-create do not create output files
980 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985 Installation directories:
986 --prefix=PREFIX install architecture-independent files in PREFIX
988 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
991 By default, \`make install' will install all the files in
992 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
993 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
994 for instance \`--prefix=\$HOME'.
996 For better control, use the options below.
998 Fine tuning of the installation directories:
999 --bindir=DIR user executables [EPREFIX/bin]
1000 --sbindir=DIR system admin executables [EPREFIX/sbin]
1001 --libexecdir=DIR program executables [EPREFIX/libexec]
1002 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1003 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1004 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1005 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1006 --libdir=DIR object code libraries [EPREFIX/lib]
1007 --includedir=DIR C header files [PREFIX/include]
1008 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1009 --infodir=DIR info documentation [PREFIX/info]
1010 --mandir=DIR man documentation [PREFIX/man]
1016 --program-prefix=PREFIX prepend PREFIX to installed program names
1017 --program-suffix=SUFFIX append SUFFIX to installed program names
1018 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1021 --build=BUILD configure for building on BUILD [guessed]
1022 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1026 if test -n "$ac_init_help"; then
1027 case $ac_init_help in
1028 short | recursive ) echo "Configuration of curl -:";;
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1035 --enable-maintainer-mode enable make rules and dependencies not useful
1036 (and sometimes confusing) to the casual installer
1037 --disable-dependency-tracking speeds up one-time build
1038 --enable-dependency-tracking do not reject slow dependency extractors
1039 --disable-largefile omit support for large files
1040 --enable-shared[=PKGS]
1041 build shared libraries [default=yes]
1042 --enable-static[=PKGS]
1043 build static libraries [default=yes]
1044 --enable-fast-install[=PKGS]
1045 optimize for fast installation [default=yes]
1046 --disable-libtool-lock avoid locking (might break parallel builds)
1047 --enable-http Enable HTTP support
1048 --disable-http Disable HTTP support
1049 --enable-ftp Enable FTP support
1050 --disable-ftp Disable FTP support
1051 --enable-gopher Enable GOPHER support
1052 --disable-gopher Disable GOPHER support
1053 --enable-file Enable FILE support
1054 --disable-file Disable FILE support
1055 --enable-ldap Enable LDAP support
1056 --disable-ldap Disable LDAP support
1057 --enable-dict Enable DICT support
1058 --disable-dict Disable DICT support
1059 --enable-telnet Enable TELNET support
1060 --disable-telnet Disable TELNET support
1061 --enable-manual Enable built-in manual
1062 --disable-manual Disable built-in manual
1063 --enable-libgcc use libgcc when linking
1064 --enable-ipv6 Enable ipv6 (with ipv4) support
1065 --disable-ipv6 Disable ipv6 support
1066 --enable-nonblocking Enable detecting how to do it
1067 --disable-nonblocking Disable non-blocking socket detection
1068 --disable-thread don't look for thread-safe functions
1069 --enable-thread look for thread-safe functions
1070 --enable-debug Enable pedantic debug options
1071 --disable-debug Disable debug options
1072 --enable-ares=PATH Enable ares for name lookups
1073 --disable-ares Disable ares for name lookups
1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1078 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1079 --with-pic try to use only PIC/non-PIC objects [default=use
1082 include additional configurations [automatic]
1083 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1084 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1085 --with-krb4-includes=DIR
1086 Specify location of kerberos4 headers
1087 --with-krb4-libs=DIR Specify location of kerberos4 libs
1088 --with-krb4=DIR where to look for Kerberos4
1089 --with-spnego=DIR Specify location of SPNEGO library fbopenssl
1090 --with-gssapi-includes=DIR
1091 Specify location of GSSAPI header
1092 --with-gssapi-libs=DIR Specify location of GSSAPI libs
1093 --with-gssapi=DIR Where to look for GSSAPI
1094 --with-ssl=PATH where to look for SSL, PATH points to the SSL
1095 installation (default: /usr/local/ssl)
1096 --without-ssl disable SSL
1097 --with-ca-bundle=FILE File name to install the CA bundle as
1098 --without-ca-bundle Don't install the CA bundle
1099 --with-zlib=PATH search for zlib in PATH
1100 --without-zlib disable use of zlib
1102 Some influential environment variables:
1103 CC C compiler command
1104 CFLAGS C compiler flags
1105 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1106 nonstandard directory <lib dir>
1107 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108 headers in a nonstandard directory <include dir>
1110 CXX C++ compiler command
1111 CXXFLAGS C++ compiler flags
1112 CXXCPP C++ preprocessor
1113 F77 Fortran 77 compiler command
1114 FFLAGS Fortran 77 compiler flags
1116 Use these variables to override the choices made by `configure' or to help
1117 it to find libraries and programs with nonstandard names/locations.
1119 Report bugs to <curl-bug@haxx.se>.
1123 if test "$ac_init_help" = "recursive"; then
1124 # If there are subdirs, report their specific --help.
1126 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127 test -d $ac_dir || continue
1130 if test "$ac_dir" != .; then
1131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132 # A "../" for each directory in $ac_dir_suffix.
1133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135 ac_dir_suffix= ac_top_builddir=
1139 .) # No --srcdir option. We are building in place.
1141 if test -z "$ac_top_builddir"; then
1144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146 [\\/]* | ?:[\\/]* ) # Absolute path.
1147 ac_srcdir=$srcdir$ac_dir_suffix;
1148 ac_top_srcdir=$srcdir ;;
1150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1157 .) ac_abs_builddir="$ac_dir";;
1160 .) ac_abs_builddir=`pwd`;;
1161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1168 case ${ac_top_builddir}. in
1169 .) ac_abs_top_builddir=$ac_abs_builddir;;
1170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1178 .) ac_abs_srcdir=$ac_abs_builddir;;
1179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1186 case $ac_top_srcdir in
1187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1194 # Check for guested configure; otherwise get Cygnus style configure.
1195 if test -f $ac_srcdir/configure.gnu; then
1197 $SHELL $ac_srcdir/configure.gnu --help=recursive
1198 elif test -f $ac_srcdir/configure; then
1200 $SHELL $ac_srcdir/configure --help=recursive
1201 elif test -f $ac_srcdir/configure.ac ||
1202 test -f $ac_srcdir/configure.in; then
1204 $ac_configure --help
1206 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1216 generated by GNU Autoconf 2.59
1218 Copyright (C) 2003 Free Software Foundation, Inc.
1219 This configure script is free software; the Free Software Foundation
1220 gives unlimited permission to copy, distribute and modify it.
1222 Copyright (c) 1998 - 2004 Daniel Stenberg, <daniel@haxx.se>
1223 This configure script may be copied, distributed and modified under the
1224 terms of the curl license; see COPYING for more details
1230 This file contains any messages produced by compilers while
1231 running configure, to aid debugging if configure makes a mistake.
1233 It was created by curl $as_me -, which was
1234 generated by GNU Autoconf 2.59. Invocation command line was
1245 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1246 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1247 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1248 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1249 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1252 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1254 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1255 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1256 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1257 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1258 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1259 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1260 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268 test -z "$as_dir" && as_dir=.
1269 echo "PATH: $as_dir"
1284 # Keep a trace of the command line.
1285 # Strip out --no-create and --no-recursion so they do not pile up.
1286 # Strip out --silent because we don't want to record it for future runs.
1287 # Also quote any args containing shell meta-characters.
1288 # Make two passes to allow for proper duplicate-argument suppression.
1293 ac_must_keep_next=false
1299 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301 | -silent | --silent | --silen | --sile | --sil)
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1310 if test $ac_must_keep_next = true; then
1311 ac_must_keep_next=false # Got value, back to normal.
1314 *=* | --config-cache | -C | -disable-* | --disable-* \
1315 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1316 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1317 | -with-* | --with-* | -without-* | --without-* | --x)
1318 case "$ac_configure_args0 " in
1319 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322 -* ) ac_must_keep_next=true ;;
1325 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1326 # Get rid of the leading space.
1332 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1333 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335 # When interrupted or exit'd, cleanup temporary files, and complete
1336 # config.log. We remove comments because anyway the quotes in there
1337 # would cause problems or look ugly.
1338 # WARNING: Be sure not to use single quotes in there, as some shells,
1339 # such as our DU 5.0 friend, will then `close' the trap.
1340 trap 'exit_status=$?
1341 # Save into config.log some information that might help in debugging.
1346 ## ---------------- ##
1347 ## Cache variables. ##
1348 ## ---------------- ##
1351 # The following way of writing the cache mishandles newlines in values,
1354 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1362 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1369 ## ----------------- ##
1370 ## Output variables. ##
1371 ## ----------------- ##
1374 for ac_var in $ac_subst_vars
1376 eval ac_val=$`echo $ac_var`
1377 echo "$ac_var='"'"'$ac_val'"'"'"
1381 if test -n "$ac_subst_files"; then
1388 for ac_var in $ac_subst_files
1390 eval ac_val=$`echo $ac_var`
1391 echo "$ac_var='"'"'$ac_val'"'"'"
1396 if test -s confdefs.h; then
1403 sed "/^$/d" confdefs.h | sort
1406 test "$ac_signal" != 0 &&
1407 echo "$as_me: caught signal $ac_signal"
1408 echo "$as_me: exit $exit_status"
1410 rm -f core *.core &&
1411 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414 for ac_signal in 1 2 13 15; do
1415 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1419 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1420 rm -rf conftest* confdefs.h
1421 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424 # Predefined preprocessor variables.
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_NAME "$PACKAGE_NAME"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1441 cat >>confdefs.h <<_ACEOF
1442 #define PACKAGE_STRING "$PACKAGE_STRING"
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1451 # Let the site file select an alternate cache file if it wants to.
1452 # Prefer explicitly selected file to automatically selected ones.
1453 if test -z "$CONFIG_SITE"; then
1454 if test "x$prefix" != xNONE; then
1455 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460 for ac_site_file in $CONFIG_SITE; do
1461 if test -r "$ac_site_file"; then
1462 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1463 echo "$as_me: loading site script $ac_site_file" >&6;}
1464 sed 's/^/| /' "$ac_site_file" >&5
1469 if test -r "$cache_file"; then
1470 # Some versions of bash will fail to source /dev/null (special
1471 # files actually), so we avoid doing that.
1472 if test -f "$cache_file"; then
1473 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1474 echo "$as_me: loading cache $cache_file" >&6;}
1476 [\\/]* | ?:[\\/]* ) . $cache_file;;
1477 *) . ./$cache_file;;
1481 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1482 echo "$as_me: creating cache $cache_file" >&6;}
1486 # Check that the precious variables saved in the cache have kept the same
1488 ac_cache_corrupted=false
1489 for ac_var in `(set) 2>&1 |
1490 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1491 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1492 eval ac_new_set=\$ac_env_${ac_var}_set
1493 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1494 eval ac_new_val="\$ac_env_${ac_var}_value"
1495 case $ac_old_set,$ac_new_set in
1497 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1498 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1499 ac_cache_corrupted=: ;;
1501 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1502 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1503 ac_cache_corrupted=: ;;
1506 if test "x$ac_old_val" != "x$ac_new_val"; then
1507 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1508 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1509 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1510 echo "$as_me: former value: $ac_old_val" >&2;}
1511 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1512 echo "$as_me: current value: $ac_new_val" >&2;}
1513 ac_cache_corrupted=:
1516 # Pass precious variables to config.status.
1517 if test "$ac_new_set" = set; then
1519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521 *) ac_arg=$ac_var=$ac_new_val ;;
1523 case " $ac_configure_args " in
1524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1525 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529 if $ac_cache_corrupted; then
1530 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1531 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1532 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1533 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1534 { (exit 1); exit 1; }; }
1538 ac_cpp='$CPP $CPPFLAGS'
1539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1573 ac_config_headers="$ac_config_headers lib/config.h src/config.h"
1575 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1576 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1577 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1578 if test "${enable_maintainer_mode+set}" = set; then
1579 enableval="$enable_maintainer_mode"
1580 USE_MAINTAINER_MODE=$enableval
1582 USE_MAINTAINER_MODE=no
1584 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1585 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1588 if test $USE_MAINTAINER_MODE = yes; then
1589 MAINTAINER_MODE_TRUE=
1590 MAINTAINER_MODE_FALSE='#'
1592 MAINTAINER_MODE_TRUE='#'
1593 MAINTAINER_MODE_FALSE=
1596 MAINT=$MAINTAINER_MODE_TRUE
1600 # Extract the first word of "sed", so it can be a program name with args.
1601 set dummy sed; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_path_SED+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 as_dummy="$PATH:/usr/bin:/usr/local/bin"
1614 for as_dir in $as_dummy
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$SED"; then
1633 echo "$as_me:$LINENO: result: $SED" >&5
1634 echo "${ECHO_T}$SED" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1642 # Extract the first word of "ar", so it can be a program name with args.
1643 set dummy ar; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_path_AR+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 ac_cv_path_AR="$AR" # Let the user override the test with a path.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 as_dummy="$PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin"
1656 for as_dir in $as_dummy
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 if test -n "$AR"; then
1675 echo "$as_me:$LINENO: result: $AR" >&5
1676 echo "${ECHO_T}$AR" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1684 VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`
1685 am__api_version="1.8"
1687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1688 if test -f $ac_dir/install-sh; then
1690 ac_install_sh="$ac_aux_dir/install-sh -c"
1692 elif test -f $ac_dir/install.sh; then
1694 ac_install_sh="$ac_aux_dir/install.sh -c"
1696 elif test -f $ac_dir/shtool; then
1698 ac_install_sh="$ac_aux_dir/shtool install -c"
1702 if test -z "$ac_aux_dir"; then
1703 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1704 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1705 { (exit 1); exit 1; }; }
1707 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1708 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1709 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1711 # Find a good install program. We prefer a C program (faster),
1712 # so one script is as good as another. But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726 if test -z "$INSTALL"; then
1727 if test "${ac_cv_path_install+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir=.
1735 # Account for people who put trailing slashes in PATH elements.
1737 ./ | .// | /cC/* | \
1738 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1742 # OSF1 and SCO ODT 3.0 have their own names for install.
1743 # Don't use installbsd from OSF since it installs stuff as root
1745 for ac_prog in ginstall scoinst install; do
1746 for ac_exec_ext in '' $ac_executable_extensions; do
1747 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748 if test $ac_prog = install &&
1749 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750 # AIX install. It has an incompatible calling convention.
1752 elif test $ac_prog = install &&
1753 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754 # program-specific install script used by HP pwplus--don't use.
1757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1769 if test "${ac_cv_path_install+set}" = set; then
1770 INSTALL=$ac_cv_path_install
1772 # As a last resort, use the slow shell script. We don't cache a
1773 # path for INSTALL within a source directory, because that will
1774 # break other packages using the cache if that directory is
1775 # removed, or if the path is relative.
1776 INSTALL=$ac_install_sh
1779 echo "$as_me:$LINENO: result: $INSTALL" >&5
1780 echo "${ECHO_T}$INSTALL" >&6
1782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783 # It thinks the first close brace ends the variable substitution.
1784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1790 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1794 echo timestamp > conftest.file
1795 # Do `set' in a subshell so we don't clobber the current shell's
1796 # arguments. Must try -L first in case configure is actually a
1797 # symlink; some systems play weird games with the mod time of symlinks
1798 # (eg FreeBSD returns the mod time of the symlink's containing
1801 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802 if test "$*" = "X"; then
1804 set X `ls -t $srcdir/configure conftest.file`
1807 if test "$*" != "X $srcdir/configure conftest.file" \
1808 && test "$*" != "X conftest.file $srcdir/configure"; then
1810 # If neither matched, then we have a broken ls. This can happen
1811 # if, for instance, CONFIG_SHELL is bash and it inherits a
1812 # broken ls alias from the environment. This has actually
1813 # happened. Such a system could not be considered "sane".
1814 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1815 alias in your environment" >&5
1816 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1817 alias in your environment" >&2;}
1818 { (exit 1); exit 1; }; }
1821 test "$2" = conftest.file
1827 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828 Check your system clock" >&5
1829 echo "$as_me: error: newly created file is older than distributed files!
1830 Check your system clock" >&2;}
1831 { (exit 1); exit 1; }; }
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1835 test "$program_prefix" != NONE &&
1836 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840 # Double any \ or $. echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848 # expand $ac_aux_dir to an absolute path
1849 am_aux_dir=`cd $ac_aux_dir && pwd`
1851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852 # Use eval to expand $SHELL
1853 if eval "$MISSING --run true"; then
1854 am_missing_run="$MISSING --run "
1857 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1861 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862 # Keeping the `.' argument allows $(mkdir_p) to be used without
1863 # argument. Indeed, we sometimes output rules like
1864 # $(mkdir_p) $(somedir)
1865 # where $(somedir) is conditionally defined.
1866 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1867 # expensive solution, as it forces Make to start a sub-shell.)
1868 mkdir_p='mkdir -p -- .'
1870 # On NextStep and OpenStep, the `mkdir' command does not
1871 # recognize any option. It will interpret all options as
1872 # directories to create, and then abort because `.' already
1874 for d in ./-p ./--version;
1876 test -d $d && rmdir $d
1878 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1879 if test -f "$ac_aux_dir/mkinstalldirs"; then
1880 mkdir_p='$(mkinstalldirs)'
1882 mkdir_p='$(install_sh) -d'
1886 for ac_prog in gawk mawk nawk awk
1888 # Extract the first word of "$ac_prog", so it can be a program name with args.
1889 set dummy $ac_prog; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_AWK+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$AWK"; then
1896 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_AWK="$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 if test -n "$AWK"; then
1916 echo "$as_me:$LINENO: result: $AWK" >&5
1917 echo "${ECHO_T}$AWK" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 test -n "$AWK" && break
1926 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1927 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1928 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1929 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 cat >conftest.make <<\_ACEOF
1934 @echo 'ac_maketemp="$(MAKE)"'
1936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1937 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1938 if test -n "$ac_maketemp"; then
1939 eval ac_cv_prog_make_${ac_make}_set=yes
1941 eval ac_cv_prog_make_${ac_make}_set=no
1945 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1946 echo "$as_me:$LINENO: result: yes" >&5
1947 echo "${ECHO_T}yes" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 SET_MAKE="MAKE=${MAKE-make}"
1955 rm -rf .tst 2>/dev/null
1956 mkdir .tst 2>/dev/null
1957 if test -d .tst; then
1962 rmdir .tst 2>/dev/null
1964 # test to see if srcdir already configured
1965 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1966 test -f $srcdir/config.status; then
1967 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1968 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1969 { (exit 1); exit 1; }; }
1972 # test whether we have cygpath
1973 if test -z "$CYGPATH_W"; then
1974 if (cygpath --version) >/dev/null 2>/dev/null; then
1975 CYGPATH_W='cygpath -w'
1982 # Define the identity of the package.
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE "$PACKAGE"
1992 cat >>confdefs.h <<_ACEOF
1993 #define VERSION "$VERSION"
1996 # Some tools Automake needs.
1998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2004 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2007 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2010 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2013 AMTAR=${AMTAR-"${am_missing_run}tar"}
2015 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2017 # Installed binaries are usually stripped using `strip' when the user
2018 # run `make install-strip'. However `strip' might not be the right
2019 # tool to use in cross-compilation environments, therefore Automake
2020 # will honor the `STRIP' environment variable to overrule this program.
2021 if test "$cross_compiling" != no; then
2022 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}strip; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_STRIP+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 if test -n "$STRIP"; then
2031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 STRIP=$ac_cv_prog_STRIP
2050 if test -n "$STRIP"; then
2051 echo "$as_me:$LINENO: result: $STRIP" >&5
2052 echo "${ECHO_T}$STRIP" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2059 if test -z "$ac_cv_prog_STRIP"; then
2061 # Extract the first word of "strip", so it can be a program name with args.
2062 set dummy strip; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$ac_ct_STRIP"; then
2069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_STRIP="strip"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2089 if test -n "$ac_ct_STRIP"; then
2090 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2091 echo "${ECHO_T}$ac_ct_STRIP" >&6
2093 echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2099 STRIP="$ac_cv_prog_STRIP"
2103 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2105 # We need awk for the "check" target. The system "awk" is bad on
2110 echo "$as_me:$LINENO: checking curl version" >&5
2111 echo $ECHO_N "checking curl version... $ECHO_C" >&6
2112 echo "$as_me:$LINENO: result: $VERSION" >&5
2113 echo "${ECHO_T}$VERSION" >&6
2115 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`
2118 PKGADD_PKG="HAXXcurl"
2119 PKGADD_NAME="cURL - a client that groks URLs"
2120 PKGADD_VENDOR="curl.haxx.se"
2127 # Make sure we can run config.sub.
2128 $ac_config_sub sun4 >/dev/null 2>&1 ||
2129 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2130 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2131 { (exit 1); exit 1; }; }
2133 echo "$as_me:$LINENO: checking build system type" >&5
2134 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2135 if test "${ac_cv_build+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 ac_cv_build_alias=$build_alias
2139 test -z "$ac_cv_build_alias" &&
2140 ac_cv_build_alias=`$ac_config_guess`
2141 test -z "$ac_cv_build_alias" &&
2142 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144 { (exit 1); exit 1; }; }
2145 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2146 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2147 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2148 { (exit 1); exit 1; }; }
2151 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152 echo "${ECHO_T}$ac_cv_build" >&6
2154 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2155 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2156 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2159 echo "$as_me:$LINENO: checking host system type" >&5
2160 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2161 if test "${ac_cv_host+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2164 ac_cv_host_alias=$host_alias
2165 test -z "$ac_cv_host_alias" &&
2166 ac_cv_host_alias=$ac_cv_build_alias
2167 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2168 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2169 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2170 { (exit 1); exit 1; }; }
2173 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2174 echo "${ECHO_T}$ac_cv_host" >&6
2176 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2177 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2178 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2182 cat >>confdefs.h <<_ACEOF
2183 #define OS "${host}"
2187 DEPDIR="${am__leading_dot}deps"
2189 ac_config_commands="$ac_config_commands depfiles"
2192 am_make=${MAKE-make}
2193 cat > confinc << 'END'
2198 # If we don't find an include directive, just comment out the code.
2199 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2200 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2204 # First try GNU make style include.
2205 echo "include confinc" > confmf
2206 # We grep out `Entering directory' and `Leaving directory'
2207 # messages which can occur if `w' ends up in MAKEFLAGS.
2208 # In particular we don't look at `^make:' because GNU make might
2209 # be invoked under some other name (usually "gmake"), in which
2210 # case it prints its new name instead of `make'.
2211 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2216 # Now try BSD make style include.
2217 if test "$am__include" = "#"; then
2218 echo '.include "confinc"' > confmf
2219 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2220 am__include=.include
2227 echo "$as_me:$LINENO: result: $_am_result" >&5
2228 echo "${ECHO_T}$_am_result" >&6
2229 rm -f confinc confmf
2231 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2232 if test "${enable_dependency_tracking+set}" = set; then
2233 enableval="$enable_dependency_tracking"
2236 if test "x$enable_dependency_tracking" != xno; then
2237 am_depcomp="$ac_aux_dir/depcomp"
2242 if test "x$enable_dependency_tracking" != xno; then
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$CC"; then
2266 ac_cv_prog_CC="$CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 if test -n "$CC"; then
2286 echo "$as_me:$LINENO: result: $CC" >&5
2287 echo "${ECHO_T}$CC" >&6
2289 echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2294 if test -z "$ac_cv_prog_CC"; then
2296 # Extract the first word of "gcc", so it can be a program name with args.
2297 set dummy gcc; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$ac_ct_CC"; then
2304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_ac_ct_CC="gcc"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2323 if test -n "$ac_ct_CC"; then
2324 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2325 echo "${ECHO_T}$ac_ct_CC" >&6
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2336 if test -z "$CC"; then
2337 if test -n "$ac_tool_prefix"; then
2338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2339 set dummy ${ac_tool_prefix}cc; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_CC="${ac_tool_prefix}cc"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 if test -n "$CC"; then
2366 echo "$as_me:$LINENO: result: $CC" >&5
2367 echo "${ECHO_T}$CC" >&6
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2374 if test -z "$ac_cv_prog_CC"; then
2376 # Extract the first word of "cc", so it can be a program name with args.
2377 set dummy cc; ac_word=$2
2378 echo "$as_me:$LINENO: checking for $ac_word" >&5
2379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if test -n "$ac_ct_CC"; then
2384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_ac_ct_CC="cc"
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6
2407 echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2417 if test -z "$CC"; then
2418 # Extract the first word of "cc", so it can be a program name with args.
2419 set dummy cc; ac_word=$2
2420 echo "$as_me:$LINENO: checking for $ac_word" >&5
2421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2422 if test "${ac_cv_prog_CC+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2437 ac_prog_rejected=yes
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2462 if test -n "$CC"; then
2463 echo "$as_me:$LINENO: result: $CC" >&5
2464 echo "${ECHO_T}$CC" >&6
2466 echo "$as_me:$LINENO: result: no" >&5
2467 echo "${ECHO_T}no" >&6
2471 if test -z "$CC"; then
2472 if test -n "$ac_tool_prefix"; then
2475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2476 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2477 echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2479 if test "${ac_cv_prog_CC+set}" = set; then
2480 echo $ECHO_N "(cached) $ECHO_C" >&6
2482 if test -n "$CC"; then
2483 ac_cv_prog_CC="$CC" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$CC"; then
2503 echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6
2506 echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2510 test -n "$CC" && break
2513 if test -z "$CC"; then
2517 # Extract the first word of "$ac_prog", so it can be a program name with args.
2518 set dummy $ac_prog; ac_word=$2
2519 echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2534 ac_cv_prog_ac_ct_CC="$ac_prog"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2544 if test -n "$ac_ct_CC"; then
2545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2546 echo "${ECHO_T}$ac_ct_CC" >&6
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2552 test -n "$ac_ct_CC" && break
2561 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2562 See \`config.log' for more details." >&5
2563 echo "$as_me: error: no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2567 # Provide some information about the compiler.
2568 echo "$as_me:$LINENO:" \
2569 "checking for C compiler version" >&5
2570 ac_compiler=`set X $ac_compile; echo $2`
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2572 (eval $ac_compiler --version </dev/null >&5) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }
2576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2577 (eval $ac_compiler -v </dev/null >&5) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }
2581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2582 (eval $ac_compiler -V </dev/null >&5) 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }
2587 cat >conftest.$ac_ext <<_ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2607 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2608 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2609 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2610 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2611 (eval $ac_link_default) 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; then
2615 # Find the output, starting from the most likely. This scheme is
2616 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2619 # Be careful to initialize this variable, since it used to be cached.
2620 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2622 # b.out is created by i960 compilers.
2623 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2625 test -f "$ac_file" || continue
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2630 # This is the source file.
2633 # We found the default executable, but exeext='' is most
2637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638 # FIXME: I believe we export ac_cv_exeext for Libtool,
2639 # but it would be cool to find out if it's true. Does anybody
2640 # maintain Libtool? --akim.
2648 echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2651 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2652 See \`config.log' for more details." >&5
2653 echo "$as_me: error: C compiler cannot create executables
2654 See \`config.log' for more details." >&2;}
2655 { (exit 77); exit 77; }; }
2658 ac_exeext=$ac_cv_exeext
2659 echo "$as_me:$LINENO: result: $ac_file" >&5
2660 echo "${ECHO_T}$ac_file" >&6
2662 # Check the compiler produces executables we can run. If not, either
2663 # the compiler is broken, or we cross compile.
2664 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2665 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2666 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2667 # If not cross compiling, check that we can run a simple program.
2668 if test "$cross_compiling" != yes; then
2669 if { ac_try='./$ac_file'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; }; then
2677 if test "$cross_compiling" = maybe; then
2680 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2681 If you meant to cross compile, use \`--host'.
2682 See \`config.log' for more details." >&5
2683 echo "$as_me: error: cannot run C compiled programs.
2684 If you meant to cross compile, use \`--host'.
2685 See \`config.log' for more details." >&2;}
2686 { (exit 1); exit 1; }; }
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2693 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2694 ac_clean_files=$ac_clean_files_save
2695 # Check the compiler produces executables we can run. If not, either
2696 # the compiler is broken, or we cross compile.
2697 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2698 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2699 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2700 echo "${ECHO_T}$cross_compiling" >&6
2702 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2703 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2705 (eval $ac_link) 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2711 # work properly (i.e., refer to `conftest.exe'), while it won't with
2713 for ac_file in conftest.exe conftest conftest.*; do
2714 test -f "$ac_file" || continue
2716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2725 See \`config.log' for more details." >&5
2726 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2727 See \`config.log' for more details." >&2;}
2728 { (exit 1); exit 1; }; }
2731 rm -f conftest$ac_cv_exeext
2732 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2733 echo "${ECHO_T}$ac_cv_exeext" >&6
2735 rm -f conftest.$ac_ext
2736 EXEEXT=$ac_cv_exeext
2738 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2739 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2740 if test "${ac_cv_objext+set}" = set; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 rm -f conftest.o conftest.obj
2759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760 (eval $ac_compile) 2>&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; then
2764 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2784 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6
2786 OBJEXT=$ac_cv_objext
2788 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813 (eval $ac_compile) 2>conftest.er1
2815 grep -v '^ *+' conftest.er1 >conftest.err
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } &&
2820 { ac_try='test -z "$ac_c_werror_flag"
2821 || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2846 GCC=`test $ac_compiler_gnu = yes && echo yes`
2847 ac_test_CFLAGS=${CFLAGS+set}
2848 ac_save_CFLAGS=$CFLAGS
2850 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2851 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_g+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.$ac_objext
2871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2901 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2902 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2903 if test "$ac_test_CFLAGS" = set; then
2904 CFLAGS=$ac_save_CFLAGS
2905 elif test $ac_cv_prog_cc_g = yes; then
2906 if test "$GCC" = yes; then
2912 if test "$GCC" = yes; then
2918 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2919 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2920 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_cv_prog_cc_stdc=no
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2933 #include <sys/types.h>
2934 #include <sys/stat.h>
2935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2936 struct buf { int x; };
2937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2938 static char *e (p, i)
2944 static char *f (char * (*g) (char **, int), char **p, ...)
2949 s = g (p, va_arg (v,int));
2954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2955 function prototypes and stuff, but not '\xHH' hex character constants.
2956 These don't provoke an error unfortunately, instead are silently treated
2957 as 'x'. The following induces an error, until -std1 is added to get
2958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2959 array size at least. It's necessary to write '\x00'==0 to get something
2960 that's true only with -std1. */
2961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2963 int test (int i, double x);
2964 struct s1 {int (*f) (int a);};
2965 struct s2 {int (*f) (double a);};
2966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2977 # Don't try gcc -ansi; that turns off useful extensions and
2978 # breaks some systems' header files.
2979 # AIX -qlanglvl=ansi
2980 # Ultrix and OSF/1 -std1
2981 # HP-UX 10.20 and later -Ae
2982 # HP-UX older versions -Aa -D_HPUX_SOURCE
2983 # SVR4 -Xc -D__EXTENSIONS__
2984 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2986 CC="$ac_save_CC $ac_arg"
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 ac_cv_prog_cc_stdc=$ac_arg
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f conftest.err conftest.$ac_objext
3018 rm -f conftest.$ac_ext conftest.$ac_objext
3023 case "x$ac_cv_prog_cc_stdc" in
3025 echo "$as_me:$LINENO: result: none needed" >&5
3026 echo "${ECHO_T}none needed" >&6 ;;
3028 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3029 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3030 CC="$CC $ac_cv_prog_cc_stdc" ;;
3033 # Some people use a C++ compiler to compile C. Since we use `exit',
3034 # in C++ we need to declare it. In case someone uses the same compiler
3035 # for both compiling C and C++ we need to have the C++ compiler decide
3036 # the declaration of exit, since it's the most demanding environment.
3037 cat >conftest.$ac_ext <<_ACEOF
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag"
3052 || test ! -s conftest.err'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 for ac_declaration in \
3066 'extern "C" void std::exit (int) throw (); using std::exit;' \
3067 'extern "C" void std::exit (int); using std::exit;' \
3068 'extern "C" void exit (int) throw ();' \
3069 'extern "C" void exit (int);' \
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 cat >conftest.$ac_ext <<_ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3133 rm -f conftest.$ac_objext
3134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3135 (eval $ac_compile) 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_c_werror_flag"
3143 || test ! -s conftest.err'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3164 if test -n "$ac_declaration"; then
3165 echo '#ifdef __cplusplus' >>confdefs.h
3166 echo $ac_declaration >>confdefs.h
3167 echo '#endif' >>confdefs.h
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 depcc="$CC" am_compiler_list=
3184 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3185 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3186 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3190 # We make a subdir and do the tests there. Otherwise we can end up
3191 # making bogus files that we don't know about and never remove. For
3192 # instance it was reported that on HP-UX the gcc test will end up
3193 # making a dummy file named `D' -- because `-MD' means `put the output
3196 # Copy depcomp to subdir because otherwise we won't find it if we're
3197 # using a relative directory.
3198 cp "$am_depcomp" conftest.dir
3200 # We will build objects and dependencies in a subdirectory because
3201 # it helps to detect inapplicable dependency modes. For instance
3202 # both Tru64's cc and ICC support -MD to output dependencies as a
3203 # side effect of compilation, but ICC will put the dependencies in
3204 # the current directory while Tru64 will put them in the object
3208 am_cv_CC_dependencies_compiler_type=none
3209 if test "$am_compiler_list" = ""; then
3210 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3212 for depmode in $am_compiler_list; do
3213 # Setup a source with many dependencies, because some compilers
3214 # like to wrap large dependency lists on column 80 (with \), and
3215 # we should not choose a depcomp mode which is confused by this.
3217 # We need to recreate these files for each test, as the compiler may
3218 # overwrite some of them when testing with obscure command lines.
3219 # This happens at least with the AIX C compiler.
3221 for i in 1 2 3 4 5 6; do
3222 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3223 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3224 # Solaris 8's {/usr,}/bin/sh.
3225 touch sub/conftst$i.h
3227 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3231 # after this tag, mechanisms are not by side-effect, so they'll
3232 # only be used when explicitly requested
3233 if test "x$enable_dependency_tracking" = xyes; then
3241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3242 # mode. It turns out that the SunPro C++ compiler does not properly
3243 # handle `-M -o', and we need to detect this.
3244 if depmode=$depmode \
3245 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3246 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3247 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3248 >/dev/null 2>conftest.err &&
3249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3250 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3252 # icc doesn't choke on unknown options, it will just issue warnings
3253 # (even with -Werror). So we grep stderr for any message
3254 # that says an option was ignored.
3255 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3256 am_cv_CC_dependencies_compiler_type=$depmode
3265 am_cv_CC_dependencies_compiler_type=none
3269 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3270 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3276 test "x$enable_dependency_tracking" != xno \
3277 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3279 am__fastdepCC_FALSE='#'
3281 am__fastdepCC_TRUE='#'
3282 am__fastdepCC_FALSE=
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3293 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3294 # On Suns, sometimes $CPP names a directory.
3295 if test -n "$CPP" && test -d "$CPP"; then
3298 if test -z "$CPP"; then
3299 if test "${ac_cv_prog_CPP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 # Double quotes because CPP needs to be expanded
3303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3306 for ac_c_preproc_warn_flag in '' yes
3308 # Use a header file that comes with gcc, so configuring glibc
3309 # with a fresh cross-compiler works.
3310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3311 # <limits.h> exists even on freestanding compilers.
3312 # On the NeXT, cc -E runs the code through the compiler's parser,
3313 # not just through cpp. "Syntax error" is here to catch this case.
3314 cat >conftest.$ac_ext <<_ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 # include <limits.h>
3323 # include <assert.h>
3327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } >/dev/null; then
3335 if test -s conftest.err; then
3336 ac_cpp_err=$ac_c_preproc_warn_flag
3337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3344 if test -z "$ac_cpp_err"; then
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Broken: fails on valid input.
3353 rm -f conftest.err conftest.$ac_ext
3355 # OK, works on sane cases. Now check whether non-existent headers
3356 # can be detected and how.
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3363 #include <ac_nonexistent.h>
3365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 if test -z "$ac_cpp_err"; then
3383 # Broken: success on invalid input.
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Passes both tests.
3393 rm -f conftest.err conftest.$ac_ext
3396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3397 rm -f conftest.err conftest.$ac_ext
3398 if $ac_preproc_ok; then
3410 echo "$as_me:$LINENO: result: $CPP" >&5
3411 echo "${ECHO_T}$CPP" >&6
3413 for ac_c_preproc_warn_flag in '' yes
3415 # Use a header file that comes with gcc, so configuring glibc
3416 # with a fresh cross-compiler works.
3417 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3418 # <limits.h> exists even on freestanding compilers.
3419 # On the NeXT, cc -E runs the code through the compiler's parser,
3420 # not just through cpp. "Syntax error" is here to catch this case.
3421 cat >conftest.$ac_ext <<_ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3428 # include <limits.h>
3430 # include <assert.h>
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether non-existent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null; then
3480 if test -s conftest.err; then
3481 ac_cpp_err=$ac_c_preproc_warn_flag
3482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3489 if test -z "$ac_cpp_err"; then
3490 # Broken: success on invalid input.
3493 echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3496 # Passes both tests.
3500 rm -f conftest.err conftest.$ac_ext
3503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3504 rm -f conftest.err conftest.$ac_ext
3505 if $ac_preproc_ok; then
3508 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 echo "$as_me:$LINENO: checking for egrep" >&5
3523 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524 if test "${ac_cv_prog_egrep+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528 then ac_cv_prog_egrep='grep -E'
3529 else ac_cv_prog_egrep='egrep'
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534 EGREP=$ac_cv_prog_egrep
3538 echo "$as_me:$LINENO: checking for AIX" >&5
3539 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 $EGREP "yes" >/dev/null 2>&1; then
3553 echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6
3555 cat >>confdefs.h <<\_ACEOF
3556 #define _ALL_SOURCE 1
3560 echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 if test -n "$ac_tool_prefix"; then
3573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3575 echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 if test "${ac_cv_prog_CC+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 if test -n "$CC"; then
3601 echo "$as_me:$LINENO: result: $CC" >&5
3602 echo "${ECHO_T}$CC" >&6
3604 echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6
3609 if test -z "$ac_cv_prog_CC"; then
3611 # Extract the first word of "gcc", so it can be a program name with args.
3612 set dummy gcc; ac_word=$2
3613 echo "$as_me:$LINENO: checking for $ac_word" >&5
3614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_ac_ct_CC="gcc"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3640 echo "${ECHO_T}$ac_ct_CC" >&6
3642 echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3651 if test -z "$CC"; then
3652 if test -n "$ac_tool_prefix"; then
3653 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}cc; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_CC+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="${ac_tool_prefix}cc"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 if test -n "$CC"; then
3681 echo "$as_me:$LINENO: result: $CC" >&5
3682 echo "${ECHO_T}$CC" >&6
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3689 if test -z "$ac_cv_prog_CC"; then
3691 # Extract the first word of "cc", so it can be a program name with args.
3692 set dummy cc; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if test -n "$ac_ct_CC"; then
3699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_ac_ct_CC="cc"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3720 echo "${ECHO_T}$ac_ct_CC" >&6
3722 echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6
3732 if test -z "$CC"; then
3733 # Extract the first word of "cc", so it can be a program name with args.
3734 set dummy cc; ac_word=$2
3735 echo "$as_me:$LINENO: checking for $ac_word" >&5
3736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3737 if test "${ac_cv_prog_CC+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC="$CC" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3752 ac_prog_rejected=yes
3756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 if test $ac_prog_rejected = yes; then
3763 # We found a bogon in the path, so make sure we never use it.
3764 set dummy $ac_cv_prog_CC
3766 if test $# != 0; then
3767 # We chose a different compiler from the bogus one.
3768 # However, it has the same basename, so the bogon will be chosen
3769 # first if we set CC to just the basename; use the full file name.
3771 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3777 if test -n "$CC"; then
3778 echo "$as_me:$LINENO: result: $CC" >&5
3779 echo "${ECHO_T}$CC" >&6
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 if test -z "$CC"; then
3787 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_prog_CC+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test -n "$CC"; then
3818 echo "$as_me:$LINENO: result: $CC" >&5
3819 echo "${ECHO_T}$CC" >&6
3821 echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6
3825 test -n "$CC" && break
3828 if test -z "$CC"; then
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_ac_ct_CC="$ac_prog"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3861 echo "${ECHO_T}$ac_ct_CC" >&6
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3867 test -n "$ac_ct_CC" && break
3876 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details." >&5
3878 echo "$as_me: error: no acceptable C compiler found in \$PATH
3879 See \`config.log' for more details." >&2;}
3880 { (exit 1); exit 1; }; }
3882 # Provide some information about the compiler.
3883 echo "$as_me:$LINENO:" \
3884 "checking for C compiler version" >&5
3885 ac_compiler=`set X $ac_compile; echo $2`
3886 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3887 (eval $ac_compiler --version </dev/null >&5) 2>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }
3891 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3892 (eval $ac_compiler -v </dev/null >&5) 2>&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }
3896 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3897 (eval $ac_compiler -V </dev/null >&5) 2>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }
3902 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3903 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3904 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest.$ac_objext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3958 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3960 GCC=`test $ac_compiler_gnu = yes && echo yes`
3961 ac_test_CFLAGS=${CFLAGS+set}
3962 ac_save_CFLAGS=$CFLAGS
3964 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3966 if test "${ac_cv_prog_cc_g+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3988 grep -v '^ *+' conftest.er1 >conftest.err
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4015 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4016 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4017 if test "$ac_test_CFLAGS" = set; then
4018 CFLAGS=$ac_save_CFLAGS
4019 elif test $ac_cv_prog_cc_g = yes; then
4020 if test "$GCC" = yes; then
4026 if test "$GCC" = yes; then
4032 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4033 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4034 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_cv_prog_cc_stdc=no
4039 cat >conftest.$ac_ext <<_ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 #include <sys/stat.h>
4049 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4050 struct buf { int x; };
4051 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4052 static char *e (p, i)
4058 static char *f (char * (*g) (char **, int), char **p, ...)
4063 s = g (p, va_arg (v,int));
4068 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4069 function prototypes and stuff, but not '\xHH' hex character constants.
4070 These don't provoke an error unfortunately, instead are silently treated
4071 as 'x'. The following induces an error, until -std1 is added to get
4072 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4073 array size at least. It's necessary to write '\x00'==0 to get something
4074 that's true only with -std1. */
4075 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4077 int test (int i, double x);
4078 struct s1 {int (*f) (int a);};
4079 struct s2 {int (*f) (double a);};
4080 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4086 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4091 # Don't try gcc -ansi; that turns off useful extensions and
4092 # breaks some systems' header files.
4093 # AIX -qlanglvl=ansi
4094 # Ultrix and OSF/1 -std1
4095 # HP-UX 10.20 and later -Ae
4096 # HP-UX older versions -Aa -D_HPUX_SOURCE
4097 # SVR4 -Xc -D__EXTENSIONS__
4098 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4100 CC="$ac_save_CC $ac_arg"
4101 rm -f conftest.$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>conftest.er1
4105 grep -v '^ *+' conftest.er1 >conftest.err
4107 cat conftest.err >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); } &&
4110 { ac_try='test -z "$ac_c_werror_flag"
4111 || test ! -s conftest.err'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; } &&
4117 { ac_try='test -s conftest.$ac_objext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4123 ac_cv_prog_cc_stdc=$ac_arg
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4130 rm -f conftest.err conftest.$ac_objext
4132 rm -f conftest.$ac_ext conftest.$ac_objext
4137 case "x$ac_cv_prog_cc_stdc" in
4139 echo "$as_me:$LINENO: result: none needed" >&5
4140 echo "${ECHO_T}none needed" >&6 ;;
4142 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4143 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4144 CC="$CC $ac_cv_prog_cc_stdc" ;;
4147 # Some people use a C++ compiler to compile C. Since we use `exit',
4148 # in C++ we need to declare it. In case someone uses the same compiler
4149 # for both compiling C and C++ we need to have the C++ compiler decide
4150 # the declaration of exit, since it's the most demanding environment.
4151 cat >conftest.$ac_ext <<_ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>conftest.er1
4160 grep -v '^ *+' conftest.er1 >conftest.err
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_c_werror_flag"
4166 || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 for ac_declaration in \
4180 'extern "C" void std::exit (int) throw (); using std::exit;' \
4181 'extern "C" void std::exit (int); using std::exit;' \
4182 'extern "C" void exit (int) throw ();' \
4183 'extern "C" void exit (int);' \
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204 (eval $ac_compile) 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -z "$ac_c_werror_flag"
4212 || test ! -s conftest.err'
4213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag"
4257 || test ! -s conftest.err'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; } &&
4263 { ac_try='test -s conftest.$ac_objext'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; }; then
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 if test -n "$ac_declaration"; then
4279 echo '#ifdef __cplusplus' >>confdefs.h
4280 echo $ac_declaration >>confdefs.h
4281 echo '#endif' >>confdefs.h
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 depcc="$CC" am_compiler_list=
4298 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4299 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4300 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304 # We make a subdir and do the tests there. Otherwise we can end up
4305 # making bogus files that we don't know about and never remove. For
4306 # instance it was reported that on HP-UX the gcc test will end up
4307 # making a dummy file named `D' -- because `-MD' means `put the output
4310 # Copy depcomp to subdir because otherwise we won't find it if we're
4311 # using a relative directory.
4312 cp "$am_depcomp" conftest.dir
4314 # We will build objects and dependencies in a subdirectory because
4315 # it helps to detect inapplicable dependency modes. For instance
4316 # both Tru64's cc and ICC support -MD to output dependencies as a
4317 # side effect of compilation, but ICC will put the dependencies in
4318 # the current directory while Tru64 will put them in the object
4322 am_cv_CC_dependencies_compiler_type=none
4323 if test "$am_compiler_list" = ""; then
4324 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4326 for depmode in $am_compiler_list; do
4327 # Setup a source with many dependencies, because some compilers
4328 # like to wrap large dependency lists on column 80 (with \), and
4329 # we should not choose a depcomp mode which is confused by this.
4331 # We need to recreate these files for each test, as the compiler may
4332 # overwrite some of them when testing with obscure command lines.
4333 # This happens at least with the AIX C compiler.
4335 for i in 1 2 3 4 5 6; do
4336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4337 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4338 # Solaris 8's {/usr,}/bin/sh.
4339 touch sub/conftst$i.h
4341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4345 # after this tag, mechanisms are not by side-effect, so they'll
4346 # only be used when explicitly requested
4347 if test "x$enable_dependency_tracking" = xyes; then
4355 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4356 # mode. It turns out that the SunPro C++ compiler does not properly
4357 # handle `-M -o', and we need to detect this.
4358 if depmode=$depmode \
4359 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4361 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4362 >/dev/null 2>conftest.err &&
4363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366 # icc doesn't choke on unknown options, it will just issue warnings
4367 # (even with -Werror). So we grep stderr for any message
4368 # that says an option was ignored.
4369 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4370 am_cv_CC_dependencies_compiler_type=$depmode
4379 am_cv_CC_dependencies_compiler_type=none
4383 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4384 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4385 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4390 test "x$enable_dependency_tracking" != xno \
4391 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4393 am__fastdepCC_FALSE='#'
4395 am__fastdepCC_TRUE='#'
4396 am__fastdepCC_FALSE=
4401 # Check whether --enable-largefile or --disable-largefile was given.
4402 if test "${enable_largefile+set}" = set; then
4403 enableval="$enable_largefile"
4406 if test "$enable_largefile" != no; then
4408 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4409 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4410 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 ac_cv_sys_largefile_CC=no
4414 if test "$GCC" != yes; then
4417 # IRIX 6.2 and later do not support large files by default,
4418 # so use the C compiler's -n32 option if that helps.
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 #include <sys/types.h>
4426 /* Check that off_t can represent 2**63 - 1 correctly.
4427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4428 since some C++ compilers masquerading as C compilers
4429 incorrectly reject 9223372036854775807. */
4430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4432 && LARGE_OFF_T % 2147483647 == 1)
4442 rm -f conftest.$ac_objext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>conftest.er1
4446 grep -v '^ *+' conftest.er1 >conftest.err
4448 cat conftest.err >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -z "$ac_c_werror_flag"
4452 || test ! -s conftest.err'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; } &&
4458 { ac_try='test -s conftest.$ac_objext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4470 rm -f conftest.err conftest.$ac_objext
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } &&
4481 { ac_try='test -z "$ac_c_werror_flag"
4482 || test ! -s conftest.err'
4483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); }; } &&
4488 { ac_try='test -s conftest.$ac_objext'
4489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; }; then
4494 ac_cv_sys_largefile_CC=' -n32'; break
4496 echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4500 rm -f conftest.err conftest.$ac_objext
4504 rm -f conftest.$ac_ext
4507 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4508 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4509 if test "$ac_cv_sys_largefile_CC" != no; then
4510 CC=$CC$ac_cv_sys_largefile_CC
4513 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4514 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4515 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_sys_file_offset_bits=no
4520 cat >conftest.$ac_ext <<_ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #include <sys/types.h>
4527 /* Check that off_t can represent 2**63 - 1 correctly.
4528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4529 since some C++ compilers masquerading as C compilers
4530 incorrectly reject 9223372036854775807. */
4531 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4533 && LARGE_OFF_T % 2147483647 == 1)
4543 rm -f conftest.$ac_objext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -z "$ac_c_werror_flag"
4553 || test ! -s conftest.err'
4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; } &&
4559 { ac_try='test -s conftest.$ac_objext'
4560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; }; then
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #define _FILE_OFFSET_BITS 64
4579 #include <sys/types.h>
4580 /* Check that off_t can represent 2**63 - 1 correctly.
4581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4582 since some C++ compilers masquerading as C compilers
4583 incorrectly reject 9223372036854775807. */
4584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4586 && LARGE_OFF_T % 2147483647 == 1)
4596 rm -f conftest.$ac_objext
4597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4598 (eval $ac_compile) 2>conftest.er1
4600 grep -v '^ *+' conftest.er1 >conftest.err
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } &&
4605 { ac_try='test -z "$ac_c_werror_flag"
4606 || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_sys_file_offset_bits=64; break
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4629 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4630 if test "$ac_cv_sys_file_offset_bits" != no; then
4632 cat >>confdefs.h <<_ACEOF
4633 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4638 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4639 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4640 if test "${ac_cv_sys_large_files+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 ac_cv_sys_large_files=no
4645 cat >conftest.$ac_ext <<_ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 #include <sys/types.h>
4652 /* Check that off_t can represent 2**63 - 1 correctly.
4653 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4654 since some C++ compilers masquerading as C compilers
4655 incorrectly reject 9223372036854775807. */
4656 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4657 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4658 && LARGE_OFF_T % 2147483647 == 1)
4668 rm -f conftest.$ac_objext
4669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4670 (eval $ac_compile) 2>conftest.er1
4672 grep -v '^ *+' conftest.er1 >conftest.err
4674 cat conftest.err >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); } &&
4677 { ac_try='test -z "$ac_c_werror_flag"
4678 || test ! -s conftest.err'
4679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4697 cat >conftest.$ac_ext <<_ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #define _LARGE_FILES 1
4704 #include <sys/types.h>
4705 /* Check that off_t can represent 2**63 - 1 correctly.
4706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4707 since some C++ compilers masquerading as C compilers
4708 incorrectly reject 9223372036854775807. */
4709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4711 && LARGE_OFF_T % 2147483647 == 1)
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_sys_large_files=1; break
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4754 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4755 if test "$ac_cv_sys_large_files" != no; then
4757 cat >>confdefs.h <<_ACEOF
4758 #define _LARGE_FILES $ac_cv_sys_large_files
4769 # Check whether --enable-shared or --disable-shared was given.
4770 if test "${enable_shared+set}" = set; then
4771 enableval="$enable_shared"
4772 p=${PACKAGE-default}
4774 yes) enable_shared=yes ;;
4775 no) enable_shared=no ;;
4778 # Look at the argument we got. We use all the common list separators.
4779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4780 for pkg in $enableval; do
4782 if test "X$pkg" = "X$p"; then
4793 # Check whether --enable-static or --disable-static was given.
4794 if test "${enable_static+set}" = set; then
4795 enableval="$enable_static"
4796 p=${PACKAGE-default}
4798 yes) enable_static=yes ;;
4799 no) enable_static=no ;;
4802 # Look at the argument we got. We use all the common list separators.
4803 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4804 for pkg in $enableval; do
4806 if test "X$pkg" = "X$p"; then
4817 # Check whether --enable-fast-install or --disable-fast-install was given.
4818 if test "${enable_fast_install+set}" = set; then
4819 enableval="$enable_fast_install"
4820 p=${PACKAGE-default}
4822 yes) enable_fast_install=yes ;;
4823 no) enable_fast_install=no ;;
4825 enable_fast_install=no
4826 # Look at the argument we got. We use all the common list separators.
4827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4828 for pkg in $enableval; do
4830 if test "X$pkg" = "X$p"; then
4831 enable_fast_install=yes
4838 enable_fast_install=yes
4841 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4842 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4843 if test "${lt_cv_path_SED+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 # Loop through the user's path and test for sed and gsed.
4847 # Then use that list of sed's as ones to test for truncation.
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir=.
4853 for lt_ac_prog in sed gsed; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4856 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4863 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4864 # along with /bin/sed that truncates output.
4865 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4866 test ! -f $lt_ac_sed && break
4867 cat /dev/null > conftest.in
4869 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4870 # Check for GNU sed and select it if it is found.
4871 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4872 lt_cv_path_SED=$lt_ac_sed
4876 cat conftest.in conftest.in >conftest.tmp
4877 mv conftest.tmp conftest.in
4878 cp conftest.in conftest.nl
4880 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4881 cmp -s conftest.out conftest.nl || break
4882 # 10000 chars as input seems more than enough
4883 test $lt_ac_count -gt 10 && break
4884 lt_ac_count=`expr $lt_ac_count + 1`
4885 if test $lt_ac_count -gt $lt_ac_max; then
4886 lt_ac_max=$lt_ac_count
4887 lt_cv_path_SED=$lt_ac_sed
4895 echo "$as_me:$LINENO: result: $SED" >&5
4896 echo "${ECHO_T}$SED" >&6
4899 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4900 if test "${with_gnu_ld+set}" = set; then
4901 withval="$with_gnu_ld"
4902 test "$withval" = no || with_gnu_ld=yes
4907 if test "$GCC" = yes; then
4908 # Check if gcc -print-prog-name=ld gives a path.
4909 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4910 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4913 # gcc leaves a trailing carriage return which upsets mingw
4914 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4916 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4919 # Accept absolute paths.
4921 re_direlt='/[^/][^/]*/\.\./'
4922 # Canonicalize the pathname of ld
4923 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4924 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4925 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4927 test -z "$LD" && LD="$ac_prog"
4930 # If it fails, then pretend we aren't using GCC.
4934 # If it is relative, then search for the first ld in PATH.
4938 elif test "$with_gnu_ld" = yes; then
4939 echo "$as_me:$LINENO: checking for GNU ld" >&5
4940 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4942 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4943 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4945 if test "${lt_cv_path_LD+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 if test -z "$LD"; then
4949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4950 for ac_dir in $PATH; do
4952 test -z "$ac_dir" && ac_dir=.
4953 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4954 lt_cv_path_LD="$ac_dir/$ac_prog"
4955 # Check to see if the program is GNU ld. I'd rather use --version,
4956 # but apparently some GNU ld's only accept -v.
4957 # Break only if it was the GNU/non-GNU ld that we prefer.
4958 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4959 *GNU* | *'with BFD'*)
4960 test "$with_gnu_ld" != no && break
4963 test "$with_gnu_ld" != yes && break
4970 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4975 if test -n "$LD"; then
4976 echo "$as_me:$LINENO: result: $LD" >&5
4977 echo "${ECHO_T}$LD" >&6
4979 echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6
4982 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4983 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4984 { (exit 1); exit 1; }; }
4985 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4986 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4987 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4991 case `$LD -v 2>&1 </dev/null` in
4992 *GNU* | *'with BFD'*)
4993 lt_cv_prog_gnu_ld=yes
4996 lt_cv_prog_gnu_ld=no
5000 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5001 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5002 with_gnu_ld=$lt_cv_prog_gnu_ld
5005 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5006 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5007 if test "${lt_cv_ld_reload_flag+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 lt_cv_ld_reload_flag='-r'
5012 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5013 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5017 *) reload_flag=" $reload_flag" ;;
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5022 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5023 if test "${lt_cv_path_NM+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 if test -n "$NM"; then
5027 # Let the user override the test.
5030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5031 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5033 test -z "$ac_dir" && ac_dir=.
5034 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5035 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5036 # Check to see if the nm accepts a BSD-compat flag.
5037 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5038 # nm: unknown option "B" ignored
5039 # Tru64's nm complains that /dev/null is an invalid object file
5040 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5041 */dev/null* | *'Invalid file or object type'*)
5042 lt_cv_path_NM="$tmp_nm -B"
5046 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5048 lt_cv_path_NM="$tmp_nm -p"
5052 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5053 continue # so that we can try to find one that supports BSD flags
5060 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5063 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5064 echo "${ECHO_T}$lt_cv_path_NM" >&6
5067 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5068 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5070 if test "$LN_S" = "ln -s"; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072 echo "${ECHO_T}yes" >&6
5074 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5075 echo "${ECHO_T}no, using $LN_S" >&6
5078 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5079 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5080 if test "${lt_cv_deplibs_check_method+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 lt_cv_file_magic_cmd='$MAGIC_CMD'
5084 lt_cv_file_magic_test_file=
5085 lt_cv_deplibs_check_method='unknown'
5086 # Need to set the preceding variable on all platforms that support
5087 # interlibrary dependencies.
5088 # 'none' -- dependencies not supported.
5089 # `unknown' -- same as none, but documents that we really don't know.
5090 # 'pass_all' -- all dependencies passed with no checks.
5091 # 'test_compile' -- check by making test program.
5092 # 'file_magic [[regex]]' -- check by looking for files in library path
5093 # which responds to the $file_magic_cmd with a given extended regex.
5094 # If you have `file' or equivalent on your system and you're not sure
5095 # whether `pass_all' will *always* work, you probably want this one.
5099 lt_cv_deplibs_check_method=pass_all
5103 lt_cv_deplibs_check_method=pass_all
5107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5108 lt_cv_file_magic_cmd='/usr/bin/file -L'
5109 lt_cv_file_magic_test_file=/shlib/libc.so
5113 # win32_libid is a shell function defined in ltmain.sh
5114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5115 lt_cv_file_magic_cmd='win32_libid'
5119 # Base MSYS/MinGW do not provide the 'file' command needed by
5120 # win32_libid shell function, so use a weaker test based on 'objdump'.
5121 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5122 lt_cv_file_magic_cmd='$OBJDUMP -f'
5125 darwin* | rhapsody*)
5126 lt_cv_deplibs_check_method=pass_all
5129 freebsd* | kfreebsd*-gnu)
5130 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5133 # Not sure whether the presence of OpenBSD here was a mistake.
5134 # Let's accept both of them until this is cleared up.
5135 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5136 lt_cv_file_magic_cmd=/usr/bin/file
5137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5141 lt_cv_deplibs_check_method=pass_all
5146 lt_cv_deplibs_check_method=pass_all
5149 hpux10.20* | hpux11*)
5150 lt_cv_file_magic_cmd=/usr/bin/file
5153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5154 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5157 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]'
5158 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5162 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5167 irix5* | irix6* | nonstopux*)
5169 *-32|*"-32 ") libmagic=32-bit;;
5170 *-n32|*"-n32 ") libmagic=N32;;
5171 *-64|*"-64 ") libmagic=64-bit;;
5172 *) libmagic=never-match;;
5174 lt_cv_deplibs_check_method=pass_all
5177 # This must be Linux ELF.
5180 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
5181 lt_cv_deplibs_check_method=pass_all ;;
5183 # glibc up to 2.1.1 does not perform some relocations on ARM
5184 # this will be overridden with pass_all, but let us keep it just in case
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5187 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5188 lt_cv_deplibs_check_method=pass_all
5192 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5201 lt_cv_file_magic_cmd=/usr/bin/file
5202 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5206 lt_cv_deplibs_check_method=unknown
5210 lt_cv_file_magic_cmd=/usr/bin/file
5211 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5215 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5219 osf3* | osf4* | osf5*)
5220 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_deplibs_check_method=pass_all
5228 lt_cv_deplibs_check_method=pass_all
5231 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5232 case $host_vendor in
5234 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]'
5235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5238 lt_cv_deplibs_check_method=pass_all
5241 lt_cv_file_magic_cmd='/bin/file'
5242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5245 lt_cv_file_magic_cmd='/bin/file'
5246 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5247 lt_cv_file_magic_test_file=/lib/libc.so
5250 lt_cv_deplibs_check_method=pass_all
5255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5256 lt_cv_deplibs_check_method=pass_all
5261 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5262 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5263 file_magic_cmd=$lt_cv_file_magic_cmd
5264 deplibs_check_method=$lt_cv_deplibs_check_method
5265 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5270 # If no C compiler was specified, use CC.
5273 # Allow CC to be a program name with arguments.
5276 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5277 if test "${enable_libtool_lock+set}" = set; then
5278 enableval="$enable_libtool_lock"
5281 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5283 # Some flags need to be propagated to the compiler or linker for good
5287 # Find out which ABI we are using.
5288 echo 'int i;' > conftest.$ac_ext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5290 (eval $ac_compile) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; then
5294 case `/usr/bin/file conftest.$ac_objext` in
5306 # Find out which ABI we are using.
5307 echo '#line 5307 "configure"' > conftest.$ac_ext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5309 (eval $ac_compile) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; then
5313 if test "$lt_cv_prog_gnu_ld" = yes; then
5314 case `/usr/bin/file conftest.$ac_objext` in
5316 LD="${LD-ld} -melf32bsmip"
5319 LD="${LD-ld} -melf32bmipn32"
5322 LD="${LD-ld} -melf64bmip"
5326 case `/usr/bin/file conftest.$ac_objext` in
5342 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5343 # Find out which ABI we are using.
5344 echo 'int i;' > conftest.$ac_ext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346 (eval $ac_compile) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; then
5350 case "`/usr/bin/file conftest.o`" in
5354 LD="${LD-ld} -m elf_i386"
5356 ppc64-*linux*|powerpc64-*linux*)
5357 LD="${LD-ld} -m elf32ppclinux"
5360 LD="${LD-ld} -m elf_s390"
5363 LD="${LD-ld} -m elf32_sparc"
5370 LD="${LD-ld} -m elf_x86_64"
5372 ppc*-*linux*|powerpc*-*linux*)
5373 LD="${LD-ld} -m elf64ppc"
5376 LD="${LD-ld} -m elf64_s390"
5379 LD="${LD-ld} -m elf64_sparc"
5389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5390 SAVE_CFLAGS="$CFLAGS"
5391 CFLAGS="$CFLAGS -belf"
5392 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5393 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5394 if test "${lt_cv_cc_needs_belf+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 ac_cpp='$CPP $CPPFLAGS'
5399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest$ac_exeext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 lt_cv_cc_needs_belf=yes
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 lt_cv_cc_needs_belf=no
5447 rm -f conftest.err conftest.$ac_objext \
5448 conftest$ac_exeext conftest.$ac_ext
5450 ac_cpp='$CPP $CPPFLAGS'
5451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5457 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5458 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5459 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5460 CFLAGS="$SAVE_CFLAGS"
5463 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5464 if test -n "$ac_tool_prefix"; then
5465 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5466 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5467 echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5469 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 if test -n "$DLLTOOL"; then
5473 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 DLLTOOL=$ac_cv_prog_DLLTOOL
5492 if test -n "$DLLTOOL"; then
5493 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5494 echo "${ECHO_T}$DLLTOOL" >&6
5496 echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6
5501 if test -z "$ac_cv_prog_DLLTOOL"; then
5502 ac_ct_DLLTOOL=$DLLTOOL
5503 # Extract the first word of "dlltool", so it can be a program name with args.
5504 set dummy dlltool; ac_word=$2
5505 echo "$as_me:$LINENO: checking for $ac_word" >&5
5506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5507 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5510 if test -n "$ac_ct_DLLTOOL"; then
5511 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5520 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5530 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5531 if test -n "$ac_ct_DLLTOOL"; then
5532 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5533 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5535 echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5539 DLLTOOL=$ac_ct_DLLTOOL
5541 DLLTOOL="$ac_cv_prog_DLLTOOL"
5544 if test -n "$ac_tool_prefix"; then
5545 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5546 set dummy ${ac_tool_prefix}as; ac_word=$2
5547 echo "$as_me:$LINENO: checking for $ac_word" >&5
5548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5549 if test "${ac_cv_prog_AS+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 if test -n "$AS"; then
5553 ac_cv_prog_AS="$AS" # Let the user override the test.
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_AS="${ac_tool_prefix}as"
5563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 if test -n "$AS"; then
5573 echo "$as_me:$LINENO: result: $AS" >&5
5574 echo "${ECHO_T}$AS" >&6
5576 echo "$as_me:$LINENO: result: no" >&5
5577 echo "${ECHO_T}no" >&6
5581 if test -z "$ac_cv_prog_AS"; then
5583 # Extract the first word of "as", so it can be a program name with args.
5584 set dummy as; ac_word=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 if test -n "$ac_ct_AS"; then
5591 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_ac_ct_AS="as"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5610 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5611 if test -n "$ac_ct_AS"; then
5612 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5613 echo "${ECHO_T}$ac_ct_AS" >&6
5615 echo "$as_me:$LINENO: result: no" >&5
5616 echo "${ECHO_T}no" >&6
5624 if test -n "$ac_tool_prefix"; then
5625 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5626 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5627 echo "$as_me:$LINENO: checking for $ac_word" >&5
5628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5629 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 if test -n "$OBJDUMP"; then
5633 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5642 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 OBJDUMP=$ac_cv_prog_OBJDUMP
5652 if test -n "$OBJDUMP"; then
5653 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5654 echo "${ECHO_T}$OBJDUMP" >&6
5656 echo "$as_me:$LINENO: result: no" >&5
5657 echo "${ECHO_T}no" >&6
5661 if test -z "$ac_cv_prog_OBJDUMP"; then
5662 ac_ct_OBJDUMP=$OBJDUMP
5663 # Extract the first word of "objdump", so it can be a program name with args.
5664 set dummy objdump; ac_word=$2
5665 echo "$as_me:$LINENO: checking for $ac_word" >&5
5666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 if test -n "$ac_ct_OBJDUMP"; then
5671 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5690 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5691 if test -n "$ac_ct_OBJDUMP"; then
5692 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5693 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5695 echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5699 OBJDUMP=$ac_ct_OBJDUMP
5701 OBJDUMP="$ac_cv_prog_OBJDUMP"
5708 need_locks="$enable_libtool_lock"
5711 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5712 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5713 if test "${ac_cv_header_stdc+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5735 rm -f conftest.$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1 >conftest.err
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_cv_header_stdc=yes
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5762 ac_cv_header_stdc=no
5764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5766 if test $ac_cv_header_stdc = yes; then
5767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5768 cat >conftest.$ac_ext <<_ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5778 $EGREP "memchr" >/dev/null 2>&1; then
5781 ac_cv_header_stdc=no
5787 if test $ac_cv_header_stdc = yes; then
5788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799 $EGREP "free" >/dev/null 2>&1; then
5802 ac_cv_header_stdc=no
5808 if test $ac_cv_header_stdc = yes; then
5809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5810 if test "$cross_compiling" = yes; then
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5820 #if ((' ' & 0x0FF) == 0x020)
5821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5824 # define ISLOWER(c) \
5825 (('a' <= (c) && (c) <= 'i') \
5826 || ('j' <= (c) && (c) <= 'r') \
5827 || ('s' <= (c) && (c) <= 'z'))
5828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5836 for (i = 0; i < 256; i++)
5837 if (XOR (islower (i), ISLOWER (i))
5838 || toupper (i) != TOUPPER (i))
5843 rm -f conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5856 echo "$as_me: program exited with status $ac_status" >&5
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5861 ac_cv_header_stdc=no
5863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5868 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5869 if test $ac_cv_header_stdc = yes; then
5871 cat >>confdefs.h <<\_ACEOF
5872 #define STDC_HEADERS 1
5877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5887 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5888 inttypes.h stdint.h unistd.h
5890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5891 echo "$as_me:$LINENO: checking for $ac_header" >&5
5892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 $ac_includes_default
5904 #include <$ac_header>
5906 rm -f conftest.$ac_objext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>conftest.er1
5910 grep -v '^ *+' conftest.er1 >conftest.err
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -z "$ac_c_werror_flag"
5916 || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; }; then
5928 eval "$as_ac_Header=yes"
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 eval "$as_ac_Header=no"
5935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5940 cat >>confdefs.h <<_ACEOF
5941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 for ac_header in dlfcn.h
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954 echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5962 # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h. */
5971 $ac_includes_default
5972 #include <$ac_header>
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976 (eval $ac_compile) 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag"
5984 || test ! -s conftest.err'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; } &&
5990 { ac_try='test -s conftest.$ac_objext'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_header_compiler=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_compiler=no
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h. */
6016 #include <$ac_header>
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6021 grep -v '^ *+' conftest.er1 >conftest.err
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } >/dev/null; then
6026 if test -s conftest.err; then
6027 ac_cpp_err=$ac_c_preproc_warn_flag
6028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6035 if test -z "$ac_cpp_err"; then
6036 ac_header_preproc=yes
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 ac_header_preproc=no
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6047 # So? What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054 ac_header_preproc=yes
6057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6071 ## ------------------------------- ##
6072 ## Report this to curl-bug@haxx.se ##
6073 ## ------------------------------- ##
6076 sed "s/^/$as_me: WARNING: /" >&2
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 eval "$as_ac_Header=\$ac_header_preproc"
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091 cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 ac_cpp='$CXXCPP $CPPFLAGS'
6101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6104 if test -n "$ac_tool_prefix"; then
6105 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6109 echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111 if test "${ac_cv_prog_CXX+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 if test -n "$CXX"; then
6115 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 if test -n "$CXX"; then
6135 echo "$as_me:$LINENO: result: $CXX" >&5
6136 echo "${ECHO_T}$CXX" >&6
6138 echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6
6142 test -n "$CXX" && break
6145 if test -z "$CXX"; then
6147 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 if test -n "$ac_ct_CXX"; then
6157 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_CXX="$ac_prog"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6176 if test -n "$ac_ct_CXX"; then
6177 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6178 echo "${ECHO_T}$ac_ct_CXX" >&6
6180 echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6184 test -n "$ac_ct_CXX" && break
6186 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6192 # Provide some information about the compiler.
6193 echo "$as_me:$LINENO:" \
6194 "checking for C++ compiler version" >&5
6195 ac_compiler=`set X $ac_compile; echo $2`
6196 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6197 (eval $ac_compiler --version </dev/null >&5) 2>&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }
6201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6202 (eval $ac_compiler -v </dev/null >&5) 2>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6207 (eval $ac_compiler -V </dev/null >&5) 2>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }
6212 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6213 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
6244 { ac_try='test -z "$ac_cxx_werror_flag"
6245 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest.$ac_objext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6268 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6269 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6270 GXX=`test $ac_compiler_gnu = yes && echo yes`
6271 ac_test_CXXFLAGS=${CXXFLAGS+set}
6272 ac_save_CXXFLAGS=$CXXFLAGS
6274 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6275 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6276 if test "${ac_cv_prog_cxx_g+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.$ac_ext <<_ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -z "$ac_cxx_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_cv_prog_cxx_g=yes
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6326 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6327 if test "$ac_test_CXXFLAGS" = set; then
6328 CXXFLAGS=$ac_save_CXXFLAGS
6329 elif test $ac_cv_prog_cxx_g = yes; then
6330 if test "$GXX" = yes; then
6336 if test "$GXX" = yes; then
6342 for ac_declaration in \
6344 'extern "C" void std::exit (int) throw (); using std::exit;' \
6345 'extern "C" void std::exit (int); using std::exit;' \
6346 'extern "C" void exit (int) throw ();' \
6347 'extern "C" void exit (int);' \
6350 cat >conftest.$ac_ext <<_ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368 (eval $ac_compile) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1 >conftest.err
6372 cat conftest.err >&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try='test -z "$ac_cxx_werror_flag"
6376 || test ! -s conftest.err'
6377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; } &&
6382 { ac_try='test -s conftest.$ac_objext'
6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6411 rm -f conftest.$ac_objext
6412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6415 grep -v '^ *+' conftest.er1 >conftest.err
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -z "$ac_cxx_werror_flag"
6421 || test ! -s conftest.err'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6442 if test -n "$ac_declaration"; then
6443 echo '#ifdef __cplusplus' >>confdefs.h
6444 echo $ac_declaration >>confdefs.h
6445 echo '#endif' >>confdefs.h
6449 ac_cpp='$CXXCPP $CPPFLAGS'
6450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6454 depcc="$CXX" am_compiler_list=
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462 # We make a subdir and do the tests there. Otherwise we can end up
6463 # making bogus files that we don't know about and never remove. For
6464 # instance it was reported that on HP-UX the gcc test will end up
6465 # making a dummy file named `D' -- because `-MD' means `put the output
6468 # Copy depcomp to subdir because otherwise we won't find it if we're
6469 # using a relative directory.
6470 cp "$am_depcomp" conftest.dir
6472 # We will build objects and dependencies in a subdirectory because
6473 # it helps to detect inapplicable dependency modes. For instance
6474 # both Tru64's cc and ICC support -MD to output dependencies as a
6475 # side effect of compilation, but ICC will put the dependencies in
6476 # the current directory while Tru64 will put them in the object
6480 am_cv_CXX_dependencies_compiler_type=none
6481 if test "$am_compiler_list" = ""; then
6482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6484 for depmode in $am_compiler_list; do
6485 # Setup a source with many dependencies, because some compilers
6486 # like to wrap large dependency lists on column 80 (with \), and
6487 # we should not choose a depcomp mode which is confused by this.
6489 # We need to recreate these files for each test, as the compiler may
6490 # overwrite some of them when testing with obscure command lines.
6491 # This happens at least with the AIX C compiler.
6493 for i in 1 2 3 4 5 6; do
6494 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496 # Solaris 8's {/usr,}/bin/sh.
6497 touch sub/conftst$i.h
6499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6503 # after this tag, mechanisms are not by side-effect, so they'll
6504 # only be used when explicitly requested
6505 if test "x$enable_dependency_tracking" = xyes; then
6513 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514 # mode. It turns out that the SunPro C++ compiler does not properly
6515 # handle `-M -o', and we need to detect this.
6516 if depmode=$depmode \
6517 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520 >/dev/null 2>conftest.err &&
6521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524 # icc doesn't choke on unknown options, it will just issue warnings
6525 # (even with -Werror). So we grep stderr for any message
6526 # that says an option was ignored.
6527 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
6528 am_cv_CXX_dependencies_compiler_type=$depmode
6537 am_cv_CXX_dependencies_compiler_type=none
6541 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6542 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6543 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6548 test "x$enable_dependency_tracking" != xno \
6549 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6550 am__fastdepCXX_TRUE=
6551 am__fastdepCXX_FALSE='#'
6553 am__fastdepCXX_TRUE='#'
6554 am__fastdepCXX_FALSE=
6559 ac_cpp='$CXXCPP $CPPFLAGS'
6560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6563 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6564 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6565 if test -z "$CXXCPP"; then
6566 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 # Double quotes because CXXCPP needs to be expanded
6570 for CXXCPP in "$CXX -E" "/lib/cpp"
6573 for ac_cxx_preproc_warn_flag in '' yes
6575 # Use a header file that comes with gcc, so configuring glibc
6576 # with a fresh cross-compiler works.
6577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578 # <limits.h> exists even on freestanding compilers.
6579 # On the NeXT, cc -E runs the code through the compiler's parser,
6580 # not just through cpp. "Syntax error" is here to catch this case.
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6588 # include <limits.h>
6590 # include <assert.h>
6594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } >/dev/null; then
6602 if test -s conftest.err; then
6603 ac_cpp_err=$ac_cxx_preproc_warn_flag
6604 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6611 if test -z "$ac_cpp_err"; then
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 # Broken: fails on valid input.
6620 rm -f conftest.err conftest.$ac_ext
6622 # OK, works on sane cases. Now check whether non-existent headers
6623 # can be detected and how.
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630 #include <ac_nonexistent.h>
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6635 grep -v '^ *+' conftest.er1 >conftest.err
6637 cat conftest.err >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } >/dev/null; then
6640 if test -s conftest.err; then
6641 ac_cpp_err=$ac_cxx_preproc_warn_flag
6642 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6649 if test -z "$ac_cpp_err"; then
6650 # Broken: success on invalid input.
6653 echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6656 # Passes both tests.
6660 rm -f conftest.err conftest.$ac_ext
6663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664 rm -f conftest.err conftest.$ac_ext
6665 if $ac_preproc_ok; then
6670 ac_cv_prog_CXXCPP=$CXXCPP
6673 CXXCPP=$ac_cv_prog_CXXCPP
6675 ac_cv_prog_CXXCPP=$CXXCPP
6677 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6678 echo "${ECHO_T}$CXXCPP" >&6
6680 for ac_cxx_preproc_warn_flag in '' yes
6682 # Use a header file that comes with gcc, so configuring glibc
6683 # with a fresh cross-compiler works.
6684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685 # <limits.h> exists even on freestanding compilers.
6686 # On the NeXT, cc -E runs the code through the compiler's parser,
6687 # not just through cpp. "Syntax error" is here to catch this case.
6688 cat >conftest.$ac_ext <<_ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h. */
6695 # include <limits.h>
6697 # include <assert.h>
6701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6704 grep -v '^ *+' conftest.er1 >conftest.err
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } >/dev/null; then
6709 if test -s conftest.err; then
6710 ac_cpp_err=$ac_cxx_preproc_warn_flag
6711 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6718 if test -z "$ac_cpp_err"; then
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 # Broken: fails on valid input.
6727 rm -f conftest.err conftest.$ac_ext
6729 # OK, works on sane cases. Now check whether non-existent headers
6730 # can be detected and how.
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <ac_nonexistent.h>
6739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } >/dev/null; then
6747 if test -s conftest.err; then
6748 ac_cpp_err=$ac_cxx_preproc_warn_flag
6749 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6756 if test -z "$ac_cpp_err"; then
6757 # Broken: success on invalid input.
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6763 # Passes both tests.
6767 rm -f conftest.err conftest.$ac_ext
6770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6771 rm -f conftest.err conftest.$ac_ext
6772 if $ac_preproc_ok; then
6775 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6776 See \`config.log' for more details." >&5
6777 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6778 See \`config.log' for more details." >&2;}
6779 { (exit 1); exit 1; }; }
6783 ac_cpp='$CXXCPP $CPPFLAGS'
6784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6791 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6793 if test -n "$ac_tool_prefix"; then
6794 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6798 echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6800 if test "${ac_cv_prog_F77+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 if test -n "$F77"; then
6804 ac_cv_prog_F77="$F77" # Let the user override the test.
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 if test -n "$F77"; then
6824 echo "$as_me:$LINENO: result: $F77" >&5
6825 echo "${ECHO_T}$F77" >&6
6827 echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6
6831 test -n "$F77" && break
6834 if test -z "$F77"; then
6836 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6842 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 if test -n "$ac_ct_F77"; then
6846 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_F77="$ac_prog"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6865 if test -n "$ac_ct_F77"; then
6866 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6867 echo "${ECHO_T}$ac_ct_F77" >&6
6869 echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6
6873 test -n "$ac_ct_F77" && break
6880 # Provide some information about the compiler.
6881 echo "$as_me:6881:" \
6882 "checking for Fortran 77 compiler version" >&5
6883 ac_compiler=`set X $ac_compile; echo $2`
6884 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6885 (eval $ac_compiler --version </dev/null >&5) 2>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }
6889 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6890 (eval $ac_compiler -v </dev/null >&5) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }
6894 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6895 (eval $ac_compiler -V </dev/null >&5) 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }
6901 # If we don't use `.F' as extension, the preprocessor is not run on the
6902 # input file. (Note that this only needs to work for GNU compilers.)
6905 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6906 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6907 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 cat >conftest.$ac_ext <<_ACEOF
6918 rm -f conftest.$ac_objext
6919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920 (eval $ac_compile) 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } &&
6927 { ac_try='test -z "$ac_f77_werror_flag"
6928 || test ! -s conftest.err'
6929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
6942 echo "$as_me: failed program was:" >&5
6943 sed 's/^/| /' conftest.$ac_ext >&5
6947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6948 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6951 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6952 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6954 ac_test_FFLAGS=${FFLAGS+set}
6955 ac_save_FFLAGS=$FFLAGS
6957 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6958 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6959 if test "${ac_cv_prog_f77_g+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 cat >conftest.$ac_ext <<_ACEOF
6968 rm -f conftest.$ac_objext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6970 (eval $ac_compile) 2>conftest.er1
6972 grep -v '^ *+' conftest.er1 >conftest.err
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_f77_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest.$ac_objext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_prog_f77_g=yes
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7001 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7002 if test "$ac_test_FFLAGS" = set; then
7003 FFLAGS=$ac_save_FFLAGS
7004 elif test $ac_cv_prog_f77_g = yes; then
7005 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7011 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7018 G77=`test $ac_compiler_gnu = yes && echo yes`
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7029 # find the maximum length of command line arguments
7030 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7031 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7032 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 # On DJGPP, this test can blow up pretty badly due to problems in libc
7041 # (any single argument exceeding 2000 bytes causes a buffer overrun
7042 # during glob expansion). Even if it were fixed, the result of this
7043 # check would be larger than it should be.
7044 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7048 # Under GNU Hurd, this test is not required because there is
7049 # no limit to the length of command line arguments.
7050 # Libtool will interpret -1 as no limit whatsoever
7051 lt_cv_sys_max_cmd_len=-1;
7055 # On Win9x/ME, this test blows up -- it succeeds, but takes
7056 # about 5 minutes as the teststring grows exponentially.
7057 # Worse, since 9x/ME are not pre-emptively multitasking,
7058 # you end up with a "frozen" computer, even though with patience
7059 # the test eventually succeeds (with a max line length of 256k).
7060 # Instead, let's just punt: use the minimum linelength reported by
7061 # all of the supported platforms: 8192 (on NT/2K/XP).
7062 lt_cv_sys_max_cmd_len=8192;
7066 # On AmigaOS with pdksh, this test takes hours, literally.
7067 # So we just punt and use a minimum line length of 8192.
7068 lt_cv_sys_max_cmd_len=8192;
7072 # If test is not a shell built-in, we'll probably end up computing a
7073 # maximum length that is only half of the actual maximum length, but
7075 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
7076 = "XX$testring") >/dev/null 2>&1 &&
7077 new_result=`expr "X$testring" : ".*" 2>&1` &&
7078 lt_cv_sys_max_cmd_len=$new_result &&
7079 test $i != 17 # 1/2 MB should be enough
7082 testring=$testring$testring
7085 # Add a significant safety factor because C++ compilers can tack on massive
7086 # amounts of additional arguments before passing them to the linker.
7087 # It appears as though 1/2 is a usable value.
7088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7094 if test -n $lt_cv_sys_max_cmd_len ; then
7095 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7098 echo "$as_me:$LINENO: result: none" >&5
7099 echo "${ECHO_T}none" >&6
7105 # Check for command to grab the raw symbol name followed by C symbol from nm.
7106 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 # These are sane defaults that work on at least a few old systems.
7113 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7115 # Character class describing NM global symbol codes.
7116 symcode='[BCDEGRST]'
7118 # Regexp to match symbols that can be accessed directly from C.
7119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7121 # Transform the above into a raw symbol and a C symbol.
7122 symxfrm='\1 \2\3 \3'
7124 # Transform an extracted symbol line into a proper C declaration
7125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7127 # Transform an extracted symbol line into symbol name and symbol address
7128 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'"
7130 # Define system-specific variables.
7135 cygwin* | mingw* | pw32*)
7136 symcode='[ABCDGISTW]'
7138 hpux*) # Its linker distinguishes data from code symbols
7139 if test "$host_cpu" = ia64; then
7140 symcode='[ABCDEGRST]'
7142 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7143 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'"
7146 symcode='[BCDEGRST]'
7149 symcode='[BCDEGQRST]'
7159 # Handle CRLF in mingw tool chain
7163 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167 # If we're using GNU nm, then use its standard symbol codes.
7168 case `$NM -V 2>&1` in
7169 *GNU* | *'with BFD'*)
7170 symcode='[ABCDGIRSTW]' ;;
7173 # Try without a prefix undercore, then with it.
7174 for ac_symprfx in "" "_"; do
7176 # Write the raw and C identifiers.
7177 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7179 # Check to see that the pipe works correctly.
7183 cat > conftest.$ac_ext <<EOF
7188 void nm_test_func(){}
7192 int main(){nm_test_var='a';nm_test_func();return(0);}
7195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; then
7200 # Now try to grab the symbols.
7202 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7203 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && test -s "$nlist"; then
7207 # Try sorting and uniquifying the output.
7208 if sort "$nlist" | uniq > "$nlist"T; then
7209 mv -f "$nlist"T "$nlist"
7214 # Make sure that we snagged all the symbols we need.
7215 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7216 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7217 cat <<EOF > conftest.$ac_ext
7223 # Now generate the symbol file.
7224 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7226 cat <<EOF >> conftest.$ac_ext
7227 #if defined (__STDC__) && __STDC__
7228 # define lt_ptr_t void *
7230 # define lt_ptr_t char *
7234 /* The mapping between symbol names and symbols. */
7239 lt_preloaded_symbols[] =
7242 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7243 cat <<\EOF >> conftest.$ac_ext
7251 # Now try linking the two files.
7252 mv conftest.$ac_objext conftstm.$ac_objext
7253 lt_save_LIBS="$LIBS"
7254 lt_save_CFLAGS="$CFLAGS"
7255 LIBS="conftstm.$ac_objext"
7256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7258 (eval $ac_link) 2>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7264 LIBS="$lt_save_LIBS"
7265 CFLAGS="$lt_save_CFLAGS"
7267 echo "cannot find nm_test_func in $nlist" >&5
7270 echo "cannot find nm_test_var in $nlist" >&5
7273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7276 echo "$progname: failed program was:" >&5
7277 cat conftest.$ac_ext >&5
7279 rm -f conftest* conftst*
7281 # Do not use the global_symbol_pipe unless it works.
7282 if test "$pipe_works" = yes; then
7285 lt_cv_sys_global_symbol_pipe=
7291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7292 lt_cv_sys_global_symbol_to_cdecl=
7294 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7295 echo "$as_me:$LINENO: result: failed" >&5
7296 echo "${ECHO_T}failed" >&6
7298 echo "$as_me:$LINENO: result: ok" >&5
7299 echo "${ECHO_T}ok" >&6
7302 echo "$as_me:$LINENO: checking for objdir" >&5
7303 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7304 if test "${lt_cv_objdir+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 rm -f .libs 2>/dev/null
7308 mkdir .libs 2>/dev/null
7309 if test -d .libs; then
7312 # MS-DOS does not allow filenames that begin with a dot.
7315 rmdir .libs 2>/dev/null
7317 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7318 echo "${ECHO_T}$lt_cv_objdir" >&6
7319 objdir=$lt_cv_objdir
7327 # AIX sometimes has problems with the GCC collect2 program. For some
7328 # reason, if we set the COLLECT_NAMES environment variable, the problems
7329 # vanish in a puff of smoke.
7330 if test "X${COLLECT_NAMES+set}" != Xset; then
7332 export COLLECT_NAMES
7337 # Sed substitution that helps us do robust quoting. It backslashifies
7338 # metacharacters that are still active within double-quoted strings.
7339 Xsed='sed -e s/^X//'
7340 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7342 # Same as above, but do not quote variable references.
7343 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7345 # Sed substitution to delay expansion of an escaped shell variable in a
7346 # double_quote_subst'ed string.
7347 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7349 # Sed substitution to avoid accidental globbing in evaled expressions
7350 no_glob_subst='s/\*/\\\*/g'
7356 default_ofile=libtool
7357 can_build_shared=yes
7359 # All known linkers require a `.a' archive for static linking (except M$VC,
7360 # which needs '.lib').
7362 ltmain="$ac_aux_dir/ltmain.sh"
7363 ofile="$default_ofile"
7364 with_gnu_ld="$lt_cv_prog_gnu_ld"
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ar; ac_word=$2
7369 echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7371 if test "${ac_cv_prog_AR+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test -n "$AR"; then
7375 ac_cv_prog_AR="$AR" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7384 ac_cv_prog_AR="${ac_tool_prefix}ar"
7385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 if test -n "$AR"; then
7395 echo "$as_me:$LINENO: result: $AR" >&5
7396 echo "${ECHO_T}$AR" >&6
7398 echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6
7403 if test -z "$ac_cv_prog_AR"; then
7405 # Extract the first word of "ar", so it can be a program name with args.
7406 set dummy ar; ac_word=$2
7407 echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7409 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 if test -n "$ac_ct_AR"; then
7413 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_prog_ac_ct_AR="ar"
7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7432 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7433 if test -n "$ac_ct_AR"; then
7434 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7435 echo "${ECHO_T}$ac_ct_AR" >&6
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7446 if test -n "$ac_tool_prefix"; then
7447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7449 echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451 if test "${ac_cv_prog_RANLIB+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 if test -n "$RANLIB"; then
7455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 RANLIB=$ac_cv_prog_RANLIB
7474 if test -n "$RANLIB"; then
7475 echo "$as_me:$LINENO: result: $RANLIB" >&5
7476 echo "${ECHO_T}$RANLIB" >&6
7478 echo "$as_me:$LINENO: result: no" >&5
7479 echo "${ECHO_T}no" >&6
7483 if test -z "$ac_cv_prog_RANLIB"; then
7484 ac_ct_RANLIB=$RANLIB
7485 # Extract the first word of "ranlib", so it can be a program name with args.
7486 set dummy ranlib; ac_word=$2
7487 echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 if test -n "$ac_ct_RANLIB"; then
7493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_prog_ac_ct_RANLIB="ranlib"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7513 if test -n "$ac_ct_RANLIB"; then
7514 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7515 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7517 echo "$as_me:$LINENO: result: no" >&5
7518 echo "${ECHO_T}no" >&6
7521 RANLIB=$ac_ct_RANLIB
7523 RANLIB="$ac_cv_prog_RANLIB"
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}strip; ac_word=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_STRIP+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 if test -n "$STRIP"; then
7535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 STRIP=$ac_cv_prog_STRIP
7554 if test -n "$STRIP"; then
7555 echo "$as_me:$LINENO: result: $STRIP" >&5
7556 echo "${ECHO_T}$STRIP" >&6
7558 echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7563 if test -z "$ac_cv_prog_STRIP"; then
7565 # Extract the first word of "strip", so it can be a program name with args.
7566 set dummy strip; ac_word=$2
7567 echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 if test -n "$ac_ct_STRIP"; then
7573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_ac_ct_STRIP="strip"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7592 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7593 if test -n "$ac_ct_STRIP"; then
7594 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7595 echo "${ECHO_T}$ac_ct_STRIP" >&6
7597 echo "$as_me:$LINENO: result: no" >&5
7598 echo "${ECHO_T}no" >&6
7603 STRIP="$ac_cv_prog_STRIP"
7608 old_CFLAGS="$CFLAGS"
7610 # Set sane defaults for various variables
7611 test -z "$AR" && AR=ar
7612 test -z "$AR_FLAGS" && AR_FLAGS=cru
7613 test -z "$AS" && AS=as
7614 test -z "$CC" && CC=cc
7615 test -z "$LTCC" && LTCC=$CC
7616 test -z "$DLLTOOL" && DLLTOOL=dlltool
7617 test -z "$LD" && LD=ld
7618 test -z "$LN_S" && LN_S="ln -s"
7619 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7620 test -z "$NM" && NM=nm
7621 test -z "$SED" && SED=sed
7622 test -z "$OBJDUMP" && OBJDUMP=objdump
7623 test -z "$RANLIB" && RANLIB=:
7624 test -z "$STRIP" && STRIP=:
7625 test -z "$ac_objext" && ac_objext=o
7627 # Determine commands to create old-style static archives.
7628 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7629 old_postinstall_cmds='chmod 644 $oldlib'
7630 old_postuninstall_cmds=
7632 if test -n "$RANLIB"; then
7635 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7638 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7641 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7644 # Only perform the check for file, if the check method requires it
7645 case $deplibs_check_method in
7647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7648 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7649 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7650 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7658 lt_save_MAGIC_CMD="$MAGIC_CMD"
7659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7661 for ac_dir in $ac_dummy; do
7663 test -z "$ac_dir" && ac_dir=.
7664 if test -f $ac_dir/${ac_tool_prefix}file; then
7665 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7666 if test -n "$file_magic_test_file"; then
7667 case $deplibs_check_method in
7669 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7672 $EGREP "$file_magic_regex" > /dev/null; then
7677 *** Warning: the command libtool uses to detect shared libraries,
7678 *** $file_magic_cmd, produces output that libtool cannot recognize.
7679 *** The result is that libtool may fail to recognize shared libraries
7680 *** as such. This will affect the creation of libtool libraries that
7681 *** depend on shared libraries, but programs linked with such libtool
7682 *** libraries will work regardless of this problem. Nevertheless, you
7683 *** may want to report the problem to your system manager and/or to
7684 *** bug-libtool@gnu.org
7694 MAGIC_CMD="$lt_save_MAGIC_CMD"
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if test -n "$MAGIC_CMD"; then
7701 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7702 echo "${ECHO_T}$MAGIC_CMD" >&6
7704 echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7708 if test -z "$lt_cv_path_MAGIC_CMD"; then
7709 if test -n "$ac_tool_prefix"; then
7710 echo "$as_me:$LINENO: checking for file" >&5
7711 echo $ECHO_N "checking for file... $ECHO_C" >&6
7712 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7720 lt_save_MAGIC_CMD="$MAGIC_CMD"
7721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7722 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7723 for ac_dir in $ac_dummy; do
7725 test -z "$ac_dir" && ac_dir=.
7726 if test -f $ac_dir/file; then
7727 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7728 if test -n "$file_magic_test_file"; then
7729 case $deplibs_check_method in
7731 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7734 $EGREP "$file_magic_regex" > /dev/null; then
7739 *** Warning: the command libtool uses to detect shared libraries,
7740 *** $file_magic_cmd, produces output that libtool cannot recognize.
7741 *** The result is that libtool may fail to recognize shared libraries
7742 *** as such. This will affect the creation of libtool libraries that
7743 *** depend on shared libraries, but programs linked with such libtool
7744 *** libraries will work regardless of this problem. Nevertheless, you
7745 *** may want to report the problem to your system manager and/or to
7746 *** bug-libtool@gnu.org
7756 MAGIC_CMD="$lt_save_MAGIC_CMD"
7761 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7762 if test -n "$MAGIC_CMD"; then
7763 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7764 echo "${ECHO_T}$MAGIC_CMD" >&6
7766 echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7780 enable_win32_dll=yes
7782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7783 if test "${enable_libtool_lock+set}" = set; then
7784 enableval="$enable_libtool_lock"
7787 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7790 # Check whether --with-pic or --without-pic was given.
7791 if test "${with_pic+set}" = set; then
7797 test -z "$pic_mode" && pic_mode=default
7799 # Use C for the default configuration in the libtool script
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809 # Source file extension for C test sources.
7812 # Object file extension for compiled C test sources.
7816 # Code to be used in simple compile tests
7817 lt_simple_compile_test_code="int some_variable = 0;\n"
7819 # Code to be used in simple link tests
7820 lt_simple_link_test_code='int main(){return(0);}\n'
7823 # If no C compiler was specified, use CC.
7826 # Allow CC to be a program name with arguments.
7831 # Check for any special shared library compilation flags.
7834 if test "$GCC" = no; then
7837 lt_prog_cc_shlib='-belf'
7841 if test -n "$lt_prog_cc_shlib"; then
7842 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7843 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7844 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7846 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7847 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7848 lt_cv_prog_cc_can_build_shared=no
7854 # Check to make sure the static flag actually works.
7856 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7857 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7858 if test "${lt_prog_compiler_static_works+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 lt_prog_compiler_static_works=no
7862 save_LDFLAGS="$LDFLAGS"
7863 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7864 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7865 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7866 # The compiler can only warn and ignore the option if not recognized
7867 # So say no if there are warnings
7868 if test -s conftest.err; then
7869 # Append any errors to the config.log.
7870 cat conftest.err 1>&5
7872 lt_prog_compiler_static_works=yes
7876 LDFLAGS="$save_LDFLAGS"
7879 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7880 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7882 if test x"$lt_prog_compiler_static_works" = xyes; then
7885 lt_prog_compiler_static=
7891 lt_prog_compiler_no_builtin_flag=
7893 if test "$GCC" = yes; then
7894 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7897 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7898 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7899 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 lt_cv_prog_compiler_rtti_exceptions=no
7903 ac_outfile=conftest.$ac_objext
7904 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7905 lt_compiler_flag="-fno-rtti -fno-exceptions"
7906 # Insert the option either (1) after the last *FLAGS variable, or
7907 # (2) before a word containing "conftest.", or (3) at the end.
7908 # Note that $ac_compile itself does not contain backslashes and begins
7909 # with a dollar sign (not a hyphen), so the echo should work correctly.
7910 # The option is referenced via a variable to avoid confusing sed.
7911 lt_compile=`echo "$ac_compile" | $SED \
7912 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7914 -e 's:$: $lt_compiler_flag:'`
7915 (eval echo "\"\$as_me:7915: $lt_compile\"" >&5)
7916 (eval "$lt_compile" 2>conftest.err)
7918 cat conftest.err >&5
7919 echo "$as_me:7919: \$? = $ac_status" >&5
7920 if (exit $ac_status) && test -s "$ac_outfile"; then
7921 # The compiler can only warn and ignore the option if not recognized
7922 # So say no if there are warnings
7923 if test ! -s conftest.err; then
7924 lt_cv_prog_compiler_rtti_exceptions=yes
7930 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7931 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7933 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7934 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7941 lt_prog_compiler_wl=
7942 lt_prog_compiler_pic=
7943 lt_prog_compiler_static=
7945 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7946 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7948 if test "$GCC" = yes; then
7949 lt_prog_compiler_wl='-Wl,'
7950 lt_prog_compiler_static='-static'
7954 # All AIX code is PIC.
7955 if test "$host_cpu" = ia64; then
7956 # AIX 5 now supports IA64 processor
7957 lt_prog_compiler_static='-Bstatic'
7962 # FIXME: we need at least 68020 code to build shared libraries, but
7963 # adding the `-m68020' flag to GCC prevents building anything better,
7965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7969 # PIC is the default for these OSes.
7972 mingw* | pw32* | os2*)
7973 # This hack is so that the source file can tell whether it is being
7974 # built for inclusion in a dll (and should export symbols for example).
7975 lt_prog_compiler_pic='-DDLL_EXPORT'
7978 darwin* | rhapsody*)
7979 # PIC is the default on this platform
7980 # Common symbols not allowed in MH_DYLIB files
7981 lt_prog_compiler_pic='-fno-common'
7985 # Just because we use GCC doesn't mean we suddenly get shared libraries
7986 # on systems that don't support them.
7987 lt_prog_compiler_can_build_shared=no
7992 if test -d /usr/nec; then
7993 lt_prog_compiler_pic=-Kconform_pic
7998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8005 lt_prog_compiler_pic='-fPIC'
8011 lt_prog_compiler_pic='-fPIC'
8015 # PORTME Check for flag to pass linker flags through the system compiler.
8018 lt_prog_compiler_wl='-Wl,'
8019 if test "$host_cpu" = ia64; then
8020 # AIX 5 now supports IA64 processor
8021 lt_prog_compiler_static='-Bstatic'
8023 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8027 mingw* | pw32* | os2*)
8028 # This hack is so that the source file can tell whether it is being
8029 # built for inclusion in a dll (and should export symbols for example).
8030 lt_prog_compiler_pic='-DDLL_EXPORT'
8033 hpux9* | hpux10* | hpux11*)
8034 lt_prog_compiler_wl='-Wl,'
8035 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8042 lt_prog_compiler_pic='+Z'
8045 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8046 lt_prog_compiler_static='${wl}-a ${wl}archive'
8049 irix5* | irix6* | nonstopux*)
8050 lt_prog_compiler_wl='-Wl,'
8051 # PIC (with -KPIC) is the default.
8052 lt_prog_compiler_static='-non_shared'
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-static'
8068 lt_prog_compiler_wl='-Wl,'
8069 # All Alpha code is PIC.
8070 lt_prog_compiler_static='-non_shared'
8075 osf3* | osf4* | osf5*)
8076 lt_prog_compiler_wl='-Wl,'
8077 # All OSF/1 code is PIC.
8078 lt_prog_compiler_static='-non_shared'
8082 lt_prog_compiler_pic='-Kpic'
8083 lt_prog_compiler_static='-dn'
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-Bstatic'
8093 lt_prog_compiler_wl='-Qoption ld '
8094 lt_prog_compiler_pic='-PIC'
8095 lt_prog_compiler_static='-Bstatic'
8098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8105 if test -d /usr/nec ;then
8106 lt_prog_compiler_pic='-Kconform_pic'
8107 lt_prog_compiler_static='-Bstatic'
8112 lt_prog_compiler_pic='-pic'
8113 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_can_build_shared=no
8122 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8123 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8126 # Check to make sure the PIC flag actually works.
8128 if test -n "$lt_prog_compiler_pic"; then
8130 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8131 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8132 if test "${lt_prog_compiler_pic_works+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 lt_prog_compiler_pic_works=no
8136 ac_outfile=conftest.$ac_objext
8137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8138 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8139 # Insert the option either (1) after the last *FLAGS variable, or
8140 # (2) before a word containing "conftest.", or (3) at the end.
8141 # Note that $ac_compile itself does not contain backslashes and begins
8142 # with a dollar sign (not a hyphen), so the echo should work correctly.
8143 # The option is referenced via a variable to avoid confusing sed.
8144 lt_compile=`echo "$ac_compile" | $SED \
8145 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8147 -e 's:$: $lt_compiler_flag:'`
8148 (eval echo "\"\$as_me:8148: $lt_compile\"" >&5)
8149 (eval "$lt_compile" 2>conftest.err)
8151 cat conftest.err >&5
8152 echo "$as_me:8152: \$? = $ac_status" >&5
8153 if (exit $ac_status) && test -s "$ac_outfile"; then
8154 # The compiler can only warn and ignore the option if not recognized
8155 # So say no if there are warnings
8156 if test ! -s conftest.err; then
8157 lt_prog_compiler_pic_works=yes
8163 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8164 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8166 if test x"$lt_prog_compiler_pic_works" = xyes; then
8167 case $lt_prog_compiler_pic in
8169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8172 lt_prog_compiler_pic=
8173 lt_prog_compiler_can_build_shared=no
8178 # For platforms which do not support PIC, -DPIC is meaningless:
8180 lt_prog_compiler_pic=
8183 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8187 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8189 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 lt_cv_prog_compiler_c_o=no
8193 $rm -r conftest 2>/dev/null
8197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8199 lt_compiler_flag="-o out/conftest2.$ac_objext"
8200 # Insert the option either (1) after the last *FLAGS variable, or
8201 # (2) before a word containing "conftest.", or (3) at the end.
8202 # Note that $ac_compile itself does not contain backslashes and begins
8203 # with a dollar sign (not a hyphen), so the echo should work correctly.
8204 lt_compile=`echo "$ac_compile" | $SED \
8205 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8207 -e 's:$: $lt_compiler_flag:'`
8208 (eval echo "\"\$as_me:8208: $lt_compile\"" >&5)
8209 (eval "$lt_compile" 2>out/conftest.err)
8211 cat out/conftest.err >&5
8212 echo "$as_me:8212: \$? = $ac_status" >&5
8213 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8215 # The compiler can only warn and ignore the option if not recognized
8216 # So say no if there are warnings
8217 if test ! -s out/conftest.err; then
8218 lt_cv_prog_compiler_c_o=yes
8223 # SGI C++ compiler will create directory out/ii_files/ for
8224 # template instantiation
8225 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8226 $rm out/* && rmdir out
8232 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8236 hard_links="nottested"
8237 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238 # do not overwrite the value of need_locks provided by the user
8239 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8240 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8245 ln conftest.a conftest.b 2>&5 || hard_links=no
8246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247 echo "$as_me:$LINENO: result: $hard_links" >&5
8248 echo "${ECHO_T}$hard_links" >&6
8249 if test "$hard_links" = no; then
8250 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8262 allow_undefined_flag=
8263 enable_shared_with_static_runtimes=no
8265 archive_expsym_cmds=
8266 old_archive_From_new_cmds=
8267 old_archive_from_expsyms_cmds=
8268 export_dynamic_flag_spec=
8269 whole_archive_flag_spec=
8270 thread_safe_flag_spec=
8271 hardcode_libdir_flag_spec=
8272 hardcode_libdir_flag_spec_ld=
8273 hardcode_libdir_separator=
8276 hardcode_shlibpath_var=unsupported
8277 link_all_deplibs=unknown
8278 hardcode_automatic=no
8281 always_export_symbols=no
8282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283 # include_expsyms should be a list of space-separated symbols to be *always*
8284 # included in the symbol list
8286 # exclude_expsyms can be an extended regexp of symbols to exclude
8287 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8288 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8289 # as well as any symbol that contains `d'.
8290 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8291 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8292 # platforms (ab)use it in PIC code, but their linkers get confused if
8293 # the symbol is explicitly referenced. Since portable code cannot
8294 # rely on this symbol name, it's probably fine to never include it in
8295 # preloaded symbol tables.
8296 extract_expsyms_cmds=
8299 cygwin* | mingw* | pw32*)
8300 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8301 # When not using gcc, we currently assume that we are using
8302 # Microsoft Visual C++.
8303 if test "$GCC" != yes; then
8313 if test "$with_gnu_ld" = yes; then
8314 # If archive_cmds runs LD, not CC, wlarc should be empty
8317 # See if GNU ld supports shared libraries.
8319 aix3* | aix4* | aix5*)
8320 # On AIX/PPC, the GNU linker is very broken
8321 if test "$host_cpu" != ia64; then
8325 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8326 *** to be unable to reliably create shared libraries on AIX.
8327 *** Therefore, libtool is disabling shared libraries support. If you
8328 *** really care for shared libraries, you may want to modify your PATH
8329 *** so that a non-GNU linker is found, and then restart.
8336 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)'
8337 hardcode_libdir_flag_spec='-L$libdir'
8338 hardcode_minus_L=yes
8340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8341 # that the semantics of dynamic libraries on AmigaOS, at least up
8342 # to version 4, is to share data among multiple programs linked
8343 # with the same dynamic library. Since this doesn't match the
8344 # behavior of shared libraries on other platforms, we can't use
8350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351 allow_undefined_flag=unsupported
8352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8353 # support --undefined. This deserves some investigation. FIXME
8354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360 cygwin* | mingw* | pw32*)
8361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8362 # as there is no search path for DLLs.
8363 hardcode_libdir_flag_spec='-L$libdir'
8364 allow_undefined_flag=unsupported
8365 always_export_symbols=no
8366 enable_shared_with_static_runtimes=yes
8367 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8371 # If the export-symbols file already is a .def file (1st line
8372 # is EXPORTS), use it as is; otherwise, prepend...
8373 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8374 cp $export_symbols $output_objdir/$soname.def;
8376 echo EXPORTS > $output_objdir/$soname.def;
8377 cat $export_symbols >> $output_objdir/$soname.def;
8379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8386 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8387 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8396 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8401 *** create shared libraries on Solaris systems. Therefore, libtool
8402 *** is disabling shared libraries support. We urge you to upgrade GNU
8403 *** binutils to release 2.9.1 or newer. Another option is to modify
8404 *** your PATH or compiler configuration so that the native linker is
8405 *** used, and then restart.
8408 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420 hardcode_shlibpath_var=no
8424 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8425 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8426 archive_cmds="$tmp_archive_cmds"
8427 supports_anon_versioning=no
8428 case `$LD -v 2>/dev/null` in
8429 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8430 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8431 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8432 *\ 2.11.*) ;; # other 2.11 versions
8433 *) supports_anon_versioning=yes ;;
8435 if test $supports_anon_versioning = yes; then
8436 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8438 $echo "local: *; };" >> $output_objdir/$libname.ver~
8439 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8441 archive_expsym_cmds="$tmp_archive_cmds"
8449 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8451 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8458 if test "$ld_shlibs" = yes; then
8459 runpath_var=LD_RUN_PATH
8460 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8461 export_dynamic_flag_spec='${wl}--export-dynamic'
8462 # ancient GNU ld didn't support --whole-archive et. al.
8463 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8464 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8466 whole_archive_flag_spec=
8470 # PORTME fill in a description of your system's linker (not GNU ld)
8473 allow_undefined_flag=unsupported
8474 always_export_symbols=yes
8475 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'
8476 # Note: this linker hardcodes the directories in LIBPATH if there
8477 # are no directories specified by -L.
8478 hardcode_minus_L=yes
8479 if test "$GCC" = yes && test -z "$link_static_flag"; then
8480 # Neither direct hardcoding nor static linking is supported with a
8482 hardcode_direct=unsupported
8487 if test "$host_cpu" = ia64; then
8488 # On IA64, the linker does run time linking by default, so we don't
8489 # have to do anything special.
8490 aix_use_runtimelinking=no
8491 exp_sym_flag='-Bexport'
8494 # If we're using GNU nm, then we don't want the "-C" option.
8495 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8496 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8497 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'
8499 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'
8501 aix_use_runtimelinking=no
8503 # Test if we are trying to use run time linking or normal
8504 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8505 # need to do runtime linking.
8506 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8507 for ld_flag in $LDFLAGS; do
8508 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8509 aix_use_runtimelinking=yes
8515 exp_sym_flag='-bexport'
8516 no_entry_flag='-bnoentry'
8519 # When large executables or shared objects are built, AIX ld can
8520 # have problems creating the table of contents. If linking a library
8521 # or program results in "error TOC overflow" add -mminimal-toc to
8522 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8523 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8527 hardcode_libdir_separator=':'
8528 link_all_deplibs=yes
8530 if test "$GCC" = yes; then
8531 case $host_os in aix4.012|aix4.012.*)
8532 # We only want to do this on AIX 4.2 and lower, the check
8533 # below for broken collect2 doesn't work under 4.3+
8534 collect2name=`${CC} -print-prog-name=collect2`
8535 if test -f "$collect2name" && \
8536 strings "$collect2name" | grep resolve_lib_name >/dev/null
8538 # We have reworked collect2
8541 # We have old collect2
8542 hardcode_direct=unsupported
8543 # It fails to find uninstalled libraries when the uninstalled
8544 # path is not listed in the libpath. Setting hardcode_minus_L
8545 # to unsupported forces relinking
8546 hardcode_minus_L=yes
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 hardcode_libdir_separator=
8551 shared_flag='-shared'
8554 if test "$host_cpu" = ia64; then
8555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8556 # chokes on -Wl,-G. The following line is correct:
8559 if test "$aix_use_runtimelinking" = yes; then
8560 shared_flag='${wl}-G'
8562 shared_flag='${wl}-bM:SRE'
8567 # It seems that -bexpall does not export symbols beginning with
8568 # underscore (_), so it is better to generate a list of symbols to export.
8569 always_export_symbols=yes
8570 if test "$aix_use_runtimelinking" = yes; then
8571 # Warning - without using the other runtime loading flags (-brtl),
8572 # -berok will link without error, but may produce a broken library.
8573 allow_undefined_flag='-berok'
8574 # Determine the default libpath from the value encoded in an empty executable.
8575 cat >conftest.$ac_ext <<_ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h. */
8590 rm -f conftest.$ac_objext conftest$ac_exeext
8591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8592 (eval $ac_link) 2>conftest.er1
8594 grep -v '^ *+' conftest.er1 >conftest.err
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } &&
8599 { ac_try='test -z "$ac_c_werror_flag"
8600 || test ! -s conftest.err'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; } &&
8606 { ac_try='test -s conftest$ac_exeext'
8607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; }; then
8613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8615 # Check for a 64-bit object if we didn't find anything.
8616 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8623 rm -f conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8628 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8630 if test "$host_cpu" = ia64; then
8631 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8632 allow_undefined_flag="-z nodefs"
8633 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8635 # Determine the default libpath from the value encoded in an empty executable.
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8651 rm -f conftest.$ac_objext conftest$ac_exeext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8653 (eval $ac_link) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag"
8661 || test ! -s conftest.err'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; } &&
8667 { ac_try='test -s conftest$ac_exeext'
8668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); }; }; then
8674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8676 # Check for a 64-bit object if we didn't find anything.
8677 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8684 rm -f conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8689 # Warning - without using the other run time loading flags,
8690 # -berok will link without error, but may produce a broken library.
8691 no_undefined_flag=' ${wl}-bernotok'
8692 allow_undefined_flag=' ${wl}-berok'
8693 # -bexpall does not export symbols beginning with underscore (_)
8694 always_export_symbols=yes
8695 # Exported symbols can be pulled into shared objects from archives
8696 whole_archive_flag_spec=' '
8697 archive_cmds_need_lc=yes
8698 # This is similar to how AIX traditionally builds it's shared libraries.
8699 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8705 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)'
8706 hardcode_libdir_flag_spec='-L$libdir'
8707 hardcode_minus_L=yes
8708 # see comment about different semantics on the GNU ld section
8713 export_dynamic_flag_spec=-rdynamic
8716 cygwin* | mingw* | pw32*)
8717 # When not using gcc, we currently assume that we are using
8718 # Microsoft Visual C++.
8719 # hardcode_libdir_flag_spec is actually meaningless, as there is
8720 # no search path for DLLs.
8721 hardcode_libdir_flag_spec=' '
8722 allow_undefined_flag=unsupported
8723 # Tell ltmain to make .lib files, not .a files.
8725 # Tell ltmain to make .dll files, not .so files.
8727 # FIXME: Setting linknames here is a bad hack.
8728 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8729 # The linker will automatically build a .lib file if we build a DLL.
8730 old_archive_From_new_cmds='true'
8731 # FIXME: Should let the user specify the lib program.
8732 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8733 fix_srcfile_path='`cygpath -w "$srcfile"`'
8734 enable_shared_with_static_runtimes=yes
8737 darwin* | rhapsody*)
8738 if test "$GXX" = yes ; then
8739 archive_cmds_need_lc=no
8741 rhapsody* | darwin1.[012])
8742 allow_undefined_flag='-undefined suppress'
8745 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8746 allow_undefined_flag='-flat_namespace -undefined suppress'
8748 case ${MACOSX_DEPLOYMENT_TARGET} in
8750 allow_undefined_flag='-flat_namespace -undefined suppress'
8753 allow_undefined_flag='-undefined dynamic_lookup'
8759 lt_int_apple_cc_single_mod=no
8760 output_verbose_link_cmd='echo'
8761 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8762 lt_int_apple_cc_single_mod=yes
8764 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8765 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8767 archive_cmds='$CC -r ${wl}-bind_at_load -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'
8769 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8770 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8771 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8772 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8774 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8776 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}'
8778 hardcode_automatic=yes
8779 hardcode_shlibpath_var=unsupported
8780 whole_archive_flag_spec='-all_load $convenience'
8781 link_all_deplibs=yes
8788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8789 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_shlibpath_var=no
8797 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8798 # support. Future versions do this automatically, but an explicit c++rt0.o
8799 # does not break anything, and helps significantly (at the cost of a little
8802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8803 hardcode_libdir_flag_spec='-R$libdir'
8805 hardcode_shlibpath_var=no
8808 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8812 hardcode_minus_L=yes
8813 hardcode_shlibpath_var=no
8816 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8817 freebsd* | kfreebsd*-gnu)
8818 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8819 hardcode_libdir_flag_spec='-R$libdir'
8821 hardcode_shlibpath_var=no
8825 if test "$GCC" = yes; then
8826 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'
8828 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'
8830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8831 hardcode_libdir_separator=:
8834 # hardcode_minus_L: Not really in the search PATH,
8835 # but as the default location of the library.
8836 hardcode_minus_L=yes
8837 export_dynamic_flag_spec='${wl}-E'
8841 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8860 if test "$with_gnu_ld" = no; then
8863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8864 hardcode_libdir_flag_spec_ld='+b $libdir'
8865 hardcode_libdir_separator=:
8867 hardcode_shlibpath_var=no
8870 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_shlibpath_var=no
8874 # hardcode_minus_L: Not really in the search PATH,
8875 # but as the default location of the library.
8876 hardcode_minus_L=yes
8879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8880 hardcode_libdir_separator=:
8882 export_dynamic_flag_spec='${wl}-E'
8884 # hardcode_minus_L: Not really in the search PATH,
8885 # but as the default location of the library.
8886 hardcode_minus_L=yes
8892 irix5* | irix6* | nonstopux*)
8893 if test "$GCC" = yes; then
8894 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'
8896 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'
8897 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900 hardcode_libdir_separator=:
8901 link_all_deplibs=yes
8905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8910 hardcode_libdir_flag_spec='-R$libdir'
8912 hardcode_shlibpath_var=no
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator=:
8920 hardcode_shlibpath_var=no
8925 hardcode_shlibpath_var=no
8926 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8929 export_dynamic_flag_spec='${wl}-E'
8932 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_libdir_flag_spec='-R$libdir'
8937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945 hardcode_libdir_flag_spec='-L$libdir'
8946 hardcode_minus_L=yes
8947 allow_undefined_flag=unsupported
8948 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'
8949 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8953 if test "$GCC" = yes; then
8954 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8955 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'
8957 allow_undefined_flag=' -expect_unresolved \*'
8958 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'
8960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8961 hardcode_libdir_separator=:
8964 osf4* | osf5*) # as osf3* with the addition of -msym flag
8965 if test "$GCC" = yes; then
8966 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8967 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'
8968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8970 allow_undefined_flag=' -expect_unresolved \*'
8971 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'
8972 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8973 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8975 # Both c and cxx compiler support -rpath directly
8976 hardcode_libdir_flag_spec='-rpath $libdir'
8978 hardcode_libdir_separator=:
8982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983 hardcode_shlibpath_var=no
8984 export_dynamic_flag_spec='${wl}-Bexport'
8985 runpath_var=LD_RUN_PATH
8986 hardcode_runpath_var=yes
8990 no_undefined_flag=' -z text'
8991 if test "$GCC" = yes; then
8992 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8994 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8996 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9000 hardcode_libdir_flag_spec='-R$libdir'
9001 hardcode_shlibpath_var=no
9003 solaris2.[0-5] | solaris2.[0-5].*) ;;
9004 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9005 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9007 link_all_deplibs=yes
9011 if test "x$host_vendor" = xsequent; then
9012 # Use $CC to link under sequent, because it throws in some extra .o
9013 # files that make .init and .fini sections work.
9014 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9016 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_libdir_flag_spec='-L$libdir'
9020 hardcode_minus_L=yes
9021 hardcode_shlibpath_var=no
9025 case $host_vendor in
9027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9028 hardcode_direct=yes # is this really true???
9031 ## LD is ld it makes a PLAMLIB
9032 ## CC just makes a GrossModule.
9033 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9034 reload_cmds='$CC -r -o $output$reload_objs'
9038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9039 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9042 runpath_var='LD_RUN_PATH'
9043 hardcode_shlibpath_var=no
9047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048 hardcode_shlibpath_var=no
9049 export_dynamic_flag_spec='-Bexport'
9053 if test -d /usr/nec; then
9054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055 hardcode_shlibpath_var=no
9056 runpath_var=LD_RUN_PATH
9057 hardcode_runpath_var=yes
9063 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_shlibpath_var=no
9067 hardcode_runpath_var=yes
9068 runpath_var=LD_RUN_PATH
9071 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9072 no_undefined_flag='${wl}-z ${wl}text'
9073 if test "$GCC" = yes; then
9074 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9078 runpath_var='LD_RUN_PATH'
9079 hardcode_shlibpath_var=no
9083 no_undefined_flag=' -z text'
9084 # $CC -shared without GNU ld will not create a library from C++
9085 # object files and a static libstdc++, better avoid it by now
9086 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9087 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9088 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9089 hardcode_libdir_flag_spec=
9090 hardcode_shlibpath_var=no
9091 runpath_var='LD_RUN_PATH'
9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_shlibpath_var=no
9106 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9107 echo "${ECHO_T}$ld_shlibs" >&6
9108 test "$ld_shlibs" = no && can_build_shared=no
9110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9111 if test "$GCC" = yes; then
9112 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9116 # Do we need to explicitly link libc?
9118 case "x$archive_cmds_need_lc" in
9120 # Assume -lc should be added
9121 archive_cmds_need_lc=yes
9123 if test "$enable_shared" = yes && test "$GCC" = yes; then
9124 case $archive_cmds in
9126 # FIXME: we may have to deal with multi-command sequences.
9129 # Test whether the compiler implicitly links with -lc since on some
9130 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9131 # to ld, don't add -lc before -lgcc.
9132 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9133 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9138 (eval $ac_compile) 2>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } 2>conftest.err; then
9144 libobjs=conftest.$ac_objext
9146 wl=$lt_prog_compiler_wl
9152 lt_save_allow_undefined_flag=$allow_undefined_flag
9153 allow_undefined_flag=
9154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9155 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }
9160 archive_cmds_need_lc=no
9162 archive_cmds_need_lc=yes
9164 allow_undefined_flag=$lt_save_allow_undefined_flag
9166 cat conftest.err 1>&5
9169 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9170 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9177 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9180 libname_spec='lib$name'
9188 shlibpath_overrides_runpath=unknown
9190 dynamic_linker="$host_os ld.so"
9191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9192 if test "$GCC" = yes; then
9193 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9194 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9195 # if the path contains ";" then we assume it to be the separator
9196 # otherwise default to the standard path separator (i.e. ":") - it is
9197 # assumed that no part of a normal pathname contains ";" but that should
9198 # okay in the real world where ";" in dirpaths is itself problematic.
9199 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9201 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9206 need_lib_prefix=unknown
9207 hardcode_into_libs=no
9209 # when you set need_version to no, make sure it does not cause -set_version
9210 # flags to be left without arguments
9211 need_version=unknown
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217 shlibpath_var=LIBPATH
9219 # AIX 3 has no versioning support, so we append a major version to the name.
9220 soname_spec='${libname}${release}${shared_ext}$major'
9227 hardcode_into_libs=yes
9228 if test "$host_cpu" = ia64; then
9229 # AIX 5 supports IA64
9230 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231 shlibpath_var=LD_LIBRARY_PATH
9233 # With GCC up to 2.95.x, collect2 would create an import file
9234 # for dependence libraries. The import file would start with
9235 # the line `#! .'. This would cause the generated library to
9236 # depend on `.', always an invalid library. This was fixed in
9237 # development snapshots of GCC prior to 3.0.
9239 aix4 | aix4.[01] | aix4.[01].*)
9240 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9242 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9249 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250 # soname into executable. Probably we can add versioning support to
9251 # collect2, so additional links can be useful in future.
9252 if test "$aix_use_runtimelinking" = yes; then
9253 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254 # instead of lib<name>.a to let people know that these are not
9255 # typical AIX shared libraries.
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258 # We preserve .a as extension for shared libraries through AIX4.2
9259 # and later when we are not doing run time linking.
9260 library_names_spec='${libname}${release}.a $libname.a'
9261 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LIBPATH
9268 library_names_spec='$libname.ixlibrary $libname.a'
9269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270 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'
9274 library_names_spec='${libname}${shared_ext}'
9275 dynamic_linker="$host_os ld.so"
9276 shlibpath_var=LIBRARY_PATH
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9285 shlibpath_var=LD_LIBRARY_PATH
9286 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9287 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9288 # the default ld.so.conf also contains /usr/contrib/lib and
9289 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9290 # libtool to hard-code these into programs
9293 cygwin* | mingw* | pw32*)
9294 version_type=windows
9299 case $GCC,$host_os in
9300 yes,cygwin* | yes,mingw* | yes,pw32*)
9301 library_names_spec='$libname.dll.a'
9302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9303 postinstall_cmds='base_file=`basename \${file}`~
9304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9305 dldir=$destdir/`dirname \$dlpath`~
9306 test -d \$dldir || mkdir -p \$dldir~
9307 $install_prog $dir/$dlname \$dldir/$dlname'
9308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9309 dlpath=$dir/\$dldll~
9311 shlibpath_overrides_runpath=yes
9315 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9316 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9317 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9320 # MinGW DLLs use traditional 'lib' prefix
9321 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9322 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9323 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9324 # It is most probably a Windows format PATH printed by
9325 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9326 # path with ; separators, and with drive letters. We can handle the
9327 # drive letters (cygwin fileutils understands them), so leave them,
9328 # especially as we might pass files found there to a mingw objdump,
9329 # which wouldn't understand a cygwinified path. Ahh.
9330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9332 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9336 # pw32 DLLs use 'pw' prefix rather than 'lib'
9337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9343 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9346 dynamic_linker='Win32 ld.exe'
9347 # FIXME: first we should search . and the directory the executable is in
9351 darwin* | rhapsody*)
9352 dynamic_linker="$host_os dyld"
9356 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9357 soname_spec='${libname}${release}${major}$shared_ext'
9358 shlibpath_overrides_runpath=yes
9359 shlibpath_var=DYLD_LIBRARY_PATH
9360 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
9361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9362 if test "$GCC" = yes; then
9363 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9365 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=no
9391 hardcode_into_libs=yes
9392 dynamic_linker='GNU ld.so'
9396 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9397 version_type=freebsd-$objformat
9398 case $version_type in
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9409 shlibpath_var=LD_LIBRARY_PATH
9412 shlibpath_overrides_runpath=yes
9414 freebsd3.01* | freebsdelf3.01*)
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9419 shlibpath_overrides_runpath=no
9420 hardcode_into_libs=yes
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 hardcode_into_libs=yes
9435 hpux9* | hpux10* | hpux11*)
9436 # Give a soname corresponding to the major version so that dld.sl refuses to
9437 # link against other versions.
9444 hardcode_into_libs=yes
9445 dynamic_linker="$host_os dld.so"
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 if test "X$HPUX_IA64_MODE" = X32; then
9451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9459 hardcode_into_libs=yes
9460 dynamic_linker="$host_os dld.sl"
9461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 soname_spec='${libname}${release}${shared_ext}$major'
9465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9470 dynamic_linker="$host_os dld.sl"
9471 shlibpath_var=SHLIB_PATH
9472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9478 postinstall_cmds='chmod 555 $lib'
9481 irix5* | irix6* | nonstopux*)
9483 nonstopux*) version_type=nonstopux ;;
9485 if test "$lt_cv_prog_gnu_ld" = yes; then
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9496 irix5* | nonstopux*)
9500 case $LD in # libtool.m4 will add one of these switches to LD
9501 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9502 libsuff= shlibsuff= libmagic=32-bit;;
9503 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9504 libsuff=32 shlibsuff=N32 libmagic=N32;;
9505 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9506 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9507 *) libsuff= shlibsuff= libmagic=never-match;;
9511 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9512 shlibpath_overrides_runpath=no
9513 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9515 hardcode_into_libs=yes
9518 # No shared lib support for Linux oldld, aout, or coff.
9519 linux*oldld* | linux*aout* | linux*coff*)
9523 # This must be Linux ELF.
9528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec='${libname}${release}${shared_ext}$major'
9530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=no
9533 # This implies no fast_install, which is unacceptable.
9534 # Some rework will be needed to allow for fast_install
9535 # before this can be enabled.
9536 hardcode_into_libs=yes
9538 # Append ld.so.conf contents to the search path
9539 if test -f /etc/ld.so.conf; then
9540 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
9541 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
9544 # We used to test for /lib/ld.so.1 and disable shared libraries on
9545 # powerpc, because MkLinux only supported shared libraries with the
9546 # GNU dynamic linker. Since this was broken with cross compilers,
9547 # most powerpc-linux boxes support dynamic linking these days and
9548 # people can always --disable-shared, the test was removed, and we
9549 # assume the GNU/Linux dynamic linker is in use.
9550 dynamic_linker='GNU/Linux ld.so'
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 shlibpath_var=LD_LIBRARY_PATH
9560 shlibpath_overrides_runpath=no
9561 hardcode_into_libs=yes
9562 dynamic_linker='GNU ld.so'
9569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9572 dynamic_linker='NetBSD (a.out) ld.so'
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 dynamic_linker='NetBSD ld.elf_so'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 shlibpath_overrides_runpath=yes
9580 hardcode_into_libs=yes
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 shlibpath_var=LD_LIBRARY_PATH
9597 shlibpath_overrides_runpath=yes
9604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9609 openbsd2.[89] | openbsd2.[89].*)
9610 shlibpath_overrides_runpath=no
9613 shlibpath_overrides_runpath=yes
9617 shlibpath_overrides_runpath=yes
9622 libname_spec='$name'
9625 library_names_spec='$libname${shared_ext} $libname.a'
9626 dynamic_linker='OS/2 ld.exe'
9627 shlibpath_var=LIBPATH
9630 osf3* | osf4* | osf5*)
9634 soname_spec='${libname}${release}${shared_ext}$major'
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9643 soname_spec='${libname}${release}${shared_ext}$major'
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 shlibpath_var=LD_LIBRARY_PATH
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9655 shlibpath_overrides_runpath=yes
9656 hardcode_into_libs=yes
9657 # ldd complains unless libraries are executable
9658 postinstall_cmds='chmod +x $lib'
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes
9667 if test "$with_gnu_ld" = yes; then
9673 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 case $host_vendor in
9680 shlibpath_overrides_runpath=no
9682 export_dynamic_flag_spec='${wl}-Blargedynsym'
9683 runpath_var=LD_RUN_PATH
9691 shlibpath_overrides_runpath=no
9692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9698 if test -d /usr/nec ;then
9700 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9701 soname_spec='$libname${shared_ext}.$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709 soname_spec='${libname}${release}${shared_ext}$major'
9710 shlibpath_var=LD_LIBRARY_PATH
9717 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9718 echo "${ECHO_T}$dynamic_linker" >&6
9719 test "$dynamic_linker" = no && can_build_shared=no
9721 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9722 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9724 if test -n "$hardcode_libdir_flag_spec" || \
9725 test -n "$runpath_var " || \
9726 test "X$hardcode_automatic"="Xyes" ; then
9728 # We can hardcode non-existant directories.
9729 if test "$hardcode_direct" != no &&
9730 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9731 # have to relink, otherwise we might link with an installed library
9732 # when we should be linking with a yet-to-be-installed one
9733 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9734 test "$hardcode_minus_L" != no; then
9735 # Linking always hardcodes the temporary library directory.
9736 hardcode_action=relink
9738 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9739 hardcode_action=immediate
9742 # We cannot hardcode anything, or else we can only hardcode existing
9744 hardcode_action=unsupported
9746 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9747 echo "${ECHO_T}$hardcode_action" >&6
9749 if test "$hardcode_action" = relink; then
9750 # Fast installation is not supported
9751 enable_fast_install=no
9752 elif test "$shlibpath_overrides_runpath" = yes ||
9753 test "$enable_shared" = no; then
9754 # Fast installation is not necessary
9755 enable_fast_install=needless
9760 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9761 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9762 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9763 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9764 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9765 echo "$as_me:$LINENO: result: yes" >&5
9766 echo "${ECHO_T}yes" >&6
9768 # FIXME - insert some real tests, host_os isn't really good enough
9771 if test -n "$STRIP" ; then
9772 striplib="$STRIP -x"
9773 echo "$as_me:$LINENO: result: yes" >&5
9774 echo "${ECHO_T}yes" >&6
9776 echo "$as_me:$LINENO: result: no" >&5
9777 echo "${ECHO_T}no" >&6
9781 echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9787 if test "x$enable_dlopen" != xyes; then
9788 enable_dlopen=unknown
9789 enable_dlopen_self=unknown
9790 enable_dlopen_self_static=unknown
9797 lt_cv_dlopen="load_add_on"
9799 lt_cv_dlopen_self=yes
9803 lt_cv_dlopen="LoadLibrary"
9808 lt_cv_dlopen="dlopen"
9813 # if libdl is installed we need to link against it
9814 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9815 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9816 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9817 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 ac_check_lib_save_LIBS=$LIBS
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9828 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9845 (eval $ac_link) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest$ac_exeext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_lib_dl_dlopen=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_lib_dl_dlopen=no
9872 rm -f conftest.err conftest.$ac_objext \
9873 conftest$ac_exeext conftest.$ac_ext
9874 LIBS=$ac_check_lib_save_LIBS
9876 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9877 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9878 if test $ac_cv_lib_dl_dlopen = yes; then
9879 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9884 lt_cv_dlopen_self=yes
9891 echo "$as_me:$LINENO: checking for shl_load" >&5
9892 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9893 if test "${ac_cv_func_shl_load+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.$ac_ext <<_ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define shl_load innocuous_shl_load
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char shl_load (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9912 # include <limits.h>
9914 # include <assert.h>
9919 /* Override any gcc2 internal prototype to avoid an error. */
9924 /* We use char because int might match the return type of a gcc2
9925 builtin and then its argument prototype would still apply. */
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9933 char (*f) () = shl_load;
9942 return f != shl_load;
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>conftest.er1
9951 grep -v '^ *+' conftest.er1 >conftest.err
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } &&
9956 { ac_try='test -z "$ac_c_werror_flag"
9957 || test ! -s conftest.err'
9958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; } &&
9963 { ac_try='test -s conftest$ac_exeext'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; }; then
9969 ac_cv_func_shl_load=yes
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9974 ac_cv_func_shl_load=no
9976 rm -f conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9979 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9980 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9981 if test $ac_cv_func_shl_load = yes; then
9982 lt_cv_dlopen="shl_load"
9984 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9985 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9986 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 ac_check_lib_save_LIBS=$LIBS
9991 cat >conftest.$ac_ext <<_ACEOF
9994 cat confdefs.h >>conftest.$ac_ext
9995 cat >>conftest.$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015 (eval $ac_link) 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10019 cat conftest.err >&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -z "$ac_c_werror_flag"
10023 || test ! -s conftest.err'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; } &&
10029 { ac_try='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 ac_cv_lib_dld_shl_load=yes
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ac_cv_lib_dld_shl_load=no
10042 rm -f conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_lib_save_LIBS
10046 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10047 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10048 if test $ac_cv_lib_dld_shl_load = yes; then
10049 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10051 echo "$as_me:$LINENO: checking for dlopen" >&5
10052 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10053 if test "${ac_cv_func_dlopen+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10056 cat >conftest.$ac_ext <<_ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10062 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10064 #define dlopen innocuous_dlopen
10066 /* System header to define __stub macros and hopefully few prototypes,
10067 which can conflict with char dlopen (); below.
10068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10069 <limits.h> exists even on freestanding compilers. */
10072 # include <limits.h>
10074 # include <assert.h>
10079 /* Override any gcc2 internal prototype to avoid an error. */
10084 /* We use char because int might match the return type of a gcc2
10085 builtin and then its argument prototype would still apply. */
10087 /* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
10090 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10093 char (*f) () = dlopen;
10102 return f != dlopen;
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_func_dlopen=yes
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10134 ac_cv_func_dlopen=no
10136 rm -f conftest.err conftest.$ac_objext \
10137 conftest$ac_exeext conftest.$ac_ext
10139 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10140 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10141 if test $ac_cv_func_dlopen = yes; then
10142 lt_cv_dlopen="dlopen"
10144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_check_lib_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10158 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_lib_dl_dlopen=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_cv_lib_dl_dlopen=no
10202 rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10208 if test $ac_cv_lib_dl_dlopen = yes; then
10209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10211 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10212 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10213 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lsvld $LIBS"
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10225 /* Override any gcc2 internal prototype to avoid an error. */
10229 /* We use char because int might match the return type of a gcc2
10230 builtin and then its argument prototype would still apply. */
10240 rm -f conftest.$ac_objext conftest$ac_exeext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242 (eval $ac_link) 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest$ac_exeext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_lib_svld_dlopen=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 ac_cv_lib_svld_dlopen=no
10269 rm -f conftest.err conftest.$ac_objext \
10270 conftest$ac_exeext conftest.$ac_ext
10271 LIBS=$ac_check_lib_save_LIBS
10273 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10274 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10275 if test $ac_cv_lib_svld_dlopen = yes; then
10276 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10278 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10279 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10280 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS=$LIBS
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10292 /* Override any gcc2 internal prototype to avoid an error. */
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_dld_dld_link=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_dld_dld_link=no
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10341 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10342 if test $ac_cv_lib_dld_dld_link = yes; then
10343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10364 if test "x$lt_cv_dlopen" != xno; then
10370 case $lt_cv_dlopen in
10372 save_CPPFLAGS="$CPPFLAGS"
10373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10375 save_LDFLAGS="$LDFLAGS"
10376 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10379 LIBS="$lt_cv_dlopen_libs $LIBS"
10381 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10382 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10383 if test "${lt_cv_dlopen_self+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10386 if test "$cross_compiling" = yes; then :
10387 lt_cv_dlopen_self=cross
10389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10390 lt_status=$lt_dlunknown
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10392 "configure"
10393 #include "confdefs.h"
10402 # define LT_DLGLOBAL RTLD_GLOBAL
10405 # define LT_DLGLOBAL DL_GLOBAL
10407 # define LT_DLGLOBAL 0
10411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10412 find out it does not work in some platform. */
10413 #ifndef LT_DLLAZY_OR_NOW
10415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10418 # define LT_DLLAZY_OR_NOW DL_LAZY
10421 # define LT_DLLAZY_OR_NOW RTLD_NOW
10424 # define LT_DLLAZY_OR_NOW DL_NOW
10426 # define LT_DLLAZY_OR_NOW 0
10434 extern "C" void exit (int);
10437 void fnord() { int i=42;}
10440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10441 int status = $lt_dlunknown;
10445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10447 /* dlclose (self); */
10453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10454 (eval $ac_link) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10458 (./conftest; exit; ) 2>/dev/null
10460 case x$lt_status in
10461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10463 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10466 # compilation failed
10467 lt_cv_dlopen_self=no
10474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10475 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10477 if test "x$lt_cv_dlopen_self" = xyes; then
10478 LDFLAGS="$LDFLAGS $link_static_flag"
10479 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10480 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10481 if test "${lt_cv_dlopen_self_static+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 if test "$cross_compiling" = yes; then :
10485 lt_cv_dlopen_self_static=cross
10487 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10488 lt_status=$lt_dlunknown
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10490 "configure"
10491 #include "confdefs.h"
10500 # define LT_DLGLOBAL RTLD_GLOBAL
10503 # define LT_DLGLOBAL DL_GLOBAL
10505 # define LT_DLGLOBAL 0
10509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10510 find out it does not work in some platform. */
10511 #ifndef LT_DLLAZY_OR_NOW
10513 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10516 # define LT_DLLAZY_OR_NOW DL_LAZY
10519 # define LT_DLLAZY_OR_NOW RTLD_NOW
10522 # define LT_DLLAZY_OR_NOW DL_NOW
10524 # define LT_DLLAZY_OR_NOW 0
10532 extern "C" void exit (int);
10535 void fnord() { int i=42;}
10538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10539 int status = $lt_dlunknown;
10543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10544 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10545 /* dlclose (self); */
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556 (./conftest; exit; ) 2>/dev/null
10558 case x$lt_status in
10559 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10560 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10561 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10564 # compilation failed
10565 lt_cv_dlopen_self_static=no
10572 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10573 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10576 CPPFLAGS="$save_CPPFLAGS"
10577 LDFLAGS="$save_LDFLAGS"
10582 case $lt_cv_dlopen_self in
10583 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10584 *) enable_dlopen_self=unknown ;;
10587 case $lt_cv_dlopen_self_static in
10588 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10589 *) enable_dlopen_self_static=unknown ;;
10594 # Report which librarie types wil actually be built
10595 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10596 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10597 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10598 echo "${ECHO_T}$can_build_shared" >&6
10600 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10601 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10602 test "$can_build_shared" = "no" && enable_shared=no
10604 # On AIX, shared libraries and static libraries use the same namespace, and
10605 # are all built from PIC.
10608 test "$enable_shared" = yes && enable_static=no
10609 if test -n "$RANLIB"; then
10610 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10611 postinstall_cmds='$RANLIB $lib'
10616 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10617 test "$enable_shared" = yes && enable_static=no
10620 darwin* | rhapsody*)
10621 if test "$GCC" = yes; then
10622 archive_cmds_need_lc=no
10624 rhapsody* | darwin1.[012])
10625 allow_undefined_flag='-undefined suppress'
10628 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10629 allow_undefined_flag='-flat_namespace -undefined suppress'
10631 case ${MACOSX_DEPLOYMENT_TARGET} in
10633 allow_undefined_flag='-flat_namespace -undefined suppress'
10636 allow_undefined_flag='-undefined dynamic_lookup'
10642 output_verbose_link_cmd='echo'
10643 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10644 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10645 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10646 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10647 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}'
10649 hardcode_automatic=yes
10650 hardcode_shlibpath_var=unsupported
10651 whole_archive_flag_spec='-all_load $convenience'
10652 link_all_deplibs=yes
10658 echo "$as_me:$LINENO: result: $enable_shared" >&5
10659 echo "${ECHO_T}$enable_shared" >&6
10661 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10662 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10663 # Make sure either enable_shared or enable_static is yes.
10664 test "$enable_shared" = yes || enable_static=yes
10665 echo "$as_me:$LINENO: result: $enable_static" >&5
10666 echo "${ECHO_T}$enable_static" >&6
10668 # The else clause should only fire when bootstrapping the
10669 # libtool distribution, otherwise you forgot to ship ltmain.sh
10670 # with your package, and you will get complaints that there are
10671 # no rules to generate ltmain.sh.
10672 if test -f "$ltmain"; then
10673 # See if we are running on zsh, and set the options which allow our commands through
10674 # without removal of \ escapes.
10675 if test -n "${ZSH_VERSION+set}" ; then
10676 setopt NO_GLOB_SUBST
10678 # Now quote all the things that may contain metacharacters while being
10679 # careful not to overquote the AC_SUBSTed values. We take copies of the
10680 # variables and quote the copies for generation of the libtool script.
10681 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10683 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10684 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10685 deplibs_check_method reload_flag reload_cmds need_locks \
10686 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10687 lt_cv_sys_global_symbol_to_c_name_address \
10688 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10689 old_postinstall_cmds old_postuninstall_cmds \
10693 lt_prog_compiler_wl \
10694 lt_prog_compiler_pic \
10695 lt_prog_compiler_static \
10696 lt_prog_compiler_no_builtin_flag \
10697 export_dynamic_flag_spec \
10698 thread_safe_flag_spec \
10699 whole_archive_flag_spec \
10700 enable_shared_with_static_runtimes \
10702 old_archive_from_new_cmds \
10707 compiler_lib_search_path \
10709 archive_expsym_cmds \
10711 postuninstall_cmds \
10712 old_archive_from_expsyms_cmds \
10713 allow_undefined_flag \
10714 no_undefined_flag \
10715 export_symbols_cmds \
10716 hardcode_libdir_flag_spec \
10717 hardcode_libdir_flag_spec_ld \
10718 hardcode_libdir_separator \
10719 hardcode_automatic \
10721 module_expsym_cmds \
10722 lt_cv_prog_compiler_c_o \
10724 include_expsyms; do
10727 old_archive_cmds | \
10728 old_archive_from_new_cmds | \
10730 archive_expsym_cmds | \
10732 module_expsym_cmds | \
10733 old_archive_from_expsyms_cmds | \
10734 export_symbols_cmds | \
10735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10736 postinstall_cmds | postuninstall_cmds | \
10737 old_postinstall_cmds | old_postuninstall_cmds | \
10738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10739 # Double-quote double-evaled strings.
10740 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10749 *'\$0 --fallback-echo"')
10750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10754 cfgfile="${ofile}T"
10755 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10757 { echo "$as_me:$LINENO: creating $ofile" >&5
10758 echo "$as_me: creating $ofile" >&6;}
10760 cat <<__EOF__ >> "$cfgfile"
10763 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10764 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10765 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10767 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10768 # Free Software Foundation, Inc.
10770 # This file is part of GNU Libtool:
10771 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10773 # This program is free software; you can redistribute it and/or modify
10774 # it under the terms of the GNU General Public License as published by
10775 # the Free Software Foundation; either version 2 of the License, or
10776 # (at your option) any later version.
10778 # This program is distributed in the hope that it will be useful, but
10779 # WITHOUT ANY WARRANTY; without even the implied warranty of
10780 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10781 # General Public License for more details.
10783 # You should have received a copy of the GNU General Public License
10784 # along with this program; if not, write to the Free Software
10785 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10787 # As a special exception to the GNU General Public License, if you
10788 # distribute this file as part of a program that contains a
10789 # configuration script generated by Autoconf, you may include it under
10790 # the same distribution terms that you use for the rest of that program.
10792 # A sed program that does not truncate output.
10795 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10796 Xsed="$SED -e s/^X//"
10798 # The HP-UX ksh and POSIX shell print the target directory to stdout
10799 # if CDPATH is set.
10800 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
10802 # The names of the tagged configurations supported by this script.
10805 # ### BEGIN LIBTOOL CONFIG
10807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10809 # Shell to use when invoking shell scripts.
10812 # Whether or not to build shared libraries.
10813 build_libtool_libs=$enable_shared
10815 # Whether or not to build static libraries.
10816 build_old_libs=$enable_static
10818 # Whether or not to add -lc for building shared libraries.
10819 build_libtool_need_lc=$archive_cmds_need_lc
10821 # Whether or not to disallow shared libs when runtime libs are static
10822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10824 # Whether or not to optimize for fast installation.
10825 fast_install=$enable_fast_install
10828 host_alias=$host_alias
10831 # An echo program that does not interpret backslashes.
10836 AR_FLAGS=$lt_AR_FLAGS
10841 # A language-specific compiler.
10844 # Is the compiler the GNU C compiler?
10850 # The linker used to build libraries.
10853 # Whether we need hard or soft links.
10856 # A BSD-compatible nm program.
10859 # A symbol stripping program
10862 # Used to examine libraries when file_magic_cmd begins "file"
10863 MAGIC_CMD=$MAGIC_CMD
10865 # Used on cygwin: DLL creation program.
10868 # Used on cygwin: object dumper.
10871 # Used on cygwin: assembler.
10874 # The name of the directory that contains temporary libtool files.
10877 # How to create reloadable object files.
10878 reload_flag=$lt_reload_flag
10879 reload_cmds=$lt_reload_cmds
10881 # How to pass a linker flag through the compiler.
10882 wl=$lt_lt_prog_compiler_wl
10884 # Object file suffix (normally "o").
10885 objext="$ac_objext"
10887 # Old archive suffix (normally "a").
10890 # Shared library suffix (normally ".so").
10893 # Executable file suffix (normally "").
10896 # Additional compiler flags for building library objects.
10897 pic_flag=$lt_lt_prog_compiler_pic
10900 # What is the maximum length of a command?
10901 max_cmd_len=$lt_cv_sys_max_cmd_len
10903 # Does compiler simultaneously support -c and -o options?
10904 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10906 # Must we lock files when doing compilation ?
10907 need_locks=$lt_need_locks
10909 # Do we need the lib prefix for modules?
10910 need_lib_prefix=$need_lib_prefix
10912 # Do we need a version for libraries?
10913 need_version=$need_version
10915 # Whether dlopen is supported.
10916 dlopen_support=$enable_dlopen
10918 # Whether dlopen of programs is supported.
10919 dlopen_self=$enable_dlopen_self
10921 # Whether dlopen of statically linked programs is supported.
10922 dlopen_self_static=$enable_dlopen_self_static
10924 # Compiler flag to prevent dynamic linking.
10925 link_static_flag=$lt_lt_prog_compiler_static
10927 # Compiler flag to turn off builtin functions.
10928 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10930 # Compiler flag to allow reflexive dlopens.
10931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10933 # Compiler flag to generate shared objects directly from archives.
10934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10936 # Compiler flag to generate thread-safe objects.
10937 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10939 # Library versioning type.
10940 version_type=$version_type
10942 # Format of library name prefix.
10943 libname_spec=$lt_libname_spec
10945 # List of archive names. First name is the real one, the rest are links.
10946 # The last name is the one that the linker finds with -lNAME.
10947 library_names_spec=$lt_library_names_spec
10949 # The coded name of the library, if different from the real name.
10950 soname_spec=$lt_soname_spec
10952 # Commands used to build and install an old-style archive.
10954 old_archive_cmds=$lt_old_archive_cmds
10955 old_postinstall_cmds=$lt_old_postinstall_cmds
10956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10958 # Create an old-style archive from a shared archive.
10959 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10961 # Create a temporary old-style archive to link instead of a shared archive.
10962 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10964 # Commands used to build and install a shared archive.
10965 archive_cmds=$lt_archive_cmds
10966 archive_expsym_cmds=$lt_archive_expsym_cmds
10967 postinstall_cmds=$lt_postinstall_cmds
10968 postuninstall_cmds=$lt_postuninstall_cmds
10970 # Commands used to build a loadable module (assumed same as above if empty)
10971 module_cmds=$lt_module_cmds
10972 module_expsym_cmds=$lt_module_expsym_cmds
10974 # Commands to strip libraries.
10975 old_striplib=$lt_old_striplib
10976 striplib=$lt_striplib
10978 # Dependencies to place before the objects being linked to create a
10980 predep_objects=$lt_predep_objects
10982 # Dependencies to place after the objects being linked to create a
10984 postdep_objects=$lt_postdep_objects
10986 # Dependencies to place before the objects being linked to create a
10988 predeps=$lt_predeps
10990 # Dependencies to place after the objects being linked to create a
10992 postdeps=$lt_postdeps
10994 # The library search path used internally by the compiler when linking
10995 # a shared library.
10996 compiler_lib_search_path=$lt_compiler_lib_search_path
10998 # Method to check whether dependent libraries are shared objects.
10999 deplibs_check_method=$lt_deplibs_check_method
11001 # Command to use when deplibs_check_method == file_magic.
11002 file_magic_cmd=$lt_file_magic_cmd
11004 # Flag that allows shared libraries with undefined symbols to be built.
11005 allow_undefined_flag=$lt_allow_undefined_flag
11007 # Flag that forces no undefined symbols.
11008 no_undefined_flag=$lt_no_undefined_flag
11010 # Commands used to finish a libtool library installation in a directory.
11011 finish_cmds=$lt_finish_cmds
11013 # Same as above, but a single script fragment to be evaled but not shown.
11014 finish_eval=$lt_finish_eval
11016 # Take the output of nm and produce a listing of raw symbols and C names.
11017 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11019 # Transform the output of nm in a proper C declaration
11020 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11022 # Transform the output of nm in a C name address pair
11023 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11025 # This is the shared library runtime path variable.
11026 runpath_var=$runpath_var
11028 # This is the shared library path variable.
11029 shlibpath_var=$shlibpath_var
11031 # Is shlibpath searched before the hard-coded library search path?
11032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11034 # How to hardcode a shared library path into an executable.
11035 hardcode_action=$hardcode_action
11037 # Whether we should hardcode library paths into libraries.
11038 hardcode_into_libs=$hardcode_into_libs
11040 # Flag to hardcode \$libdir into a binary during linking.
11041 # This must work even if \$libdir does not exist.
11042 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11044 # If ld is used when linking, flag to hardcode \$libdir into
11045 # a binary during linking. This must work even if \$libdir does
11047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11049 # Whether we need a single -rpath flag with a separated argument.
11050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11052 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11053 # resulting binary.
11054 hardcode_direct=$hardcode_direct
11056 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11057 # resulting binary.
11058 hardcode_minus_L=$hardcode_minus_L
11060 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11061 # the resulting binary.
11062 hardcode_shlibpath_var=$hardcode_shlibpath_var
11064 # Set to yes if building a shared library automatically hardcodes DIR into the library
11065 # and all subsequent libraries and executables linked against it.
11066 hardcode_automatic=$hardcode_automatic
11068 # Variables whose values should be saved in libtool wrapper scripts and
11069 # restored at relink time.
11070 variables_saved_for_relink="$variables_saved_for_relink"
11072 # Whether libtool must link a program against all its dependency libraries.
11073 link_all_deplibs=$link_all_deplibs
11075 # Compile-time system search path for libraries
11076 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11078 # Run-time system search path for libraries
11079 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11081 # Fix the shell variable \$srcfile for the compiler.
11082 fix_srcfile_path="$fix_srcfile_path"
11084 # Set to yes if exported symbols are required.
11085 always_export_symbols=$always_export_symbols
11087 # The commands to list exported symbols.
11088 export_symbols_cmds=$lt_export_symbols_cmds
11090 # The commands to extract the exported symbol list from a shared archive.
11091 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11093 # Symbols that should not be listed in the preloaded symbols.
11094 exclude_expsyms=$lt_exclude_expsyms
11096 # Symbols that must always be exported.
11097 include_expsyms=$lt_include_expsyms
11099 # ### END LIBTOOL CONFIG
11106 cat <<\EOF >> "$cfgfile"
11108 # AIX sometimes has problems with the GCC collect2 program. For some
11109 # reason, if we set the COLLECT_NAMES environment variable, the problems
11110 # vanish in a puff of smoke.
11111 if test "X${COLLECT_NAMES+set}" != Xset; then
11113 export COLLECT_NAMES
11119 # We use sed instead of cat because bash on DJGPP gets confused if
11120 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11121 # text mode, it properly converts lines to CR/LF. This bash problem
11122 # is reportedly fixed, but why not run on old versions too?
11123 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11125 mv -f "$cfgfile" "$ofile" || \
11126 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11130 # If there is no Makefile yet, we rely on a make rule to execute
11131 # `config.status --recheck' to rerun these tests and create the
11132 # libtool script then.
11133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11134 if test -f "$ltmain_in"; then
11135 test -f Makefile && make "$ltmain"
11141 ac_cpp='$CPP $CPPFLAGS'
11142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11149 # Check whether --with-tags or --without-tags was given.
11150 if test "${with_tags+set}" = set; then
11151 withval="$with_tags"
11152 tagnames="$withval"
11155 if test -f "$ltmain" && test -n "$tagnames"; then
11156 if test ! -f "${ofile}"; then
11157 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11158 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11161 if test -z "$LTCC"; then
11162 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11163 if test -z "$LTCC"; then
11164 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11165 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11168 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11172 # Extract list of available tagged configurations in $ofile.
11173 # Note that this assumes the entire list is on one line.
11174 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11176 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11177 for tagname in $tagnames; do
11179 # Check whether tagname contains only valid characters
11180 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11182 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11183 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11184 { (exit 1); exit 1; }; }
11188 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11190 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11191 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11192 { (exit 1); exit 1; }; }
11195 # Update the list of available tags.
11196 if test -n "$tagname"; then
11197 echo appending configuration tag \"$tagname\" to $ofile
11201 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11203 ac_cpp='$CXXCPP $CPPFLAGS'
11204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11211 archive_cmds_need_lc_CXX=no
11212 allow_undefined_flag_CXX=
11213 always_export_symbols_CXX=no
11214 archive_expsym_cmds_CXX=
11215 export_dynamic_flag_spec_CXX=
11216 hardcode_direct_CXX=no
11217 hardcode_libdir_flag_spec_CXX=
11218 hardcode_libdir_flag_spec_ld_CXX=
11219 hardcode_libdir_separator_CXX=
11220 hardcode_minus_L_CXX=no
11221 hardcode_automatic_CXX=no
11223 module_expsym_cmds_CXX=
11224 link_all_deplibs_CXX=unknown
11225 old_archive_cmds_CXX=$old_archive_cmds
11226 no_undefined_flag_CXX=
11227 whole_archive_flag_spec_CXX=
11228 enable_shared_with_static_runtimes_CXX=no
11230 # Dependencies to place before and after the object being linked:
11231 predep_objects_CXX=
11232 postdep_objects_CXX=
11235 compiler_lib_search_path_CXX=
11237 # Source file extension for C++ test sources.
11240 # Object file extension for compiled C++ test sources.
11244 # Code to be used in simple compile tests
11245 lt_simple_compile_test_code="int some_variable = 0;\n"
11247 # Code to be used in simple link tests
11248 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11250 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11252 # If no C compiler was specified, use CC.
11255 # Allow CC to be a program name with arguments.
11259 # Allow CC to be a program name with arguments.
11264 lt_save_with_gnu_ld=$with_gnu_ld
11265 lt_save_path_LD=$lt_cv_path_LD
11266 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11267 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11269 unset lt_cv_prog_gnu_ld
11271 if test -n "${lt_cv_path_LDCXX+set}"; then
11272 lt_cv_path_LD=$lt_cv_path_LDCXX
11274 unset lt_cv_path_LD
11276 test -z "${LDCXX+set}" || LD=$LDCXX
11280 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11282 # We don't want -fno-exception wen compiling C++ code, so set the
11283 # no_builtin_flag separately
11284 if test "$GXX" = yes; then
11285 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11287 lt_prog_compiler_no_builtin_flag_CXX=
11290 if test "$GXX" = yes; then
11291 # Set up default GNU C++ configuration
11294 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11295 if test "${with_gnu_ld+set}" = set; then
11296 withval="$with_gnu_ld"
11297 test "$withval" = no || with_gnu_ld=yes
11302 if test "$GCC" = yes; then
11303 # Check if gcc -print-prog-name=ld gives a path.
11304 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11305 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11308 # gcc leaves a trailing carriage return which upsets mingw
11309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11314 # Accept absolute paths.
11316 re_direlt='/[^/][^/]*/\.\./'
11317 # Canonicalize the pathname of ld
11318 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11319 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11320 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11322 test -z "$LD" && LD="$ac_prog"
11325 # If it fails, then pretend we aren't using GCC.
11329 # If it is relative, then search for the first ld in PATH.
11330 with_gnu_ld=unknown
11333 elif test "$with_gnu_ld" = yes; then
11334 echo "$as_me:$LINENO: checking for GNU ld" >&5
11335 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11337 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11338 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11340 if test "${lt_cv_path_LD+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 if test -z "$LD"; then
11344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11345 for ac_dir in $PATH; do
11347 test -z "$ac_dir" && ac_dir=.
11348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11349 lt_cv_path_LD="$ac_dir/$ac_prog"
11350 # Check to see if the program is GNU ld. I'd rather use --version,
11351 # but apparently some GNU ld's only accept -v.
11352 # Break only if it was the GNU/non-GNU ld that we prefer.
11353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11354 *GNU* | *'with BFD'*)
11355 test "$with_gnu_ld" != no && break
11358 test "$with_gnu_ld" != yes && break
11365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11369 LD="$lt_cv_path_LD"
11370 if test -n "$LD"; then
11371 echo "$as_me:$LINENO: result: $LD" >&5
11372 echo "${ECHO_T}$LD" >&6
11374 echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6
11377 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11378 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11379 { (exit 1); exit 1; }; }
11380 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11381 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11382 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11386 case `$LD -v 2>&1 </dev/null` in
11387 *GNU* | *'with BFD'*)
11388 lt_cv_prog_gnu_ld=yes
11391 lt_cv_prog_gnu_ld=no
11395 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11396 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11397 with_gnu_ld=$lt_cv_prog_gnu_ld
11401 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11402 # archiving commands below assume that GNU ld is being used.
11403 if test "$with_gnu_ld" = yes; then
11404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11405 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'
11407 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11408 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410 # If archive_cmds runs LD, not CC, wlarc should be empty
11411 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11412 # investigate it a little bit more. (MM)
11415 # ancient GNU ld didn't support --whole-archive et. al.
11416 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11417 grep 'no-whole-archive' > /dev/null; then
11418 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11420 whole_archive_flag_spec_CXX=
11426 # A generic and very simple default shared library creation
11427 # command for GNU C++ for the case where it uses the native
11428 # linker, instead of GNU ld. If possible, this setting should
11429 # overridden to take advantage of the native linker features on
11430 # the platform it is being used on.
11431 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11434 # Commands to make compiler produce verbose output that lists
11435 # what "hidden" libraries, object files and flags are used when
11436 # linking a shared library.
11437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11445 # PORTME: fill in a description of your system's C++ link characteristics
11446 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11447 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11451 # FIXME: insert proper C++ library support
11455 if test "$host_cpu" = ia64; then
11456 # On IA64, the linker does run time linking by default, so we don't
11457 # have to do anything special.
11458 aix_use_runtimelinking=no
11459 exp_sym_flag='-Bexport'
11462 aix_use_runtimelinking=no
11464 # Test if we are trying to use run time linking or normal
11465 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11466 # need to do runtime linking.
11467 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11468 for ld_flag in $LDFLAGS; do
11471 aix_use_runtimelinking=yes
11478 exp_sym_flag='-bexport'
11479 no_entry_flag='-bnoentry'
11482 # When large executables or shared objects are built, AIX ld can
11483 # have problems creating the table of contents. If linking a library
11484 # or program results in "error TOC overflow" add -mminimal-toc to
11485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11488 archive_cmds_CXX=''
11489 hardcode_direct_CXX=yes
11490 hardcode_libdir_separator_CXX=':'
11491 link_all_deplibs_CXX=yes
11493 if test "$GXX" = yes; then
11494 case $host_os in aix4.012|aix4.012.*)
11495 # We only want to do this on AIX 4.2 and lower, the check
11496 # below for broken collect2 doesn't work under 4.3+
11497 collect2name=`${CC} -print-prog-name=collect2`
11498 if test -f "$collect2name" && \
11499 strings "$collect2name" | grep resolve_lib_name >/dev/null
11501 # We have reworked collect2
11502 hardcode_direct_CXX=yes
11504 # We have old collect2
11505 hardcode_direct_CXX=unsupported
11506 # It fails to find uninstalled libraries when the uninstalled
11507 # path is not listed in the libpath. Setting hardcode_minus_L
11508 # to unsupported forces relinking
11509 hardcode_minus_L_CXX=yes
11510 hardcode_libdir_flag_spec_CXX='-L$libdir'
11511 hardcode_libdir_separator_CXX=
11514 shared_flag='-shared'
11517 if test "$host_cpu" = ia64; then
11518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11519 # chokes on -Wl,-G. The following line is correct:
11522 if test "$aix_use_runtimelinking" = yes; then
11523 shared_flag='${wl}-G'
11525 shared_flag='${wl}-bM:SRE'
11530 # It seems that -bexpall does not export symbols beginning with
11531 # underscore (_), so it is better to generate a list of symbols to export.
11532 always_export_symbols_CXX=yes
11533 if test "$aix_use_runtimelinking" = yes; then
11534 # Warning - without using the other runtime loading flags (-brtl),
11535 # -berok will link without error, but may produce a broken library.
11536 allow_undefined_flag_CXX='-berok'
11537 # Determine the default libpath from the value encoded in an empty executable.
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11553 rm -f conftest.$ac_objext conftest$ac_exeext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -z "$ac_cxx_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11578 # Check for a 64-bit object if we didn't find anything.
11579 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11586 rm -f conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11590 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11592 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11594 if test "$host_cpu" = ia64; then
11595 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11596 allow_undefined_flag_CXX="-z nodefs"
11597 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11599 # Determine the default libpath from the value encoded in an empty executable.
11600 cat >conftest.$ac_ext <<_ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>conftest.er1
11619 grep -v '^ *+' conftest.er1 >conftest.err
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_cxx_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11640 # Check for a 64-bit object if we didn't find anything.
11641 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11648 rm -f conftest.err conftest.$ac_objext \
11649 conftest$ac_exeext conftest.$ac_ext
11650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11652 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11653 # Warning - without using the other run time loading flags,
11654 # -berok will link without error, but may produce a broken library.
11655 no_undefined_flag_CXX=' ${wl}-bernotok'
11656 allow_undefined_flag_CXX=' ${wl}-berok'
11657 # -bexpall does not export symbols beginning with underscore (_)
11658 always_export_symbols_CXX=yes
11659 # Exported symbols can be pulled into shared objects from archives
11660 whole_archive_flag_spec_CXX=' '
11661 archive_cmds_need_lc_CXX=yes
11662 # This is similar to how AIX traditionally builds it's shared libraries.
11663 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11668 case $cc_basename in
11670 # FIXME: insert proper C++ library support
11676 cygwin* | mingw* | pw32*)
11677 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11678 # as there is no search path for DLLs.
11679 hardcode_libdir_flag_spec_CXX='-L$libdir'
11680 allow_undefined_flag_CXX=unsupported
11681 always_export_symbols_CXX=no
11682 enable_shared_with_static_runtimes_CXX=yes
11684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11685 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11686 # If the export-symbols file already is a .def file (1st line
11687 # is EXPORTS), use it as is; otherwise, prepend...
11688 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11689 cp $export_symbols $output_objdir/$soname.def;
11691 echo EXPORTS > $output_objdir/$soname.def;
11692 cat $export_symbols >> $output_objdir/$soname.def;
11694 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11700 darwin* | rhapsody*)
11701 if test "$GXX" = yes; then
11702 archive_cmds_need_lc_CXX=no
11704 rhapsody* | darwin1.[012])
11705 allow_undefined_flag_CXX='-undefined suppress'
11708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11709 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11711 case ${MACOSX_DEPLOYMENT_TARGET} in
11713 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
11716 allow_undefined_flag_CXX='-undefined dynamic_lookup'
11722 lt_int_apple_cc_single_mod=no
11723 output_verbose_link_cmd='echo'
11724 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11725 lt_int_apple_cc_single_mod=yes
11727 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11728 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11730 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
11732 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11735 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11736 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11738 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11740 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}'
11741 hardcode_direct_CXX=no
11742 hardcode_automatic_CXX=yes
11743 hardcode_shlibpath_var_CXX=unsupported
11744 whole_archive_flag_spec_CXX='-all_load $convenience'
11745 link_all_deplibs_CXX=yes
11752 case $cc_basename in
11754 # FIXME: insert proper C++ library support
11758 # Green Hills C++ Compiler
11759 # FIXME: insert proper C++ library support
11763 # FIXME: insert proper C++ library support
11769 # C++ shared libraries reported to be fairly broken before switch to ELF
11773 archive_cmds_need_lc_CXX=no
11775 freebsd* | kfreebsd*-gnu)
11776 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11784 hardcode_libdir_separator_CXX=:
11785 export_dynamic_flag_spec_CXX='${wl}-E'
11786 hardcode_direct_CXX=yes
11787 hardcode_minus_L_CXX=yes # Not in the search PATH,
11788 # but as the default
11789 # location of the library.
11791 case $cc_basename in
11793 # FIXME: insert proper C++ library support
11797 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'
11798 # Commands to make compiler produce verbose output that lists
11799 # what "hidden" libraries, object files and flags are used when
11800 # linking a shared library.
11802 # There doesn't appear to be a way to prevent this compiler from
11803 # explicitly linking system object files so we need to strip them
11804 # from the output so that they don't get included in the library
11806 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11809 if test "$GXX" = yes; then
11810 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'
11812 # FIXME: insert proper C++ library support
11819 if test $with_gnu_ld = no; then
11820 case "$host_cpu" in
11822 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11823 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11824 hardcode_libdir_separator_CXX=:
11827 hardcode_libdir_flag_spec_CXX='-L$libdir'
11830 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11831 hardcode_libdir_separator_CXX=:
11832 export_dynamic_flag_spec_CXX='${wl}-E'
11836 case "$host_cpu" in
11838 hardcode_direct_CXX=no
11839 hardcode_shlibpath_var_CXX=no
11842 hardcode_direct_CXX=no
11843 hardcode_shlibpath_var_CXX=no
11844 hardcode_minus_L_CXX=yes # Not in the search PATH,
11845 # but as the default
11846 # location of the library.
11849 hardcode_direct_CXX=yes
11850 hardcode_minus_L_CXX=yes # Not in the search PATH,
11851 # but as the default
11852 # location of the library.
11856 case $cc_basename in
11858 # FIXME: insert proper C++ library support
11862 case "$host_cpu" in
11864 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11867 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870 # Commands to make compiler produce verbose output that lists
11871 # what "hidden" libraries, object files and flags are used when
11872 # linking a shared library.
11874 # There doesn't appear to be a way to prevent this compiler from
11875 # explicitly linking system object files so we need to strip them
11876 # from the output so that they don't get included in the library
11878 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'
11881 if test "$GXX" = yes; then
11882 if test $with_gnu_ld = no; then
11883 case "$host_cpu" in
11885 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11888 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'
11893 # FIXME: insert proper C++ library support
11900 case $cc_basename in
11903 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 ${objdir}/so_locations -o $lib'
11905 # Archives containing C++ object files must be created using
11906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11907 # necessary to make sure instantiated templates are included
11909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11912 if test "$GXX" = yes; then
11913 if test "$with_gnu_ld" = no; then
11914 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}${objdir}/so_locations -o $lib'
11916 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'
11919 link_all_deplibs_CXX=yes
11922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11923 hardcode_libdir_separator_CXX=:
11926 case $cc_basename in
11928 # Kuck and Associates, Inc. (KAI) C++ Compiler
11930 # KCC will only create a shared library if the output file
11931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932 # to its proper name (with version) after linking.
11933 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'
11934 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'
11935 # Commands to make compiler produce verbose output that lists
11936 # what "hidden" libraries, object files and flags are used when
11937 # linking a shared library.
11939 # There doesn't appear to be a way to prevent this compiler from
11940 # explicitly linking system object files so we need to strip them
11941 # from the output so that they don't get included in the library
11943 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'
11945 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948 # Archives containing C++ object files must be created using
11949 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11950 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11955 archive_cmds_need_lc_CXX=no
11956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957 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'
11958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11960 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11964 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965 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'
11967 runpath_var=LD_RUN_PATH
11968 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11969 hardcode_libdir_separator_CXX=:
11971 # Commands to make compiler produce verbose output that lists
11972 # what "hidden" libraries, object files and flags are used when
11973 # linking a shared library.
11975 # There doesn't appear to be a way to prevent this compiler from
11976 # explicitly linking system object files so we need to strip them
11977 # from the output so that they don't get included in the library
11979 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'
11984 # FIXME: insert proper C++ library support
11988 # FIXME: insert proper C++ library support
11992 case $cc_basename in
11994 # FIXME: insert proper C++ library support
11998 # FIXME: insert proper C++ library support
12004 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12005 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12007 hardcode_libdir_flag_spec_CXX='-R$libdir'
12008 hardcode_direct_CXX=yes
12009 hardcode_shlibpath_var_CXX=no
12011 # Workaround some broken pre-1.5 toolchains
12012 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12015 case $cc_basename in
12017 # Kuck and Associates, Inc. (KAI) C++ Compiler
12019 # KCC will only create a shared library if the output file
12020 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12021 # to its proper name (with version) after linking.
12022 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'
12024 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12025 hardcode_libdir_separator_CXX=:
12027 # Archives containing C++ object files must be created using
12028 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12029 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12033 # Rational C++ 2.4.1
12034 # FIXME: insert proper C++ library support
12038 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12039 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 ${objdir}/so_locations -o $lib'
12041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12042 hardcode_libdir_separator_CXX=:
12044 # Commands to make compiler produce verbose output that lists
12045 # what "hidden" libraries, object files and flags are used when
12046 # linking a shared library.
12048 # There doesn't appear to be a way to prevent this compiler from
12049 # explicitly linking system object files so we need to strip them
12050 # from the output so that they don't get included in the library
12052 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'
12055 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12056 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12057 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}${objdir}/so_locations -o $lib'
12059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12060 hardcode_libdir_separator_CXX=:
12062 # Commands to make compiler produce verbose output that lists
12063 # what "hidden" libraries, object files and flags are used when
12064 # linking a shared library.
12065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12068 # FIXME: insert proper C++ library support
12075 case $cc_basename in
12077 # Kuck and Associates, Inc. (KAI) C++ Compiler
12079 # KCC will only create a shared library if the output file
12080 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12081 # to its proper name (with version) after linking.
12082 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'
12084 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12085 hardcode_libdir_separator_CXX=:
12087 # Archives containing C++ object files must be created using
12088 # the KAI C++ compiler.
12089 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12092 # Rational C++ 2.4.1
12093 # FIXME: insert proper C++ library support
12097 allow_undefined_flag_CXX=' -expect_unresolved \*'
12098 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 ${objdir}/so_locations -o $lib'
12099 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12100 echo "-hidden">> $lib.exp~
12101 $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 $objdir/so_locations -o $lib~
12104 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12105 hardcode_libdir_separator_CXX=:
12107 # Commands to make compiler produce verbose output that lists
12108 # what "hidden" libraries, object files and flags are used when
12109 # linking a shared library.
12111 # There doesn't appear to be a way to prevent this compiler from
12112 # explicitly linking system object files so we need to strip them
12113 # from the output so that they don't get included in the library
12115 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'
12118 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12119 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120 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}${objdir}/so_locations -o $lib'
12122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123 hardcode_libdir_separator_CXX=:
12125 # Commands to make compiler produce verbose output that lists
12126 # what "hidden" libraries, object files and flags are used when
12127 # linking a shared library.
12128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12131 # FIXME: insert proper C++ library support
12138 # FIXME: insert proper C++ library support
12142 archive_cmds_need_lc_CXX=no
12143 case $cc_basename in
12145 # FIXME: insert proper C++ library support
12149 # FIXME: insert proper C++ library support
12155 case $cc_basename in
12158 # FIXME: insert proper C++ library support
12163 # FIXME: insert proper C++ library support
12167 # FIXME: insert proper C++ library support
12173 case $cc_basename in
12175 # Sun C++ 4.2, 5.x and Centerline C++
12176 no_undefined_flag_CXX=' -zdefs'
12177 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12178 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12179 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12181 hardcode_libdir_flag_spec_CXX='-R$libdir'
12182 hardcode_shlibpath_var_CXX=no
12184 solaris2.0-5 | solaris2.0-5.*) ;;
12186 # The C++ compiler is used as linker so we must use $wl
12187 # flag to pass the commands to the underlying system
12189 # Supported since Solaris 2.6 (maybe 2.5.1?)
12190 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12193 link_all_deplibs_CXX=yes
12195 # Commands to make compiler produce verbose output that lists
12196 # what "hidden" libraries, object files and flags are used when
12197 # linking a shared library.
12199 # There doesn't appear to be a way to prevent this compiler from
12200 # explicitly linking system object files so we need to strip them
12201 # from the output so that they don't get included in the library
12203 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12205 # Archives containing C++ object files must be created using
12206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12207 # necessary to make sure instantiated templates are included
12209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12212 # Green Hills C++ Compiler
12213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12215 # The C++ compiler must be used to create the archive.
12216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12219 # GNU C++ compiler with Solaris linker
12220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12221 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12222 if $CC --version | grep -v '^2\.7' > /dev/null; then
12223 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12230 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12232 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12234 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12235 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12238 # Commands to make compiler produce verbose output that lists
12239 # what "hidden" libraries, object files and flags are used when
12240 # linking a shared library.
12241 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12249 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12250 archive_cmds_need_lc_CXX=no
12253 case $cc_basename in
12255 # NonStop-UX NCC 3.20
12256 # FIXME: insert proper C++ library support
12260 # FIXME: insert proper C++ library support
12266 # FIXME: insert proper C++ library support
12270 # FIXME: insert proper C++ library support
12274 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12275 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12276 test "$ld_shlibs_CXX" = no && can_build_shared=no
12282 cat > conftest.$ac_ext <<EOF
12286 Foo (void) { a = 0; }
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; then
12297 # Parse the compiler output and extract the necessary
12298 # objects, libraries and library flags.
12300 # Sentinel used to keep track of whether or not we are before
12301 # the conftest object file.
12302 pre_test_object_deps_done=no
12304 # The `*' in the case matches for architectures that use `case' in
12305 # $output_verbose_cmd can trigger glob expansion during the loop
12306 # eval without this substitution.
12307 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12309 for p in `eval $output_verbose_link_cmd`; do
12313 # Some compilers place space between "-{L,R}" and the path.
12314 # Remove the space.
12315 if test $p = "-L" \
12316 || test $p = "-R"; then
12323 if test "$pre_test_object_deps_done" = no; then
12326 # Internal compiler library paths should come after those
12327 # provided the user. The postdeps already come after the
12328 # user supplied libs so there is no need to process them.
12329 if test -z "$compiler_lib_search_path_CXX"; then
12330 compiler_lib_search_path_CXX="${prev}${p}"
12332 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12335 # The "-l" case would never come before the object being
12336 # linked, so don't bother handling this case.
12339 if test -z "$postdeps_CXX"; then
12340 postdeps_CXX="${prev}${p}"
12342 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12348 # This assumes that the test object file only shows up
12349 # once in the compiler output.
12350 if test "$p" = "conftest.$objext"; then
12351 pre_test_object_deps_done=yes
12355 if test "$pre_test_object_deps_done" = no; then
12356 if test -z "$predep_objects_CXX"; then
12357 predep_objects_CXX="$p"
12359 predep_objects_CXX="$predep_objects_CXX $p"
12362 if test -z "$postdep_objects_CXX"; then
12363 postdep_objects_CXX="$p"
12365 postdep_objects_CXX="$postdep_objects_CXX $p"
12370 *) ;; # Ignore the rest.
12378 echo "libtool.m4: error: problem compiling CXX test program"
12381 $rm -f confest.$objext
12383 case " $postdeps_CXX " in
12384 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12387 lt_prog_compiler_wl_CXX=
12388 lt_prog_compiler_pic_CXX=
12389 lt_prog_compiler_static_CXX=
12391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12394 # C++ specific cases for pic, static, wl, etc.
12395 if test "$GXX" = yes; then
12396 lt_prog_compiler_wl_CXX='-Wl,'
12397 lt_prog_compiler_static_CXX='-static'
12401 # All AIX code is PIC.
12402 if test "$host_cpu" = ia64; then
12403 # AIX 5 now supports IA64 processor
12404 lt_prog_compiler_static_CXX='-Bstatic'
12408 # FIXME: we need at least 68020 code to build shared libraries, but
12409 # adding the `-m68020' flag to GCC prevents building anything better,
12411 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12413 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12414 # PIC is the default for these OSes.
12416 mingw* | os2* | pw32*)
12417 # This hack is so that the source file can tell whether it is being
12418 # built for inclusion in a dll (and should export symbols for example).
12419 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12421 darwin* | rhapsody*)
12422 # PIC is the default on this platform
12423 # Common symbols not allowed in MH_DYLIB files
12424 lt_prog_compiler_pic_CXX='-fno-common'
12427 # DJGPP does not support shared libraries at all
12428 lt_prog_compiler_pic_CXX=
12431 if test -d /usr/nec; then
12432 lt_prog_compiler_pic_CXX=-Kconform_pic
12436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437 # not for PA HP-UX.
12438 case "$host_cpu" in
12442 lt_prog_compiler_pic_CXX='-fPIC'
12447 lt_prog_compiler_pic_CXX='-fPIC'
12453 # All AIX code is PIC.
12454 if test "$host_cpu" = ia64; then
12455 # AIX 5 now supports IA64 processor
12456 lt_prog_compiler_static_CXX='-Bstatic'
12458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12462 case $cc_basename in
12464 # Green Hills C++ Compiler
12465 # _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"
12470 case $cc_basename in
12472 lt_prog_compiler_pic_CXX='-KPIC'
12475 # Green Hills C++ Compiler
12476 lt_prog_compiler_pic_CXX='-pic'
12482 freebsd* | kfreebsd*-gnu)
12483 # FreeBSD uses GNU C++
12485 hpux9* | hpux10* | hpux11*)
12486 case $cc_basename in
12488 lt_prog_compiler_wl_CXX='-Wl,'
12489 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12490 if test "$host_cpu" != ia64; then
12491 lt_prog_compiler_pic_CXX='+Z'
12495 lt_prog_compiler_wl_CXX='-Wl,'
12496 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12497 case "$host_cpu" in
12502 lt_prog_compiler_pic_CXX='+Z'
12510 irix5* | irix6* | nonstopux*)
12511 case $cc_basename in
12513 lt_prog_compiler_wl_CXX='-Wl,'
12514 lt_prog_compiler_static_CXX='-non_shared'
12515 # CC pic flag -KPIC is the default.
12522 case $cc_basename in
12525 lt_prog_compiler_wl_CXX='--backend -Wl,'
12526 lt_prog_compiler_pic_CXX='-fPIC'
12530 lt_prog_compiler_wl_CXX='-Wl,'
12531 lt_prog_compiler_pic_CXX='-KPIC'
12532 lt_prog_compiler_static_CXX='-static'
12536 # Make sure the PIC flag is empty. It appears that all Alpha
12537 # Linux and Compaq Tru64 Unix objects are PIC.
12538 lt_prog_compiler_pic_CXX=
12539 lt_prog_compiler_static_CXX='-non_shared'
12550 case $cc_basename in
12552 lt_prog_compiler_pic_CXX='-W c,exportall'
12560 osf3* | osf4* | osf5*)
12561 case $cc_basename in
12563 lt_prog_compiler_wl_CXX='--backend -Wl,'
12566 # Rational C++ 2.4.1
12567 lt_prog_compiler_pic_CXX='-pic'
12570 # Digital/Compaq C++
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 # Make sure the PIC flag is empty. It appears that all Alpha
12573 # Linux and Compaq Tru64 Unix objects are PIC.
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_static_CXX='-non_shared'
12584 case $cc_basename in
12586 lt_prog_compiler_pic_CXX='-fPIC'
12593 case $cc_basename in
12595 # Sun C++ 4.2, 5.x and Centerline C++
12596 lt_prog_compiler_pic_CXX='-KPIC'
12597 lt_prog_compiler_static_CXX='-Bstatic'
12598 lt_prog_compiler_wl_CXX='-Qoption ld '
12601 # Green Hills C++ Compiler
12602 lt_prog_compiler_pic_CXX='-PIC'
12609 case $cc_basename in
12612 lt_prog_compiler_pic_CXX='-pic'
12613 lt_prog_compiler_static_CXX='-Bstatic'
12617 lt_prog_compiler_pic_CXX='-pic'
12624 case $cc_basename in
12626 # NonStop-UX NCC 3.20
12627 lt_prog_compiler_pic_CXX='-KPIC'
12638 lt_prog_compiler_can_build_shared_CXX=no
12643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12644 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12647 # Check to make sure the PIC flag actually works.
12649 if test -n "$lt_prog_compiler_pic_CXX"; then
12651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12653 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 lt_prog_compiler_pic_works_CXX=no
12657 ac_outfile=conftest.$ac_objext
12658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12659 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12660 # Insert the option either (1) after the last *FLAGS variable, or
12661 # (2) before a word containing "conftest.", or (3) at the end.
12662 # Note that $ac_compile itself does not contain backslashes and begins
12663 # with a dollar sign (not a hyphen), so the echo should work correctly.
12664 # The option is referenced via a variable to avoid confusing sed.
12665 lt_compile=`echo "$ac_compile" | $SED \
12666 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12668 -e 's:$: $lt_compiler_flag:'`
12669 (eval echo "\"\$as_me:12669: $lt_compile\"" >&5)
12670 (eval "$lt_compile" 2>conftest.err)
12672 cat conftest.err >&5
12673 echo "$as_me:12673: \$? = $ac_status" >&5
12674 if (exit $ac_status) && test -s "$ac_outfile"; then
12675 # The compiler can only warn and ignore the option if not recognized
12676 # So say no if there are warnings
12677 if test ! -s conftest.err; then
12678 lt_prog_compiler_pic_works_CXX=yes
12684 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12685 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12687 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12688 case $lt_prog_compiler_pic_CXX in
12690 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12693 lt_prog_compiler_pic_CXX=
12694 lt_prog_compiler_can_build_shared_CXX=no
12699 # For platforms which do not support PIC, -DPIC is meaningless:
12701 lt_prog_compiler_pic_CXX=
12704 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12708 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12709 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12710 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 lt_cv_prog_compiler_c_o_CXX=no
12714 $rm -r conftest 2>/dev/null
12718 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12720 lt_compiler_flag="-o out/conftest2.$ac_objext"
12721 # Insert the option either (1) after the last *FLAGS variable, or
12722 # (2) before a word containing "conftest.", or (3) at the end.
12723 # Note that $ac_compile itself does not contain backslashes and begins
12724 # with a dollar sign (not a hyphen), so the echo should work correctly.
12725 lt_compile=`echo "$ac_compile" | $SED \
12726 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12728 -e 's:$: $lt_compiler_flag:'`
12729 (eval echo "\"\$as_me:12729: $lt_compile\"" >&5)
12730 (eval "$lt_compile" 2>out/conftest.err)
12732 cat out/conftest.err >&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12736 # The compiler can only warn and ignore the option if not recognized
12737 # So say no if there are warnings
12738 if test ! -s out/conftest.err; then
12739 lt_cv_prog_compiler_c_o_CXX=yes
12744 # SGI C++ compiler will create directory out/ii_files/ for
12745 # template instantiation
12746 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12747 $rm out/* && rmdir out
12753 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12754 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12757 hard_links="nottested"
12758 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12759 # do not overwrite the value of need_locks provided by the user
12760 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12761 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12764 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12766 ln conftest.a conftest.b 2>&5 || hard_links=no
12767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12768 echo "$as_me:$LINENO: result: $hard_links" >&5
12769 echo "${ECHO_T}$hard_links" >&6
12770 if test "$hard_links" = no; then
12771 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12772 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12779 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12780 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12782 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12785 # If we're using GNU nm, then we don't want the "-C" option.
12786 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12787 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12788 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'
12790 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'
12794 export_symbols_cmds_CXX="$ltdll_cmds"
12797 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12800 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12804 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12805 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12806 test "$ld_shlibs_CXX" = no && can_build_shared=no
12808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12809 if test "$GCC" = yes; then
12810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12814 # Do we need to explicitly link libc?
12816 case "x$archive_cmds_need_lc_CXX" in
12818 # Assume -lc should be added
12819 archive_cmds_need_lc_CXX=yes
12821 if test "$enable_shared" = yes && test "$GCC" = yes; then
12822 case $archive_cmds_CXX in
12824 # FIXME: we may have to deal with multi-command sequences.
12827 # Test whether the compiler implicitly links with -lc since on some
12828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12829 # to ld, don't add -lc before -lgcc.
12830 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } 2>conftest.err; then
12842 libobjs=conftest.$ac_objext
12844 wl=$lt_prog_compiler_wl_CXX
12850 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12851 allow_undefined_flag_CXX=
12852 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12853 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }
12858 archive_cmds_need_lc_CXX=no
12860 archive_cmds_need_lc_CXX=yes
12862 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12864 cat conftest.err 1>&5
12867 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12868 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12875 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12877 library_names_spec=
12878 libname_spec='lib$name'
12882 postuninstall_cmds=
12886 shlibpath_overrides_runpath=unknown
12888 dynamic_linker="$host_os ld.so"
12889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12890 if test "$GCC" = yes; then
12891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12892 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12893 # if the path contains ";" then we assume it to be the separator
12894 # otherwise default to the standard path separator (i.e. ":") - it is
12895 # assumed that no part of a normal pathname contains ";" but that should
12896 # okay in the real world where ";" in dirpaths is itself problematic.
12897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12904 need_lib_prefix=unknown
12905 hardcode_into_libs=no
12907 # when you set need_version to no, make sure it does not cause -set_version
12908 # flags to be left without arguments
12909 need_version=unknown
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12915 shlibpath_var=LIBPATH
12917 # AIX 3 has no versioning support, so we append a major version to the name.
12918 soname_spec='${libname}${release}${shared_ext}$major'
12925 hardcode_into_libs=yes
12926 if test "$host_cpu" = ia64; then
12927 # AIX 5 supports IA64
12928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12929 shlibpath_var=LD_LIBRARY_PATH
12931 # With GCC up to 2.95.x, collect2 would create an import file
12932 # for dependence libraries. The import file would start with
12933 # the line `#! .'. This would cause the generated library to
12934 # depend on `.', always an invalid library. This was fixed in
12935 # development snapshots of GCC prior to 3.0.
12937 aix4 | aix4.[01] | aix4.[01].*)
12938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12943 can_build_shared=no
12947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12948 # soname into executable. Probably we can add versioning support to
12949 # collect2, so additional links can be useful in future.
12950 if test "$aix_use_runtimelinking" = yes; then
12951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12952 # instead of lib<name>.a to let people know that these are not
12953 # typical AIX shared libraries.
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12956 # We preserve .a as extension for shared libraries through AIX4.2
12957 # and later when we are not doing run time linking.
12958 library_names_spec='${libname}${release}.a $libname.a'
12959 soname_spec='${libname}${release}${shared_ext}$major'
12961 shlibpath_var=LIBPATH
12966 library_names_spec='$libname.ixlibrary $libname.a'
12967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12968 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'
12972 library_names_spec='${libname}${shared_ext}'
12973 dynamic_linker="$host_os ld.so"
12974 shlibpath_var=LIBRARY_PATH
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12981 soname_spec='${libname}${release}${shared_ext}$major'
12982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12983 shlibpath_var=LD_LIBRARY_PATH
12984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12986 # the default ld.so.conf also contains /usr/contrib/lib and
12987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12988 # libtool to hard-code these into programs
12991 cygwin* | mingw* | pw32*)
12992 version_type=windows
12997 case $GCC,$host_os in
12998 yes,cygwin* | yes,mingw* | yes,pw32*)
12999 library_names_spec='$libname.dll.a'
13000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13001 postinstall_cmds='base_file=`basename \${file}`~
13002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13003 dldir=$destdir/`dirname \$dlpath`~
13004 test -d \$dldir || mkdir -p \$dldir~
13005 $install_prog $dir/$dlname \$dldir/$dlname'
13006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13007 dlpath=$dir/\$dldll~
13009 shlibpath_overrides_runpath=yes
13013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13015 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13018 # MinGW DLLs use traditional 'lib' prefix
13019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13020 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13021 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13022 # It is most probably a Windows format PATH printed by
13023 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13024 # path with ; separators, and with drive letters. We can handle the
13025 # drive letters (cygwin fileutils understands them), so leave them,
13026 # especially as we might pass files found there to a mingw objdump,
13027 # which wouldn't understand a cygwinified path. Ahh.
13028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13034 # pw32 DLLs use 'pw' prefix rather than 'lib'
13035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13041 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13044 dynamic_linker='Win32 ld.exe'
13045 # FIXME: first we should search . and the directory the executable is in
13049 darwin* | rhapsody*)
13050 dynamic_linker="$host_os dyld"
13051 version_type=darwin
13054 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13055 soname_spec='${libname}${release}${major}$shared_ext'
13056 shlibpath_overrides_runpath=yes
13057 shlibpath_var=DYLD_LIBRARY_PATH
13058 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13059 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13060 if test "$GCC" = yes; then
13061 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13063 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13065 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13074 shlibpath_var=LD_LIBRARY_PATH
13085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13086 soname_spec='${libname}${release}${shared_ext}$major'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 shlibpath_overrides_runpath=no
13089 hardcode_into_libs=yes
13090 dynamic_linker='GNU ld.so'
13094 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13095 version_type=freebsd-$objformat
13096 case $version_type in
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13107 shlibpath_var=LD_LIBRARY_PATH
13110 shlibpath_overrides_runpath=yes
13112 freebsd3.01* | freebsdelf3.01*)
13113 shlibpath_overrides_runpath=yes
13114 hardcode_into_libs=yes
13117 shlibpath_overrides_runpath=no
13118 hardcode_into_libs=yes
13127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13128 soname_spec='${libname}${release}${shared_ext}$major'
13129 shlibpath_var=LD_LIBRARY_PATH
13130 hardcode_into_libs=yes
13133 hpux9* | hpux10* | hpux11*)
13134 # Give a soname corresponding to the major version so that dld.sl refuses to
13135 # link against other versions.
13139 case "$host_cpu" in
13142 hardcode_into_libs=yes
13143 dynamic_linker="$host_os dld.so"
13144 shlibpath_var=LD_LIBRARY_PATH
13145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 if test "X$HPUX_IA64_MODE" = X32; then
13149 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13151 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13153 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13157 hardcode_into_libs=yes
13158 dynamic_linker="$host_os dld.sl"
13159 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
13163 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13168 dynamic_linker="$host_os dld.sl"
13169 shlibpath_var=SHLIB_PATH
13170 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
13175 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13176 postinstall_cmds='chmod 555 $lib'
13179 irix5* | irix6* | nonstopux*)
13181 nonstopux*) version_type=nonstopux ;;
13183 if test "$lt_cv_prog_gnu_ld" = yes; then
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13194 irix5* | nonstopux*)
13195 libsuff= shlibsuff=
13198 case $LD in # libtool.m4 will add one of these switches to LD
13199 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13200 libsuff= shlibsuff= libmagic=32-bit;;
13201 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13202 libsuff=32 shlibsuff=N32 libmagic=N32;;
13203 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13204 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13205 *) libsuff= shlibsuff= libmagic=never-match;;
13209 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13210 shlibpath_overrides_runpath=no
13211 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13212 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13213 hardcode_into_libs=yes
13216 # No shared lib support for Linux oldld, aout, or coff.
13217 linux*oldld* | linux*aout* | linux*coff*)
13221 # This must be Linux ELF.
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13229 shlibpath_var=LD_LIBRARY_PATH
13230 shlibpath_overrides_runpath=no
13231 # This implies no fast_install, which is unacceptable.
13232 # Some rework will be needed to allow for fast_install
13233 # before this can be enabled.
13234 hardcode_into_libs=yes
13236 # Append ld.so.conf contents to the search path
13237 if test -f /etc/ld.so.conf; then
13238 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
13239 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
13242 # We used to test for /lib/ld.so.1 and disable shared libraries on
13243 # powerpc, because MkLinux only supported shared libraries with the
13244 # GNU dynamic linker. Since this was broken with cross compilers,
13245 # most powerpc-linux boxes support dynamic linking these days and
13246 # people can always --disable-shared, the test was removed, and we
13247 # assume the GNU/Linux dynamic linker is in use.
13248 dynamic_linker='GNU/Linux ld.so'
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13256 soname_spec='${libname}${release}${shared_ext}$major'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 shlibpath_overrides_runpath=no
13259 hardcode_into_libs=yes
13260 dynamic_linker='GNU ld.so'
13267 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13270 dynamic_linker='NetBSD (a.out) ld.so'
13272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13273 soname_spec='${libname}${release}${shared_ext}$major'
13274 dynamic_linker='NetBSD ld.elf_so'
13276 shlibpath_var=LD_LIBRARY_PATH
13277 shlibpath_overrides_runpath=yes
13278 hardcode_into_libs=yes
13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284 shlibpath_var=LD_LIBRARY_PATH
13285 shlibpath_overrides_runpath=yes
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293 soname_spec='${libname}${release}${shared_ext}$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 shlibpath_overrides_runpath=yes
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307 openbsd2.[89] | openbsd2.[89].*)
13308 shlibpath_overrides_runpath=no
13311 shlibpath_overrides_runpath=yes
13315 shlibpath_overrides_runpath=yes
13320 libname_spec='$name'
13323 library_names_spec='$libname${shared_ext} $libname.a'
13324 dynamic_linker='OS/2 ld.exe'
13325 shlibpath_var=LIBPATH
13328 osf3* | osf4* | osf5*)
13332 soname_spec='${libname}${release}${shared_ext}$major'
13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334 shlibpath_var=LD_LIBRARY_PATH
13335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13343 shlibpath_var=LD_LIBRARY_PATH
13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351 soname_spec='${libname}${release}${shared_ext}$major'
13352 shlibpath_var=LD_LIBRARY_PATH
13353 shlibpath_overrides_runpath=yes
13354 hardcode_into_libs=yes
13355 # ldd complains unless libraries are executable
13356 postinstall_cmds='chmod +x $lib'
13361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13362 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath=yes
13365 if test "$with_gnu_ld" = yes; then
13371 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374 soname_spec='${libname}${release}${shared_ext}$major'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 case $host_vendor in
13378 shlibpath_overrides_runpath=no
13380 export_dynamic_flag_spec='${wl}-Blargedynsym'
13381 runpath_var=LD_RUN_PATH
13389 shlibpath_overrides_runpath=no
13390 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13396 if test -d /usr/nec ;then
13398 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13399 soname_spec='$libname${shared_ext}.$major'
13400 shlibpath_var=LD_LIBRARY_PATH
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13415 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13416 echo "${ECHO_T}$dynamic_linker" >&6
13417 test "$dynamic_linker" = no && can_build_shared=no
13419 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13420 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13421 hardcode_action_CXX=
13422 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13423 test -n "$runpath_var CXX" || \
13424 test "X$hardcode_automatic_CXX"="Xyes" ; then
13426 # We can hardcode non-existant directories.
13427 if test "$hardcode_direct_CXX" != no &&
13428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13429 # have to relink, otherwise we might link with an installed library
13430 # when we should be linking with a yet-to-be-installed one
13431 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13432 test "$hardcode_minus_L_CXX" != no; then
13433 # Linking always hardcodes the temporary library directory.
13434 hardcode_action_CXX=relink
13436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13437 hardcode_action_CXX=immediate
13440 # We cannot hardcode anything, or else we can only hardcode existing
13442 hardcode_action_CXX=unsupported
13444 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13445 echo "${ECHO_T}$hardcode_action_CXX" >&6
13447 if test "$hardcode_action_CXX" = relink; then
13448 # Fast installation is not supported
13449 enable_fast_install=no
13450 elif test "$shlibpath_overrides_runpath" = yes ||
13451 test "$enable_shared" = no; then
13452 # Fast installation is not necessary
13453 enable_fast_install=needless
13458 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13459 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13460 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13461 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13462 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13463 echo "$as_me:$LINENO: result: yes" >&5
13464 echo "${ECHO_T}yes" >&6
13466 # FIXME - insert some real tests, host_os isn't really good enough
13469 if test -n "$STRIP" ; then
13470 striplib="$STRIP -x"
13471 echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6
13474 echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6
13479 echo "$as_me:$LINENO: result: no" >&5
13480 echo "${ECHO_T}no" >&6
13485 if test "x$enable_dlopen" != xyes; then
13486 enable_dlopen=unknown
13487 enable_dlopen_self=unknown
13488 enable_dlopen_self_static=unknown
13495 lt_cv_dlopen="load_add_on"
13497 lt_cv_dlopen_self=yes
13501 lt_cv_dlopen="LoadLibrary"
13506 lt_cv_dlopen="dlopen"
13511 # if libdl is installed we need to link against it
13512 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 ac_check_lib_save_LIBS=$LIBS
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13526 /* Override any gcc2 internal prototype to avoid an error. */
13530 /* We use char because int might match the return type of a gcc2
13531 builtin and then its argument prototype would still apply. */
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_cxx_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest$ac_exeext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_lib_dl_dlopen=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_lib_dl_dlopen=no
13570 rm -f conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13576 if test $ac_cv_lib_dl_dlopen = yes; then
13577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13580 lt_cv_dlopen="dyld"
13582 lt_cv_dlopen_self=yes
13589 echo "$as_me:$LINENO: checking for shl_load" >&5
13590 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13591 if test "${ac_cv_func_shl_load+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13602 #define shl_load innocuous_shl_load
13604 /* System header to define __stub macros and hopefully few prototypes,
13605 which can conflict with char shl_load (); below.
13606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607 <limits.h> exists even on freestanding compilers. */
13610 # include <limits.h>
13612 # include <assert.h>
13617 /* Override any gcc2 internal prototype to avoid an error. */
13622 /* We use char because int might match the return type of a gcc2
13623 builtin and then its argument prototype would still apply. */
13625 /* The GNU C library defines this for functions which it implements
13626 to always fail with ENOSYS. Some functions are actually named
13627 something starting with __ and the normal name is an alias. */
13628 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13631 char (*f) () = shl_load;
13640 return f != shl_load;
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13647 (eval $ac_link) 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -z "$ac_cxx_werror_flag"
13655 || test ! -s conftest.err'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest$ac_exeext'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_cv_func_shl_load=yes
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13672 ac_cv_func_shl_load=no
13674 rm -f conftest.err conftest.$ac_objext \
13675 conftest$ac_exeext conftest.$ac_ext
13677 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13679 if test $ac_cv_func_shl_load = yes; then
13680 lt_cv_dlopen="shl_load"
13682 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 ac_check_lib_save_LIBS=$LIBS
13689 cat >conftest.$ac_ext <<_ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13696 /* Override any gcc2 internal prototype to avoid an error. */
13700 /* We use char because int might match the return type of a gcc2
13701 builtin and then its argument prototype would still apply. */
13711 rm -f conftest.$ac_objext conftest$ac_exeext
13712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13713 (eval $ac_link) 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -z "$ac_cxx_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_cv_lib_dld_shl_load=yes
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13738 ac_cv_lib_dld_shl_load=no
13740 rm -f conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 LIBS=$ac_check_lib_save_LIBS
13744 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13745 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13746 if test $ac_cv_lib_dld_shl_load = yes; then
13747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13749 echo "$as_me:$LINENO: checking for dlopen" >&5
13750 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13751 if test "${ac_cv_func_dlopen+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13762 #define dlopen innocuous_dlopen
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char dlopen (); below.
13766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13767 <limits.h> exists even on freestanding compilers. */
13770 # include <limits.h>
13772 # include <assert.h>
13777 /* Override any gcc2 internal prototype to avoid an error. */
13782 /* We use char because int might match the return type of a gcc2
13783 builtin and then its argument prototype would still apply. */
13785 /* The GNU C library defines this for functions which it implements
13786 to always fail with ENOSYS. Some functions are actually named
13787 something starting with __ and the normal name is an alias. */
13788 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13791 char (*f) () = dlopen;
13800 return f != dlopen;
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13807 (eval $ac_link) 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_cxx_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest$ac_exeext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_func_dlopen=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_func_dlopen=no
13834 rm -f conftest.err conftest.$ac_objext \
13835 conftest$ac_exeext conftest.$ac_ext
13837 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13838 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13839 if test $ac_cv_func_dlopen = yes; then
13840 lt_cv_dlopen="dlopen"
13842 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_check_lib_save_LIBS=$LIBS
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13856 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13871 rm -f conftest.$ac_objext conftest$ac_exeext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13873 (eval $ac_link) 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_cxx_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest$ac_exeext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_lib_dl_dlopen=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_cv_lib_dl_dlopen=no
13900 rm -f conftest.err conftest.$ac_objext \
13901 conftest$ac_exeext conftest.$ac_ext
13902 LIBS=$ac_check_lib_save_LIBS
13904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13906 if test $ac_cv_lib_dl_dlopen = yes; then
13907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13909 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13910 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lsvld $LIBS"
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>conftest.er1
13942 grep -v '^ *+' conftest.er1 >conftest.err
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -z "$ac_cxx_werror_flag"
13948 || test ! -s conftest.err'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13956 (eval $ac_try) 2>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); }; }; then
13960 ac_cv_lib_svld_dlopen=yes
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13965 ac_cv_lib_svld_dlopen=no
13967 rm -f conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13972 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13973 if test $ac_cv_lib_svld_dlopen = yes; then
13974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13976 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13977 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13978 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 ac_check_lib_save_LIBS=$LIBS
13983 cat >conftest.$ac_ext <<_ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13990 /* Override any gcc2 internal prototype to avoid an error. */
13994 /* We use char because int might match the return type of a gcc2
13995 builtin and then its argument prototype would still apply. */
14005 rm -f conftest.$ac_objext conftest$ac_exeext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14007 (eval $ac_link) 2>conftest.er1
14009 grep -v '^ *+' conftest.er1 >conftest.err
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } &&
14014 { ac_try='test -z "$ac_cxx_werror_flag"
14015 || test ! -s conftest.err'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest$ac_exeext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_cv_lib_dld_dld_link=yes
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14032 ac_cv_lib_dld_dld_link=no
14034 rm -f conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14038 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14039 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14040 if test $ac_cv_lib_dld_dld_link = yes; then
14041 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14062 if test "x$lt_cv_dlopen" != xno; then
14068 case $lt_cv_dlopen in
14070 save_CPPFLAGS="$CPPFLAGS"
14071 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14073 save_LDFLAGS="$LDFLAGS"
14074 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14077 LIBS="$lt_cv_dlopen_libs $LIBS"
14079 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14080 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14081 if test "${lt_cv_dlopen_self+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 if test "$cross_compiling" = yes; then :
14085 lt_cv_dlopen_self=cross
14087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14088 lt_status=$lt_dlunknown
14089 cat > conftest.$ac_ext <<EOF
14090 #line 14090 "configure"
14091 #include "confdefs.h"
14100 # define LT_DLGLOBAL RTLD_GLOBAL
14103 # define LT_DLGLOBAL DL_GLOBAL
14105 # define LT_DLGLOBAL 0
14109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14110 find out it does not work in some platform. */
14111 #ifndef LT_DLLAZY_OR_NOW
14113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14116 # define LT_DLLAZY_OR_NOW DL_LAZY
14119 # define LT_DLLAZY_OR_NOW RTLD_NOW
14122 # define LT_DLLAZY_OR_NOW DL_NOW
14124 # define LT_DLLAZY_OR_NOW 0
14132 extern "C" void exit (int);
14135 void fnord() { int i=42;}
14138 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14139 int status = $lt_dlunknown;
14143 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14144 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14145 /* dlclose (self); */
14151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14152 (eval $ac_link) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14156 (./conftest; exit; ) 2>/dev/null
14158 case x$lt_status in
14159 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14160 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14161 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14164 # compilation failed
14165 lt_cv_dlopen_self=no
14172 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14173 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14175 if test "x$lt_cv_dlopen_self" = xyes; then
14176 LDFLAGS="$LDFLAGS $link_static_flag"
14177 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14178 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14179 if test "${lt_cv_dlopen_self_static+set}" = set; then
14180 echo $ECHO_N "(cached) $ECHO_C" >&6
14182 if test "$cross_compiling" = yes; then :
14183 lt_cv_dlopen_self_static=cross
14185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14186 lt_status=$lt_dlunknown
14187 cat > conftest.$ac_ext <<EOF
14188 #line 14188 "configure"
14189 #include "confdefs.h"
14198 # define LT_DLGLOBAL RTLD_GLOBAL
14201 # define LT_DLGLOBAL DL_GLOBAL
14203 # define LT_DLGLOBAL 0
14207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14208 find out it does not work in some platform. */
14209 #ifndef LT_DLLAZY_OR_NOW
14211 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14214 # define LT_DLLAZY_OR_NOW DL_LAZY
14217 # define LT_DLLAZY_OR_NOW RTLD_NOW
14220 # define LT_DLLAZY_OR_NOW DL_NOW
14222 # define LT_DLLAZY_OR_NOW 0
14230 extern "C" void exit (int);
14233 void fnord() { int i=42;}
14236 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14237 int status = $lt_dlunknown;
14241 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14242 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14243 /* dlclose (self); */
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14254 (./conftest; exit; ) 2>/dev/null
14256 case x$lt_status in
14257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14259 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14262 # compilation failed
14263 lt_cv_dlopen_self_static=no
14270 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14271 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14274 CPPFLAGS="$save_CPPFLAGS"
14275 LDFLAGS="$save_LDFLAGS"
14280 case $lt_cv_dlopen_self in
14281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14282 *) enable_dlopen_self=unknown ;;
14285 case $lt_cv_dlopen_self_static in
14286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14287 *) enable_dlopen_self_static=unknown ;;
14292 # The else clause should only fire when bootstrapping the
14293 # libtool distribution, otherwise you forgot to ship ltmain.sh
14294 # with your package, and you will get complaints that there are
14295 # no rules to generate ltmain.sh.
14296 if test -f "$ltmain"; then
14297 # See if we are running on zsh, and set the options which allow our commands through
14298 # without removal of \ escapes.
14299 if test -n "${ZSH_VERSION+set}" ; then
14300 setopt NO_GLOB_SUBST
14302 # Now quote all the things that may contain metacharacters while being
14303 # careful not to overquote the AC_SUBSTed values. We take copies of the
14304 # variables and quote the copies for generation of the libtool script.
14305 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14307 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14308 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14309 deplibs_check_method reload_flag reload_cmds need_locks \
14310 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14311 lt_cv_sys_global_symbol_to_c_name_address \
14312 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14313 old_postinstall_cmds old_postuninstall_cmds \
14317 lt_prog_compiler_wl_CXX \
14318 lt_prog_compiler_pic_CXX \
14319 lt_prog_compiler_static_CXX \
14320 lt_prog_compiler_no_builtin_flag_CXX \
14321 export_dynamic_flag_spec_CXX \
14322 thread_safe_flag_spec_CXX \
14323 whole_archive_flag_spec_CXX \
14324 enable_shared_with_static_runtimes_CXX \
14325 old_archive_cmds_CXX \
14326 old_archive_from_new_cmds_CXX \
14327 predep_objects_CXX \
14328 postdep_objects_CXX \
14331 compiler_lib_search_path_CXX \
14333 archive_expsym_cmds_CXX \
14334 postinstall_cmds_CXX \
14335 postuninstall_cmds_CXX \
14336 old_archive_from_expsyms_cmds_CXX \
14337 allow_undefined_flag_CXX \
14338 no_undefined_flag_CXX \
14339 export_symbols_cmds_CXX \
14340 hardcode_libdir_flag_spec_CXX \
14341 hardcode_libdir_flag_spec_ld_CXX \
14342 hardcode_libdir_separator_CXX \
14343 hardcode_automatic_CXX \
14345 module_expsym_cmds_CXX \
14346 lt_cv_prog_compiler_c_o_CXX \
14347 exclude_expsyms_CXX \
14348 include_expsyms_CXX; do
14351 old_archive_cmds_CXX | \
14352 old_archive_from_new_cmds_CXX | \
14353 archive_cmds_CXX | \
14354 archive_expsym_cmds_CXX | \
14355 module_cmds_CXX | \
14356 module_expsym_cmds_CXX | \
14357 old_archive_from_expsyms_cmds_CXX | \
14358 export_symbols_cmds_CXX | \
14359 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14360 postinstall_cmds | postuninstall_cmds | \
14361 old_postinstall_cmds | old_postuninstall_cmds | \
14362 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14363 # Double-quote double-evaled strings.
14364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14367 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14373 *'\$0 --fallback-echo"')
14374 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14380 cat <<__EOF__ >> "$cfgfile"
14381 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14385 # Shell to use when invoking shell scripts.
14388 # Whether or not to build shared libraries.
14389 build_libtool_libs=$enable_shared
14391 # Whether or not to build static libraries.
14392 build_old_libs=$enable_static
14394 # Whether or not to add -lc for building shared libraries.
14395 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14397 # Whether or not to disallow shared libs when runtime libs are static
14398 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14400 # Whether or not to optimize for fast installation.
14401 fast_install=$enable_fast_install
14404 host_alias=$host_alias
14407 # An echo program that does not interpret backslashes.
14412 AR_FLAGS=$lt_AR_FLAGS
14417 # A language-specific compiler.
14418 CC=$lt_compiler_CXX
14420 # Is the compiler the GNU C compiler?
14426 # The linker used to build libraries.
14429 # Whether we need hard or soft links.
14432 # A BSD-compatible nm program.
14435 # A symbol stripping program
14438 # Used to examine libraries when file_magic_cmd begins "file"
14439 MAGIC_CMD=$MAGIC_CMD
14441 # Used on cygwin: DLL creation program.
14444 # Used on cygwin: object dumper.
14447 # Used on cygwin: assembler.
14450 # The name of the directory that contains temporary libtool files.
14453 # How to create reloadable object files.
14454 reload_flag=$lt_reload_flag
14455 reload_cmds=$lt_reload_cmds
14457 # How to pass a linker flag through the compiler.
14458 wl=$lt_lt_prog_compiler_wl_CXX
14460 # Object file suffix (normally "o").
14461 objext="$ac_objext"
14463 # Old archive suffix (normally "a").
14466 # Shared library suffix (normally ".so").
14469 # Executable file suffix (normally "").
14472 # Additional compiler flags for building library objects.
14473 pic_flag=$lt_lt_prog_compiler_pic_CXX
14476 # What is the maximum length of a command?
14477 max_cmd_len=$lt_cv_sys_max_cmd_len
14479 # Does compiler simultaneously support -c and -o options?
14480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14482 # Must we lock files when doing compilation ?
14483 need_locks=$lt_need_locks
14485 # Do we need the lib prefix for modules?
14486 need_lib_prefix=$need_lib_prefix
14488 # Do we need a version for libraries?
14489 need_version=$need_version
14491 # Whether dlopen is supported.
14492 dlopen_support=$enable_dlopen
14494 # Whether dlopen of programs is supported.
14495 dlopen_self=$enable_dlopen_self
14497 # Whether dlopen of statically linked programs is supported.
14498 dlopen_self_static=$enable_dlopen_self_static
14500 # Compiler flag to prevent dynamic linking.
14501 link_static_flag=$lt_lt_prog_compiler_static_CXX
14503 # Compiler flag to turn off builtin functions.
14504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14506 # Compiler flag to allow reflexive dlopens.
14507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14509 # Compiler flag to generate shared objects directly from archives.
14510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14512 # Compiler flag to generate thread-safe objects.
14513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14515 # Library versioning type.
14516 version_type=$version_type
14518 # Format of library name prefix.
14519 libname_spec=$lt_libname_spec
14521 # List of archive names. First name is the real one, the rest are links.
14522 # The last name is the one that the linker finds with -lNAME.
14523 library_names_spec=$lt_library_names_spec
14525 # The coded name of the library, if different from the real name.
14526 soname_spec=$lt_soname_spec
14528 # Commands used to build and install an old-style archive.
14530 old_archive_cmds=$lt_old_archive_cmds_CXX
14531 old_postinstall_cmds=$lt_old_postinstall_cmds
14532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14534 # Create an old-style archive from a shared archive.
14535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14537 # Create a temporary old-style archive to link instead of a shared archive.
14538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14540 # Commands used to build and install a shared archive.
14541 archive_cmds=$lt_archive_cmds_CXX
14542 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14543 postinstall_cmds=$lt_postinstall_cmds
14544 postuninstall_cmds=$lt_postuninstall_cmds
14546 # Commands used to build a loadable module (assumed same as above if empty)
14547 module_cmds=$lt_module_cmds_CXX
14548 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14550 # Commands to strip libraries.
14551 old_striplib=$lt_old_striplib
14552 striplib=$lt_striplib
14554 # Dependencies to place before the objects being linked to create a
14556 predep_objects=$lt_predep_objects_CXX
14558 # Dependencies to place after the objects being linked to create a
14560 postdep_objects=$lt_postdep_objects_CXX
14562 # Dependencies to place before the objects being linked to create a
14564 predeps=$lt_predeps_CXX
14566 # Dependencies to place after the objects being linked to create a
14568 postdeps=$lt_postdeps_CXX
14570 # The library search path used internally by the compiler when linking
14571 # a shared library.
14572 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14574 # Method to check whether dependent libraries are shared objects.
14575 deplibs_check_method=$lt_deplibs_check_method
14577 # Command to use when deplibs_check_method == file_magic.
14578 file_magic_cmd=$lt_file_magic_cmd
14580 # Flag that allows shared libraries with undefined symbols to be built.
14581 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14583 # Flag that forces no undefined symbols.
14584 no_undefined_flag=$lt_no_undefined_flag_CXX
14586 # Commands used to finish a libtool library installation in a directory.
14587 finish_cmds=$lt_finish_cmds
14589 # Same as above, but a single script fragment to be evaled but not shown.
14590 finish_eval=$lt_finish_eval
14592 # Take the output of nm and produce a listing of raw symbols and C names.
14593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14595 # Transform the output of nm in a proper C declaration
14596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14598 # Transform the output of nm in a C name address pair
14599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14601 # This is the shared library runtime path variable.
14602 runpath_var=$runpath_var
14604 # This is the shared library path variable.
14605 shlibpath_var=$shlibpath_var
14607 # Is shlibpath searched before the hard-coded library search path?
14608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14610 # How to hardcode a shared library path into an executable.
14611 hardcode_action=$hardcode_action_CXX
14613 # Whether we should hardcode library paths into libraries.
14614 hardcode_into_libs=$hardcode_into_libs
14616 # Flag to hardcode \$libdir into a binary during linking.
14617 # This must work even if \$libdir does not exist.
14618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14620 # If ld is used when linking, flag to hardcode \$libdir into
14621 # a binary during linking. This must work even if \$libdir does
14623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14625 # Whether we need a single -rpath flag with a separated argument.
14626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14629 # resulting binary.
14630 hardcode_direct=$hardcode_direct_CXX
14632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14633 # resulting binary.
14634 hardcode_minus_L=$hardcode_minus_L_CXX
14636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14637 # the resulting binary.
14638 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14640 # Set to yes if building a shared library automatically hardcodes DIR into the library
14641 # and all subsequent libraries and executables linked against it.
14642 hardcode_automatic=$hardcode_automatic_CXX
14644 # Variables whose values should be saved in libtool wrapper scripts and
14645 # restored at relink time.
14646 variables_saved_for_relink="$variables_saved_for_relink"
14648 # Whether libtool must link a program against all its dependency libraries.
14649 link_all_deplibs=$link_all_deplibs_CXX
14651 # Compile-time system search path for libraries
14652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14654 # Run-time system search path for libraries
14655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14657 # Fix the shell variable \$srcfile for the compiler.
14658 fix_srcfile_path="$fix_srcfile_path_CXX"
14660 # Set to yes if exported symbols are required.
14661 always_export_symbols=$always_export_symbols_CXX
14663 # The commands to list exported symbols.
14664 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14666 # The commands to extract the exported symbol list from a shared archive.
14667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14669 # Symbols that should not be listed in the preloaded symbols.
14670 exclude_expsyms=$lt_exclude_expsyms_CXX
14672 # Symbols that must always be exported.
14673 include_expsyms=$lt_include_expsyms_CXX
14675 # ### END LIBTOOL TAG CONFIG: $tagname
14681 # If there is no Makefile yet, we rely on a make rule to execute
14682 # `config.status --recheck' to rerun these tests and create the
14683 # libtool script then.
14684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14685 if test -f "$ltmain_in"; then
14686 test -f Makefile && make "$ltmain"
14692 ac_cpp='$CPP $CPPFLAGS'
14693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14701 with_gnu_ldcxx=$with_gnu_ld
14702 with_gnu_ld=$lt_save_with_gnu_ld
14703 lt_cv_path_LDCXX=$lt_cv_path_LD
14704 lt_cv_path_LD=$lt_save_path_LD
14705 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14706 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14714 if test -n "$F77" && test "X$F77" != "Xno"; then
14717 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14718 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14719 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14722 archive_cmds_need_lc_F77=no
14723 allow_undefined_flag_F77=
14724 always_export_symbols_F77=no
14725 archive_expsym_cmds_F77=
14726 export_dynamic_flag_spec_F77=
14727 hardcode_direct_F77=no
14728 hardcode_libdir_flag_spec_F77=
14729 hardcode_libdir_flag_spec_ld_F77=
14730 hardcode_libdir_separator_F77=
14731 hardcode_minus_L_F77=no
14732 hardcode_automatic_F77=no
14734 module_expsym_cmds_F77=
14735 link_all_deplibs_F77=unknown
14736 old_archive_cmds_F77=$old_archive_cmds
14737 no_undefined_flag_F77=
14738 whole_archive_flag_spec_F77=
14739 enable_shared_with_static_runtimes_F77=no
14741 # Source file extension for f77 test sources.
14744 # Object file extension for compiled f77 test sources.
14748 # Code to be used in simple compile tests
14749 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14751 # Code to be used in simple link tests
14752 lt_simple_link_test_code=" program t\n end\n"
14754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14756 # If no C compiler was specified, use CC.
14759 # Allow CC to be a program name with arguments.
14763 # Allow CC to be a program name with arguments.
14768 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14770 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14771 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14772 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14773 echo "${ECHO_T}$can_build_shared" >&6
14775 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14776 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14777 test "$can_build_shared" = "no" && enable_shared=no
14779 # On AIX, shared libraries and static libraries use the same namespace, and
14780 # are all built from PIC.
14783 test "$enable_shared" = yes && enable_static=no
14784 if test -n "$RANLIB"; then
14785 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14786 postinstall_cmds='$RANLIB $lib'
14790 test "$enable_shared" = yes && enable_static=no
14793 echo "$as_me:$LINENO: result: $enable_shared" >&5
14794 echo "${ECHO_T}$enable_shared" >&6
14796 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14797 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14798 # Make sure either enable_shared or enable_static is yes.
14799 test "$enable_shared" = yes || enable_static=yes
14800 echo "$as_me:$LINENO: result: $enable_static" >&5
14801 echo "${ECHO_T}$enable_static" >&6
14803 test "$ld_shlibs_F77" = no && can_build_shared=no
14808 lt_prog_compiler_wl_F77=
14809 lt_prog_compiler_pic_F77=
14810 lt_prog_compiler_static_F77=
14812 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14815 if test "$GCC" = yes; then
14816 lt_prog_compiler_wl_F77='-Wl,'
14817 lt_prog_compiler_static_F77='-static'
14821 # All AIX code is PIC.
14822 if test "$host_cpu" = ia64; then
14823 # AIX 5 now supports IA64 processor
14824 lt_prog_compiler_static_F77='-Bstatic'
14829 # FIXME: we need at least 68020 code to build shared libraries, but
14830 # adding the `-m68020' flag to GCC prevents building anything better,
14832 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14835 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14836 # PIC is the default for these OSes.
14839 mingw* | pw32* | os2*)
14840 # This hack is so that the source file can tell whether it is being
14841 # built for inclusion in a dll (and should export symbols for example).
14842 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14845 darwin* | rhapsody*)
14846 # PIC is the default on this platform
14847 # Common symbols not allowed in MH_DYLIB files
14848 lt_prog_compiler_pic_F77='-fno-common'
14852 # Just because we use GCC doesn't mean we suddenly get shared libraries
14853 # on systems that don't support them.
14854 lt_prog_compiler_can_build_shared_F77=no
14859 if test -d /usr/nec; then
14860 lt_prog_compiler_pic_F77=-Kconform_pic
14865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14866 # not for PA HP-UX.
14867 case "$host_cpu" in
14872 lt_prog_compiler_pic_F77='-fPIC'
14878 lt_prog_compiler_pic_F77='-fPIC'
14882 # PORTME Check for flag to pass linker flags through the system compiler.
14885 lt_prog_compiler_wl_F77='-Wl,'
14886 if test "$host_cpu" = ia64; then
14887 # AIX 5 now supports IA64 processor
14888 lt_prog_compiler_static_F77='-Bstatic'
14890 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14894 mingw* | pw32* | os2*)
14895 # This hack is so that the source file can tell whether it is being
14896 # built for inclusion in a dll (and should export symbols for example).
14897 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14900 hpux9* | hpux10* | hpux11*)
14901 lt_prog_compiler_wl_F77='-Wl,'
14902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14903 # not for PA HP-UX.
14904 case "$host_cpu" in
14909 lt_prog_compiler_pic_F77='+Z'
14912 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14913 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14916 irix5* | irix6* | nonstopux*)
14917 lt_prog_compiler_wl_F77='-Wl,'
14918 # PIC (with -KPIC) is the default.
14919 lt_prog_compiler_static_F77='-non_shared'
14923 lt_prog_compiler_pic_F77='-KPIC'
14924 lt_prog_compiler_static_F77='-Bstatic'
14930 lt_prog_compiler_wl_F77='-Wl,'
14931 lt_prog_compiler_pic_F77='-KPIC'
14932 lt_prog_compiler_static_F77='-static'
14935 lt_prog_compiler_wl_F77='-Wl,'
14936 # All Alpha code is PIC.
14937 lt_prog_compiler_static_F77='-non_shared'
14942 osf3* | osf4* | osf5*)
14943 lt_prog_compiler_wl_F77='-Wl,'
14944 # All OSF/1 code is PIC.
14945 lt_prog_compiler_static_F77='-non_shared'
14949 lt_prog_compiler_pic_F77='-Kpic'
14950 lt_prog_compiler_static_F77='-dn'
14954 lt_prog_compiler_wl_F77='-Wl,'
14955 lt_prog_compiler_pic_F77='-KPIC'
14956 lt_prog_compiler_static_F77='-Bstatic'
14960 lt_prog_compiler_wl_F77='-Qoption ld '
14961 lt_prog_compiler_pic_F77='-PIC'
14962 lt_prog_compiler_static_F77='-Bstatic'
14965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14966 lt_prog_compiler_wl_F77='-Wl,'
14967 lt_prog_compiler_pic_F77='-KPIC'
14968 lt_prog_compiler_static_F77='-Bstatic'
14972 if test -d /usr/nec ;then
14973 lt_prog_compiler_pic_F77='-Kconform_pic'
14974 lt_prog_compiler_static_F77='-Bstatic'
14979 lt_prog_compiler_pic_F77='-pic'
14980 lt_prog_compiler_static_F77='-Bstatic'
14984 lt_prog_compiler_can_build_shared_F77=no
14989 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14990 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14993 # Check to make sure the PIC flag actually works.
14995 if test -n "$lt_prog_compiler_pic_F77"; then
14997 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14999 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15002 lt_prog_compiler_pic_works_F77=no
15003 ac_outfile=conftest.$ac_objext
15004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15005 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15006 # Insert the option either (1) after the last *FLAGS variable, or
15007 # (2) before a word containing "conftest.", or (3) at the end.
15008 # Note that $ac_compile itself does not contain backslashes and begins
15009 # with a dollar sign (not a hyphen), so the echo should work correctly.
15010 # The option is referenced via a variable to avoid confusing sed.
15011 lt_compile=`echo "$ac_compile" | $SED \
15012 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15014 -e 's:$: $lt_compiler_flag:'`
15015 (eval echo "\"\$as_me:15015: $lt_compile\"" >&5)
15016 (eval "$lt_compile" 2>conftest.err)
15018 cat conftest.err >&5
15019 echo "$as_me:15019: \$? = $ac_status" >&5
15020 if (exit $ac_status) && test -s "$ac_outfile"; then
15021 # The compiler can only warn and ignore the option if not recognized
15022 # So say no if there are warnings
15023 if test ! -s conftest.err; then
15024 lt_prog_compiler_pic_works_F77=yes
15030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15031 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15033 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15034 case $lt_prog_compiler_pic_F77 in
15036 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15039 lt_prog_compiler_pic_F77=
15040 lt_prog_compiler_can_build_shared_F77=no
15045 # For platforms which do not support PIC, -DPIC is meaningless:
15047 lt_prog_compiler_pic_F77=
15050 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15054 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15055 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15056 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 lt_cv_prog_compiler_c_o_F77=no
15060 $rm -r conftest 2>/dev/null
15064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15066 lt_compiler_flag="-o out/conftest2.$ac_objext"
15067 # Insert the option either (1) after the last *FLAGS variable, or
15068 # (2) before a word containing "conftest.", or (3) at the end.
15069 # Note that $ac_compile itself does not contain backslashes and begins
15070 # with a dollar sign (not a hyphen), so the echo should work correctly.
15071 lt_compile=`echo "$ac_compile" | $SED \
15072 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15074 -e 's:$: $lt_compiler_flag:'`
15075 (eval echo "\"\$as_me:15075: $lt_compile\"" >&5)
15076 (eval "$lt_compile" 2>out/conftest.err)
15078 cat out/conftest.err >&5
15079 echo "$as_me:15079: \$? = $ac_status" >&5
15080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15082 # The compiler can only warn and ignore the option if not recognized
15083 # So say no if there are warnings
15084 if test ! -s out/conftest.err; then
15085 lt_cv_prog_compiler_c_o_F77=yes
15090 # SGI C++ compiler will create directory out/ii_files/ for
15091 # template instantiation
15092 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15093 $rm out/* && rmdir out
15099 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15103 hard_links="nottested"
15104 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15105 # do not overwrite the value of need_locks provided by the user
15106 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112 ln conftest.a conftest.b 2>&5 || hard_links=no
15113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114 echo "$as_me:$LINENO: result: $hard_links" >&5
15115 echo "${ECHO_T}$hard_links" >&6
15116 if test "$hard_links" = no; then
15117 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15125 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15129 allow_undefined_flag_F77=
15130 enable_shared_with_static_runtimes_F77=no
15132 archive_expsym_cmds_F77=
15133 old_archive_From_new_cmds_F77=
15134 old_archive_from_expsyms_cmds_F77=
15135 export_dynamic_flag_spec_F77=
15136 whole_archive_flag_spec_F77=
15137 thread_safe_flag_spec_F77=
15138 hardcode_libdir_flag_spec_F77=
15139 hardcode_libdir_flag_spec_ld_F77=
15140 hardcode_libdir_separator_F77=
15141 hardcode_direct_F77=no
15142 hardcode_minus_L_F77=no
15143 hardcode_shlibpath_var_F77=unsupported
15144 link_all_deplibs_F77=unknown
15145 hardcode_automatic_F77=no
15147 module_expsym_cmds_F77=
15148 always_export_symbols_F77=no
15149 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150 # include_expsyms should be a list of space-separated symbols to be *always*
15151 # included in the symbol list
15152 include_expsyms_F77=
15153 # exclude_expsyms can be an extended regexp of symbols to exclude
15154 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15155 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15156 # as well as any symbol that contains `d'.
15157 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15158 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15159 # platforms (ab)use it in PIC code, but their linkers get confused if
15160 # the symbol is explicitly referenced. Since portable code cannot
15161 # rely on this symbol name, it's probably fine to never include it in
15162 # preloaded symbol tables.
15163 extract_expsyms_cmds=
15166 cygwin* | mingw* | pw32*)
15167 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15168 # When not using gcc, we currently assume that we are using
15169 # Microsoft Visual C++.
15170 if test "$GCC" != yes; then
15180 if test "$with_gnu_ld" = yes; then
15181 # If archive_cmds runs LD, not CC, wlarc should be empty
15184 # See if GNU ld supports shared libraries.
15186 aix3* | aix4* | aix5*)
15187 # On AIX/PPC, the GNU linker is very broken
15188 if test "$host_cpu" != ia64; then
15192 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15193 *** to be unable to reliably create shared libraries on AIX.
15194 *** Therefore, libtool is disabling shared libraries support. If you
15195 *** really care for shared libraries, you may want to modify your PATH
15196 *** so that a non-GNU linker is found, and then restart.
15203 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)'
15204 hardcode_libdir_flag_spec_F77='-L$libdir'
15205 hardcode_minus_L_F77=yes
15207 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15208 # that the semantics of dynamic libraries on AmigaOS, at least up
15209 # to version 4, is to share data among multiple programs linked
15210 # with the same dynamic library. Since this doesn't match the
15211 # behavior of shared libraries on other platforms, we can't use
15217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15218 allow_undefined_flag_F77=unsupported
15219 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15220 # support --undefined. This deserves some investigation. FIXME
15221 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15227 cygwin* | mingw* | pw32*)
15228 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15229 # as there is no search path for DLLs.
15230 hardcode_libdir_flag_spec_F77='-L$libdir'
15231 allow_undefined_flag_F77=unsupported
15232 always_export_symbols_F77=no
15233 enable_shared_with_static_runtimes_F77=yes
15234 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15236 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15238 # If the export-symbols file already is a .def file (1st line
15239 # is EXPORTS), use it as is; otherwise, prepend...
15240 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15241 cp $export_symbols $output_objdir/$soname.def;
15243 echo EXPORTS > $output_objdir/$soname.def;
15244 cat $export_symbols >> $output_objdir/$soname.def;
15246 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15254 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15257 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15258 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15263 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15268 *** create shared libraries on Solaris systems. Therefore, libtool
15269 *** is disabling shared libraries support. We urge you to upgrade GNU
15270 *** binutils to release 2.9.1 or newer. Another option is to modify
15271 *** your PATH or compiler configuration so that the native linker is
15272 *** used, and then restart.
15275 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15277 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15284 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286 hardcode_direct_F77=yes
15287 hardcode_shlibpath_var_F77=no
15291 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15292 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293 archive_cmds_F77="$tmp_archive_cmds"
15294 supports_anon_versioning=no
15295 case `$LD -v 2>/dev/null` in
15296 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15297 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15298 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15299 *\ 2.11.*) ;; # other 2.11 versions
15300 *) supports_anon_versioning=yes ;;
15302 if test $supports_anon_versioning = yes; then
15303 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15304 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15305 $echo "local: *; };" >> $output_objdir/$libname.ver~
15306 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15308 archive_expsym_cmds_F77="$tmp_archive_cmds"
15316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15317 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15325 if test "$ld_shlibs_F77" = yes; then
15326 runpath_var=LD_RUN_PATH
15327 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15328 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15329 # ancient GNU ld didn't support --whole-archive et. al.
15330 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15331 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15333 whole_archive_flag_spec_F77=
15337 # PORTME fill in a description of your system's linker (not GNU ld)
15340 allow_undefined_flag_F77=unsupported
15341 always_export_symbols_F77=yes
15342 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'
15343 # Note: this linker hardcodes the directories in LIBPATH if there
15344 # are no directories specified by -L.
15345 hardcode_minus_L_F77=yes
15346 if test "$GCC" = yes && test -z "$link_static_flag"; then
15347 # Neither direct hardcoding nor static linking is supported with a
15349 hardcode_direct_F77=unsupported
15354 if test "$host_cpu" = ia64; then
15355 # On IA64, the linker does run time linking by default, so we don't
15356 # have to do anything special.
15357 aix_use_runtimelinking=no
15358 exp_sym_flag='-Bexport'
15361 # If we're using GNU nm, then we don't want the "-C" option.
15362 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15363 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15364 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'
15366 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'
15368 aix_use_runtimelinking=no
15370 # Test if we are trying to use run time linking or normal
15371 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15372 # need to do runtime linking.
15373 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15374 for ld_flag in $LDFLAGS; do
15375 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15376 aix_use_runtimelinking=yes
15382 exp_sym_flag='-bexport'
15383 no_entry_flag='-bnoentry'
15386 # When large executables or shared objects are built, AIX ld can
15387 # have problems creating the table of contents. If linking a library
15388 # or program results in "error TOC overflow" add -mminimal-toc to
15389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15392 archive_cmds_F77=''
15393 hardcode_direct_F77=yes
15394 hardcode_libdir_separator_F77=':'
15395 link_all_deplibs_F77=yes
15397 if test "$GCC" = yes; then
15398 case $host_os in aix4.012|aix4.012.*)
15399 # We only want to do this on AIX 4.2 and lower, the check
15400 # below for broken collect2 doesn't work under 4.3+
15401 collect2name=`${CC} -print-prog-name=collect2`
15402 if test -f "$collect2name" && \
15403 strings "$collect2name" | grep resolve_lib_name >/dev/null
15405 # We have reworked collect2
15406 hardcode_direct_F77=yes
15408 # We have old collect2
15409 hardcode_direct_F77=unsupported
15410 # It fails to find uninstalled libraries when the uninstalled
15411 # path is not listed in the libpath. Setting hardcode_minus_L
15412 # to unsupported forces relinking
15413 hardcode_minus_L_F77=yes
15414 hardcode_libdir_flag_spec_F77='-L$libdir'
15415 hardcode_libdir_separator_F77=
15418 shared_flag='-shared'
15421 if test "$host_cpu" = ia64; then
15422 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15423 # chokes on -Wl,-G. The following line is correct:
15426 if test "$aix_use_runtimelinking" = yes; then
15427 shared_flag='${wl}-G'
15429 shared_flag='${wl}-bM:SRE'
15434 # It seems that -bexpall does not export symbols beginning with
15435 # underscore (_), so it is better to generate a list of symbols to export.
15436 always_export_symbols_F77=yes
15437 if test "$aix_use_runtimelinking" = yes; then
15438 # Warning - without using the other runtime loading flags (-brtl),
15439 # -berok will link without error, but may produce a broken library.
15440 allow_undefined_flag_F77='-berok'
15441 # Determine the default libpath from the value encoded in an empty executable.
15442 cat >conftest.$ac_ext <<_ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15449 (eval $ac_link) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_f77_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest$ac_exeext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15472 # Check for a 64-bit object if we didn't find anything.
15473 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15480 rm -f conftest.err conftest.$ac_objext \
15481 conftest$ac_exeext conftest.$ac_ext
15482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15484 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15485 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15487 if test "$host_cpu" = ia64; then
15488 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15489 allow_undefined_flag_F77="-z nodefs"
15490 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15492 # Determine the default libpath from the value encoded in an empty executable.
15493 cat >conftest.$ac_ext <<_ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15500 (eval $ac_link) 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } &&
15507 { ac_try='test -z "$ac_f77_werror_flag"
15508 || test ! -s conftest.err'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; } &&
15514 { ac_try='test -s conftest$ac_exeext'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15521 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15523 # Check for a 64-bit object if we didn't find anything.
15524 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15531 rm -f conftest.err conftest.$ac_objext \
15532 conftest$ac_exeext conftest.$ac_ext
15533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15535 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536 # Warning - without using the other run time loading flags,
15537 # -berok will link without error, but may produce a broken library.
15538 no_undefined_flag_F77=' ${wl}-bernotok'
15539 allow_undefined_flag_F77=' ${wl}-berok'
15540 # -bexpall does not export symbols beginning with underscore (_)
15541 always_export_symbols_F77=yes
15542 # Exported symbols can be pulled into shared objects from archives
15543 whole_archive_flag_spec_F77=' '
15544 archive_cmds_need_lc_F77=yes
15545 # This is similar to how AIX traditionally builds it's shared libraries.
15546 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15552 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)'
15553 hardcode_libdir_flag_spec_F77='-L$libdir'
15554 hardcode_minus_L_F77=yes
15555 # see comment about different semantics on the GNU ld section
15560 export_dynamic_flag_spec_F77=-rdynamic
15563 cygwin* | mingw* | pw32*)
15564 # When not using gcc, we currently assume that we are using
15565 # Microsoft Visual C++.
15566 # hardcode_libdir_flag_spec is actually meaningless, as there is
15567 # no search path for DLLs.
15568 hardcode_libdir_flag_spec_F77=' '
15569 allow_undefined_flag_F77=unsupported
15570 # Tell ltmain to make .lib files, not .a files.
15572 # Tell ltmain to make .dll files, not .so files.
15574 # FIXME: Setting linknames here is a bad hack.
15575 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15576 # The linker will automatically build a .lib file if we build a DLL.
15577 old_archive_From_new_cmds_F77='true'
15578 # FIXME: Should let the user specify the lib program.
15579 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15580 fix_srcfile_path='`cygpath -w "$srcfile"`'
15581 enable_shared_with_static_runtimes_F77=yes
15584 darwin* | rhapsody*)
15585 if test "$GXX" = yes ; then
15586 archive_cmds_need_lc_F77=no
15588 rhapsody* | darwin1.[012])
15589 allow_undefined_flag_F77='-undefined suppress'
15592 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15593 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15595 case ${MACOSX_DEPLOYMENT_TARGET} in
15597 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15600 allow_undefined_flag_F77='-undefined dynamic_lookup'
15606 lt_int_apple_cc_single_mod=no
15607 output_verbose_link_cmd='echo'
15608 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15609 lt_int_apple_cc_single_mod=yes
15611 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15612 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15614 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15616 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15617 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15619 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15621 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15623 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}'
15624 hardcode_direct_F77=no
15625 hardcode_automatic_F77=yes
15626 hardcode_shlibpath_var_F77=unsupported
15627 whole_archive_flag_spec_F77='-all_load $convenience'
15628 link_all_deplibs_F77=yes
15635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636 hardcode_libdir_flag_spec_F77='-L$libdir'
15637 hardcode_shlibpath_var_F77=no
15644 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15645 # support. Future versions do this automatically, but an explicit c++rt0.o
15646 # does not break anything, and helps significantly (at the cost of a little
15649 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15650 hardcode_libdir_flag_spec_F77='-R$libdir'
15651 hardcode_direct_F77=yes
15652 hardcode_shlibpath_var_F77=no
15655 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15657 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_direct_F77=yes
15659 hardcode_minus_L_F77=yes
15660 hardcode_shlibpath_var_F77=no
15663 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15664 freebsd* | kfreebsd*-gnu)
15665 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15666 hardcode_libdir_flag_spec_F77='-R$libdir'
15667 hardcode_direct_F77=yes
15668 hardcode_shlibpath_var_F77=no
15672 if test "$GCC" = yes; then
15673 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'
15675 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'
15677 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15678 hardcode_libdir_separator_F77=:
15679 hardcode_direct_F77=yes
15681 # hardcode_minus_L: Not really in the search PATH,
15682 # but as the default location of the library.
15683 hardcode_minus_L_F77=yes
15684 export_dynamic_flag_spec_F77='${wl}-E'
15688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15689 case "$host_cpu" in
15691 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15698 case "$host_cpu" in
15700 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15703 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15707 if test "$with_gnu_ld" = no; then
15708 case "$host_cpu" in
15710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15711 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15712 hardcode_libdir_separator_F77=:
15713 hardcode_direct_F77=no
15714 hardcode_shlibpath_var_F77=no
15717 hardcode_libdir_flag_spec_F77='-L$libdir'
15718 hardcode_direct_F77=no
15719 hardcode_shlibpath_var_F77=no
15721 # hardcode_minus_L: Not really in the search PATH,
15722 # but as the default location of the library.
15723 hardcode_minus_L_F77=yes
15726 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15727 hardcode_libdir_separator_F77=:
15728 hardcode_direct_F77=yes
15729 export_dynamic_flag_spec_F77='${wl}-E'
15731 # hardcode_minus_L: Not really in the search PATH,
15732 # but as the default location of the library.
15733 hardcode_minus_L_F77=yes
15739 irix5* | irix6* | nonstopux*)
15740 if test "$GCC" = yes; then
15741 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'
15743 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'
15744 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15747 hardcode_libdir_separator_F77=:
15748 link_all_deplibs_F77=yes
15752 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15753 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15755 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15757 hardcode_libdir_flag_spec_F77='-R$libdir'
15758 hardcode_direct_F77=yes
15759 hardcode_shlibpath_var_F77=no
15763 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15764 hardcode_direct_F77=yes
15765 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15766 hardcode_libdir_separator_F77=:
15767 hardcode_shlibpath_var_F77=no
15771 hardcode_direct_F77=yes
15772 hardcode_shlibpath_var_F77=no
15773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15774 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15776 export_dynamic_flag_spec_F77='${wl}-E'
15779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15780 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15781 hardcode_libdir_flag_spec_F77='-R$libdir'
15784 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15792 hardcode_libdir_flag_spec_F77='-L$libdir'
15793 hardcode_minus_L_F77=yes
15794 allow_undefined_flag_F77=unsupported
15795 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'
15796 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15800 if test "$GCC" = yes; then
15801 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15802 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'
15804 allow_undefined_flag_F77=' -expect_unresolved \*'
15805 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'
15807 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15808 hardcode_libdir_separator_F77=:
15811 osf4* | osf5*) # as osf3* with the addition of -msym flag
15812 if test "$GCC" = yes; then
15813 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15814 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'
15815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15817 allow_undefined_flag_F77=' -expect_unresolved \*'
15818 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'
15819 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~
15820 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15822 # Both c and cxx compiler support -rpath directly
15823 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15825 hardcode_libdir_separator_F77=:
15829 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15830 hardcode_shlibpath_var_F77=no
15831 export_dynamic_flag_spec_F77='${wl}-Bexport'
15832 runpath_var=LD_RUN_PATH
15833 hardcode_runpath_var=yes
15837 no_undefined_flag_F77=' -z text'
15838 if test "$GCC" = yes; then
15839 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15841 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15843 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15844 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15845 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15847 hardcode_libdir_flag_spec_F77='-R$libdir'
15848 hardcode_shlibpath_var_F77=no
15850 solaris2.[0-5] | solaris2.[0-5].*) ;;
15851 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15852 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15854 link_all_deplibs_F77=yes
15858 if test "x$host_vendor" = xsequent; then
15859 # Use $CC to link under sequent, because it throws in some extra .o
15860 # files that make .init and .fini sections work.
15861 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_libdir_flag_spec_F77='-L$libdir'
15866 hardcode_direct_F77=yes
15867 hardcode_minus_L_F77=yes
15868 hardcode_shlibpath_var_F77=no
15872 case $host_vendor in
15874 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15875 hardcode_direct_F77=yes # is this really true???
15878 ## LD is ld it makes a PLAMLIB
15879 ## CC just makes a GrossModule.
15880 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15881 reload_cmds_F77='$CC -r -o $output$reload_objs'
15882 hardcode_direct_F77=no
15885 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15889 runpath_var='LD_RUN_PATH'
15890 hardcode_shlibpath_var_F77=no
15894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_shlibpath_var_F77=no
15896 export_dynamic_flag_spec_F77='-Bexport'
15900 if test -d /usr/nec; then
15901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15902 hardcode_shlibpath_var_F77=no
15903 runpath_var=LD_RUN_PATH
15904 hardcode_runpath_var=yes
15910 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15911 hardcode_direct_F77=yes
15912 hardcode_minus_L_F77=no
15913 hardcode_shlibpath_var_F77=no
15914 hardcode_runpath_var=yes
15915 runpath_var=LD_RUN_PATH
15918 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15919 no_undefined_flag_F77='${wl}-z ${wl}text'
15920 if test "$GCC" = yes; then
15921 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15923 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15925 runpath_var='LD_RUN_PATH'
15926 hardcode_shlibpath_var_F77=no
15930 no_undefined_flag_F77=' -z text'
15931 # $CC -shared without GNU ld will not create a library from C++
15932 # object files and a static libstdc++, better avoid it by now
15933 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15936 hardcode_libdir_flag_spec_F77=
15937 hardcode_shlibpath_var_F77=no
15938 runpath_var='LD_RUN_PATH'
15942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943 hardcode_libdir_flag_spec_F77='-L$libdir'
15944 hardcode_shlibpath_var_F77=no
15953 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15954 echo "${ECHO_T}$ld_shlibs_F77" >&6
15955 test "$ld_shlibs_F77" = no && can_build_shared=no
15957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15958 if test "$GCC" = yes; then
15959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15963 # Do we need to explicitly link libc?
15965 case "x$archive_cmds_need_lc_F77" in
15967 # Assume -lc should be added
15968 archive_cmds_need_lc_F77=yes
15970 if test "$enable_shared" = yes && test "$GCC" = yes; then
15971 case $archive_cmds_F77 in
15973 # FIXME: we may have to deal with multi-command sequences.
15976 # Test whether the compiler implicitly links with -lc since on some
15977 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15978 # to ld, don't add -lc before -lgcc.
15979 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15980 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } 2>conftest.err; then
15991 libobjs=conftest.$ac_objext
15993 wl=$lt_prog_compiler_wl_F77
15999 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16000 allow_undefined_flag_F77=
16001 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16002 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }
16007 archive_cmds_need_lc_F77=no
16009 archive_cmds_need_lc_F77=yes
16011 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16013 cat conftest.err 1>&5
16016 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16017 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16024 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16025 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16026 library_names_spec=
16027 libname_spec='lib$name'
16031 postuninstall_cmds=
16035 shlibpath_overrides_runpath=unknown
16037 dynamic_linker="$host_os ld.so"
16038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16039 if test "$GCC" = yes; then
16040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16041 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16042 # if the path contains ";" then we assume it to be the separator
16043 # otherwise default to the standard path separator (i.e. ":") - it is
16044 # assumed that no part of a normal pathname contains ";" but that should
16045 # okay in the real world where ";" in dirpaths is itself problematic.
16046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16051 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16053 need_lib_prefix=unknown
16054 hardcode_into_libs=no
16056 # when you set need_version to no, make sure it does not cause -set_version
16057 # flags to be left without arguments
16058 need_version=unknown
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16064 shlibpath_var=LIBPATH
16066 # AIX 3 has no versioning support, so we append a major version to the name.
16067 soname_spec='${libname}${release}${shared_ext}$major'
16074 hardcode_into_libs=yes
16075 if test "$host_cpu" = ia64; then
16076 # AIX 5 supports IA64
16077 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16078 shlibpath_var=LD_LIBRARY_PATH
16080 # With GCC up to 2.95.x, collect2 would create an import file
16081 # for dependence libraries. The import file would start with
16082 # the line `#! .'. This would cause the generated library to
16083 # depend on `.', always an invalid library. This was fixed in
16084 # development snapshots of GCC prior to 3.0.
16086 aix4 | aix4.[01] | aix4.[01].*)
16087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16089 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16092 can_build_shared=no
16096 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16097 # soname into executable. Probably we can add versioning support to
16098 # collect2, so additional links can be useful in future.
16099 if test "$aix_use_runtimelinking" = yes; then
16100 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16101 # instead of lib<name>.a to let people know that these are not
16102 # typical AIX shared libraries.
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 # We preserve .a as extension for shared libraries through AIX4.2
16106 # and later when we are not doing run time linking.
16107 library_names_spec='${libname}${release}.a $libname.a'
16108 soname_spec='${libname}${release}${shared_ext}$major'
16110 shlibpath_var=LIBPATH
16115 library_names_spec='$libname.ixlibrary $libname.a'
16116 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16117 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'
16121 library_names_spec='${libname}${shared_ext}'
16122 dynamic_linker="$host_os ld.so"
16123 shlibpath_var=LIBRARY_PATH
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16135 # the default ld.so.conf also contains /usr/contrib/lib and
16136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16137 # libtool to hard-code these into programs
16140 cygwin* | mingw* | pw32*)
16141 version_type=windows
16146 case $GCC,$host_os in
16147 yes,cygwin* | yes,mingw* | yes,pw32*)
16148 library_names_spec='$libname.dll.a'
16149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16150 postinstall_cmds='base_file=`basename \${file}`~
16151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16152 dldir=$destdir/`dirname \$dlpath`~
16153 test -d \$dldir || mkdir -p \$dldir~
16154 $install_prog $dir/$dlname \$dldir/$dlname'
16155 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16156 dlpath=$dir/\$dldll~
16158 shlibpath_overrides_runpath=yes
16162 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16163 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16164 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16167 # MinGW DLLs use traditional 'lib' prefix
16168 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16170 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16171 # It is most probably a Windows format PATH printed by
16172 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16173 # path with ; separators, and with drive letters. We can handle the
16174 # drive letters (cygwin fileutils understands them), so leave them,
16175 # especially as we might pass files found there to a mingw objdump,
16176 # which wouldn't understand a cygwinified path. Ahh.
16177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16183 # pw32 DLLs use 'pw' prefix rather than 'lib'
16184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16193 dynamic_linker='Win32 ld.exe'
16194 # FIXME: first we should search . and the directory the executable is in
16198 darwin* | rhapsody*)
16199 dynamic_linker="$host_os dyld"
16200 version_type=darwin
16203 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16204 soname_spec='${libname}${release}${major}$shared_ext'
16205 shlibpath_overrides_runpath=yes
16206 shlibpath_var=DYLD_LIBRARY_PATH
16207 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16208 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16209 if test "$GCC" = yes; then
16210 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16212 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16222 soname_spec='${libname}${release}${shared_ext}$major'
16223 shlibpath_var=LD_LIBRARY_PATH
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16235 soname_spec='${libname}${release}${shared_ext}$major'
16236 shlibpath_var=LD_LIBRARY_PATH
16237 shlibpath_overrides_runpath=no
16238 hardcode_into_libs=yes
16239 dynamic_linker='GNU ld.so'
16243 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16244 version_type=freebsd-$objformat
16245 case $version_type in
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16256 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=yes
16261 freebsd3.01* | freebsdelf3.01*)
16262 shlibpath_overrides_runpath=yes
16263 hardcode_into_libs=yes
16266 shlibpath_overrides_runpath=no
16267 hardcode_into_libs=yes
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 hardcode_into_libs=yes
16282 hpux9* | hpux10* | hpux11*)
16283 # Give a soname corresponding to the major version so that dld.sl refuses to
16284 # link against other versions.
16288 case "$host_cpu" in
16291 hardcode_into_libs=yes
16292 dynamic_linker="$host_os dld.so"
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 if test "X$HPUX_IA64_MODE" = X32; then
16298 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16300 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16302 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16306 hardcode_into_libs=yes
16307 dynamic_linker="$host_os dld.sl"
16308 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16309 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16313 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16317 dynamic_linker="$host_os dld.sl"
16318 shlibpath_var=SHLIB_PATH
16319 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 soname_spec='${libname}${release}${shared_ext}$major'
16324 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16325 postinstall_cmds='chmod 555 $lib'
16328 irix5* | irix6* | nonstopux*)
16330 nonstopux*) version_type=nonstopux ;;
16332 if test "$lt_cv_prog_gnu_ld" = yes; then
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16343 irix5* | nonstopux*)
16344 libsuff= shlibsuff=
16347 case $LD in # libtool.m4 will add one of these switches to LD
16348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16349 libsuff= shlibsuff= libmagic=32-bit;;
16350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16351 libsuff=32 shlibsuff=N32 libmagic=N32;;
16352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16353 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16354 *) libsuff= shlibsuff= libmagic=never-match;;
16358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16359 shlibpath_overrides_runpath=no
16360 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16361 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16362 hardcode_into_libs=yes
16365 # No shared lib support for Linux oldld, aout, or coff.
16366 linux*oldld* | linux*aout* | linux*coff*)
16370 # This must be Linux ELF.
16375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376 soname_spec='${libname}${release}${shared_ext}$major'
16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 shlibpath_overrides_runpath=no
16380 # This implies no fast_install, which is unacceptable.
16381 # Some rework will be needed to allow for fast_install
16382 # before this can be enabled.
16383 hardcode_into_libs=yes
16385 # Append ld.so.conf contents to the search path
16386 if test -f /etc/ld.so.conf; then
16387 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
16388 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
16391 # We used to test for /lib/ld.so.1 and disable shared libraries on
16392 # powerpc, because MkLinux only supported shared libraries with the
16393 # GNU dynamic linker. Since this was broken with cross compilers,
16394 # most powerpc-linux boxes support dynamic linking these days and
16395 # people can always --disable-shared, the test was removed, and we
16396 # assume the GNU/Linux dynamic linker is in use.
16397 dynamic_linker='GNU/Linux ld.so'
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16405 soname_spec='${libname}${release}${shared_ext}$major'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=no
16408 hardcode_into_libs=yes
16409 dynamic_linker='GNU ld.so'
16416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16419 dynamic_linker='NetBSD (a.out) ld.so'
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 dynamic_linker='NetBSD ld.elf_so'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16427 hardcode_into_libs=yes
16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=yes
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 shlibpath_overrides_runpath=yes
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16453 shlibpath_var=LD_LIBRARY_PATH
16454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16456 openbsd2.[89] | openbsd2.[89].*)
16457 shlibpath_overrides_runpath=no
16460 shlibpath_overrides_runpath=yes
16464 shlibpath_overrides_runpath=yes
16469 libname_spec='$name'
16472 library_names_spec='$libname${shared_ext} $libname.a'
16473 dynamic_linker='OS/2 ld.exe'
16474 shlibpath_var=LIBPATH
16477 osf3* | osf4* | osf5*)
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 shlibpath_var=LD_LIBRARY_PATH
16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 soname_spec='${libname}${release}${shared_ext}$major'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes
16503 hardcode_into_libs=yes
16504 # ldd complains unless libraries are executable
16505 postinstall_cmds='chmod +x $lib'
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16512 shlibpath_var=LD_LIBRARY_PATH
16513 shlibpath_overrides_runpath=yes
16514 if test "$with_gnu_ld" = yes; then
16520 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523 soname_spec='${libname}${release}${shared_ext}$major'
16524 shlibpath_var=LD_LIBRARY_PATH
16525 case $host_vendor in
16527 shlibpath_overrides_runpath=no
16529 export_dynamic_flag_spec='${wl}-Blargedynsym'
16530 runpath_var=LD_RUN_PATH
16538 shlibpath_overrides_runpath=no
16539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16545 if test -d /usr/nec ;then
16547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16548 soname_spec='$libname${shared_ext}.$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16564 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16565 echo "${ECHO_T}$dynamic_linker" >&6
16566 test "$dynamic_linker" = no && can_build_shared=no
16568 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16569 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16570 hardcode_action_F77=
16571 if test -n "$hardcode_libdir_flag_spec_F77" || \
16572 test -n "$runpath_var F77" || \
16573 test "X$hardcode_automatic_F77"="Xyes" ; then
16575 # We can hardcode non-existant directories.
16576 if test "$hardcode_direct_F77" != no &&
16577 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16578 # have to relink, otherwise we might link with an installed library
16579 # when we should be linking with a yet-to-be-installed one
16580 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16581 test "$hardcode_minus_L_F77" != no; then
16582 # Linking always hardcodes the temporary library directory.
16583 hardcode_action_F77=relink
16585 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16586 hardcode_action_F77=immediate
16589 # We cannot hardcode anything, or else we can only hardcode existing
16591 hardcode_action_F77=unsupported
16593 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16594 echo "${ECHO_T}$hardcode_action_F77" >&6
16596 if test "$hardcode_action_F77" = relink; then
16597 # Fast installation is not supported
16598 enable_fast_install=no
16599 elif test "$shlibpath_overrides_runpath" = yes ||
16600 test "$enable_shared" = no; then
16601 # Fast installation is not necessary
16602 enable_fast_install=needless
16607 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16608 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16609 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16612 echo "$as_me:$LINENO: result: yes" >&5
16613 echo "${ECHO_T}yes" >&6
16615 # FIXME - insert some real tests, host_os isn't really good enough
16618 if test -n "$STRIP" ; then
16619 striplib="$STRIP -x"
16620 echo "$as_me:$LINENO: result: yes" >&5
16621 echo "${ECHO_T}yes" >&6
16623 echo "$as_me:$LINENO: result: no" >&5
16624 echo "${ECHO_T}no" >&6
16628 echo "$as_me:$LINENO: result: no" >&5
16629 echo "${ECHO_T}no" >&6
16636 # The else clause should only fire when bootstrapping the
16637 # libtool distribution, otherwise you forgot to ship ltmain.sh
16638 # with your package, and you will get complaints that there are
16639 # no rules to generate ltmain.sh.
16640 if test -f "$ltmain"; then
16641 # See if we are running on zsh, and set the options which allow our commands through
16642 # without removal of \ escapes.
16643 if test -n "${ZSH_VERSION+set}" ; then
16644 setopt NO_GLOB_SUBST
16646 # Now quote all the things that may contain metacharacters while being
16647 # careful not to overquote the AC_SUBSTed values. We take copies of the
16648 # variables and quote the copies for generation of the libtool script.
16649 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16651 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16652 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16653 deplibs_check_method reload_flag reload_cmds need_locks \
16654 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16655 lt_cv_sys_global_symbol_to_c_name_address \
16656 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16657 old_postinstall_cmds old_postuninstall_cmds \
16661 lt_prog_compiler_wl_F77 \
16662 lt_prog_compiler_pic_F77 \
16663 lt_prog_compiler_static_F77 \
16664 lt_prog_compiler_no_builtin_flag_F77 \
16665 export_dynamic_flag_spec_F77 \
16666 thread_safe_flag_spec_F77 \
16667 whole_archive_flag_spec_F77 \
16668 enable_shared_with_static_runtimes_F77 \
16669 old_archive_cmds_F77 \
16670 old_archive_from_new_cmds_F77 \
16671 predep_objects_F77 \
16672 postdep_objects_F77 \
16675 compiler_lib_search_path_F77 \
16677 archive_expsym_cmds_F77 \
16678 postinstall_cmds_F77 \
16679 postuninstall_cmds_F77 \
16680 old_archive_from_expsyms_cmds_F77 \
16681 allow_undefined_flag_F77 \
16682 no_undefined_flag_F77 \
16683 export_symbols_cmds_F77 \
16684 hardcode_libdir_flag_spec_F77 \
16685 hardcode_libdir_flag_spec_ld_F77 \
16686 hardcode_libdir_separator_F77 \
16687 hardcode_automatic_F77 \
16689 module_expsym_cmds_F77 \
16690 lt_cv_prog_compiler_c_o_F77 \
16691 exclude_expsyms_F77 \
16692 include_expsyms_F77; do
16695 old_archive_cmds_F77 | \
16696 old_archive_from_new_cmds_F77 | \
16697 archive_cmds_F77 | \
16698 archive_expsym_cmds_F77 | \
16699 module_cmds_F77 | \
16700 module_expsym_cmds_F77 | \
16701 old_archive_from_expsyms_cmds_F77 | \
16702 export_symbols_cmds_F77 | \
16703 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16704 postinstall_cmds | postuninstall_cmds | \
16705 old_postinstall_cmds | old_postuninstall_cmds | \
16706 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16707 # Double-quote double-evaled strings.
16708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16711 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16717 *'\$0 --fallback-echo"')
16718 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16724 cat <<__EOF__ >> "$cfgfile"
16725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16729 # Shell to use when invoking shell scripts.
16732 # Whether or not to build shared libraries.
16733 build_libtool_libs=$enable_shared
16735 # Whether or not to build static libraries.
16736 build_old_libs=$enable_static
16738 # Whether or not to add -lc for building shared libraries.
16739 build_libtool_need_lc=$archive_cmds_need_lc_F77
16741 # Whether or not to disallow shared libs when runtime libs are static
16742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16744 # Whether or not to optimize for fast installation.
16745 fast_install=$enable_fast_install
16748 host_alias=$host_alias
16751 # An echo program that does not interpret backslashes.
16756 AR_FLAGS=$lt_AR_FLAGS
16761 # A language-specific compiler.
16762 CC=$lt_compiler_F77
16764 # Is the compiler the GNU C compiler?
16770 # The linker used to build libraries.
16773 # Whether we need hard or soft links.
16776 # A BSD-compatible nm program.
16779 # A symbol stripping program
16782 # Used to examine libraries when file_magic_cmd begins "file"
16783 MAGIC_CMD=$MAGIC_CMD
16785 # Used on cygwin: DLL creation program.
16788 # Used on cygwin: object dumper.
16791 # Used on cygwin: assembler.
16794 # The name of the directory that contains temporary libtool files.
16797 # How to create reloadable object files.
16798 reload_flag=$lt_reload_flag
16799 reload_cmds=$lt_reload_cmds
16801 # How to pass a linker flag through the compiler.
16802 wl=$lt_lt_prog_compiler_wl_F77
16804 # Object file suffix (normally "o").
16805 objext="$ac_objext"
16807 # Old archive suffix (normally "a").
16810 # Shared library suffix (normally ".so").
16813 # Executable file suffix (normally "").
16816 # Additional compiler flags for building library objects.
16817 pic_flag=$lt_lt_prog_compiler_pic_F77
16820 # What is the maximum length of a command?
16821 max_cmd_len=$lt_cv_sys_max_cmd_len
16823 # Does compiler simultaneously support -c and -o options?
16824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16826 # Must we lock files when doing compilation ?
16827 need_locks=$lt_need_locks
16829 # Do we need the lib prefix for modules?
16830 need_lib_prefix=$need_lib_prefix
16832 # Do we need a version for libraries?
16833 need_version=$need_version
16835 # Whether dlopen is supported.
16836 dlopen_support=$enable_dlopen
16838 # Whether dlopen of programs is supported.
16839 dlopen_self=$enable_dlopen_self
16841 # Whether dlopen of statically linked programs is supported.
16842 dlopen_self_static=$enable_dlopen_self_static
16844 # Compiler flag to prevent dynamic linking.
16845 link_static_flag=$lt_lt_prog_compiler_static_F77
16847 # Compiler flag to turn off builtin functions.
16848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16850 # Compiler flag to allow reflexive dlopens.
16851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16853 # Compiler flag to generate shared objects directly from archives.
16854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16856 # Compiler flag to generate thread-safe objects.
16857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16859 # Library versioning type.
16860 version_type=$version_type
16862 # Format of library name prefix.
16863 libname_spec=$lt_libname_spec
16865 # List of archive names. First name is the real one, the rest are links.
16866 # The last name is the one that the linker finds with -lNAME.
16867 library_names_spec=$lt_library_names_spec
16869 # The coded name of the library, if different from the real name.
16870 soname_spec=$lt_soname_spec
16872 # Commands used to build and install an old-style archive.
16874 old_archive_cmds=$lt_old_archive_cmds_F77
16875 old_postinstall_cmds=$lt_old_postinstall_cmds
16876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16878 # Create an old-style archive from a shared archive.
16879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16881 # Create a temporary old-style archive to link instead of a shared archive.
16882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16884 # Commands used to build and install a shared archive.
16885 archive_cmds=$lt_archive_cmds_F77
16886 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16887 postinstall_cmds=$lt_postinstall_cmds
16888 postuninstall_cmds=$lt_postuninstall_cmds
16890 # Commands used to build a loadable module (assumed same as above if empty)
16891 module_cmds=$lt_module_cmds_F77
16892 module_expsym_cmds=$lt_module_expsym_cmds_F77
16894 # Commands to strip libraries.
16895 old_striplib=$lt_old_striplib
16896 striplib=$lt_striplib
16898 # Dependencies to place before the objects being linked to create a
16900 predep_objects=$lt_predep_objects_F77
16902 # Dependencies to place after the objects being linked to create a
16904 postdep_objects=$lt_postdep_objects_F77
16906 # Dependencies to place before the objects being linked to create a
16908 predeps=$lt_predeps_F77
16910 # Dependencies to place after the objects being linked to create a
16912 postdeps=$lt_postdeps_F77
16914 # The library search path used internally by the compiler when linking
16915 # a shared library.
16916 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16918 # Method to check whether dependent libraries are shared objects.
16919 deplibs_check_method=$lt_deplibs_check_method
16921 # Command to use when deplibs_check_method == file_magic.
16922 file_magic_cmd=$lt_file_magic_cmd
16924 # Flag that allows shared libraries with undefined symbols to be built.
16925 allow_undefined_flag=$lt_allow_undefined_flag_F77
16927 # Flag that forces no undefined symbols.
16928 no_undefined_flag=$lt_no_undefined_flag_F77
16930 # Commands used to finish a libtool library installation in a directory.
16931 finish_cmds=$lt_finish_cmds
16933 # Same as above, but a single script fragment to be evaled but not shown.
16934 finish_eval=$lt_finish_eval
16936 # Take the output of nm and produce a listing of raw symbols and C names.
16937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16939 # Transform the output of nm in a proper C declaration
16940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16942 # Transform the output of nm in a C name address pair
16943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16945 # This is the shared library runtime path variable.
16946 runpath_var=$runpath_var
16948 # This is the shared library path variable.
16949 shlibpath_var=$shlibpath_var
16951 # Is shlibpath searched before the hard-coded library search path?
16952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16954 # How to hardcode a shared library path into an executable.
16955 hardcode_action=$hardcode_action_F77
16957 # Whether we should hardcode library paths into libraries.
16958 hardcode_into_libs=$hardcode_into_libs
16960 # Flag to hardcode \$libdir into a binary during linking.
16961 # This must work even if \$libdir does not exist.
16962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16964 # If ld is used when linking, flag to hardcode \$libdir into
16965 # a binary during linking. This must work even if \$libdir does
16967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16969 # Whether we need a single -rpath flag with a separated argument.
16970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16973 # resulting binary.
16974 hardcode_direct=$hardcode_direct_F77
16976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16977 # resulting binary.
16978 hardcode_minus_L=$hardcode_minus_L_F77
16980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16981 # the resulting binary.
16982 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16984 # Set to yes if building a shared library automatically hardcodes DIR into the library
16985 # and all subsequent libraries and executables linked against it.
16986 hardcode_automatic=$hardcode_automatic_F77
16988 # Variables whose values should be saved in libtool wrapper scripts and
16989 # restored at relink time.
16990 variables_saved_for_relink="$variables_saved_for_relink"
16992 # Whether libtool must link a program against all its dependency libraries.
16993 link_all_deplibs=$link_all_deplibs_F77
16995 # Compile-time system search path for libraries
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16998 # Run-time system search path for libraries
16999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17001 # Fix the shell variable \$srcfile for the compiler.
17002 fix_srcfile_path="$fix_srcfile_path_F77"
17004 # Set to yes if exported symbols are required.
17005 always_export_symbols=$always_export_symbols_F77
17007 # The commands to list exported symbols.
17008 export_symbols_cmds=$lt_export_symbols_cmds_F77
17010 # The commands to extract the exported symbol list from a shared archive.
17011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17013 # Symbols that should not be listed in the preloaded symbols.
17014 exclude_expsyms=$lt_exclude_expsyms_F77
17016 # Symbols that must always be exported.
17017 include_expsyms=$lt_include_expsyms_F77
17019 # ### END LIBTOOL TAG CONFIG: $tagname
17025 # If there is no Makefile yet, we rely on a make rule to execute
17026 # `config.status --recheck' to rerun these tests and create the
17027 # libtool script then.
17028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17029 if test -f "$ltmain_in"; then
17030 test -f Makefile && make "$ltmain"
17036 ac_cpp='$CPP $CPPFLAGS'
17037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17049 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17053 # Source file extension for Java test sources.
17056 # Object file extension for compiled Java test sources.
17060 # Code to be used in simple compile tests
17061 lt_simple_compile_test_code="class foo {}\n"
17063 # Code to be used in simple link tests
17064 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17068 # If no C compiler was specified, use CC.
17071 # Allow CC to be a program name with arguments.
17075 # Allow CC to be a program name with arguments.
17081 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17082 archive_cmds_need_lc_GCJ=no
17085 lt_prog_compiler_no_builtin_flag_GCJ=
17087 if test "$GCC" = yes; then
17088 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17091 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17092 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17093 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 lt_cv_prog_compiler_rtti_exceptions=no
17097 ac_outfile=conftest.$ac_objext
17098 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17099 lt_compiler_flag="-fno-rtti -fno-exceptions"
17100 # Insert the option either (1) after the last *FLAGS variable, or
17101 # (2) before a word containing "conftest.", or (3) at the end.
17102 # Note that $ac_compile itself does not contain backslashes and begins
17103 # with a dollar sign (not a hyphen), so the echo should work correctly.
17104 # The option is referenced via a variable to avoid confusing sed.
17105 lt_compile=`echo "$ac_compile" | $SED \
17106 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17108 -e 's:$: $lt_compiler_flag:'`
17109 (eval echo "\"\$as_me:17109: $lt_compile\"" >&5)
17110 (eval "$lt_compile" 2>conftest.err)
17112 cat conftest.err >&5
17113 echo "$as_me:17113: \$? = $ac_status" >&5
17114 if (exit $ac_status) && test -s "$ac_outfile"; then
17115 # The compiler can only warn and ignore the option if not recognized
17116 # So say no if there are warnings
17117 if test ! -s conftest.err; then
17118 lt_cv_prog_compiler_rtti_exceptions=yes
17124 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17125 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17128 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17135 lt_prog_compiler_wl_GCJ=
17136 lt_prog_compiler_pic_GCJ=
17137 lt_prog_compiler_static_GCJ=
17139 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17140 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17142 if test "$GCC" = yes; then
17143 lt_prog_compiler_wl_GCJ='-Wl,'
17144 lt_prog_compiler_static_GCJ='-static'
17148 # All AIX code is PIC.
17149 if test "$host_cpu" = ia64; then
17150 # AIX 5 now supports IA64 processor
17151 lt_prog_compiler_static_GCJ='-Bstatic'
17156 # FIXME: we need at least 68020 code to build shared libraries, but
17157 # adding the `-m68020' flag to GCC prevents building anything better,
17159 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17163 # PIC is the default for these OSes.
17166 mingw* | pw32* | os2*)
17167 # This hack is so that the source file can tell whether it is being
17168 # built for inclusion in a dll (and should export symbols for example).
17169 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17172 darwin* | rhapsody*)
17173 # PIC is the default on this platform
17174 # Common symbols not allowed in MH_DYLIB files
17175 lt_prog_compiler_pic_GCJ='-fno-common'
17179 # Just because we use GCC doesn't mean we suddenly get shared libraries
17180 # on systems that don't support them.
17181 lt_prog_compiler_can_build_shared_GCJ=no
17186 if test -d /usr/nec; then
17187 lt_prog_compiler_pic_GCJ=-Kconform_pic
17192 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17193 # not for PA HP-UX.
17194 case "$host_cpu" in
17199 lt_prog_compiler_pic_GCJ='-fPIC'
17205 lt_prog_compiler_pic_GCJ='-fPIC'
17209 # PORTME Check for flag to pass linker flags through the system compiler.
17212 lt_prog_compiler_wl_GCJ='-Wl,'
17213 if test "$host_cpu" = ia64; then
17214 # AIX 5 now supports IA64 processor
17215 lt_prog_compiler_static_GCJ='-Bstatic'
17217 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17221 mingw* | pw32* | os2*)
17222 # This hack is so that the source file can tell whether it is being
17223 # built for inclusion in a dll (and should export symbols for example).
17224 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17227 hpux9* | hpux10* | hpux11*)
17228 lt_prog_compiler_wl_GCJ='-Wl,'
17229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230 # not for PA HP-UX.
17231 case "$host_cpu" in
17236 lt_prog_compiler_pic_GCJ='+Z'
17239 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17243 irix5* | irix6* | nonstopux*)
17244 lt_prog_compiler_wl_GCJ='-Wl,'
17245 # PIC (with -KPIC) is the default.
17246 lt_prog_compiler_static_GCJ='-non_shared'
17250 lt_prog_compiler_pic_GCJ='-KPIC'
17251 lt_prog_compiler_static_GCJ='-Bstatic'
17257 lt_prog_compiler_wl_GCJ='-Wl,'
17258 lt_prog_compiler_pic_GCJ='-KPIC'
17259 lt_prog_compiler_static_GCJ='-static'
17262 lt_prog_compiler_wl_GCJ='-Wl,'
17263 # All Alpha code is PIC.
17264 lt_prog_compiler_static_GCJ='-non_shared'
17269 osf3* | osf4* | osf5*)
17270 lt_prog_compiler_wl_GCJ='-Wl,'
17271 # All OSF/1 code is PIC.
17272 lt_prog_compiler_static_GCJ='-non_shared'
17276 lt_prog_compiler_pic_GCJ='-Kpic'
17277 lt_prog_compiler_static_GCJ='-dn'
17281 lt_prog_compiler_wl_GCJ='-Wl,'
17282 lt_prog_compiler_pic_GCJ='-KPIC'
17283 lt_prog_compiler_static_GCJ='-Bstatic'
17287 lt_prog_compiler_wl_GCJ='-Qoption ld '
17288 lt_prog_compiler_pic_GCJ='-PIC'
17289 lt_prog_compiler_static_GCJ='-Bstatic'
17292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17293 lt_prog_compiler_wl_GCJ='-Wl,'
17294 lt_prog_compiler_pic_GCJ='-KPIC'
17295 lt_prog_compiler_static_GCJ='-Bstatic'
17299 if test -d /usr/nec ;then
17300 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17301 lt_prog_compiler_static_GCJ='-Bstatic'
17306 lt_prog_compiler_pic_GCJ='-pic'
17307 lt_prog_compiler_static_GCJ='-Bstatic'
17311 lt_prog_compiler_can_build_shared_GCJ=no
17316 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17317 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17320 # Check to make sure the PIC flag actually works.
17322 if test -n "$lt_prog_compiler_pic_GCJ"; then
17324 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17325 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17326 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 lt_prog_compiler_pic_works_GCJ=no
17330 ac_outfile=conftest.$ac_objext
17331 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17332 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17333 # Insert the option either (1) after the last *FLAGS variable, or
17334 # (2) before a word containing "conftest.", or (3) at the end.
17335 # Note that $ac_compile itself does not contain backslashes and begins
17336 # with a dollar sign (not a hyphen), so the echo should work correctly.
17337 # The option is referenced via a variable to avoid confusing sed.
17338 lt_compile=`echo "$ac_compile" | $SED \
17339 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17341 -e 's:$: $lt_compiler_flag:'`
17342 (eval echo "\"\$as_me:17342: $lt_compile\"" >&5)
17343 (eval "$lt_compile" 2>conftest.err)
17345 cat conftest.err >&5
17346 echo "$as_me:17346: \$? = $ac_status" >&5
17347 if (exit $ac_status) && test -s "$ac_outfile"; then
17348 # The compiler can only warn and ignore the option if not recognized
17349 # So say no if there are warnings
17350 if test ! -s conftest.err; then
17351 lt_prog_compiler_pic_works_GCJ=yes
17357 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17358 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17360 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17361 case $lt_prog_compiler_pic_GCJ in
17363 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17366 lt_prog_compiler_pic_GCJ=
17367 lt_prog_compiler_can_build_shared_GCJ=no
17372 # For platforms which do not support PIC, -DPIC is meaningless:
17374 lt_prog_compiler_pic_GCJ=
17377 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17381 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17382 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17383 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17384 echo $ECHO_N "(cached) $ECHO_C" >&6
17386 lt_cv_prog_compiler_c_o_GCJ=no
17387 $rm -r conftest 2>/dev/null
17391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17393 lt_compiler_flag="-o out/conftest2.$ac_objext"
17394 # Insert the option either (1) after the last *FLAGS variable, or
17395 # (2) before a word containing "conftest.", or (3) at the end.
17396 # Note that $ac_compile itself does not contain backslashes and begins
17397 # with a dollar sign (not a hyphen), so the echo should work correctly.
17398 lt_compile=`echo "$ac_compile" | $SED \
17399 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17401 -e 's:$: $lt_compiler_flag:'`
17402 (eval echo "\"\$as_me:17402: $lt_compile\"" >&5)
17403 (eval "$lt_compile" 2>out/conftest.err)
17405 cat out/conftest.err >&5
17406 echo "$as_me:17406: \$? = $ac_status" >&5
17407 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17409 # The compiler can only warn and ignore the option if not recognized
17410 # So say no if there are warnings
17411 if test ! -s out/conftest.err; then
17412 lt_cv_prog_compiler_c_o_GCJ=yes
17417 # SGI C++ compiler will create directory out/ii_files/ for
17418 # template instantiation
17419 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420 $rm out/* && rmdir out
17426 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17430 hard_links="nottested"
17431 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432 # do not overwrite the value of need_locks provided by the user
17433 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17439 ln conftest.a conftest.b 2>&5 || hard_links=no
17440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441 echo "$as_me:$LINENO: result: $hard_links" >&5
17442 echo "${ECHO_T}$hard_links" >&6
17443 if test "$hard_links" = no; then
17444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17452 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17456 allow_undefined_flag_GCJ=
17457 enable_shared_with_static_runtimes_GCJ=no
17459 archive_expsym_cmds_GCJ=
17460 old_archive_From_new_cmds_GCJ=
17461 old_archive_from_expsyms_cmds_GCJ=
17462 export_dynamic_flag_spec_GCJ=
17463 whole_archive_flag_spec_GCJ=
17464 thread_safe_flag_spec_GCJ=
17465 hardcode_libdir_flag_spec_GCJ=
17466 hardcode_libdir_flag_spec_ld_GCJ=
17467 hardcode_libdir_separator_GCJ=
17468 hardcode_direct_GCJ=no
17469 hardcode_minus_L_GCJ=no
17470 hardcode_shlibpath_var_GCJ=unsupported
17471 link_all_deplibs_GCJ=unknown
17472 hardcode_automatic_GCJ=no
17474 module_expsym_cmds_GCJ=
17475 always_export_symbols_GCJ=no
17476 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477 # include_expsyms should be a list of space-separated symbols to be *always*
17478 # included in the symbol list
17479 include_expsyms_GCJ=
17480 # exclude_expsyms can be an extended regexp of symbols to exclude
17481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483 # as well as any symbol that contains `d'.
17484 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486 # platforms (ab)use it in PIC code, but their linkers get confused if
17487 # the symbol is explicitly referenced. Since portable code cannot
17488 # rely on this symbol name, it's probably fine to never include it in
17489 # preloaded symbol tables.
17490 extract_expsyms_cmds=
17493 cygwin* | mingw* | pw32*)
17494 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17495 # When not using gcc, we currently assume that we are using
17496 # Microsoft Visual C++.
17497 if test "$GCC" != yes; then
17507 if test "$with_gnu_ld" = yes; then
17508 # If archive_cmds runs LD, not CC, wlarc should be empty
17511 # See if GNU ld supports shared libraries.
17513 aix3* | aix4* | aix5*)
17514 # On AIX/PPC, the GNU linker is very broken
17515 if test "$host_cpu" != ia64; then
17519 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17520 *** to be unable to reliably create shared libraries on AIX.
17521 *** Therefore, libtool is disabling shared libraries support. If you
17522 *** really care for shared libraries, you may want to modify your PATH
17523 *** so that a non-GNU linker is found, and then restart.
17530 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)'
17531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532 hardcode_minus_L_GCJ=yes
17534 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17535 # that the semantics of dynamic libraries on AmigaOS, at least up
17536 # to version 4, is to share data among multiple programs linked
17537 # with the same dynamic library. Since this doesn't match the
17538 # behavior of shared libraries on other platforms, we can't use
17544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545 allow_undefined_flag_GCJ=unsupported
17546 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17547 # support --undefined. This deserves some investigation. FIXME
17548 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17554 cygwin* | mingw* | pw32*)
17555 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17556 # as there is no search path for DLLs.
17557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17558 allow_undefined_flag_GCJ=unsupported
17559 always_export_symbols_GCJ=no
17560 enable_shared_with_static_runtimes_GCJ=yes
17561 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17563 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17564 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17565 # If the export-symbols file already is a .def file (1st line
17566 # is EXPORTS), use it as is; otherwise, prepend...
17567 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17568 cp $export_symbols $output_objdir/$soname.def;
17570 echo EXPORTS > $output_objdir/$soname.def;
17571 cat $export_symbols >> $output_objdir/$soname.def;
17573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17580 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17581 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17584 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17585 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17590 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17594 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17595 *** create shared libraries on Solaris systems. Therefore, libtool
17596 *** is disabling shared libraries support. We urge you to upgrade GNU
17597 *** binutils to release 2.9.1 or newer. Another option is to modify
17598 *** your PATH or compiler configuration so that the native linker is
17599 *** used, and then restart.
17602 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17603 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17604 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17611 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_direct_GCJ=yes
17614 hardcode_shlibpath_var_GCJ=no
17618 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17619 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620 archive_cmds_GCJ="$tmp_archive_cmds"
17621 supports_anon_versioning=no
17622 case `$LD -v 2>/dev/null` in
17623 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17626 *\ 2.11.*) ;; # other 2.11 versions
17627 *) supports_anon_versioning=yes ;;
17629 if test $supports_anon_versioning = yes; then
17630 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17631 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17632 $echo "local: *; };" >> $output_objdir/$libname.ver~
17633 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17635 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
17643 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17645 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17652 if test "$ld_shlibs_GCJ" = yes; then
17653 runpath_var=LD_RUN_PATH
17654 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17655 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17656 # ancient GNU ld didn't support --whole-archive et. al.
17657 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17658 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17660 whole_archive_flag_spec_GCJ=
17664 # PORTME fill in a description of your system's linker (not GNU ld)
17667 allow_undefined_flag_GCJ=unsupported
17668 always_export_symbols_GCJ=yes
17669 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'
17670 # Note: this linker hardcodes the directories in LIBPATH if there
17671 # are no directories specified by -L.
17672 hardcode_minus_L_GCJ=yes
17673 if test "$GCC" = yes && test -z "$link_static_flag"; then
17674 # Neither direct hardcoding nor static linking is supported with a
17676 hardcode_direct_GCJ=unsupported
17681 if test "$host_cpu" = ia64; then
17682 # On IA64, the linker does run time linking by default, so we don't
17683 # have to do anything special.
17684 aix_use_runtimelinking=no
17685 exp_sym_flag='-Bexport'
17688 # If we're using GNU nm, then we don't want the "-C" option.
17689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17690 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17691 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'
17693 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'
17695 aix_use_runtimelinking=no
17697 # Test if we are trying to use run time linking or normal
17698 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17699 # need to do runtime linking.
17700 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17701 for ld_flag in $LDFLAGS; do
17702 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17703 aix_use_runtimelinking=yes
17709 exp_sym_flag='-bexport'
17710 no_entry_flag='-bnoentry'
17713 # When large executables or shared objects are built, AIX ld can
17714 # have problems creating the table of contents. If linking a library
17715 # or program results in "error TOC overflow" add -mminimal-toc to
17716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17719 archive_cmds_GCJ=''
17720 hardcode_direct_GCJ=yes
17721 hardcode_libdir_separator_GCJ=':'
17722 link_all_deplibs_GCJ=yes
17724 if test "$GCC" = yes; then
17725 case $host_os in aix4.012|aix4.012.*)
17726 # We only want to do this on AIX 4.2 and lower, the check
17727 # below for broken collect2 doesn't work under 4.3+
17728 collect2name=`${CC} -print-prog-name=collect2`
17729 if test -f "$collect2name" && \
17730 strings "$collect2name" | grep resolve_lib_name >/dev/null
17732 # We have reworked collect2
17733 hardcode_direct_GCJ=yes
17735 # We have old collect2
17736 hardcode_direct_GCJ=unsupported
17737 # It fails to find uninstalled libraries when the uninstalled
17738 # path is not listed in the libpath. Setting hardcode_minus_L
17739 # to unsupported forces relinking
17740 hardcode_minus_L_GCJ=yes
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_libdir_separator_GCJ=
17745 shared_flag='-shared'
17748 if test "$host_cpu" = ia64; then
17749 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17750 # chokes on -Wl,-G. The following line is correct:
17753 if test "$aix_use_runtimelinking" = yes; then
17754 shared_flag='${wl}-G'
17756 shared_flag='${wl}-bM:SRE'
17761 # It seems that -bexpall does not export symbols beginning with
17762 # underscore (_), so it is better to generate a list of symbols to export.
17763 always_export_symbols_GCJ=yes
17764 if test "$aix_use_runtimelinking" = yes; then
17765 # Warning - without using the other runtime loading flags (-brtl),
17766 # -berok will link without error, but may produce a broken library.
17767 allow_undefined_flag_GCJ='-berok'
17768 # Determine the default libpath from the value encoded in an empty executable.
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17784 rm -f conftest.$ac_objext conftest$ac_exeext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17786 (eval $ac_link) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17807 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17809 # Check for a 64-bit object if we didn't find anything.
17810 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17817 rm -f conftest.err conftest.$ac_objext \
17818 conftest$ac_exeext conftest.$ac_ext
17819 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17821 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17822 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17824 if test "$host_cpu" = ia64; then
17825 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17826 allow_undefined_flag_GCJ="-z nodefs"
17827 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17829 # Determine the default libpath from the value encoded in an empty executable.
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest$ac_exeext'
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
17868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17870 # Check for a 64-bit object if we didn't find anything.
17871 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17878 rm -f conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17882 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17883 # Warning - without using the other run time loading flags,
17884 # -berok will link without error, but may produce a broken library.
17885 no_undefined_flag_GCJ=' ${wl}-bernotok'
17886 allow_undefined_flag_GCJ=' ${wl}-berok'
17887 # -bexpall does not export symbols beginning with underscore (_)
17888 always_export_symbols_GCJ=yes
17889 # Exported symbols can be pulled into shared objects from archives
17890 whole_archive_flag_spec_GCJ=' '
17891 archive_cmds_need_lc_GCJ=yes
17892 # This is similar to how AIX traditionally builds it's shared libraries.
17893 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17899 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)'
17900 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17901 hardcode_minus_L_GCJ=yes
17902 # see comment about different semantics on the GNU ld section
17907 export_dynamic_flag_spec_GCJ=-rdynamic
17910 cygwin* | mingw* | pw32*)
17911 # When not using gcc, we currently assume that we are using
17912 # Microsoft Visual C++.
17913 # hardcode_libdir_flag_spec is actually meaningless, as there is
17914 # no search path for DLLs.
17915 hardcode_libdir_flag_spec_GCJ=' '
17916 allow_undefined_flag_GCJ=unsupported
17917 # Tell ltmain to make .lib files, not .a files.
17919 # Tell ltmain to make .dll files, not .so files.
17921 # FIXME: Setting linknames here is a bad hack.
17922 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17923 # The linker will automatically build a .lib file if we build a DLL.
17924 old_archive_From_new_cmds_GCJ='true'
17925 # FIXME: Should let the user specify the lib program.
17926 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17927 fix_srcfile_path='`cygpath -w "$srcfile"`'
17928 enable_shared_with_static_runtimes_GCJ=yes
17931 darwin* | rhapsody*)
17932 if test "$GXX" = yes ; then
17933 archive_cmds_need_lc_GCJ=no
17935 rhapsody* | darwin1.[012])
17936 allow_undefined_flag_GCJ='-undefined suppress'
17939 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17940 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17942 case ${MACOSX_DEPLOYMENT_TARGET} in
17944 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17947 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17953 lt_int_apple_cc_single_mod=no
17954 output_verbose_link_cmd='echo'
17955 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17956 lt_int_apple_cc_single_mod=yes
17958 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17959 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17961 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
17963 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17964 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17965 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17966 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17968 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17970 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}'
17971 hardcode_direct_GCJ=no
17972 hardcode_automatic_GCJ=yes
17973 hardcode_shlibpath_var_GCJ=unsupported
17974 whole_archive_flag_spec_GCJ='-all_load $convenience'
17975 link_all_deplibs_GCJ=yes
17982 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17984 hardcode_shlibpath_var_GCJ=no
17991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17992 # support. Future versions do this automatically, but an explicit c++rt0.o
17993 # does not break anything, and helps significantly (at the cost of a little
17996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17997 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17998 hardcode_direct_GCJ=yes
17999 hardcode_shlibpath_var_GCJ=no
18002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18004 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18005 hardcode_direct_GCJ=yes
18006 hardcode_minus_L_GCJ=yes
18007 hardcode_shlibpath_var_GCJ=no
18010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18011 freebsd* | kfreebsd*-gnu)
18012 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18013 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18014 hardcode_direct_GCJ=yes
18015 hardcode_shlibpath_var_GCJ=no
18019 if test "$GCC" = yes; then
18020 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'
18022 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'
18024 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18025 hardcode_libdir_separator_GCJ=:
18026 hardcode_direct_GCJ=yes
18028 # hardcode_minus_L: Not really in the search PATH,
18029 # but as the default location of the library.
18030 hardcode_minus_L_GCJ=yes
18031 export_dynamic_flag_spec_GCJ='${wl}-E'
18035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18036 case "$host_cpu" in
18038 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18041 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18045 case "$host_cpu" in
18047 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18050 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18054 if test "$with_gnu_ld" = no; then
18055 case "$host_cpu" in
18057 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18058 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18059 hardcode_libdir_separator_GCJ=:
18060 hardcode_direct_GCJ=no
18061 hardcode_shlibpath_var_GCJ=no
18064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18065 hardcode_direct_GCJ=no
18066 hardcode_shlibpath_var_GCJ=no
18068 # hardcode_minus_L: Not really in the search PATH,
18069 # but as the default location of the library.
18070 hardcode_minus_L_GCJ=yes
18073 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18074 hardcode_libdir_separator_GCJ=:
18075 hardcode_direct_GCJ=yes
18076 export_dynamic_flag_spec_GCJ='${wl}-E'
18078 # hardcode_minus_L: Not really in the search PATH,
18079 # but as the default location of the library.
18080 hardcode_minus_L_GCJ=yes
18086 irix5* | irix6* | nonstopux*)
18087 if test "$GCC" = yes; then
18088 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'
18090 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'
18091 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18093 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18094 hardcode_libdir_separator_GCJ=:
18095 link_all_deplibs_GCJ=yes
18099 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18100 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18102 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18104 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18105 hardcode_direct_GCJ=yes
18106 hardcode_shlibpath_var_GCJ=no
18110 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18111 hardcode_direct_GCJ=yes
18112 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18113 hardcode_libdir_separator_GCJ=:
18114 hardcode_shlibpath_var_GCJ=no
18118 hardcode_direct_GCJ=yes
18119 hardcode_shlibpath_var_GCJ=no
18120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18122 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18123 export_dynamic_flag_spec_GCJ='${wl}-E'
18126 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18127 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18128 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18131 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18139 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140 hardcode_minus_L_GCJ=yes
18141 allow_undefined_flag_GCJ=unsupported
18142 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'
18143 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18147 if test "$GCC" = yes; then
18148 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18149 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'
18151 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18152 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'
18154 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18155 hardcode_libdir_separator_GCJ=:
18158 osf4* | osf5*) # as osf3* with the addition of -msym flag
18159 if test "$GCC" = yes; then
18160 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18161 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'
18162 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18165 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'
18166 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~
18167 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18169 # Both c and cxx compiler support -rpath directly
18170 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18172 hardcode_libdir_separator_GCJ=:
18176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18177 hardcode_shlibpath_var_GCJ=no
18178 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18179 runpath_var=LD_RUN_PATH
18180 hardcode_runpath_var=yes
18184 no_undefined_flag_GCJ=' -z text'
18185 if test "$GCC" = yes; then
18186 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18188 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18190 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18191 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18192 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18194 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18195 hardcode_shlibpath_var_GCJ=no
18197 solaris2.[0-5] | solaris2.[0-5].*) ;;
18198 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18199 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18201 link_all_deplibs_GCJ=yes
18205 if test "x$host_vendor" = xsequent; then
18206 # Use $CC to link under sequent, because it throws in some extra .o
18207 # files that make .init and .fini sections work.
18208 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18210 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18213 hardcode_direct_GCJ=yes
18214 hardcode_minus_L_GCJ=yes
18215 hardcode_shlibpath_var_GCJ=no
18219 case $host_vendor in
18221 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18222 hardcode_direct_GCJ=yes # is this really true???
18225 ## LD is ld it makes a PLAMLIB
18226 ## CC just makes a GrossModule.
18227 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18228 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18229 hardcode_direct_GCJ=no
18232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18233 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18236 runpath_var='LD_RUN_PATH'
18237 hardcode_shlibpath_var_GCJ=no
18241 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18242 hardcode_shlibpath_var_GCJ=no
18243 export_dynamic_flag_spec_GCJ='-Bexport'
18247 if test -d /usr/nec; then
18248 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18249 hardcode_shlibpath_var_GCJ=no
18250 runpath_var=LD_RUN_PATH
18251 hardcode_runpath_var=yes
18257 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18258 hardcode_direct_GCJ=yes
18259 hardcode_minus_L_GCJ=no
18260 hardcode_shlibpath_var_GCJ=no
18261 hardcode_runpath_var=yes
18262 runpath_var=LD_RUN_PATH
18265 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18266 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18267 if test "$GCC" = yes; then
18268 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272 runpath_var='LD_RUN_PATH'
18273 hardcode_shlibpath_var_GCJ=no
18277 no_undefined_flag_GCJ=' -z text'
18278 # $CC -shared without GNU ld will not create a library from C++
18279 # object files and a static libstdc++, better avoid it by now
18280 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18281 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18282 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18283 hardcode_libdir_flag_spec_GCJ=
18284 hardcode_shlibpath_var_GCJ=no
18285 runpath_var='LD_RUN_PATH'
18289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291 hardcode_shlibpath_var_GCJ=no
18300 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18301 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18302 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18305 if test "$GCC" = yes; then
18306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18310 # Do we need to explicitly link libc?
18312 case "x$archive_cmds_need_lc_GCJ" in
18314 # Assume -lc should be added
18315 archive_cmds_need_lc_GCJ=yes
18317 if test "$enable_shared" = yes && test "$GCC" = yes; then
18318 case $archive_cmds_GCJ in
18320 # FIXME: we may have to deal with multi-command sequences.
18323 # Test whether the compiler implicitly links with -lc since on some
18324 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18325 # to ld, don't add -lc before -lgcc.
18326 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18327 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18329 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } 2>conftest.err; then
18338 libobjs=conftest.$ac_objext
18340 wl=$lt_prog_compiler_wl_GCJ
18346 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18347 allow_undefined_flag_GCJ=
18348 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18349 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }
18354 archive_cmds_need_lc_GCJ=no
18356 archive_cmds_need_lc_GCJ=yes
18358 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18360 cat conftest.err 1>&5
18363 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18364 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18371 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18372 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18373 library_names_spec=
18374 libname_spec='lib$name'
18378 postuninstall_cmds=
18382 shlibpath_overrides_runpath=unknown
18384 dynamic_linker="$host_os ld.so"
18385 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18386 if test "$GCC" = yes; then
18387 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18388 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18389 # if the path contains ";" then we assume it to be the separator
18390 # otherwise default to the standard path separator (i.e. ":") - it is
18391 # assumed that no part of a normal pathname contains ";" but that should
18392 # okay in the real world where ";" in dirpaths is itself problematic.
18393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18395 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18400 need_lib_prefix=unknown
18401 hardcode_into_libs=no
18403 # when you set need_version to no, make sure it does not cause -set_version
18404 # flags to be left without arguments
18405 need_version=unknown
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18411 shlibpath_var=LIBPATH
18413 # AIX 3 has no versioning support, so we append a major version to the name.
18414 soname_spec='${libname}${release}${shared_ext}$major'
18421 hardcode_into_libs=yes
18422 if test "$host_cpu" = ia64; then
18423 # AIX 5 supports IA64
18424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18425 shlibpath_var=LD_LIBRARY_PATH
18427 # With GCC up to 2.95.x, collect2 would create an import file
18428 # for dependence libraries. The import file would start with
18429 # the line `#! .'. This would cause the generated library to
18430 # depend on `.', always an invalid library. This was fixed in
18431 # development snapshots of GCC prior to 3.0.
18433 aix4 | aix4.[01] | aix4.[01].*)
18434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18436 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18439 can_build_shared=no
18443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18444 # soname into executable. Probably we can add versioning support to
18445 # collect2, so additional links can be useful in future.
18446 if test "$aix_use_runtimelinking" = yes; then
18447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18448 # instead of lib<name>.a to let people know that these are not
18449 # typical AIX shared libraries.
18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 # We preserve .a as extension for shared libraries through AIX4.2
18453 # and later when we are not doing run time linking.
18454 library_names_spec='${libname}${release}.a $libname.a'
18455 soname_spec='${libname}${release}${shared_ext}$major'
18457 shlibpath_var=LIBPATH
18462 library_names_spec='$libname.ixlibrary $libname.a'
18463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18464 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'
18468 library_names_spec='${libname}${shared_ext}'
18469 dynamic_linker="$host_os ld.so"
18470 shlibpath_var=LIBRARY_PATH
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18477 soname_spec='${libname}${release}${shared_ext}$major'
18478 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18479 shlibpath_var=LD_LIBRARY_PATH
18480 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18481 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18482 # the default ld.so.conf also contains /usr/contrib/lib and
18483 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18484 # libtool to hard-code these into programs
18487 cygwin* | mingw* | pw32*)
18488 version_type=windows
18493 case $GCC,$host_os in
18494 yes,cygwin* | yes,mingw* | yes,pw32*)
18495 library_names_spec='$libname.dll.a'
18496 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18497 postinstall_cmds='base_file=`basename \${file}`~
18498 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18499 dldir=$destdir/`dirname \$dlpath`~
18500 test -d \$dldir || mkdir -p \$dldir~
18501 $install_prog $dir/$dlname \$dldir/$dlname'
18502 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18503 dlpath=$dir/\$dldll~
18505 shlibpath_overrides_runpath=yes
18509 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18510 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18511 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18514 # MinGW DLLs use traditional 'lib' prefix
18515 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18517 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18518 # It is most probably a Windows format PATH printed by
18519 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18520 # path with ; separators, and with drive letters. We can handle the
18521 # drive letters (cygwin fileutils understands them), so leave them,
18522 # especially as we might pass files found there to a mingw objdump,
18523 # which wouldn't understand a cygwinified path. Ahh.
18524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18526 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18530 # pw32 DLLs use 'pw' prefix rather than 'lib'
18531 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18537 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18540 dynamic_linker='Win32 ld.exe'
18541 # FIXME: first we should search . and the directory the executable is in
18545 darwin* | rhapsody*)
18546 dynamic_linker="$host_os dyld"
18547 version_type=darwin
18550 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18551 soname_spec='${libname}${release}${major}$shared_ext'
18552 shlibpath_overrides_runpath=yes
18553 shlibpath_var=DYLD_LIBRARY_PATH
18554 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18555 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18556 if test "$GCC" = yes; then
18557 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18559 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 shlibpath_var=LD_LIBRARY_PATH
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 shlibpath_overrides_runpath=no
18585 hardcode_into_libs=yes
18586 dynamic_linker='GNU ld.so'
18590 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18591 version_type=freebsd-$objformat
18592 case $version_type in
18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18603 shlibpath_var=LD_LIBRARY_PATH
18606 shlibpath_overrides_runpath=yes
18608 freebsd3.01* | freebsdelf3.01*)
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18613 shlibpath_overrides_runpath=no
18614 hardcode_into_libs=yes
18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18624 soname_spec='${libname}${release}${shared_ext}$major'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 hardcode_into_libs=yes
18629 hpux9* | hpux10* | hpux11*)
18630 # Give a soname corresponding to the major version so that dld.sl refuses to
18631 # link against other versions.
18635 case "$host_cpu" in
18638 hardcode_into_libs=yes
18639 dynamic_linker="$host_os dld.so"
18640 shlibpath_var=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 if test "X$HPUX_IA64_MODE" = X32; then
18645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18653 hardcode_into_libs=yes
18654 dynamic_linker="$host_os dld.sl"
18655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658 soname_spec='${libname}${release}${shared_ext}$major'
18659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18664 dynamic_linker="$host_os dld.sl"
18665 shlibpath_var=SHLIB_PATH
18666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18668 soname_spec='${libname}${release}${shared_ext}$major'
18671 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18672 postinstall_cmds='chmod 555 $lib'
18675 irix5* | irix6* | nonstopux*)
18677 nonstopux*) version_type=nonstopux ;;
18679 if test "$lt_cv_prog_gnu_ld" = yes; then
18687 soname_spec='${libname}${release}${shared_ext}$major'
18688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18690 irix5* | nonstopux*)
18691 libsuff= shlibsuff=
18694 case $LD in # libtool.m4 will add one of these switches to LD
18695 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18696 libsuff= shlibsuff= libmagic=32-bit;;
18697 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18698 libsuff=32 shlibsuff=N32 libmagic=N32;;
18699 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18700 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18701 *) libsuff= shlibsuff= libmagic=never-match;;
18705 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18706 shlibpath_overrides_runpath=no
18707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18709 hardcode_into_libs=yes
18712 # No shared lib support for Linux oldld, aout, or coff.
18713 linux*oldld* | linux*aout* | linux*coff*)
18717 # This must be Linux ELF.
18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18723 soname_spec='${libname}${release}${shared_ext}$major'
18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18725 shlibpath_var=LD_LIBRARY_PATH
18726 shlibpath_overrides_runpath=no
18727 # This implies no fast_install, which is unacceptable.
18728 # Some rework will be needed to allow for fast_install
18729 # before this can be enabled.
18730 hardcode_into_libs=yes
18732 # Append ld.so.conf contents to the search path
18733 if test -f /etc/ld.so.conf; then
18734 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
18735 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
18738 # We used to test for /lib/ld.so.1 and disable shared libraries on
18739 # powerpc, because MkLinux only supported shared libraries with the
18740 # GNU dynamic linker. Since this was broken with cross compilers,
18741 # most powerpc-linux boxes support dynamic linking these days and
18742 # people can always --disable-shared, the test was removed, and we
18743 # assume the GNU/Linux dynamic linker is in use.
18744 dynamic_linker='GNU/Linux ld.so'
18751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18752 soname_spec='${libname}${release}${shared_ext}$major'
18753 shlibpath_var=LD_LIBRARY_PATH
18754 shlibpath_overrides_runpath=no
18755 hardcode_into_libs=yes
18756 dynamic_linker='GNU ld.so'
18763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18766 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
18772 shlibpath_var=LD_LIBRARY_PATH
18773 shlibpath_overrides_runpath=yes
18774 hardcode_into_libs=yes
18779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18780 shlibpath_var=LD_LIBRARY_PATH
18781 shlibpath_overrides_runpath=yes
18788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789 soname_spec='${libname}${release}${shared_ext}$major'
18790 shlibpath_var=LD_LIBRARY_PATH
18791 shlibpath_overrides_runpath=yes
18798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18800 shlibpath_var=LD_LIBRARY_PATH
18801 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18803 openbsd2.[89] | openbsd2.[89].*)
18804 shlibpath_overrides_runpath=no
18807 shlibpath_overrides_runpath=yes
18811 shlibpath_overrides_runpath=yes
18816 libname_spec='$name'
18819 library_names_spec='$libname${shared_ext} $libname.a'
18820 dynamic_linker='OS/2 ld.exe'
18821 shlibpath_var=LIBPATH
18824 osf3* | osf4* | osf5*)
18828 soname_spec='${libname}${release}${shared_ext}$major'
18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18832 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18837 soname_spec='${libname}${release}${shared_ext}$major'
18838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18839 shlibpath_var=LD_LIBRARY_PATH
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18849 shlibpath_overrides_runpath=yes
18850 hardcode_into_libs=yes
18851 # ldd complains unless libraries are executable
18852 postinstall_cmds='chmod +x $lib'
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 shlibpath_overrides_runpath=yes
18861 if test "$with_gnu_ld" = yes; then
18867 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 case $host_vendor in
18874 shlibpath_overrides_runpath=no
18876 export_dynamic_flag_spec='${wl}-Blargedynsym'
18877 runpath_var=LD_RUN_PATH
18885 shlibpath_overrides_runpath=no
18886 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18892 if test -d /usr/nec ;then
18894 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18895 soname_spec='$libname${shared_ext}.$major'
18896 shlibpath_var=LD_LIBRARY_PATH
18902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18903 soname_spec='${libname}${release}${shared_ext}$major'
18904 shlibpath_var=LD_LIBRARY_PATH
18911 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18912 echo "${ECHO_T}$dynamic_linker" >&6
18913 test "$dynamic_linker" = no && can_build_shared=no
18915 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18916 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18917 hardcode_action_GCJ=
18918 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18919 test -n "$runpath_var GCJ" || \
18920 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18922 # We can hardcode non-existant directories.
18923 if test "$hardcode_direct_GCJ" != no &&
18924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18925 # have to relink, otherwise we might link with an installed library
18926 # when we should be linking with a yet-to-be-installed one
18927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18928 test "$hardcode_minus_L_GCJ" != no; then
18929 # Linking always hardcodes the temporary library directory.
18930 hardcode_action_GCJ=relink
18932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18933 hardcode_action_GCJ=immediate
18936 # We cannot hardcode anything, or else we can only hardcode existing
18938 hardcode_action_GCJ=unsupported
18940 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18941 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18943 if test "$hardcode_action_GCJ" = relink; then
18944 # Fast installation is not supported
18945 enable_fast_install=no
18946 elif test "$shlibpath_overrides_runpath" = yes ||
18947 test "$enable_shared" = no; then
18948 # Fast installation is not necessary
18949 enable_fast_install=needless
18954 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18955 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18956 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18957 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18958 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18959 echo "$as_me:$LINENO: result: yes" >&5
18960 echo "${ECHO_T}yes" >&6
18962 # FIXME - insert some real tests, host_os isn't really good enough
18965 if test -n "$STRIP" ; then
18966 striplib="$STRIP -x"
18967 echo "$as_me:$LINENO: result: yes" >&5
18968 echo "${ECHO_T}yes" >&6
18970 echo "$as_me:$LINENO: result: no" >&5
18971 echo "${ECHO_T}no" >&6
18975 echo "$as_me:$LINENO: result: no" >&5
18976 echo "${ECHO_T}no" >&6
18981 if test "x$enable_dlopen" != xyes; then
18982 enable_dlopen=unknown
18983 enable_dlopen_self=unknown
18984 enable_dlopen_self_static=unknown
18991 lt_cv_dlopen="load_add_on"
18993 lt_cv_dlopen_self=yes
18997 lt_cv_dlopen="LoadLibrary"
19002 lt_cv_dlopen="dlopen"
19007 # if libdl is installed we need to link against it
19008 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 ac_check_lib_save_LIBS=$LIBS
19015 cat >conftest.$ac_ext <<_ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19022 /* Override any gcc2 internal prototype to avoid an error. */
19026 /* We use char because int might match the return type of a gcc2
19027 builtin and then its argument prototype would still apply. */
19037 rm -f conftest.$ac_objext conftest$ac_exeext
19038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19039 (eval $ac_link) 2>conftest.er1
19041 grep -v '^ *+' conftest.er1 >conftest.err
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -z "$ac_c_werror_flag"
19047 || test ! -s conftest.err'
19048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; } &&
19053 { ac_try='test -s conftest$ac_exeext'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19059 ac_cv_lib_dl_dlopen=yes
19061 echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_lib_dl_dlopen=no
19066 rm -f conftest.err conftest.$ac_objext \
19067 conftest$ac_exeext conftest.$ac_ext
19068 LIBS=$ac_check_lib_save_LIBS
19070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19072 if test $ac_cv_lib_dl_dlopen = yes; then
19073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19076 lt_cv_dlopen="dyld"
19078 lt_cv_dlopen_self=yes
19085 echo "$as_me:$LINENO: checking for shl_load" >&5
19086 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19087 if test "${ac_cv_func_shl_load+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 cat >conftest.$ac_ext <<_ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19098 #define shl_load innocuous_shl_load
19100 /* System header to define __stub macros and hopefully few prototypes,
19101 which can conflict with char shl_load (); below.
19102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19103 <limits.h> exists even on freestanding compilers. */
19106 # include <limits.h>
19108 # include <assert.h>
19113 /* Override any gcc2 internal prototype to avoid an error. */
19118 /* We use char because int might match the return type of a gcc2
19119 builtin and then its argument prototype would still apply. */
19121 /* The GNU C library defines this for functions which it implements
19122 to always fail with ENOSYS. Some functions are actually named
19123 something starting with __ and the normal name is an alias. */
19124 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19127 char (*f) () = shl_load;
19136 return f != shl_load;
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19143 (eval $ac_link) 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag"
19151 || test ! -s conftest.err'
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; } &&
19157 { ac_try='test -s conftest$ac_exeext'
19158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19159 (eval $ac_try) 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; }; then
19163 ac_cv_func_shl_load=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_func_shl_load=no
19170 rm -f conftest.err conftest.$ac_objext \
19171 conftest$ac_exeext conftest.$ac_ext
19173 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19174 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19175 if test $ac_cv_func_shl_load = yes; then
19176 lt_cv_dlopen="shl_load"
19178 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19179 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19180 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 ac_check_lib_save_LIBS=$LIBS
19185 cat >conftest.$ac_ext <<_ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19192 /* Override any gcc2 internal prototype to avoid an error. */
19196 /* We use char because int might match the return type of a gcc2
19197 builtin and then its argument prototype would still apply. */
19207 rm -f conftest.$ac_objext conftest$ac_exeext
19208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19209 (eval $ac_link) 2>conftest.er1
19211 grep -v '^ *+' conftest.er1 >conftest.err
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag"
19217 || test ! -s conftest.err'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_lib_dld_shl_load=yes
19231 echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_lib_dld_shl_load=no
19236 rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
19238 LIBS=$ac_check_lib_save_LIBS
19240 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19241 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19242 if test $ac_cv_lib_dld_shl_load = yes; then
19243 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19245 echo "$as_me:$LINENO: checking for dlopen" >&5
19246 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19247 if test "${ac_cv_func_dlopen+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19258 #define dlopen innocuous_dlopen
19260 /* System header to define __stub macros and hopefully few prototypes,
19261 which can conflict with char dlopen (); below.
19262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19263 <limits.h> exists even on freestanding compilers. */
19266 # include <limits.h>
19268 # include <assert.h>
19273 /* Override any gcc2 internal prototype to avoid an error. */
19278 /* We use char because int might match the return type of a gcc2
19279 builtin and then its argument prototype would still apply. */
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19287 char (*f) () = dlopen;
19296 return f != dlopen;
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_func_dlopen=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_cv_func_dlopen=no
19330 rm -f conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19333 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19334 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19335 if test $ac_cv_func_dlopen = yes; then
19336 lt_cv_dlopen="dlopen"
19338 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19339 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19340 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_check_lib_save_LIBS=$LIBS
19345 cat >conftest.$ac_ext <<_ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19352 /* Override any gcc2 internal prototype to avoid an error. */
19356 /* We use char because int might match the return type of a gcc2
19357 builtin and then its argument prototype would still apply. */
19367 rm -f conftest.$ac_objext conftest$ac_exeext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19369 (eval $ac_link) 2>conftest.er1
19371 grep -v '^ *+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest$ac_exeext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 ac_cv_lib_dl_dlopen=yes
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19394 ac_cv_lib_dl_dlopen=no
19396 rm -f conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19400 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19402 if test $ac_cv_lib_dl_dlopen = yes; then
19403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19406 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19407 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 ac_check_lib_save_LIBS=$LIBS
19411 LIBS="-lsvld $LIBS"
19412 cat >conftest.$ac_ext <<_ACEOF
19415 cat confdefs.h >>conftest.$ac_ext
19416 cat >>conftest.$ac_ext <<_ACEOF
19417 /* end confdefs.h. */
19419 /* Override any gcc2 internal prototype to avoid an error. */
19423 /* We use char because int might match the return type of a gcc2
19424 builtin and then its argument prototype would still apply. */
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19436 (eval $ac_link) 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag"
19444 || test ! -s conftest.err'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; } &&
19450 { ac_try='test -s conftest$ac_exeext'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; }; then
19456 ac_cv_lib_svld_dlopen=yes
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 ac_cv_lib_svld_dlopen=no
19463 rm -f conftest.err conftest.$ac_objext \
19464 conftest$ac_exeext conftest.$ac_ext
19465 LIBS=$ac_check_lib_save_LIBS
19467 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19468 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19469 if test $ac_cv_lib_svld_dlopen = yes; then
19470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19472 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19473 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19474 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 ac_check_lib_save_LIBS=$LIBS
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 /* Override any gcc2 internal prototype to avoid an error. */
19490 /* We use char because int might match the return type of a gcc2
19491 builtin and then its argument prototype would still apply. */
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503 (eval $ac_link) 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_c_werror_flag"
19511 || test ! -s conftest.err'
19512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513 (eval $ac_try) 2>&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); }; } &&
19517 { ac_try='test -s conftest$ac_exeext'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; }; then
19523 ac_cv_lib_dld_dld_link=yes
19525 echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19528 ac_cv_lib_dld_dld_link=no
19530 rm -f conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532 LIBS=$ac_check_lib_save_LIBS
19534 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19535 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19536 if test $ac_cv_lib_dld_dld_link = yes; then
19537 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19558 if test "x$lt_cv_dlopen" != xno; then
19564 case $lt_cv_dlopen in
19566 save_CPPFLAGS="$CPPFLAGS"
19567 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19569 save_LDFLAGS="$LDFLAGS"
19570 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19573 LIBS="$lt_cv_dlopen_libs $LIBS"
19575 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19576 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19577 if test "${lt_cv_dlopen_self+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 if test "$cross_compiling" = yes; then :
19581 lt_cv_dlopen_self=cross
19583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19584 lt_status=$lt_dlunknown
19585 cat > conftest.$ac_ext <<EOF
19586 #line 19586 "configure"
19587 #include "confdefs.h"
19596 # define LT_DLGLOBAL RTLD_GLOBAL
19599 # define LT_DLGLOBAL DL_GLOBAL
19601 # define LT_DLGLOBAL 0
19605 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19606 find out it does not work in some platform. */
19607 #ifndef LT_DLLAZY_OR_NOW
19609 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19612 # define LT_DLLAZY_OR_NOW DL_LAZY
19615 # define LT_DLLAZY_OR_NOW RTLD_NOW
19618 # define LT_DLLAZY_OR_NOW DL_NOW
19620 # define LT_DLLAZY_OR_NOW 0
19628 extern "C" void exit (int);
19631 void fnord() { int i=42;}
19634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19635 int status = $lt_dlunknown;
19639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19641 /* dlclose (self); */
19647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19648 (eval $ac_link) 2>&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19652 (./conftest; exit; ) 2>/dev/null
19654 case x$lt_status in
19655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19657 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19660 # compilation failed
19661 lt_cv_dlopen_self=no
19668 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19669 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19671 if test "x$lt_cv_dlopen_self" = xyes; then
19672 LDFLAGS="$LDFLAGS $link_static_flag"
19673 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19674 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19675 if test "${lt_cv_dlopen_self_static+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 if test "$cross_compiling" = yes; then :
19679 lt_cv_dlopen_self_static=cross
19681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19682 lt_status=$lt_dlunknown
19683 cat > conftest.$ac_ext <<EOF
19684 #line 19684 "configure"
19685 #include "confdefs.h"
19694 # define LT_DLGLOBAL RTLD_GLOBAL
19697 # define LT_DLGLOBAL DL_GLOBAL
19699 # define LT_DLGLOBAL 0
19703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19704 find out it does not work in some platform. */
19705 #ifndef LT_DLLAZY_OR_NOW
19707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19710 # define LT_DLLAZY_OR_NOW DL_LAZY
19713 # define LT_DLLAZY_OR_NOW RTLD_NOW
19716 # define LT_DLLAZY_OR_NOW DL_NOW
19718 # define LT_DLLAZY_OR_NOW 0
19726 extern "C" void exit (int);
19729 void fnord() { int i=42;}
19732 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19733 int status = $lt_dlunknown;
19737 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19738 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19739 /* dlclose (self); */
19745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746 (eval $ac_link) 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19750 (./conftest; exit; ) 2>/dev/null
19752 case x$lt_status in
19753 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19754 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19755 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19758 # compilation failed
19759 lt_cv_dlopen_self_static=no
19766 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19767 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19770 CPPFLAGS="$save_CPPFLAGS"
19771 LDFLAGS="$save_LDFLAGS"
19776 case $lt_cv_dlopen_self in
19777 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19778 *) enable_dlopen_self=unknown ;;
19781 case $lt_cv_dlopen_self_static in
19782 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19783 *) enable_dlopen_self_static=unknown ;;
19788 # The else clause should only fire when bootstrapping the
19789 # libtool distribution, otherwise you forgot to ship ltmain.sh
19790 # with your package, and you will get complaints that there are
19791 # no rules to generate ltmain.sh.
19792 if test -f "$ltmain"; then
19793 # See if we are running on zsh, and set the options which allow our commands through
19794 # without removal of \ escapes.
19795 if test -n "${ZSH_VERSION+set}" ; then
19796 setopt NO_GLOB_SUBST
19798 # Now quote all the things that may contain metacharacters while being
19799 # careful not to overquote the AC_SUBSTed values. We take copies of the
19800 # variables and quote the copies for generation of the libtool script.
19801 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19803 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19804 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19805 deplibs_check_method reload_flag reload_cmds need_locks \
19806 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19807 lt_cv_sys_global_symbol_to_c_name_address \
19808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19809 old_postinstall_cmds old_postuninstall_cmds \
19813 lt_prog_compiler_wl_GCJ \
19814 lt_prog_compiler_pic_GCJ \
19815 lt_prog_compiler_static_GCJ \
19816 lt_prog_compiler_no_builtin_flag_GCJ \
19817 export_dynamic_flag_spec_GCJ \
19818 thread_safe_flag_spec_GCJ \
19819 whole_archive_flag_spec_GCJ \
19820 enable_shared_with_static_runtimes_GCJ \
19821 old_archive_cmds_GCJ \
19822 old_archive_from_new_cmds_GCJ \
19823 predep_objects_GCJ \
19824 postdep_objects_GCJ \
19827 compiler_lib_search_path_GCJ \
19829 archive_expsym_cmds_GCJ \
19830 postinstall_cmds_GCJ \
19831 postuninstall_cmds_GCJ \
19832 old_archive_from_expsyms_cmds_GCJ \
19833 allow_undefined_flag_GCJ \
19834 no_undefined_flag_GCJ \
19835 export_symbols_cmds_GCJ \
19836 hardcode_libdir_flag_spec_GCJ \
19837 hardcode_libdir_flag_spec_ld_GCJ \
19838 hardcode_libdir_separator_GCJ \
19839 hardcode_automatic_GCJ \
19841 module_expsym_cmds_GCJ \
19842 lt_cv_prog_compiler_c_o_GCJ \
19843 exclude_expsyms_GCJ \
19844 include_expsyms_GCJ; do
19847 old_archive_cmds_GCJ | \
19848 old_archive_from_new_cmds_GCJ | \
19849 archive_cmds_GCJ | \
19850 archive_expsym_cmds_GCJ | \
19851 module_cmds_GCJ | \
19852 module_expsym_cmds_GCJ | \
19853 old_archive_from_expsyms_cmds_GCJ | \
19854 export_symbols_cmds_GCJ | \
19855 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19856 postinstall_cmds | postuninstall_cmds | \
19857 old_postinstall_cmds | old_postuninstall_cmds | \
19858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19859 # Double-quote double-evaled strings.
19860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19869 *'\$0 --fallback-echo"')
19870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19876 cat <<__EOF__ >> "$cfgfile"
19877 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19879 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19881 # Shell to use when invoking shell scripts.
19884 # Whether or not to build shared libraries.
19885 build_libtool_libs=$enable_shared
19887 # Whether or not to build static libraries.
19888 build_old_libs=$enable_static
19890 # Whether or not to add -lc for building shared libraries.
19891 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19893 # Whether or not to disallow shared libs when runtime libs are static
19894 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19896 # Whether or not to optimize for fast installation.
19897 fast_install=$enable_fast_install
19900 host_alias=$host_alias
19903 # An echo program that does not interpret backslashes.
19908 AR_FLAGS=$lt_AR_FLAGS
19913 # A language-specific compiler.
19914 CC=$lt_compiler_GCJ
19916 # Is the compiler the GNU C compiler?
19922 # The linker used to build libraries.
19925 # Whether we need hard or soft links.
19928 # A BSD-compatible nm program.
19931 # A symbol stripping program
19934 # Used to examine libraries when file_magic_cmd begins "file"
19935 MAGIC_CMD=$MAGIC_CMD
19937 # Used on cygwin: DLL creation program.
19940 # Used on cygwin: object dumper.
19943 # Used on cygwin: assembler.
19946 # The name of the directory that contains temporary libtool files.
19949 # How to create reloadable object files.
19950 reload_flag=$lt_reload_flag
19951 reload_cmds=$lt_reload_cmds
19953 # How to pass a linker flag through the compiler.
19954 wl=$lt_lt_prog_compiler_wl_GCJ
19956 # Object file suffix (normally "o").
19957 objext="$ac_objext"
19959 # Old archive suffix (normally "a").
19962 # Shared library suffix (normally ".so").
19965 # Executable file suffix (normally "").
19968 # Additional compiler flags for building library objects.
19969 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19972 # What is the maximum length of a command?
19973 max_cmd_len=$lt_cv_sys_max_cmd_len
19975 # Does compiler simultaneously support -c and -o options?
19976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19978 # Must we lock files when doing compilation ?
19979 need_locks=$lt_need_locks
19981 # Do we need the lib prefix for modules?
19982 need_lib_prefix=$need_lib_prefix
19984 # Do we need a version for libraries?
19985 need_version=$need_version
19987 # Whether dlopen is supported.
19988 dlopen_support=$enable_dlopen
19990 # Whether dlopen of programs is supported.
19991 dlopen_self=$enable_dlopen_self
19993 # Whether dlopen of statically linked programs is supported.
19994 dlopen_self_static=$enable_dlopen_self_static
19996 # Compiler flag to prevent dynamic linking.
19997 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19999 # Compiler flag to turn off builtin functions.
20000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20002 # Compiler flag to allow reflexive dlopens.
20003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20005 # Compiler flag to generate shared objects directly from archives.
20006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20008 # Compiler flag to generate thread-safe objects.
20009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20011 # Library versioning type.
20012 version_type=$version_type
20014 # Format of library name prefix.
20015 libname_spec=$lt_libname_spec
20017 # List of archive names. First name is the real one, the rest are links.
20018 # The last name is the one that the linker finds with -lNAME.
20019 library_names_spec=$lt_library_names_spec
20021 # The coded name of the library, if different from the real name.
20022 soname_spec=$lt_soname_spec
20024 # Commands used to build and install an old-style archive.
20026 old_archive_cmds=$lt_old_archive_cmds_GCJ
20027 old_postinstall_cmds=$lt_old_postinstall_cmds
20028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20030 # Create an old-style archive from a shared archive.
20031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20033 # Create a temporary old-style archive to link instead of a shared archive.
20034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20036 # Commands used to build and install a shared archive.
20037 archive_cmds=$lt_archive_cmds_GCJ
20038 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20039 postinstall_cmds=$lt_postinstall_cmds
20040 postuninstall_cmds=$lt_postuninstall_cmds
20042 # Commands used to build a loadable module (assumed same as above if empty)
20043 module_cmds=$lt_module_cmds_GCJ
20044 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20046 # Commands to strip libraries.
20047 old_striplib=$lt_old_striplib
20048 striplib=$lt_striplib
20050 # Dependencies to place before the objects being linked to create a
20052 predep_objects=$lt_predep_objects_GCJ
20054 # Dependencies to place after the objects being linked to create a
20056 postdep_objects=$lt_postdep_objects_GCJ
20058 # Dependencies to place before the objects being linked to create a
20060 predeps=$lt_predeps_GCJ
20062 # Dependencies to place after the objects being linked to create a
20064 postdeps=$lt_postdeps_GCJ
20066 # The library search path used internally by the compiler when linking
20067 # a shared library.
20068 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20070 # Method to check whether dependent libraries are shared objects.
20071 deplibs_check_method=$lt_deplibs_check_method
20073 # Command to use when deplibs_check_method == file_magic.
20074 file_magic_cmd=$lt_file_magic_cmd
20076 # Flag that allows shared libraries with undefined symbols to be built.
20077 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20079 # Flag that forces no undefined symbols.
20080 no_undefined_flag=$lt_no_undefined_flag_GCJ
20082 # Commands used to finish a libtool library installation in a directory.
20083 finish_cmds=$lt_finish_cmds
20085 # Same as above, but a single script fragment to be evaled but not shown.
20086 finish_eval=$lt_finish_eval
20088 # Take the output of nm and produce a listing of raw symbols and C names.
20089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20091 # Transform the output of nm in a proper C declaration
20092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20094 # Transform the output of nm in a C name address pair
20095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20097 # This is the shared library runtime path variable.
20098 runpath_var=$runpath_var
20100 # This is the shared library path variable.
20101 shlibpath_var=$shlibpath_var
20103 # Is shlibpath searched before the hard-coded library search path?
20104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20106 # How to hardcode a shared library path into an executable.
20107 hardcode_action=$hardcode_action_GCJ
20109 # Whether we should hardcode library paths into libraries.
20110 hardcode_into_libs=$hardcode_into_libs
20112 # Flag to hardcode \$libdir into a binary during linking.
20113 # This must work even if \$libdir does not exist.
20114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20116 # If ld is used when linking, flag to hardcode \$libdir into
20117 # a binary during linking. This must work even if \$libdir does
20119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20121 # Whether we need a single -rpath flag with a separated argument.
20122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20125 # resulting binary.
20126 hardcode_direct=$hardcode_direct_GCJ
20128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20129 # resulting binary.
20130 hardcode_minus_L=$hardcode_minus_L_GCJ
20132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20133 # the resulting binary.
20134 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20136 # Set to yes if building a shared library automatically hardcodes DIR into the library
20137 # and all subsequent libraries and executables linked against it.
20138 hardcode_automatic=$hardcode_automatic_GCJ
20140 # Variables whose values should be saved in libtool wrapper scripts and
20141 # restored at relink time.
20142 variables_saved_for_relink="$variables_saved_for_relink"
20144 # Whether libtool must link a program against all its dependency libraries.
20145 link_all_deplibs=$link_all_deplibs_GCJ
20147 # Compile-time system search path for libraries
20148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20150 # Run-time system search path for libraries
20151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20153 # Fix the shell variable \$srcfile for the compiler.
20154 fix_srcfile_path="$fix_srcfile_path_GCJ"
20156 # Set to yes if exported symbols are required.
20157 always_export_symbols=$always_export_symbols_GCJ
20159 # The commands to list exported symbols.
20160 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20162 # The commands to extract the exported symbol list from a shared archive.
20163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20165 # Symbols that should not be listed in the preloaded symbols.
20166 exclude_expsyms=$lt_exclude_expsyms_GCJ
20168 # Symbols that must always be exported.
20169 include_expsyms=$lt_include_expsyms_GCJ
20171 # ### END LIBTOOL TAG CONFIG: $tagname
20177 # If there is no Makefile yet, we rely on a make rule to execute
20178 # `config.status --recheck' to rerun these tests and create the
20179 # libtool script then.
20180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20181 if test -f "$ltmain_in"; then
20182 test -f Makefile && make "$ltmain"
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20204 # Source file extension for RC test sources.
20207 # Object file extension for compiled RC test sources.
20211 # Code to be used in simple compile tests
20212 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20214 # Code to be used in simple link tests
20215 lt_simple_link_test_code="$lt_simple_compile_test_code"
20217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20219 # If no C compiler was specified, use CC.
20222 # Allow CC to be a program name with arguments.
20226 # Allow CC to be a program name with arguments.
20231 lt_cv_prog_compiler_c_o_RC=yes
20233 # The else clause should only fire when bootstrapping the
20234 # libtool distribution, otherwise you forgot to ship ltmain.sh
20235 # with your package, and you will get complaints that there are
20236 # no rules to generate ltmain.sh.
20237 if test -f "$ltmain"; then
20238 # See if we are running on zsh, and set the options which allow our commands through
20239 # without removal of \ escapes.
20240 if test -n "${ZSH_VERSION+set}" ; then
20241 setopt NO_GLOB_SUBST
20243 # Now quote all the things that may contain metacharacters while being
20244 # careful not to overquote the AC_SUBSTed values. We take copies of the
20245 # variables and quote the copies for generation of the libtool script.
20246 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20248 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20249 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20250 deplibs_check_method reload_flag reload_cmds need_locks \
20251 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20252 lt_cv_sys_global_symbol_to_c_name_address \
20253 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20254 old_postinstall_cmds old_postuninstall_cmds \
20258 lt_prog_compiler_wl_RC \
20259 lt_prog_compiler_pic_RC \
20260 lt_prog_compiler_static_RC \
20261 lt_prog_compiler_no_builtin_flag_RC \
20262 export_dynamic_flag_spec_RC \
20263 thread_safe_flag_spec_RC \
20264 whole_archive_flag_spec_RC \
20265 enable_shared_with_static_runtimes_RC \
20266 old_archive_cmds_RC \
20267 old_archive_from_new_cmds_RC \
20268 predep_objects_RC \
20269 postdep_objects_RC \
20272 compiler_lib_search_path_RC \
20274 archive_expsym_cmds_RC \
20275 postinstall_cmds_RC \
20276 postuninstall_cmds_RC \
20277 old_archive_from_expsyms_cmds_RC \
20278 allow_undefined_flag_RC \
20279 no_undefined_flag_RC \
20280 export_symbols_cmds_RC \
20281 hardcode_libdir_flag_spec_RC \
20282 hardcode_libdir_flag_spec_ld_RC \
20283 hardcode_libdir_separator_RC \
20284 hardcode_automatic_RC \
20286 module_expsym_cmds_RC \
20287 lt_cv_prog_compiler_c_o_RC \
20288 exclude_expsyms_RC \
20289 include_expsyms_RC; do
20292 old_archive_cmds_RC | \
20293 old_archive_from_new_cmds_RC | \
20294 archive_cmds_RC | \
20295 archive_expsym_cmds_RC | \
20297 module_expsym_cmds_RC | \
20298 old_archive_from_expsyms_cmds_RC | \
20299 export_symbols_cmds_RC | \
20300 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20301 postinstall_cmds | postuninstall_cmds | \
20302 old_postinstall_cmds | old_postuninstall_cmds | \
20303 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20304 # Double-quote double-evaled strings.
20305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20308 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20314 *'\$0 --fallback-echo"')
20315 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20321 cat <<__EOF__ >> "$cfgfile"
20322 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20324 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20326 # Shell to use when invoking shell scripts.
20329 # Whether or not to build shared libraries.
20330 build_libtool_libs=$enable_shared
20332 # Whether or not to build static libraries.
20333 build_old_libs=$enable_static
20335 # Whether or not to add -lc for building shared libraries.
20336 build_libtool_need_lc=$archive_cmds_need_lc_RC
20338 # Whether or not to disallow shared libs when runtime libs are static
20339 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20341 # Whether or not to optimize for fast installation.
20342 fast_install=$enable_fast_install
20345 host_alias=$host_alias
20348 # An echo program that does not interpret backslashes.
20353 AR_FLAGS=$lt_AR_FLAGS
20358 # A language-specific compiler.
20361 # Is the compiler the GNU C compiler?
20367 # The linker used to build libraries.
20370 # Whether we need hard or soft links.
20373 # A BSD-compatible nm program.
20376 # A symbol stripping program
20379 # Used to examine libraries when file_magic_cmd begins "file"
20380 MAGIC_CMD=$MAGIC_CMD
20382 # Used on cygwin: DLL creation program.
20385 # Used on cygwin: object dumper.
20388 # Used on cygwin: assembler.
20391 # The name of the directory that contains temporary libtool files.
20394 # How to create reloadable object files.
20395 reload_flag=$lt_reload_flag
20396 reload_cmds=$lt_reload_cmds
20398 # How to pass a linker flag through the compiler.
20399 wl=$lt_lt_prog_compiler_wl_RC
20401 # Object file suffix (normally "o").
20402 objext="$ac_objext"
20404 # Old archive suffix (normally "a").
20407 # Shared library suffix (normally ".so").
20410 # Executable file suffix (normally "").
20413 # Additional compiler flags for building library objects.
20414 pic_flag=$lt_lt_prog_compiler_pic_RC
20417 # What is the maximum length of a command?
20418 max_cmd_len=$lt_cv_sys_max_cmd_len
20420 # Does compiler simultaneously support -c and -o options?
20421 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20423 # Must we lock files when doing compilation ?
20424 need_locks=$lt_need_locks
20426 # Do we need the lib prefix for modules?
20427 need_lib_prefix=$need_lib_prefix
20429 # Do we need a version for libraries?
20430 need_version=$need_version
20432 # Whether dlopen is supported.
20433 dlopen_support=$enable_dlopen
20435 # Whether dlopen of programs is supported.
20436 dlopen_self=$enable_dlopen_self
20438 # Whether dlopen of statically linked programs is supported.
20439 dlopen_self_static=$enable_dlopen_self_static
20441 # Compiler flag to prevent dynamic linking.
20442 link_static_flag=$lt_lt_prog_compiler_static_RC
20444 # Compiler flag to turn off builtin functions.
20445 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20447 # Compiler flag to allow reflexive dlopens.
20448 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20450 # Compiler flag to generate shared objects directly from archives.
20451 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20453 # Compiler flag to generate thread-safe objects.
20454 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20456 # Library versioning type.
20457 version_type=$version_type
20459 # Format of library name prefix.
20460 libname_spec=$lt_libname_spec
20462 # List of archive names. First name is the real one, the rest are links.
20463 # The last name is the one that the linker finds with -lNAME.
20464 library_names_spec=$lt_library_names_spec
20466 # The coded name of the library, if different from the real name.
20467 soname_spec=$lt_soname_spec
20469 # Commands used to build and install an old-style archive.
20471 old_archive_cmds=$lt_old_archive_cmds_RC
20472 old_postinstall_cmds=$lt_old_postinstall_cmds
20473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20475 # Create an old-style archive from a shared archive.
20476 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20478 # Create a temporary old-style archive to link instead of a shared archive.
20479 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20481 # Commands used to build and install a shared archive.
20482 archive_cmds=$lt_archive_cmds_RC
20483 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20484 postinstall_cmds=$lt_postinstall_cmds
20485 postuninstall_cmds=$lt_postuninstall_cmds
20487 # Commands used to build a loadable module (assumed same as above if empty)
20488 module_cmds=$lt_module_cmds_RC
20489 module_expsym_cmds=$lt_module_expsym_cmds_RC
20491 # Commands to strip libraries.
20492 old_striplib=$lt_old_striplib
20493 striplib=$lt_striplib
20495 # Dependencies to place before the objects being linked to create a
20497 predep_objects=$lt_predep_objects_RC
20499 # Dependencies to place after the objects being linked to create a
20501 postdep_objects=$lt_postdep_objects_RC
20503 # Dependencies to place before the objects being linked to create a
20505 predeps=$lt_predeps_RC
20507 # Dependencies to place after the objects being linked to create a
20509 postdeps=$lt_postdeps_RC
20511 # The library search path used internally by the compiler when linking
20512 # a shared library.
20513 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20515 # Method to check whether dependent libraries are shared objects.
20516 deplibs_check_method=$lt_deplibs_check_method
20518 # Command to use when deplibs_check_method == file_magic.
20519 file_magic_cmd=$lt_file_magic_cmd
20521 # Flag that allows shared libraries with undefined symbols to be built.
20522 allow_undefined_flag=$lt_allow_undefined_flag_RC
20524 # Flag that forces no undefined symbols.
20525 no_undefined_flag=$lt_no_undefined_flag_RC
20527 # Commands used to finish a libtool library installation in a directory.
20528 finish_cmds=$lt_finish_cmds
20530 # Same as above, but a single script fragment to be evaled but not shown.
20531 finish_eval=$lt_finish_eval
20533 # Take the output of nm and produce a listing of raw symbols and C names.
20534 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20536 # Transform the output of nm in a proper C declaration
20537 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20539 # Transform the output of nm in a C name address pair
20540 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20542 # This is the shared library runtime path variable.
20543 runpath_var=$runpath_var
20545 # This is the shared library path variable.
20546 shlibpath_var=$shlibpath_var
20548 # Is shlibpath searched before the hard-coded library search path?
20549 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20551 # How to hardcode a shared library path into an executable.
20552 hardcode_action=$hardcode_action_RC
20554 # Whether we should hardcode library paths into libraries.
20555 hardcode_into_libs=$hardcode_into_libs
20557 # Flag to hardcode \$libdir into a binary during linking.
20558 # This must work even if \$libdir does not exist.
20559 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20561 # If ld is used when linking, flag to hardcode \$libdir into
20562 # a binary during linking. This must work even if \$libdir does
20564 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20566 # Whether we need a single -rpath flag with a separated argument.
20567 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20569 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20570 # resulting binary.
20571 hardcode_direct=$hardcode_direct_RC
20573 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20574 # resulting binary.
20575 hardcode_minus_L=$hardcode_minus_L_RC
20577 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20578 # the resulting binary.
20579 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20581 # Set to yes if building a shared library automatically hardcodes DIR into the library
20582 # and all subsequent libraries and executables linked against it.
20583 hardcode_automatic=$hardcode_automatic_RC
20585 # Variables whose values should be saved in libtool wrapper scripts and
20586 # restored at relink time.
20587 variables_saved_for_relink="$variables_saved_for_relink"
20589 # Whether libtool must link a program against all its dependency libraries.
20590 link_all_deplibs=$link_all_deplibs_RC
20592 # Compile-time system search path for libraries
20593 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20595 # Run-time system search path for libraries
20596 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20598 # Fix the shell variable \$srcfile for the compiler.
20599 fix_srcfile_path="$fix_srcfile_path_RC"
20601 # Set to yes if exported symbols are required.
20602 always_export_symbols=$always_export_symbols_RC
20604 # The commands to list exported symbols.
20605 export_symbols_cmds=$lt_export_symbols_cmds_RC
20607 # The commands to extract the exported symbol list from a shared archive.
20608 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20610 # Symbols that should not be listed in the preloaded symbols.
20611 exclude_expsyms=$lt_exclude_expsyms_RC
20613 # Symbols that must always be exported.
20614 include_expsyms=$lt_include_expsyms_RC
20616 # ### END LIBTOOL TAG CONFIG: $tagname
20622 # If there is no Makefile yet, we rely on a make rule to execute
20623 # `config.status --recheck' to rerun these tests and create the
20624 # libtool script then.
20625 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20626 if test -f "$ltmain_in"; then
20627 test -f Makefile && make "$ltmain"
20633 ac_cpp='$CPP $CPPFLAGS'
20634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20644 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20645 { (exit 1); exit 1; }; }
20649 # Append the new tag name to the list of available tags.
20650 if test -n "$tagname" ; then
20651 available_tags="$available_tags $tagname"
20657 # Now substitute the updated list of available tags.
20658 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20659 mv "${ofile}T" "$ofile"
20663 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20664 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20665 { (exit 1); exit 1; }; }
20671 # This can be used to rebuild libtool when needed
20672 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20674 # Always use our own libtool.
20675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20677 # Prevent multiple expansion
20699 echo "$as_me:$LINENO: checking if we need -no-undefined" >&5
20700 echo $ECHO_N "checking if we need -no-undefined... $ECHO_C" >&6
20702 *-*-cygwin | *-*-mingw* | *-*-pw32*)
20703 need_no_undefined=yes
20706 need_no_undefined=no
20709 echo "$as_me:$LINENO: result: $need_no_undefined" >&5
20710 echo "${ECHO_T}$need_no_undefined" >&6
20713 if test x$need_no_undefined = xyes; then
20715 NO_UNDEFINED_FALSE='#'
20717 NO_UNDEFINED_TRUE='#'
20718 NO_UNDEFINED_FALSE=
20722 echo "$as_me:$LINENO: checking if we need -mimpure-text" >&5
20723 echo $ECHO_N "checking if we need -mimpure-text... $ECHO_C" >&6
20726 if test "$GCC" = "yes"; then
20734 echo "$as_me:$LINENO: result: $mimpure" >&5
20735 echo "${ECHO_T}$mimpure" >&6
20738 if test x$mimpure = xyes; then
20747 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20748 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20750 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20751 echo $ECHO_N "(cached) $ECHO_C" >&6
20753 cat >conftest.make <<\_ACEOF
20755 @echo 'ac_maketemp="$(MAKE)"'
20757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20758 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20759 if test -n "$ac_maketemp"; then
20760 eval ac_cv_prog_make_${ac_make}_set=yes
20762 eval ac_cv_prog_make_${ac_make}_set=no
20764 rm -f conftest.make
20766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20767 echo "$as_me:$LINENO: result: yes" >&5
20768 echo "${ECHO_T}yes" >&6
20771 echo "$as_me:$LINENO: result: no" >&5
20772 echo "${ECHO_T}no" >&6
20773 SET_MAKE="MAKE=${MAKE-make}"
20777 echo "$as_me:$LINENO: checking whether to support http" >&5
20778 echo $ECHO_N "checking whether to support http... $ECHO_C" >&6
20779 # Check whether --enable-http or --disable-http was given.
20780 if test "${enable_http+set}" = set; then
20781 enableval="$enable_http"
20782 case "$enableval" in
20784 echo "$as_me:$LINENO: result: no" >&5
20785 echo "${ECHO_T}no" >&6
20787 cat >>confdefs.h <<\_ACEOF
20788 #define CURL_DISABLE_HTTP 1
20791 { echo "$as_me:$LINENO: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&5
20792 echo "$as_me: WARNING: disable HTTP disables FTP over proxy and GOPHER too" >&2;}
20794 cat >>confdefs.h <<\_ACEOF
20795 #define CURL_DISABLE_GOPHER 1
20801 *) echo "$as_me:$LINENO: result: yes" >&5
20802 echo "${ECHO_T}yes" >&6
20806 echo "$as_me:$LINENO: result: yes" >&5
20807 echo "${ECHO_T}yes" >&6
20810 echo "$as_me:$LINENO: checking whether to support ftp" >&5
20811 echo $ECHO_N "checking whether to support ftp... $ECHO_C" >&6
20812 # Check whether --enable-ftp or --disable-ftp was given.
20813 if test "${enable_ftp+set}" = set; then
20814 enableval="$enable_ftp"
20815 case "$enableval" in
20817 echo "$as_me:$LINENO: result: no" >&5
20818 echo "${ECHO_T}no" >&6
20820 cat >>confdefs.h <<\_ACEOF
20821 #define CURL_DISABLE_FTP 1
20826 *) echo "$as_me:$LINENO: result: yes" >&5
20827 echo "${ECHO_T}yes" >&6
20831 echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6
20835 echo "$as_me:$LINENO: checking whether to support gopher" >&5
20836 echo $ECHO_N "checking whether to support gopher... $ECHO_C" >&6
20837 # Check whether --enable-gopher or --disable-gopher was given.
20838 if test "${enable_gopher+set}" = set; then
20839 enableval="$enable_gopher"
20840 case "$enableval" in
20842 echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6
20845 cat >>confdefs.h <<\_ACEOF
20846 #define CURL_DISABLE_GOPHER 1
20851 *) echo "$as_me:$LINENO: result: yes" >&5
20852 echo "${ECHO_T}yes" >&6
20856 echo "$as_me:$LINENO: result: yes" >&5
20857 echo "${ECHO_T}yes" >&6
20860 echo "$as_me:$LINENO: checking whether to support file" >&5
20861 echo $ECHO_N "checking whether to support file... $ECHO_C" >&6
20862 # Check whether --enable-file or --disable-file was given.
20863 if test "${enable_file+set}" = set; then
20864 enableval="$enable_file"
20865 case "$enableval" in
20867 echo "$as_me:$LINENO: result: no" >&5
20868 echo "${ECHO_T}no" >&6
20870 cat >>confdefs.h <<\_ACEOF
20871 #define CURL_DISABLE_FILE 1
20876 *) echo "$as_me:$LINENO: result: yes" >&5
20877 echo "${ECHO_T}yes" >&6
20881 echo "$as_me:$LINENO: result: yes" >&5
20882 echo "${ECHO_T}yes" >&6
20885 echo "$as_me:$LINENO: checking whether to support ldap" >&5
20886 echo $ECHO_N "checking whether to support ldap... $ECHO_C" >&6
20887 # Check whether --enable-ldap or --disable-ldap was given.
20888 if test "${enable_ldap+set}" = set; then
20889 enableval="$enable_ldap"
20890 case "$enableval" in
20892 echo "$as_me:$LINENO: result: no" >&5
20893 echo "${ECHO_T}no" >&6
20895 cat >>confdefs.h <<\_ACEOF
20896 #define CURL_DISABLE_LDAP 1
20901 *) echo "$as_me:$LINENO: result: yes" >&5
20902 echo "${ECHO_T}yes" >&6
20906 echo "$as_me:$LINENO: result: yes" >&5
20907 echo "${ECHO_T}yes" >&6
20910 echo "$as_me:$LINENO: checking whether to support dict" >&5
20911 echo $ECHO_N "checking whether to support dict... $ECHO_C" >&6
20912 # Check whether --enable-dict or --disable-dict was given.
20913 if test "${enable_dict+set}" = set; then
20914 enableval="$enable_dict"
20915 case "$enableval" in
20917 echo "$as_me:$LINENO: result: no" >&5
20918 echo "${ECHO_T}no" >&6
20920 cat >>confdefs.h <<\_ACEOF
20921 #define CURL_DISABLE_DICT 1
20926 *) echo "$as_me:$LINENO: result: yes" >&5
20927 echo "${ECHO_T}yes" >&6
20931 echo "$as_me:$LINENO: result: yes" >&5
20932 echo "${ECHO_T}yes" >&6
20935 echo "$as_me:$LINENO: checking whether to support telnet" >&5
20936 echo $ECHO_N "checking whether to support telnet... $ECHO_C" >&6
20937 # Check whether --enable-telnet or --disable-telnet was given.
20938 if test "${enable_telnet+set}" = set; then
20939 enableval="$enable_telnet"
20940 case "$enableval" in
20942 echo "$as_me:$LINENO: result: no" >&5
20943 echo "${ECHO_T}no" >&6
20945 cat >>confdefs.h <<\_ACEOF
20946 #define CURL_DISABLE_TELNET 1
20951 *) echo "$as_me:$LINENO: result: yes" >&5
20952 echo "${ECHO_T}yes" >&6
20956 echo "$as_me:$LINENO: result: yes" >&5
20957 echo "${ECHO_T}yes" >&6
20962 echo "$as_me:$LINENO: checking whether to provide built-in manual" >&5
20963 echo $ECHO_N "checking whether to provide built-in manual... $ECHO_C" >&6
20964 # Check whether --enable-manual or --disable-manual was given.
20965 if test "${enable_manual+set}" = set; then
20966 enableval="$enable_manual"
20967 case "$enableval" in
20969 echo "$as_me:$LINENO: result: no" >&5
20970 echo "${ECHO_T}no" >&6
20972 *) echo "$as_me:$LINENO: result: yes" >&5
20973 echo "${ECHO_T}yes" >&6
20978 echo "$as_me:$LINENO: result: yes" >&5
20979 echo "${ECHO_T}yes" >&6
20986 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20987 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20988 if test "${ac_cv_func_gethostbyname+set}" = set; then
20989 echo $ECHO_N "(cached) $ECHO_C" >&6
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20999 #define gethostbyname innocuous_gethostbyname
21001 /* System header to define __stub macros and hopefully few prototypes,
21002 which can conflict with char gethostbyname (); below.
21003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21004 <limits.h> exists even on freestanding compilers. */
21007 # include <limits.h>
21009 # include <assert.h>
21012 #undef gethostbyname
21014 /* Override any gcc2 internal prototype to avoid an error. */
21019 /* We use char because int might match the return type of a gcc2
21020 builtin and then its argument prototype would still apply. */
21021 char gethostbyname ();
21022 /* The GNU C library defines this for functions which it implements
21023 to always fail with ENOSYS. Some functions are actually named
21024 something starting with __ and the normal name is an alias. */
21025 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21028 char (*f) () = gethostbyname;
21037 return f != gethostbyname;
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21044 (eval $ac_link) 2>conftest.er1
21046 grep -v '^ *+' conftest.er1 >conftest.err
21048 cat conftest.err >&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } &&
21051 { ac_try='test -z "$ac_c_werror_flag"
21052 || test ! -s conftest.err'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; } &&
21058 { ac_try='test -s conftest$ac_exeext'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; }; then
21064 ac_cv_func_gethostbyname=yes
21066 echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_cv_func_gethostbyname=no
21071 rm -f conftest.err conftest.$ac_objext \
21072 conftest$ac_exeext conftest.$ac_ext
21074 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21075 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21076 if test $ac_cv_func_gethostbyname = yes; then
21077 HAVE_GETHOSTBYNAME="1"
21080 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21081 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21082 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 ac_check_lib_save_LIBS=$LIBS
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21094 /* Override any gcc2 internal prototype to avoid an error. */
21098 /* We use char because int might match the return type of a gcc2
21099 builtin and then its argument prototype would still apply. */
21100 char gethostbyname ();
21109 rm -f conftest.$ac_objext conftest$ac_exeext
21110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21111 (eval $ac_link) 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
21118 { ac_try='test -z "$ac_c_werror_flag"
21119 || test ! -s conftest.err'
21120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121 (eval $ac_try) 2>&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); }; } &&
21125 { ac_try='test -s conftest$ac_exeext'
21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21127 (eval $ac_try) 2>&5
21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130 (exit $ac_status); }; }; then
21131 ac_cv_lib_nsl_gethostbyname=yes
21133 echo "$as_me: failed program was:" >&5
21134 sed 's/^/| /' conftest.$ac_ext >&5
21136 ac_cv_lib_nsl_gethostbyname=no
21138 rm -f conftest.err conftest.$ac_objext \
21139 conftest$ac_exeext conftest.$ac_ext
21140 LIBS=$ac_check_lib_save_LIBS
21142 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21143 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21144 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21145 HAVE_GETHOSTBYNAME="1"
21154 if test "$HAVE_GETHOSTBYNAME" != "1"
21156 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
21157 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
21158 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21161 ac_check_lib_save_LIBS=$LIBS
21162 LIBS="-lsocket $LIBS"
21163 cat >conftest.$ac_ext <<_ACEOF
21166 cat confdefs.h >>conftest.$ac_ext
21167 cat >>conftest.$ac_ext <<_ACEOF
21168 /* end confdefs.h. */
21170 /* Override any gcc2 internal prototype to avoid an error. */
21174 /* We use char because int might match the return type of a gcc2
21175 builtin and then its argument prototype would still apply. */
21176 char gethostbyname ();
21185 rm -f conftest.$ac_objext conftest$ac_exeext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21187 (eval $ac_link) 2>conftest.er1
21189 grep -v '^ *+' conftest.er1 >conftest.err
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
21194 { ac_try='test -z "$ac_c_werror_flag"
21195 || test ! -s conftest.err'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_lib_socket_gethostbyname=yes
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 ac_cv_lib_socket_gethostbyname=no
21214 rm -f conftest.err conftest.$ac_objext \
21215 conftest$ac_exeext conftest.$ac_ext
21216 LIBS=$ac_check_lib_save_LIBS
21218 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
21219 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
21220 if test $ac_cv_lib_socket_gethostbyname = yes; then
21221 HAVE_GETHOSTBYNAME="1"
21222 LIBS="$LIBS -lsocket"
21228 if test "$HAVE_GETHOSTBYNAME" != "1"
21230 echo "$as_me:$LINENO: checking trying gethostbyname with both nsl and socket libs" >&5
21231 echo $ECHO_N "checking trying gethostbyname with both nsl and socket libs... $ECHO_C" >&6
21232 my_ac_save_LIBS=$LIBS
21233 LIBS="-lnsl -lsocket $LIBS"
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21251 (eval $ac_link) 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest$ac_exeext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 HAVE_GETHOSTBYNAME="1",
21272 echo "$as_me:$LINENO: result: yes" >&5
21273 echo "${ECHO_T}yes" >&6
21275 echo "$as_me: failed program was:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 echo "$as_me:$LINENO: result: no" >&5
21279 echo "${ECHO_T}no" >&6
21280 LIBS=$my_ac_save_LIBS
21283 rm -f conftest.err conftest.$ac_objext \
21284 conftest$ac_exeext conftest.$ac_ext
21287 if test "$HAVE_GETHOSTBYNAME" != "1"
21289 echo "$as_me:$LINENO: checking for gethostbyname in ws2_32" >&5
21290 echo $ECHO_N "checking for gethostbyname in ws2_32... $ECHO_C" >&6
21291 my_ac_save_LIBS=$LIBS
21292 LIBS="-lws2_32 $LIBS"
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 #include <winsock2.h>
21303 gethostbyname("www.dummysite.com");
21308 rm -f conftest.$ac_objext conftest$ac_exeext
21309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21310 (eval $ac_link) 2>conftest.er1
21312 grep -v '^ *+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); } &&
21317 { ac_try='test -z "$ac_c_werror_flag"
21318 || test ! -s conftest.err'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try='test -s conftest$ac_exeext'
21325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326 (eval $ac_try) 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; }; then
21330 echo "$as_me:$LINENO: result: yes" >&5
21331 echo "${ECHO_T}yes" >&6
21332 HAVE_GETHOSTBYNAME="1"
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 LIBS=$my_ac_save_LIBS
21338 echo "$as_me:$LINENO: result: no" >&5
21339 echo "${ECHO_T}no" >&6
21342 rm -f conftest.err conftest.$ac_objext \
21343 conftest$ac_exeext conftest.$ac_ext
21346 if test "$HAVE_GETHOSTBYNAME" = "1"; then
21348 cat >>confdefs.h <<\_ACEOF
21349 #define HAVE_GETHOSTBYNAME 1
21353 { { echo "$as_me:$LINENO: error: couldn't find libraries for gethostbyname()" >&5
21354 echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
21355 { (exit 1); exit 1; }; }
21358 echo "$as_me:$LINENO: checking for strcasecmp" >&5
21359 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
21360 if test "${ac_cv_func_strcasecmp+set}" = set; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
21370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21371 #define strcasecmp innocuous_strcasecmp
21373 /* System header to define __stub macros and hopefully few prototypes,
21374 which can conflict with char strcasecmp (); below.
21375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376 <limits.h> exists even on freestanding compilers. */
21379 # include <limits.h>
21381 # include <assert.h>
21386 /* Override any gcc2 internal prototype to avoid an error. */
21391 /* We use char because int might match the return type of a gcc2
21392 builtin and then its argument prototype would still apply. */
21393 char strcasecmp ();
21394 /* The GNU C library defines this for functions which it implements
21395 to always fail with ENOSYS. Some functions are actually named
21396 something starting with __ and the normal name is an alias. */
21397 #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
21400 char (*f) () = strcasecmp;
21409 return f != strcasecmp;
21414 rm -f conftest.$ac_objext conftest$ac_exeext
21415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416 (eval $ac_link) 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } &&
21423 { ac_try='test -z "$ac_c_werror_flag"
21424 || test ! -s conftest.err'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; } &&
21430 { ac_try='test -s conftest$ac_exeext'
21431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_func_strcasecmp=yes
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_cv_func_strcasecmp=no
21443 rm -f conftest.err conftest.$ac_objext \
21444 conftest$ac_exeext conftest.$ac_ext
21446 echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
21447 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
21448 if test $ac_cv_func_strcasecmp = yes; then
21452 echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21453 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21454 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21455 echo $ECHO_N "(cached) $ECHO_C" >&6
21457 ac_check_lib_save_LIBS=$LIBS
21458 LIBS="-lresolve $LIBS"
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21466 /* Override any gcc2 internal prototype to avoid an error. */
21470 /* We use char because int might match the return type of a gcc2
21471 builtin and then its argument prototype would still apply. */
21472 char strcasecmp ();
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483 (eval $ac_link) 2>conftest.er1
21485 grep -v '^ *+' conftest.er1 >conftest.err
21487 cat conftest.err >&5
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
21490 { ac_try='test -z "$ac_c_werror_flag"
21491 || test ! -s conftest.err'
21492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); }; } &&
21497 { ac_try='test -s conftest$ac_exeext'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; }; then
21503 ac_cv_lib_resolve_strcasecmp=yes
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21508 ac_cv_lib_resolve_strcasecmp=no
21510 rm -f conftest.err conftest.$ac_objext \
21511 conftest$ac_exeext conftest.$ac_ext
21512 LIBS=$ac_check_lib_save_LIBS
21514 echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21515 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21516 if test $ac_cv_lib_resolve_strcasecmp = yes; then
21517 cat >>confdefs.h <<_ACEOF
21518 #define HAVE_LIBRESOLVE 1
21521 LIBS="-lresolve $LIBS"
21528 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
21529 echo "$as_me:$LINENO: checking for strcasecmp in -lresolve" >&5
21530 echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
21531 if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 ac_check_lib_save_LIBS=$LIBS
21535 LIBS="-lresolve -lnsl $LIBS"
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21543 /* Override any gcc2 internal prototype to avoid an error. */
21547 /* We use char because int might match the return type of a gcc2
21548 builtin and then its argument prototype would still apply. */
21549 char strcasecmp ();
21558 rm -f conftest.$ac_objext conftest$ac_exeext
21559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560 (eval $ac_link) 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } &&
21567 { ac_try='test -z "$ac_c_werror_flag"
21568 || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest$ac_exeext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_lib_resolve_strcasecmp=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 ac_cv_lib_resolve_strcasecmp=no
21587 rm -f conftest.err conftest.$ac_objext \
21588 conftest$ac_exeext conftest.$ac_ext
21589 LIBS=$ac_check_lib_save_LIBS
21591 echo "$as_me:$LINENO: result: $ac_cv_lib_resolve_strcasecmp" >&5
21592 echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
21593 if test $ac_cv_lib_resolve_strcasecmp = yes; then
21594 LIBS="-lresolve $LIBS"
21599 echo "$as_me:$LINENO: checking for connect" >&5
21600 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21601 if test "${ac_cv_func_connect+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21612 #define connect innocuous_connect
21614 /* System header to define __stub macros and hopefully few prototypes,
21615 which can conflict with char connect (); below.
21616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21617 <limits.h> exists even on freestanding compilers. */
21620 # include <limits.h>
21622 # include <assert.h>
21627 /* Override any gcc2 internal prototype to avoid an error. */
21632 /* We use char because int might match the return type of a gcc2
21633 builtin and then its argument prototype would still apply. */
21635 /* The GNU C library defines this for functions which it implements
21636 to always fail with ENOSYS. Some functions are actually named
21637 something starting with __ and the normal name is an alias. */
21638 #if defined (__stub_connect) || defined (__stub___connect)
21641 char (*f) () = connect;
21650 return f != connect;
21655 rm -f conftest.$ac_objext conftest$ac_exeext
21656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21657 (eval $ac_link) 2>conftest.er1
21659 grep -v '^ *+' conftest.er1 >conftest.err
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); } &&
21664 { ac_try='test -z "$ac_c_werror_flag"
21665 || test ! -s conftest.err'
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; } &&
21671 { ac_try='test -s conftest$ac_exeext'
21672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673 (eval $ac_try) 2>&5
21675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676 (exit $ac_status); }; }; then
21677 ac_cv_func_connect=yes
21679 echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21682 ac_cv_func_connect=no
21684 rm -f conftest.err conftest.$ac_objext \
21685 conftest$ac_exeext conftest.$ac_ext
21687 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21688 echo "${ECHO_T}$ac_cv_func_connect" >&6
21689 if test $ac_cv_func_connect = yes; then
21693 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21694 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21695 if test "${ac_cv_lib_socket_connect+set}" = set; then
21696 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 ac_check_lib_save_LIBS=$LIBS
21699 LIBS="-lsocket $LIBS"
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21707 /* Override any gcc2 internal prototype to avoid an error. */
21711 /* We use char because int might match the return type of a gcc2
21712 builtin and then its argument prototype would still apply. */
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21724 (eval $ac_link) 2>conftest.er1
21726 grep -v '^ *+' conftest.er1 >conftest.err
21728 cat conftest.err >&5
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); } &&
21731 { ac_try='test -z "$ac_c_werror_flag"
21732 || test ! -s conftest.err'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest$ac_exeext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_cv_lib_socket_connect=yes
21746 echo "$as_me: failed program was:" >&5
21747 sed 's/^/| /' conftest.$ac_ext >&5
21749 ac_cv_lib_socket_connect=no
21751 rm -f conftest.err conftest.$ac_objext \
21752 conftest$ac_exeext conftest.$ac_ext
21753 LIBS=$ac_check_lib_save_LIBS
21755 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21756 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21757 if test $ac_cv_lib_socket_connect = yes; then
21758 cat >>confdefs.h <<_ACEOF
21759 #define HAVE_LIBSOCKET 1
21762 LIBS="-lsocket $LIBS"
21769 echo "$as_me:$LINENO: checking for dlclose" >&5
21770 echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
21771 if test "${ac_cv_func_dlclose+set}" = set; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 /* Define dlclose to an innocuous variant, in case <limits.h> declares dlclose.
21781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21782 #define dlclose innocuous_dlclose
21784 /* System header to define __stub macros and hopefully few prototypes,
21785 which can conflict with char dlclose (); below.
21786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787 <limits.h> exists even on freestanding compilers. */
21790 # include <limits.h>
21792 # include <assert.h>
21797 /* Override any gcc2 internal prototype to avoid an error. */
21802 /* We use char because int might match the return type of a gcc2
21803 builtin and then its argument prototype would still apply. */
21805 /* The GNU C library defines this for functions which it implements
21806 to always fail with ENOSYS. Some functions are actually named
21807 something starting with __ and the normal name is an alias. */
21808 #if defined (__stub_dlclose) || defined (__stub___dlclose)
21811 char (*f) () = dlclose;
21820 return f != dlclose;
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21827 (eval $ac_link) 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); } &&
21834 { ac_try='test -z "$ac_c_werror_flag"
21835 || test ! -s conftest.err'
21836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837 (eval $ac_try) 2>&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); }; } &&
21841 { ac_try='test -s conftest$ac_exeext'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; }; then
21847 ac_cv_func_dlclose=yes
21849 echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_cv_func_dlclose=no
21854 rm -f conftest.err conftest.$ac_objext \
21855 conftest$ac_exeext conftest.$ac_ext
21857 echo "$as_me:$LINENO: result: $ac_cv_func_dlclose" >&5
21858 echo "${ECHO_T}$ac_cv_func_dlclose" >&6
21859 if test $ac_cv_func_dlclose = yes; then
21863 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21864 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21865 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21868 ac_check_lib_save_LIBS=$LIBS
21870 cat >conftest.$ac_ext <<_ACEOF
21873 cat confdefs.h >>conftest.$ac_ext
21874 cat >>conftest.$ac_ext <<_ACEOF
21875 /* end confdefs.h. */
21877 /* Override any gcc2 internal prototype to avoid an error. */
21881 /* We use char because int might match the return type of a gcc2
21882 builtin and then its argument prototype would still apply. */
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>conftest.er1
21896 grep -v '^ *+' conftest.er1 >conftest.err
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try='test -z "$ac_c_werror_flag"
21902 || test ! -s conftest.err'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest$ac_exeext'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 ac_cv_lib_dl_dlopen=yes
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ac_cv_lib_dl_dlopen=no
21921 rm -f conftest.err conftest.$ac_objext \
21922 conftest$ac_exeext conftest.$ac_ext
21923 LIBS=$ac_check_lib_save_LIBS
21925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21927 if test $ac_cv_lib_dl_dlopen = yes; then
21928 cat >>confdefs.h <<_ACEOF
21929 #define HAVE_LIBDL 1
21939 echo "$as_me:$LINENO: checking whether to use libgcc" >&5
21940 echo $ECHO_N "checking whether to use libgcc... $ECHO_C" >&6
21941 # Check whether --enable-libgcc or --disable-libgcc was given.
21942 if test "${enable_libgcc+set}" = set; then
21943 enableval="$enable_libgcc"
21944 case "$enableval" in
21947 echo "$as_me:$LINENO: result: yes" >&5
21948 echo "${ECHO_T}yes" >&6
21950 *) echo "$as_me:$LINENO: result: no" >&5
21951 echo "${ECHO_T}no" >&6
21955 echo "$as_me:$LINENO: result: no" >&5
21956 echo "${ECHO_T}no" >&6
21961 echo "$as_me:$LINENO: checking for timeGetTime in winmm" >&5
21962 echo $ECHO_N "checking for timeGetTime in winmm... $ECHO_C" >&6
21963 my_ac_save_LIBS=$LIBS
21964 LIBS="-lwinmm $LIBS"
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21971 #include <windef.h>
21972 #include <mmsystem.h>
21982 rm -f conftest.$ac_objext conftest$ac_exeext
21983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21984 (eval $ac_link) 2>conftest.er1
21986 grep -v '^ *+' conftest.er1 >conftest.err
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } &&
21991 { ac_try='test -z "$ac_c_werror_flag"
21992 || test ! -s conftest.err'
21993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21994 (eval $ac_try) 2>&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); }; } &&
21998 { ac_try='test -s conftest$ac_exeext'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; }; then
22004 echo "$as_me:$LINENO: result: yes" >&5
22005 echo "${ECHO_T}yes" >&6
22008 echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22011 LIBS=$my_ac_save_LIBS
22012 echo "$as_me:$LINENO: result: no" >&5
22013 echo "${ECHO_T}no" >&6
22016 rm -f conftest.err conftest.$ac_objext \
22017 conftest$ac_exeext conftest.$ac_ext
22020 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
22021 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
22022 # Check whether --enable-ipv6 or --disable-ipv6 was given.
22023 if test "${enable_ipv6+set}" = set; then
22024 enableval="$enable_ipv6"
22025 case "$enableval" in
22027 echo "$as_me:$LINENO: result: no" >&5
22028 echo "${ECHO_T}no" >&6
22031 *) echo "$as_me:$LINENO: result: yes" >&5
22032 echo "${ECHO_T}yes" >&6
22037 if test "$cross_compiling" = yes; then
22038 echo "$as_me:$LINENO: result: no" >&5
22039 echo "${ECHO_T}no" >&6
22043 cat >conftest.$ac_ext <<_ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 /* is AF_INET6 available? */
22050 #include <sys/types.h>
22051 #include <sys/socket.h>
22054 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
22061 rm -f conftest$ac_exeext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22063 (eval $ac_link) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 echo "$as_me:$LINENO: result: yes" >&5
22073 echo "${ECHO_T}yes" >&6
22076 echo "$as_me: program exited with status $ac_status" >&5
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ( exit $ac_status )
22081 echo "$as_me:$LINENO: result: no" >&5
22082 echo "${ECHO_T}no" >&6
22085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22089 if test "$ipv6" = "yes"; then
22091 echo "$as_me:$LINENO: checking for working getaddrinfo" >&5
22092 echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
22093 if test "${ac_cv_working_getaddrinfo+set}" = set; then
22094 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 if test "$cross_compiling" = yes; then
22099 ac_cv_working_getaddrinfo="yes"
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22110 #include <sys/types.h>
22111 #include <sys/socket.h>
22114 struct addrinfo hints, *ai;
22117 memset(&hints, 0, sizeof(hints));
22118 hints.ai_family = AF_UNSPEC;
22119 hints.ai_socktype = SOCK_STREAM;
22120 error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
22130 rm -f conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>&5
22134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137 (eval $ac_try) 2>&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); }; }; then
22142 ac_cv_working_getaddrinfo="yes"
22145 echo "$as_me: program exited with status $ac_status" >&5
22146 echo "$as_me: failed program was:" >&5
22147 sed 's/^/| /' conftest.$ac_ext >&5
22149 ( exit $ac_status )
22151 ac_cv_working_getaddrinfo="no"
22154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22157 echo "$as_me:$LINENO: result: $ac_cv_working_getaddrinfo" >&5
22158 echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
22159 if test "$ac_cv_working_getaddrinfo" = "yes"; then
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_GETADDRINFO 1
22166 cat >>confdefs.h <<\_ACEOF
22167 #define ENABLE_IPV6 1
22177 # Check whether --enable-nonblocking or --disable-nonblocking was given.
22178 if test "${enable_nonblocking+set}" = set; then
22179 enableval="$enable_nonblocking"
22181 if test "$enableval" = "no" ; then
22182 { echo "$as_me:$LINENO: WARNING: non-blocking sockets disabled" >&5
22183 echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
22185 cat >>confdefs.h <<\_ACEOF
22186 #define HAVE_DISABLED_NONBLOCKING 1
22191 echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22192 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22201 /* headers for O_NONBLOCK test */
22202 #include <sys/types.h>
22203 #include <unistd.h>
22210 /* try to compile O_NONBLOCK */
22212 #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22213 # if defined(__SVR4) || defined(__srv4__)
22214 # define PLATFORM_SOLARIS
22216 # define PLATFORM_SUNOS4
22219 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22220 # define PLATFORM_AIX_V3
22223 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22224 #error "O_NONBLOCK does not work on this platform"
22227 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22233 rm -f conftest.$ac_objext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235 (eval $ac_compile) 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } &&
22242 { ac_try='test -z "$ac_c_werror_flag"
22243 || test ! -s conftest.err'
22244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245 (eval $ac_try) 2>&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); }; } &&
22249 { ac_try='test -s conftest.$ac_objext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22256 nonblock="O_NONBLOCK"
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_O_NONBLOCK 1
22264 echo "$as_me: failed program was:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22269 cat >conftest.$ac_ext <<_ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h. */
22276 /* headers for FIONBIO test */
22277 #include <unistd.h>
22278 #include <stropts.h>
22284 /* FIONBIO source test (old-style unix) */
22286 int flags = ioctl(socket, FIONBIO, &flags);
22292 rm -f conftest.$ac_objext
22293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22294 (eval $ac_compile) 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -z "$ac_c_werror_flag"
22302 || test ! -s conftest.err'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; } &&
22308 { ac_try='test -s conftest.$ac_objext'
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
22317 cat >>confdefs.h <<\_ACEOF
22318 #define HAVE_FIONBIO 1
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22328 cat >conftest.$ac_ext <<_ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h. */
22335 /* headers for ioctlsocket test (cygwin?) */
22336 #include <windows.h>
22342 /* ioctlsocket source code */
22344 int flags = ioctlsocket(socket, FIONBIO, &flags);
22350 rm -f conftest.$ac_objext
22351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22352 (eval $ac_compile) 2>conftest.er1
22354 grep -v '^ *+' conftest.er1 >conftest.err
22356 cat conftest.err >&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } &&
22359 { ac_try='test -z "$ac_c_werror_flag"
22360 || test ! -s conftest.err'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest.$ac_objext'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22373 nonblock="ioctlsocket"
22375 cat >>confdefs.h <<\_ACEOF
22376 #define HAVE_IOCTLSOCKET 1
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22386 cat >conftest.$ac_ext <<_ACEOF
22389 cat confdefs.h >>conftest.$ac_ext
22390 cat >>conftest.$ac_ext <<_ACEOF
22391 /* end confdefs.h. */
22393 /* headers for IoctlSocket test (Amiga?) */
22394 #include <sys/ioctl.h>
22400 /* IoctlSocket source code */
22402 int flags = IoctlSocket(socket, FIONBIO, (long)1);
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22410 (eval $ac_link) 2>conftest.er1
22412 grep -v '^ *+' conftest.er1 >conftest.err
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
22417 { ac_try='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22431 nonblock="IoctlSocket"
22433 cat >>confdefs.h <<\_ACEOF
22434 #define HAVE_IOCTLSOCKET_CASE 1
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22450 /* headers for SO_NONBLOCK test (BeOS) */
22451 #include <sys/types.h>
22452 #include <unistd.h>
22459 /* SO_NONBLOCK source code */
22462 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22468 rm -f conftest.$ac_objext
22469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22470 (eval $ac_compile) 2>conftest.er1
22472 grep -v '^ *+' conftest.er1 >conftest.err
22474 cat conftest.err >&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); } &&
22477 { ac_try='test -z "$ac_c_werror_flag"
22478 || test ! -s conftest.err'
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; } &&
22484 { ac_try='test -s conftest.$ac_objext'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22491 nonblock="SO_NONBLOCK"
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_SO_NONBLOCK 1
22499 echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22505 cat >>confdefs.h <<\_ACEOF
22506 #define HAVE_DISABLED_NONBLOCKING 1
22511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22515 rm -f conftest.err conftest.$ac_objext \
22516 conftest$ac_exeext conftest.$ac_ext
22520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22529 echo "$as_me:$LINENO: result: $nonblock" >&5
22530 echo "${ECHO_T}$nonblock" >&6
22532 if test "$nonblock" = "nada"; then
22533 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22534 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22542 echo "$as_me:$LINENO: checking non-blocking sockets style" >&5
22543 echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22552 /* headers for O_NONBLOCK test */
22553 #include <sys/types.h>
22554 #include <unistd.h>
22561 /* try to compile O_NONBLOCK */
22563 #if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
22564 # if defined(__SVR4) || defined(__srv4__)
22565 # define PLATFORM_SOLARIS
22567 # define PLATFORM_SUNOS4
22570 #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
22571 # define PLATFORM_AIX_V3
22574 #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3) || defined(__BEOS__)
22575 #error "O_NONBLOCK does not work on this platform"
22578 int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
22584 rm -f conftest.$ac_objext
22585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22586 (eval $ac_compile) 2>conftest.er1
22588 grep -v '^ *+' conftest.er1 >conftest.err
22590 cat conftest.err >&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } &&
22593 { ac_try='test -z "$ac_c_werror_flag"
22594 || test ! -s conftest.err'
22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; } &&
22600 { ac_try='test -s conftest.$ac_objext'
22601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22602 (eval $ac_try) 2>&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); }; }; then
22607 nonblock="O_NONBLOCK"
22609 cat >>confdefs.h <<\_ACEOF
22610 #define HAVE_O_NONBLOCK 1
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22627 /* headers for FIONBIO test */
22628 #include <unistd.h>
22629 #include <stropts.h>
22635 /* FIONBIO source test (old-style unix) */
22637 int flags = ioctl(socket, FIONBIO, &flags);
22643 rm -f conftest.$ac_objext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22645 (eval $ac_compile) 2>conftest.er1
22647 grep -v '^ *+' conftest.er1 >conftest.err
22649 cat conftest.err >&5
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } &&
22652 { ac_try='test -z "$ac_c_werror_flag"
22653 || test ! -s conftest.err'
22654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655 (eval $ac_try) 2>&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); }; } &&
22659 { ac_try='test -s conftest.$ac_objext'
22660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661 (eval $ac_try) 2>&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); }; }; then
22668 cat >>confdefs.h <<\_ACEOF
22669 #define HAVE_FIONBIO 1
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22686 /* headers for ioctlsocket test (cygwin?) */
22687 #include <windows.h>
22693 /* ioctlsocket source code */
22695 int flags = ioctlsocket(socket, FIONBIO, &flags);
22701 rm -f conftest.$ac_objext
22702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22703 (eval $ac_compile) 2>conftest.er1
22705 grep -v '^ *+' conftest.er1 >conftest.err
22707 cat conftest.err >&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } &&
22710 { ac_try='test -z "$ac_c_werror_flag"
22711 || test ! -s conftest.err'
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; } &&
22717 { ac_try='test -s conftest.$ac_objext'
22718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22724 nonblock="ioctlsocket"
22726 cat >>confdefs.h <<\_ACEOF
22727 #define HAVE_IOCTLSOCKET 1
22732 echo "$as_me: failed program was:" >&5
22733 sed 's/^/| /' conftest.$ac_ext >&5
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22744 /* headers for IoctlSocket test (Amiga?) */
22745 #include <sys/ioctl.h>
22751 /* IoctlSocket source code */
22753 int flags = IoctlSocket(socket, FIONBIO, (long)1);
22759 rm -f conftest.$ac_objext conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761 (eval $ac_link) 2>conftest.er1
22763 grep -v '^ *+' conftest.er1 >conftest.err
22765 cat conftest.err >&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } &&
22768 { ac_try='test -z "$ac_c_werror_flag"
22769 || test ! -s conftest.err'
22770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; } &&
22775 { ac_try='test -s conftest$ac_exeext'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22782 nonblock="IoctlSocket"
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_IOCTLSOCKET_CASE 1
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22794 cat >conftest.$ac_ext <<_ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h. */
22801 /* headers for SO_NONBLOCK test (BeOS) */
22802 #include <sys/types.h>
22803 #include <unistd.h>
22810 /* SO_NONBLOCK source code */
22813 int flags = setsockopt(socket, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
22819 rm -f conftest.$ac_objext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22821 (eval $ac_compile) 2>conftest.er1
22823 grep -v '^ *+' conftest.er1 >conftest.err
22825 cat conftest.err >&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
22828 { ac_try='test -z "$ac_c_werror_flag"
22829 || test ! -s conftest.err'
22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831 (eval $ac_try) 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; } &&
22835 { ac_try='test -s conftest.$ac_objext'
22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22842 nonblock="SO_NONBLOCK"
22844 cat >>confdefs.h <<\_ACEOF
22845 #define HAVE_SO_NONBLOCK 1
22850 echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22856 cat >>confdefs.h <<\_ACEOF
22857 #define HAVE_DISABLED_NONBLOCKING 1
22862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22866 rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
22871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22880 echo "$as_me:$LINENO: result: $nonblock" >&5
22881 echo "${ECHO_T}$nonblock" >&6
22883 if test "$nonblock" = "nada"; then
22884 { echo "$as_me:$LINENO: WARNING: non-block sockets disabled" >&5
22885 echo "$as_me: WARNING: non-block sockets disabled" >&2;}
22893 # Check whether --with-egd-socket or --without-egd-socket was given.
22894 if test "${with_egd_socket+set}" = set; then
22895 withval="$with_egd_socket"
22896 EGD_SOCKET="$withval"
22899 if test -n "$EGD_SOCKET" ; then
22901 cat >>confdefs.h <<_ACEOF
22902 #define EGD_SOCKET "$EGD_SOCKET"
22908 # Check whether --with-random or --without-random was given.
22909 if test "${with_random+set}" = set; then
22910 withval="$with_random"
22911 RANDOM_FILE="$withval"
22914 echo "$as_me:$LINENO: checking for \"/dev/urandom\"" >&5
22915 echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
22916 if test "${ac_cv_file___dev_urandom_+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 test "$cross_compiling" = yes &&
22920 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22921 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22922 { (exit 1); exit 1; }; }
22923 if test -r ""/dev/urandom""; then
22924 ac_cv_file___dev_urandom_=yes
22926 ac_cv_file___dev_urandom_=no
22929 echo "$as_me:$LINENO: result: $ac_cv_file___dev_urandom_" >&5
22930 echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
22931 if test $ac_cv_file___dev_urandom_ = yes; then
22932 RANDOM_FILE="/dev/urandom"
22938 if test -n "$RANDOM_FILE" ; then
22941 cat >>confdefs.h <<_ACEOF
22942 #define RANDOM_FILE "$RANDOM_FILE"
22948 echo "$as_me:$LINENO: checking if argv can be written to" >&5
22949 echo $ECHO_N "checking if argv can be written to... $ECHO_C" >&6
22950 if test "${curl_cv_writable_argv+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22954 if test "$cross_compiling" = yes; then
22955 curl_cv_writable_argv=cross
22957 cat >conftest.$ac_ext <<_ACEOF
22959 int main(int argc, char ** argv) {
22961 return (argv[0][0] == ' ')?0:1;
22965 rm -f conftest$ac_exeext
22966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967 (eval $ac_link) 2>&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 curl_cv_writable_argv=yes
22978 echo "$as_me: program exited with status $ac_status" >&5
22979 echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22982 ( exit $ac_status )
22983 curl_cv_writable_argv=no
22985 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22990 case $curl_cv_writable_argv in
22993 cat >>confdefs.h <<\_ACEOF
22994 #define HAVE_WRITABLE_ARGV 1
22997 echo "$as_me:$LINENO: result: yes" >&5
22998 echo "${ECHO_T}yes" >&6
23001 echo "$as_me:$LINENO: result: no" >&5
23002 echo "${ECHO_T}no" >&6
23005 echo "$as_me:$LINENO: result: no" >&5
23006 echo "${ECHO_T}no" >&6
23007 { echo "$as_me:$LINENO: WARNING: the previous check could not be made default was used" >&5
23008 echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23014 # Check whether --with-krb4-includes or --without-krb4-includes was given.
23015 if test "${with_krb4_includes+set}" = set; then
23016 withval="$with_krb4_includes"
23018 CPPFLAGS="$CPPFLAGS -I$withval"
23025 # Check whether --with-krb4-libs or --without-krb4-libs was given.
23026 if test "${with_krb4_libs+set}" = set; then
23027 withval="$with_krb4_libs"
23029 LDFLAGS="$LDFLAGS -L$withval"
23038 # Check whether --with-krb4 or --without-krb4 was given.
23039 if test "${with_krb4+set}" = set; then
23040 withval="$with_krb4"
23042 OPT_KRB4="$withval"
23043 if test X"$OPT_KRB4" != Xyes
23045 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff"
23046 KRB4LIB="$OPT_KRB4/lib$libsuff"
23047 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
23048 KRB4INC="$OPT_KRB4/include"
23054 echo "$as_me:$LINENO: checking if Kerberos4 support is requested" >&5
23055 echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
23057 if test "$want_krb4" = yes
23059 if test "$ipv6" = "yes"; then
23060 echo krb4 is not compatible with IPv6
23063 echo "$as_me:$LINENO: result: yes" >&5
23064 echo "${ECHO_T}yes" >&6
23067 echo "$as_me:$LINENO: checking where to look for Kerberos4" >&5
23068 echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
23069 if test X"$OPT_KRB4" = Xyes
23071 echo "$as_me:$LINENO: result: defaults" >&5
23072 echo "${ECHO_T}defaults" >&6
23074 echo "$as_me:$LINENO: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
23075 echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
23078 echo "$as_me:$LINENO: checking for des_pcbc_encrypt in -ldes" >&5
23079 echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
23080 if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 ac_check_lib_save_LIBS=$LIBS
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23092 /* Override any gcc2 internal prototype to avoid an error. */
23096 /* We use char because int might match the return type of a gcc2
23097 builtin and then its argument prototype would still apply. */
23098 char des_pcbc_encrypt ();
23102 des_pcbc_encrypt ();
23107 rm -f conftest.$ac_objext conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); } &&
23116 { ac_try='test -z "$ac_c_werror_flag"
23117 || test ! -s conftest.err'
23118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119 (eval $ac_try) 2>&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); }; } &&
23123 { ac_try='test -s conftest$ac_exeext'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; }; then
23129 ac_cv_lib_des_des_pcbc_encrypt=yes
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 ac_cv_lib_des_des_pcbc_encrypt=no
23136 rm -f conftest.err conftest.$ac_objext \
23137 conftest$ac_exeext conftest.$ac_ext
23138 LIBS=$ac_check_lib_save_LIBS
23140 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
23141 echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
23142 if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
23145 for ac_header in des.h
23147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23149 echo "$as_me:$LINENO: checking for $ac_header" >&5
23150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23157 # Is the header compilable?
23158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 $ac_includes_default
23167 #include <$ac_header>
23169 rm -f conftest.$ac_objext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -z "$ac_c_werror_flag"
23179 || test ! -s conftest.err'
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest.$ac_objext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_header_compiler=yes
23193 echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23196 ac_header_compiler=no
23198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23199 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23200 echo "${ECHO_T}$ac_header_compiler" >&6
23202 # Is the header present?
23203 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23204 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 #include <$ac_header>
23213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23216 grep -v '^ *+' conftest.er1 >conftest.err
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } >/dev/null; then
23221 if test -s conftest.err; then
23222 ac_cpp_err=$ac_c_preproc_warn_flag
23223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23230 if test -z "$ac_cpp_err"; then
23231 ac_header_preproc=yes
23233 echo "$as_me: failed program was:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 ac_header_preproc=no
23238 rm -f conftest.err conftest.$ac_ext
23239 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240 echo "${ECHO_T}$ac_header_preproc" >&6
23242 # So? What about this header?
23243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23249 ac_header_preproc=yes
23252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23266 ## ------------------------------- ##
23267 ## Report this to curl-bug@haxx.se ##
23268 ## ------------------------------- ##
23271 sed "s/^/$as_me: WARNING: /" >&2
23274 echo "$as_me:$LINENO: checking for $ac_header" >&5
23275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23279 eval "$as_ac_Header=\$ac_header_preproc"
23281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23286 cat >>confdefs.h <<_ACEOF
23287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23295 echo "$as_me:$LINENO: checking for res_search" >&5
23296 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
23297 if test "${ac_cv_func_res_search+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23300 cat >conftest.$ac_ext <<_ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
23307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23308 #define res_search innocuous_res_search
23310 /* System header to define __stub macros and hopefully few prototypes,
23311 which can conflict with char res_search (); below.
23312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23313 <limits.h> exists even on freestanding compilers. */
23316 # include <limits.h>
23318 # include <assert.h>
23323 /* Override any gcc2 internal prototype to avoid an error. */
23328 /* We use char because int might match the return type of a gcc2
23329 builtin and then its argument prototype would still apply. */
23330 char res_search ();
23331 /* The GNU C library defines this for functions which it implements
23332 to always fail with ENOSYS. Some functions are actually named
23333 something starting with __ and the normal name is an alias. */
23334 #if defined (__stub_res_search) || defined (__stub___res_search)
23337 char (*f) () = res_search;
23346 return f != res_search;
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353 (eval $ac_link) 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
23360 { ac_try='test -z "$ac_c_werror_flag"
23361 || test ! -s conftest.err'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; } &&
23367 { ac_try='test -s conftest$ac_exeext'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 ac_cv_func_res_search=yes
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 ac_cv_func_res_search=no
23380 rm -f conftest.err conftest.$ac_objext \
23381 conftest$ac_exeext conftest.$ac_ext
23383 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
23384 echo "${ECHO_T}$ac_cv_func_res_search" >&6
23385 if test $ac_cv_func_res_search = yes; then
23389 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
23390 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
23391 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23394 ac_check_lib_save_LIBS=$LIBS
23395 LIBS="-lresolv $LIBS"
23396 cat >conftest.$ac_ext <<_ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23403 /* Override any gcc2 internal prototype to avoid an error. */
23407 /* We use char because int might match the return type of a gcc2
23408 builtin and then its argument prototype would still apply. */
23409 char res_search ();
23418 rm -f conftest.$ac_objext conftest$ac_exeext
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420 (eval $ac_link) 2>conftest.er1
23422 grep -v '^ *+' conftest.er1 >conftest.err
23424 cat conftest.err >&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); } &&
23427 { ac_try='test -z "$ac_c_werror_flag"
23428 || test ! -s conftest.err'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest$ac_exeext'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 ac_cv_lib_resolv_res_search=yes
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23445 ac_cv_lib_resolv_res_search=no
23447 rm -f conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
23449 LIBS=$ac_check_lib_save_LIBS
23451 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
23452 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
23453 if test $ac_cv_lib_resolv_res_search = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define HAVE_LIBRESOLV 1
23458 LIBS="-lresolv $LIBS"
23465 echo "$as_me:$LINENO: checking for krb_net_read in -lkrb" >&5
23466 echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
23467 if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
23468 echo $ECHO_N "(cached) $ECHO_C" >&6
23470 ac_check_lib_save_LIBS=$LIBS
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23479 /* Override any gcc2 internal prototype to avoid an error. */
23483 /* We use char because int might match the return type of a gcc2
23484 builtin and then its argument prototype would still apply. */
23485 char krb_net_read ();
23494 rm -f conftest.$ac_objext conftest$ac_exeext
23495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23496 (eval $ac_link) 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); } &&
23503 { ac_try='test -z "$ac_c_werror_flag"
23504 || test ! -s conftest.err'
23505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506 (eval $ac_try) 2>&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); }; } &&
23510 { ac_try='test -s conftest$ac_exeext'
23511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512 (eval $ac_try) 2>&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_lib_krb_krb_net_read=yes
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_lib_krb_krb_net_read=no
23523 rm -f conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
23525 LIBS=$ac_check_lib_save_LIBS
23527 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_net_read" >&5
23528 echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
23529 if test $ac_cv_lib_krb_krb_net_read = yes; then
23532 for ac_header in krb.h
23534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23536 echo "$as_me:$LINENO: checking for $ac_header" >&5
23537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23539 echo $ECHO_N "(cached) $ECHO_C" >&6
23541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23544 # Is the header compilable?
23545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23547 cat >conftest.$ac_ext <<_ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23553 $ac_includes_default
23554 #include <$ac_header>
23556 rm -f conftest.$ac_objext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23558 (eval $ac_compile) 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } &&
23565 { ac_try='test -z "$ac_c_werror_flag"
23566 || test ! -s conftest.err'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; } &&
23572 { ac_try='test -s conftest.$ac_objext'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 ac_header_compiler=yes
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 ac_header_compiler=no
23585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23587 echo "${ECHO_T}$ac_header_compiler" >&6
23589 # Is the header present?
23590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23592 cat >conftest.$ac_ext <<_ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h. */
23598 #include <$ac_header>
23600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23603 grep -v '^ *+' conftest.er1 >conftest.err
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } >/dev/null; then
23608 if test -s conftest.err; then
23609 ac_cpp_err=$ac_c_preproc_warn_flag
23610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23617 if test -z "$ac_cpp_err"; then
23618 ac_header_preproc=yes
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23623 ac_header_preproc=no
23625 rm -f conftest.err conftest.$ac_ext
23626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23627 echo "${ECHO_T}$ac_header_preproc" >&6
23629 # So? What about this header?
23630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23636 ac_header_preproc=yes
23639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23653 ## ------------------------------- ##
23654 ## Report this to curl-bug@haxx.se ##
23655 ## ------------------------------- ##
23658 sed "s/^/$as_me: WARNING: /" >&2
23661 echo "$as_me:$LINENO: checking for $ac_header" >&5
23662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23664 echo $ECHO_N "(cached) $ECHO_C" >&6
23666 eval "$as_ac_Header=\$ac_header_preproc"
23668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23673 cat >>confdefs.h <<_ACEOF
23674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23682 LIBS="-lkrb -ldes $LIBS"
23685 for ac_func in krb_get_our_ip_for_realm
23687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23688 echo "$as_me:$LINENO: checking for $ac_func" >&5
23689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23690 if eval "test \"\${$as_ac_var+set}\" = set"; then
23691 echo $ECHO_N "(cached) $ECHO_C" >&6
23693 cat >conftest.$ac_ext <<_ACEOF
23696 cat confdefs.h >>conftest.$ac_ext
23697 cat >>conftest.$ac_ext <<_ACEOF
23698 /* end confdefs.h. */
23699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23701 #define $ac_func innocuous_$ac_func
23703 /* System header to define __stub macros and hopefully few prototypes,
23704 which can conflict with char $ac_func (); below.
23705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23706 <limits.h> exists even on freestanding compilers. */
23709 # include <limits.h>
23711 # include <assert.h>
23716 /* Override any gcc2 internal prototype to avoid an error. */
23721 /* We use char because int might match the return type of a gcc2
23722 builtin and then its argument prototype would still apply. */
23724 /* The GNU C library defines this for functions which it implements
23725 to always fail with ENOSYS. Some functions are actually named
23726 something starting with __ and the normal name is an alias. */
23727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23730 char (*f) () = $ac_func;
23739 return f != $ac_func;
23744 rm -f conftest.$ac_objext conftest$ac_exeext
23745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23746 (eval $ac_link) 2>conftest.er1
23748 grep -v '^ *+' conftest.er1 >conftest.err
23750 cat conftest.err >&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); } &&
23753 { ac_try='test -z "$ac_c_werror_flag"
23754 || test ! -s conftest.err'
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest$ac_exeext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 eval "$as_ac_var=yes"
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23771 eval "$as_ac_var=no"
23773 rm -f conftest.err conftest.$ac_objext \
23774 conftest$ac_exeext conftest.$ac_ext
23776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23778 if test `eval echo '${'$as_ac_var'}'` = yes; then
23779 cat >>confdefs.h <<_ACEOF
23780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_KRB4 1
23797 for ac_func in strlcpy
23799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23800 echo "$as_me:$LINENO: checking for $ac_func" >&5
23801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23802 if eval "test \"\${$as_ac_var+set}\" = set"; then
23803 echo $ECHO_N "(cached) $ECHO_C" >&6
23805 cat >conftest.$ac_ext <<_ACEOF
23808 cat confdefs.h >>conftest.$ac_ext
23809 cat >>conftest.$ac_ext <<_ACEOF
23810 /* end confdefs.h. */
23811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23813 #define $ac_func innocuous_$ac_func
23815 /* System header to define __stub macros and hopefully few prototypes,
23816 which can conflict with char $ac_func (); below.
23817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23818 <limits.h> exists even on freestanding compilers. */
23821 # include <limits.h>
23823 # include <assert.h>
23828 /* Override any gcc2 internal prototype to avoid an error. */
23833 /* We use char because int might match the return type of a gcc2
23834 builtin and then its argument prototype would still apply. */
23836 /* The GNU C library defines this for functions which it implements
23837 to always fail with ENOSYS. Some functions are actually named
23838 something starting with __ and the normal name is an alias. */
23839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23842 char (*f) () = $ac_func;
23851 return f != $ac_func;
23856 rm -f conftest.$ac_objext conftest$ac_exeext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23858 (eval $ac_link) 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } &&
23865 { ac_try='test -z "$ac_c_werror_flag"
23866 || test ! -s conftest.err'
23867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868 (eval $ac_try) 2>&5
23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); }; } &&
23872 { ac_try='test -s conftest$ac_exeext'
23873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874 (eval $ac_try) 2>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); }; }; then
23878 eval "$as_ac_var=yes"
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 eval "$as_ac_var=no"
23885 rm -f conftest.err conftest.$ac_objext \
23886 conftest$ac_exeext conftest.$ac_ext
23888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23890 if test `eval echo '${'$as_ac_var'}'` = yes; then
23891 cat >>confdefs.h <<_ACEOF
23892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23906 echo "$as_me:$LINENO: result: no" >&5
23907 echo "${ECHO_T}no" >&6
23912 # Check whether --with-spnego or --without-spnego was given.
23913 if test "${with_spnego+set}" = set; then
23914 withval="$with_spnego"
23915 SPNEGO_ROOT="$withval"
23919 echo "$as_me:$LINENO: checking if SPNEGO support is requested" >&5
23920 echo $ECHO_N "checking if SPNEGO support is requested... $ECHO_C" >&6
23921 if test x"$want_spnego" = xyes; then
23923 if test X"$SPNEGO_ROOT" = Xyes; then
23924 { { echo "$as_me:$LINENO: error: FBOpenSSL libs and/or directories were not found where specified!" >&5
23925 echo "$as_me: error: FBOpenSSL libs and/or directories were not found where specified!" >&2;}
23926 { (exit 1); exit 1; }; }
23927 echo "$as_me:$LINENO: result: no" >&5
23928 echo "${ECHO_T}no" >&6
23930 if test -z "$SPNEGO_LIB_DIR"; then
23931 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
23933 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
23936 echo "$as_me:$LINENO: result: yes" >&5
23937 echo "${ECHO_T}yes" >&6
23939 cat >>confdefs.h <<\_ACEOF
23940 #define HAVE_SPNEGO 1
23945 echo "$as_me:$LINENO: result: no" >&5
23946 echo "${ECHO_T}no" >&6
23951 # Check whether --with-gssapi-includes or --without-gssapi-includes was given.
23952 if test "${with_gssapi_includes+set}" = set; then
23953 withval="$with_gssapi_includes"
23954 GSSAPI_INCS="-I$withval"
23960 # Check whether --with-gssapi-libs or --without-gssapi-libs was given.
23961 if test "${with_gssapi_libs+set}" = set; then
23962 withval="$with_gssapi_libs"
23963 GSSAPI_LIBS="-L$withval -lgssapi"
23969 # Check whether --with-gssapi or --without-gssapi was given.
23970 if test "${with_gssapi+set}" = set; then
23971 withval="$with_gssapi"
23972 GSSAPI_ROOT="$withval"
23977 echo "$as_me:$LINENO: checking if GSSAPI support is requested" >&5
23978 echo $ECHO_N "checking if GSSAPI support is requested... $ECHO_C" >&6
23979 if test x"$want_gss" = xyes; then
23980 if test -z "$GSSAPI_INCS"; then
23981 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
23982 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
23984 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
23987 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
23989 if test -z "$GSSAPI_LIB_DIR"; then
23990 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then
23991 gss_ldflags=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
23992 LDFLAGS="$LDFLAGS $gss_ldflags"
23994 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff -lgssapi"
23997 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24000 echo "$as_me:$LINENO: result: yes" >&5
24001 echo "${ECHO_T}yes" >&6
24003 cat >>confdefs.h <<\_ACEOF
24004 #define HAVE_GSSAPI 1
24008 if test -n "$GSSAPI_INCS"; then
24009 # cut off the preceding -I from the include path
24010 GSSAPI_INCS=`echo $GSSAPI_INCS | sed -e s/^-I//g`
24013 if test -f "$GSSAPI_INCS/gssapi.h"; then
24015 cat >>confdefs.h <<\_ACEOF
24016 #define HAVE_GSSHEIMDAL 1
24021 cat >>confdefs.h <<\_ACEOF
24022 #define HAVE_GSSMIT 1
24028 echo "$as_me:$LINENO: result: no" >&5
24029 echo "${ECHO_T}no" >&6
24033 # Extract the first word of "pkg-config", so it can be a program name with args.
24034 set dummy pkg-config; ac_word=$2
24035 echo "$as_me:$LINENO: checking for $ac_word" >&5
24036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24037 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24042 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24046 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24047 for as_dir in $as_dummy
24050 test -z "$as_dir" && as_dir=.
24051 for ac_exec_ext in '' $ac_executable_extensions; do
24052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24053 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24060 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no"
24064 PKGCONFIG=$ac_cv_path_PKGCONFIG
24066 if test -n "$PKGCONFIG"; then
24067 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
24068 echo "${ECHO_T}$PKGCONFIG" >&6
24070 echo "$as_me:$LINENO: result: no" >&5
24071 echo "${ECHO_T}no" >&6
24074 if test "$PKGCONFIG" != "no" ; then
24075 echo "$as_me:$LINENO: checking for OpenSSL options using pkg-config" >&5
24076 echo $ECHO_N "checking for OpenSSL options using pkg-config... $ECHO_C" >&6
24078 $PKGCONFIG --exists openssl
24081 if test "$SSL_EXISTS" -eq "0"; then
24082 SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
24083 SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
24084 SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
24086 LIBS="$LIBS $SSL_LIBS"
24087 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
24088 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
24090 echo "$as_me:$LINENO: result: yes" >&5
24091 echo "${ECHO_T}yes" >&6
24093 echo "$as_me:$LINENO: result: no" >&5
24094 echo "${ECHO_T}no" >&6
24103 # Check whether --with-ssl or --without-ssl was given.
24104 if test "${with_ssl+set}" = set; then
24105 withval="$with_ssl"
24109 if test X"$OPT_SSL" = Xno
24111 { echo "$as_me:$LINENO: WARNING: SSL/https support disabled" >&5
24112 echo "$as_me: WARNING: SSL/https support disabled" >&2;}
24116 CLEANLDFLAGS="$LDFLAGS"
24117 CLEANCPPFLAGS="$CPPFLAGS"
24121 EXTRA_SSL=/usr/local/ssl ;;
24126 LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
24127 CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24131 echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
24132 echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
24133 if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 ac_check_lib_save_LIBS=$LIBS
24137 LIBS="-lcrypto $LIBS"
24138 cat >conftest.$ac_ext <<_ACEOF
24141 cat confdefs.h >>conftest.$ac_ext
24142 cat >>conftest.$ac_ext <<_ACEOF
24143 /* end confdefs.h. */
24145 /* Override any gcc2 internal prototype to avoid an error. */
24149 /* We use char because int might match the return type of a gcc2
24150 builtin and then its argument prototype would still apply. */
24151 char CRYPTO_lock ();
24160 rm -f conftest.$ac_objext conftest$ac_exeext
24161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24162 (eval $ac_link) 2>conftest.er1
24164 grep -v '^ *+' conftest.er1 >conftest.err
24166 cat conftest.err >&5
24167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168 (exit $ac_status); } &&
24169 { ac_try='test -z "$ac_c_werror_flag"
24170 || test ! -s conftest.err'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; } &&
24176 { ac_try='test -s conftest$ac_exeext'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_cv_lib_crypto_CRYPTO_lock=yes
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ac_cv_lib_crypto_CRYPTO_lock=no
24189 rm -f conftest.err conftest.$ac_objext \
24190 conftest$ac_exeext conftest.$ac_ext
24191 LIBS=$ac_check_lib_save_LIBS
24193 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
24194 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
24195 if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
24201 OLDLDFLAGS="$LDFLAGS"
24202 OLDCPPFLAGS="$CPPFLAGS"
24203 LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib$libsuff"
24204 CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
24205 echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24206 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24207 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24208 echo $ECHO_N "(cached) $ECHO_C" >&6
24210 ac_check_lib_save_LIBS=$LIBS
24211 LIBS="-lcrypto $LIBS"
24212 cat >conftest.$ac_ext <<_ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24219 /* Override any gcc2 internal prototype to avoid an error. */
24223 /* We use char because int might match the return type of a gcc2
24224 builtin and then its argument prototype would still apply. */
24225 char CRYPTO_add_lock ();
24229 CRYPTO_add_lock ();
24234 rm -f conftest.$ac_objext conftest$ac_exeext
24235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24236 (eval $ac_link) 2>conftest.er1
24238 grep -v '^ *+' conftest.er1 >conftest.err
24240 cat conftest.err >&5
24241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242 (exit $ac_status); } &&
24243 { ac_try='test -z "$ac_c_werror_flag"
24244 || test ! -s conftest.err'
24245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); }; } &&
24250 { ac_try='test -s conftest$ac_exeext'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; }; then
24256 ac_cv_lib_crypto_CRYPTO_add_lock=yes
24258 echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24261 ac_cv_lib_crypto_CRYPTO_add_lock=no
24263 rm -f conftest.err conftest.$ac_objext \
24264 conftest$ac_exeext conftest.$ac_ext
24265 LIBS=$ac_check_lib_save_LIBS
24267 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24268 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24269 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24274 LDFLAGS="$OLDLDFLAGS"
24275 CPPFLAGS="$OLDCPPFLAGS"
24284 if test "$HAVECRYPTO" = "yes"; then
24286 echo "$as_me:$LINENO: checking for gdi32" >&5
24287 echo $ECHO_N "checking for gdi32... $ECHO_C" >&6
24288 my_ac_save_LIBS=$LIBS
24289 LIBS="-lgdi32 $LIBS"
24290 cat >conftest.$ac_ext <<_ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24296 #include <windef.h>
24297 #include <wingdi.h>
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308 (eval $ac_link) 2>conftest.er1
24310 grep -v '^ *+' conftest.er1 >conftest.err
24312 cat conftest.err >&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); } &&
24315 { ac_try='test -z "$ac_c_werror_flag"
24316 || test ! -s conftest.err'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; } &&
24322 { ac_try='test -s conftest$ac_exeext'
24323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324 (eval $ac_try) 2>&5
24326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327 (exit $ac_status); }; }; then
24328 echo "$as_me:$LINENO: result: yes" >&5
24329 echo "${ECHO_T}yes" >&6
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 LIBS=$my_ac_save_LIBS
24335 echo "$as_me:$LINENO: result: no" >&5
24336 echo "${ECHO_T}no" >&6
24339 rm -f conftest.err conftest.$ac_objext \
24340 conftest$ac_exeext conftest.$ac_ext
24343 echo "$as_me:$LINENO: checking for CRYPTO_add_lock in -lcrypto" >&5
24344 echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
24345 if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
24346 echo $ECHO_N "(cached) $ECHO_C" >&6
24348 ac_check_lib_save_LIBS=$LIBS
24349 LIBS="-lcrypto $LIBS"
24350 cat >conftest.$ac_ext <<_ACEOF
24353 cat confdefs.h >>conftest.$ac_ext
24354 cat >>conftest.$ac_ext <<_ACEOF
24355 /* end confdefs.h. */
24357 /* Override any gcc2 internal prototype to avoid an error. */
24361 /* We use char because int might match the return type of a gcc2
24362 builtin and then its argument prototype would still apply. */
24363 char CRYPTO_add_lock ();
24367 CRYPTO_add_lock ();
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24374 (eval $ac_link) 2>conftest.er1
24376 grep -v '^ *+' conftest.er1 >conftest.err
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_c_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest$ac_exeext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 ac_cv_lib_crypto_CRYPTO_add_lock=yes
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24399 ac_cv_lib_crypto_CRYPTO_add_lock=no
24401 rm -f conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24405 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
24406 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
24407 if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
24408 cat >>confdefs.h <<_ACEOF
24409 #define HAVE_LIBCRYPTO 1
24412 LIBS="-lcrypto $LIBS"
24417 echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24418 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24419 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24420 echo $ECHO_N "(cached) $ECHO_C" >&6
24422 ac_check_lib_save_LIBS=$LIBS
24424 cat >conftest.$ac_ext <<_ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24431 /* Override any gcc2 internal prototype to avoid an error. */
24435 /* We use char because int might match the return type of a gcc2
24436 builtin and then its argument prototype would still apply. */
24437 char SSL_connect ();
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag"
24456 || test ! -s conftest.err'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 ac_cv_lib_ssl_SSL_connect=yes
24470 echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 ac_cv_lib_ssl_SSL_connect=no
24475 rm -f conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24477 LIBS=$ac_check_lib_save_LIBS
24479 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24480 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24481 if test $ac_cv_lib_ssl_SSL_connect = yes; then
24482 cat >>confdefs.h <<_ACEOF
24483 #define HAVE_LIBSSL 1
24491 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24492 echo "$as_me:$LINENO: checking for ssl with RSAglue/rsaref libs in use" >&5
24493 echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
24495 LIBS="$LIBS -lRSAglue -lrsaref"
24497 echo "$as_me:$LINENO: checking for SSL_connect in -lssl" >&5
24498 echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
24499 if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
24500 echo $ECHO_N "(cached) $ECHO_C" >&6
24502 ac_check_lib_save_LIBS=$LIBS
24504 cat >conftest.$ac_ext <<_ACEOF
24507 cat confdefs.h >>conftest.$ac_ext
24508 cat >>conftest.$ac_ext <<_ACEOF
24509 /* end confdefs.h. */
24511 /* Override any gcc2 internal prototype to avoid an error. */
24515 /* We use char because int might match the return type of a gcc2
24516 builtin and then its argument prototype would still apply. */
24517 char SSL_connect ();
24526 rm -f conftest.$ac_objext conftest$ac_exeext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24528 (eval $ac_link) 2>conftest.er1
24530 grep -v '^ *+' conftest.er1 >conftest.err
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try='test -z "$ac_c_werror_flag"
24536 || test ! -s conftest.err'
24537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538 (eval $ac_try) 2>&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); }; } &&
24542 { ac_try='test -s conftest$ac_exeext'
24543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); }; }; then
24548 ac_cv_lib_ssl_SSL_connect=yes
24550 echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24553 ac_cv_lib_ssl_SSL_connect=no
24555 rm -f conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557 LIBS=$ac_check_lib_save_LIBS
24559 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_connect" >&5
24560 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
24561 if test $ac_cv_lib_ssl_SSL_connect = yes; then
24562 cat >>confdefs.h <<_ACEOF
24563 #define HAVE_LIBSSL 1
24570 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24571 echo "$as_me:$LINENO: result: no" >&5
24572 echo "${ECHO_T}no" >&6
24575 echo "$as_me:$LINENO: result: yes" >&5
24576 echo "${ECHO_T}yes" >&6
24587 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24588 openssl/pem.h openssl/ssl.h openssl/err.h
24590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24592 echo "$as_me:$LINENO: checking for $ac_header" >&5
24593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24595 echo $ECHO_N "(cached) $ECHO_C" >&6
24597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24600 # Is the header compilable?
24601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 $ac_includes_default
24610 #include <$ac_header>
24612 rm -f conftest.$ac_objext
24613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24614 (eval $ac_compile) 2>conftest.er1
24616 grep -v '^ *+' conftest.er1 >conftest.err
24618 cat conftest.err >&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } &&
24621 { ac_try='test -z "$ac_c_werror_flag"
24622 || test ! -s conftest.err'
24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24624 (eval $ac_try) 2>&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); }; } &&
24628 { ac_try='test -s conftest.$ac_objext'
24629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630 (eval $ac_try) 2>&5
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); }; }; then
24634 ac_header_compiler=yes
24636 echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24639 ac_header_compiler=no
24641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24643 echo "${ECHO_T}$ac_header_compiler" >&6
24645 # Is the header present?
24646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24648 cat >conftest.$ac_ext <<_ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24654 #include <$ac_header>
24656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24659 grep -v '^ *+' conftest.er1 >conftest.err
24661 cat conftest.err >&5
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); } >/dev/null; then
24664 if test -s conftest.err; then
24665 ac_cpp_err=$ac_c_preproc_warn_flag
24666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24673 if test -z "$ac_cpp_err"; then
24674 ac_header_preproc=yes
24676 echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 ac_header_preproc=no
24681 rm -f conftest.err conftest.$ac_ext
24682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24683 echo "${ECHO_T}$ac_header_preproc" >&6
24685 # So? What about this header?
24686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24692 ac_header_preproc=yes
24695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24709 ## ------------------------------- ##
24710 ## Report this to curl-bug@haxx.se ##
24711 ## ------------------------------- ##
24714 sed "s/^/$as_me: WARNING: /" >&2
24717 echo "$as_me:$LINENO: checking for $ac_header" >&5
24718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24722 eval "$as_ac_Header=\$ac_header_preproc"
24724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24729 cat >>confdefs.h <<_ACEOF
24730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24738 if test $ac_cv_header_openssl_x509_h = no; then
24745 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24749 echo "$as_me:$LINENO: checking for $ac_header" >&5
24750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24752 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24757 # Is the header compilable?
24758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24760 cat >conftest.$ac_ext <<_ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h. */
24766 $ac_includes_default
24767 #include <$ac_header>
24769 rm -f conftest.$ac_objext
24770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24771 (eval $ac_compile) 2>conftest.er1
24773 grep -v '^ *+' conftest.er1 >conftest.err
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_c_werror_flag"
24779 || test ! -s conftest.err'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest.$ac_objext'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ac_header_compiler=yes
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24796 ac_header_compiler=no
24798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24800 echo "${ECHO_T}$ac_header_compiler" >&6
24802 # Is the header present?
24803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24805 cat >conftest.$ac_ext <<_ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h. */
24811 #include <$ac_header>
24813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24816 grep -v '^ *+' conftest.er1 >conftest.err
24818 cat conftest.err >&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } >/dev/null; then
24821 if test -s conftest.err; then
24822 ac_cpp_err=$ac_c_preproc_warn_flag
24823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24830 if test -z "$ac_cpp_err"; then
24831 ac_header_preproc=yes
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 ac_header_preproc=no
24838 rm -f conftest.err conftest.$ac_ext
24839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24840 echo "${ECHO_T}$ac_header_preproc" >&6
24842 # So? What about this header?
24843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24849 ac_header_preproc=yes
24852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24866 ## ------------------------------- ##
24867 ## Report this to curl-bug@haxx.se ##
24868 ## ------------------------------- ##
24871 sed "s/^/$as_me: WARNING: /" >&2
24874 echo "$as_me:$LINENO: checking for $ac_header" >&5
24875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 eval "$as_ac_Header=\$ac_header_preproc"
24881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24886 cat >>confdefs.h <<_ACEOF
24887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24896 echo "$as_me:$LINENO: checking for ENGINE_init" >&5
24897 echo $ECHO_N "checking for ENGINE_init... $ECHO_C" >&6
24898 if test "${ac_cv_func_ENGINE_init+set}" = set; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24907 /* Define ENGINE_init to an innocuous variant, in case <limits.h> declares ENGINE_init.
24908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24909 #define ENGINE_init innocuous_ENGINE_init
24911 /* System header to define __stub macros and hopefully few prototypes,
24912 which can conflict with char ENGINE_init (); below.
24913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24914 <limits.h> exists even on freestanding compilers. */
24917 # include <limits.h>
24919 # include <assert.h>
24924 /* Override any gcc2 internal prototype to avoid an error. */
24929 /* We use char because int might match the return type of a gcc2
24930 builtin and then its argument prototype would still apply. */
24931 char ENGINE_init ();
24932 /* The GNU C library defines this for functions which it implements
24933 to always fail with ENOSYS. Some functions are actually named
24934 something starting with __ and the normal name is an alias. */
24935 #if defined (__stub_ENGINE_init) || defined (__stub___ENGINE_init)
24938 char (*f) () = ENGINE_init;
24947 return f != ENGINE_init;
24952 rm -f conftest.$ac_objext conftest$ac_exeext
24953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24954 (eval $ac_link) 2>conftest.er1
24956 grep -v '^ *+' conftest.er1 >conftest.err
24958 cat conftest.err >&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); } &&
24961 { ac_try='test -z "$ac_c_werror_flag"
24962 || test ! -s conftest.err'
24963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24964 (eval $ac_try) 2>&5
24966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967 (exit $ac_status); }; } &&
24968 { ac_try='test -s conftest$ac_exeext'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_func_ENGINE_init=yes
24976 echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24979 ac_cv_func_ENGINE_init=no
24981 rm -f conftest.err conftest.$ac_objext \
24982 conftest$ac_exeext conftest.$ac_ext
24984 echo "$as_me:$LINENO: result: $ac_cv_func_ENGINE_init" >&5
24985 echo "${ECHO_T}$ac_cv_func_ENGINE_init" >&6
24986 if test $ac_cv_func_ENGINE_init = yes; then
24988 for ac_header in openssl/engine.h
24990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24992 echo "$as_me:$LINENO: checking for $ac_header" >&5
24993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25000 # Is the header compilable?
25001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25003 cat >conftest.$ac_ext <<_ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 $ac_includes_default
25010 #include <$ac_header>
25012 rm -f conftest.$ac_objext
25013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25014 (eval $ac_compile) 2>conftest.er1
25016 grep -v '^ *+' conftest.er1 >conftest.err
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } &&
25021 { ac_try='test -z "$ac_c_werror_flag"
25022 || test ! -s conftest.err'
25023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024 (eval $ac_try) 2>&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); }; } &&
25028 { ac_try='test -s conftest.$ac_objext'
25029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25030 (eval $ac_try) 2>&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); }; }; then
25034 ac_header_compiler=yes
25036 echo "$as_me: failed program was:" >&5
25037 sed 's/^/| /' conftest.$ac_ext >&5
25039 ac_header_compiler=no
25041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25043 echo "${ECHO_T}$ac_header_compiler" >&6
25045 # Is the header present?
25046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25048 cat >conftest.$ac_ext <<_ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h. */
25054 #include <$ac_header>
25056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25059 grep -v '^ *+' conftest.er1 >conftest.err
25061 cat conftest.err >&5
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } >/dev/null; then
25064 if test -s conftest.err; then
25065 ac_cpp_err=$ac_c_preproc_warn_flag
25066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25073 if test -z "$ac_cpp_err"; then
25074 ac_header_preproc=yes
25076 echo "$as_me: failed program was:" >&5
25077 sed 's/^/| /' conftest.$ac_ext >&5
25079 ac_header_preproc=no
25081 rm -f conftest.err conftest.$ac_ext
25082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25083 echo "${ECHO_T}$ac_header_preproc" >&6
25085 # So? What about this header?
25086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25092 ac_header_preproc=yes
25095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25109 ## ------------------------------- ##
25110 ## Report this to curl-bug@haxx.se ##
25111 ## ------------------------------- ##
25114 sed "s/^/$as_me: WARNING: /" >&2
25117 echo "$as_me:$LINENO: checking for $ac_header" >&5
25118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 eval "$as_ac_Header=\$ac_header_preproc"
25124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25129 cat >>confdefs.h <<_ACEOF
25130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25142 echo "$as_me:$LINENO: checking CA cert bundle install path" >&5
25143 echo $ECHO_N "checking CA cert bundle install path... $ECHO_C" >&6
25146 # Check whether --with-ca-bundle or --without-ca-bundle was given.
25147 if test "${with_ca_bundle+set}" = set; then
25148 withval="$with_ca_bundle"
25152 if test "x$prefix" != xNONE; then
25153 ca="\${prefix}/share/curl/curl-ca-bundle.crt"
25155 ca="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25160 if test X"$OPT_SSL" = Xno; then
25164 if test "x$ca" != "xno"; then
25165 CURL_CA_BUNDLE='"'$ca'"'
25168 echo "$as_me:$LINENO: result: $ca" >&5
25169 echo "${ECHO_T}$ca" >&6
25176 for ac_func in RAND_status \
25179 CRYPTO_cleanup_all_ex_data
25181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25182 echo "$as_me:$LINENO: checking for $ac_func" >&5
25183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25184 if eval "test \"\${$as_ac_var+set}\" = set"; then
25185 echo $ECHO_N "(cached) $ECHO_C" >&6
25187 cat >conftest.$ac_ext <<_ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h. */
25193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25195 #define $ac_func innocuous_$ac_func
25197 /* System header to define __stub macros and hopefully few prototypes,
25198 which can conflict with char $ac_func (); below.
25199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25200 <limits.h> exists even on freestanding compilers. */
25203 # include <limits.h>
25205 # include <assert.h>
25210 /* Override any gcc2 internal prototype to avoid an error. */
25215 /* We use char because int might match the return type of a gcc2
25216 builtin and then its argument prototype would still apply. */
25218 /* The GNU C library defines this for functions which it implements
25219 to always fail with ENOSYS. Some functions are actually named
25220 something starting with __ and the normal name is an alias. */
25221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25224 char (*f) () = $ac_func;
25233 return f != $ac_func;
25238 rm -f conftest.$ac_objext conftest$ac_exeext
25239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25240 (eval $ac_link) 2>conftest.er1
25242 grep -v '^ *+' conftest.er1 >conftest.err
25244 cat conftest.err >&5
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); } &&
25247 { ac_try='test -z "$ac_c_werror_flag"
25248 || test ! -s conftest.err'
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 eval "$as_ac_var=yes"
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 eval "$as_ac_var=no"
25267 rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
25270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25272 if test `eval echo '${'$as_ac_var'}'` = yes; then
25273 cat >>confdefs.h <<_ACEOF
25274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25283 if test X"$OPT_SSL" != Xoff &&
25284 test "$OPENSSL_ENABLED" != "1"; then
25285 { { echo "$as_me:$LINENO: error: OpenSSL libs and/or directories were not found where specified!" >&5
25286 echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
25287 { (exit 1); exit 1; }; }
25294 if test x$ca != xno; then
25305 _cppflags=$CPPFLAGS
25307 OPT_ZLIB="/usr/local"
25309 # Check whether --with-zlib or --without-zlib was given.
25310 if test "${with_zlib+set}" = set; then
25311 withval="$with_zlib"
25312 OPT_ZLIB="$withval"
25315 case "$OPT_ZLIB" in
25317 { echo "$as_me:$LINENO: WARNING: zlib disabled" >&5
25318 echo "$as_me: WARNING: zlib disabled" >&2;} ;;
25321 echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
25322 echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
25323 if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25326 ac_check_lib_save_LIBS=$LIBS
25328 cat >conftest.$ac_ext <<_ACEOF
25331 cat confdefs.h >>conftest.$ac_ext
25332 cat >>conftest.$ac_ext <<_ACEOF
25333 /* end confdefs.h. */
25335 /* Override any gcc2 internal prototype to avoid an error. */
25339 /* We use char because int might match the return type of a gcc2
25340 builtin and then its argument prototype would still apply. */
25341 char inflateEnd ();
25350 rm -f conftest.$ac_objext conftest$ac_exeext
25351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25352 (eval $ac_link) 2>conftest.er1
25354 grep -v '^ *+' conftest.er1 >conftest.err
25356 cat conftest.err >&5
25357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358 (exit $ac_status); } &&
25359 { ac_try='test -z "$ac_c_werror_flag"
25360 || test ! -s conftest.err'
25361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362 (eval $ac_try) 2>&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); }; } &&
25366 { ac_try='test -s conftest$ac_exeext'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; }; then
25372 ac_cv_lib_z_inflateEnd=yes
25374 echo "$as_me: failed program was:" >&5
25375 sed 's/^/| /' conftest.$ac_ext >&5
25377 ac_cv_lib_z_inflateEnd=no
25379 rm -f conftest.err conftest.$ac_objext \
25380 conftest$ac_exeext conftest.$ac_ext
25381 LIBS=$ac_check_lib_save_LIBS
25383 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
25384 echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
25385 if test $ac_cv_lib_z_inflateEnd = yes; then
25388 if test -d "$OPT_ZLIB"; then
25389 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
25390 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
25395 if test "${ac_cv_header_zlib_h+set}" = set; then
25396 echo "$as_me:$LINENO: checking for zlib.h" >&5
25397 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25398 if test "${ac_cv_header_zlib_h+set}" = set; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
25401 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25402 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25404 # Is the header compilable?
25405 echo "$as_me:$LINENO: checking zlib.h usability" >&5
25406 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25407 cat >conftest.$ac_ext <<_ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25413 $ac_includes_default
25416 rm -f conftest.$ac_objext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25418 (eval $ac_compile) 2>conftest.er1
25420 grep -v '^ *+' conftest.er1 >conftest.err
25422 cat conftest.err >&5
25423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424 (exit $ac_status); } &&
25425 { ac_try='test -z "$ac_c_werror_flag"
25426 || test ! -s conftest.err'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; } &&
25432 { ac_try='test -s conftest.$ac_objext'
25433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434 (eval $ac_try) 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ac_header_compiler=yes
25440 echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25443 ac_header_compiler=no
25445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25447 echo "${ECHO_T}$ac_header_compiler" >&6
25449 # Is the header present?
25450 echo "$as_me:$LINENO: checking zlib.h presence" >&5
25451 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25452 cat >conftest.$ac_ext <<_ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */
25460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25463 grep -v '^ *+' conftest.er1 >conftest.err
25465 cat conftest.err >&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); } >/dev/null; then
25468 if test -s conftest.err; then
25469 ac_cpp_err=$ac_c_preproc_warn_flag
25470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25477 if test -z "$ac_cpp_err"; then
25478 ac_header_preproc=yes
25480 echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 ac_header_preproc=no
25485 rm -f conftest.err conftest.$ac_ext
25486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25487 echo "${ECHO_T}$ac_header_preproc" >&6
25489 # So? What about this header?
25490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25492 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25493 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25494 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25495 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25496 ac_header_preproc=yes
25499 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25500 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25501 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25502 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25503 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25504 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25505 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25506 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25507 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25508 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25509 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25510 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25513 ## ------------------------------- ##
25514 ## Report this to curl-bug@haxx.se ##
25515 ## ------------------------------- ##
25518 sed "s/^/$as_me: WARNING: /" >&2
25521 echo "$as_me:$LINENO: checking for zlib.h" >&5
25522 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25523 if test "${ac_cv_header_zlib_h+set}" = set; then
25524 echo $ECHO_N "(cached) $ECHO_C" >&6
25526 ac_cv_header_zlib_h=$ac_header_preproc
25528 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25529 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25532 if test $ac_cv_header_zlib_h = yes; then
25535 if test "$HAVE_LIBZ" != "1"; then
25536 echo "$as_me:$LINENO: checking for gzread in -lz" >&5
25537 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
25538 if test "${ac_cv_lib_z_gzread+set}" = set; then
25539 echo $ECHO_N "(cached) $ECHO_C" >&6
25541 ac_check_lib_save_LIBS=$LIBS
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25550 /* Override any gcc2 internal prototype to avoid an error. */
25554 /* We use char because int might match the return type of a gcc2
25555 builtin and then its argument prototype would still apply. */
25565 rm -f conftest.$ac_objext conftest$ac_exeext
25566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25567 (eval $ac_link) 2>conftest.er1
25569 grep -v '^ *+' conftest.er1 >conftest.err
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } &&
25574 { ac_try='test -z "$ac_c_werror_flag"
25575 || test ! -s conftest.err'
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; } &&
25581 { ac_try='test -s conftest$ac_exeext'
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; }; then
25587 ac_cv_lib_z_gzread=yes
25589 echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25592 ac_cv_lib_z_gzread=no
25594 rm -f conftest.err conftest.$ac_objext \
25595 conftest$ac_exeext conftest.$ac_ext
25596 LIBS=$ac_check_lib_save_LIBS
25598 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
25599 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
25600 if test $ac_cv_lib_z_gzread = yes; then
25605 CPPFLAGS=$_cppflags
25613 CPPFLAGS=$_cppflags
25620 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
25622 { echo "$as_me:$LINENO: WARNING: configure found only the libz lib, not the header file!" >&5
25623 echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
25624 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
25626 { echo "$as_me:$LINENO: WARNING: configure found only the libz header file, not the lib!" >&5
25627 echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
25628 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
25632 cat >>confdefs.h <<\_ACEOF
25633 #define HAVE_ZLIB_H 1
25637 cat >>confdefs.h <<\_ACEOF
25638 #define HAVE_LIBZ 1
25645 { echo "$as_me:$LINENO: found both libz and libz.h header" >&5
25646 echo "$as_me: found both libz and libz.h header" >&6;}
25653 if test x"$AMFIXLIB" = x1; then
25655 HAVE_LIBZ_FALSE='#'
25664 echo "$as_me:$LINENO: checking AIX 4.3 or later" >&5
25665 echo $ECHO_N "checking AIX 4.3 or later... $ECHO_C" >&6
25666 cat >conftest.$ac_ext <<_ACEOF
25668 #if defined(_AIX) && defined(_AIX43)
25669 printf("just fine");
25671 #error "this is not AIX 4.3 or later"
25675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25678 grep -v '^ *+' conftest.er1 >conftest.err
25680 cat conftest.err >&5
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); } >/dev/null; then
25683 if test -s conftest.err; then
25684 ac_cpp_err=$ac_c_preproc_warn_flag
25685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25692 if test -z "$ac_cpp_err"; then
25693 echo "$as_me:$LINENO: result: yes" >&5
25694 echo "${ECHO_T}yes" >&6
25697 echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 echo "$as_me:$LINENO: result: no" >&5
25701 echo "${ECHO_T}no" >&6
25704 rm -f conftest.err conftest.$ac_ext
25706 # Check whether --enable-thread or --disable-thread was given.
25707 if test "${enable_thread+set}" = set; then
25708 enableval="$enable_thread"
25709 case "$enableval" in
25712 { echo "$as_me:$LINENO: WARNING: libcurl will not get built using thread-safe functions" >&5
25713 echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
25722 if test X"$OPT_THREAD" = Xoff
25725 cat >>confdefs.h <<\_ACEOF
25726 #define DISABLED_THREADSAFE 1
25730 if test "$ipv6" != "yes"; then
25733 for ac_func in gethostbyname_r
25735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25736 echo "$as_me:$LINENO: checking for $ac_func" >&5
25737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25738 if eval "test \"\${$as_ac_var+set}\" = set"; then
25739 echo $ECHO_N "(cached) $ECHO_C" >&6
25741 cat >conftest.$ac_ext <<_ACEOF
25744 cat confdefs.h >>conftest.$ac_ext
25745 cat >>conftest.$ac_ext <<_ACEOF
25746 /* end confdefs.h. */
25747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25749 #define $ac_func innocuous_$ac_func
25751 /* System header to define __stub macros and hopefully few prototypes,
25752 which can conflict with char $ac_func (); below.
25753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25754 <limits.h> exists even on freestanding compilers. */
25757 # include <limits.h>
25759 # include <assert.h>
25764 /* Override any gcc2 internal prototype to avoid an error. */
25769 /* We use char because int might match the return type of a gcc2
25770 builtin and then its argument prototype would still apply. */
25772 /* The GNU C library defines this for functions which it implements
25773 to always fail with ENOSYS. Some functions are actually named
25774 something starting with __ and the normal name is an alias. */
25775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25778 char (*f) () = $ac_func;
25787 return f != $ac_func;
25792 rm -f conftest.$ac_objext conftest$ac_exeext
25793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25794 (eval $ac_link) 2>conftest.er1
25796 grep -v '^ *+' conftest.er1 >conftest.err
25798 cat conftest.err >&5
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); } &&
25801 { ac_try='test -z "$ac_c_werror_flag"
25802 || test ! -s conftest.err'
25803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804 (eval $ac_try) 2>&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); }; } &&
25808 { ac_try='test -s conftest$ac_exeext'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 eval "$as_ac_var=yes"
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 eval "$as_ac_var=no"
25821 rm -f conftest.err conftest.$ac_objext \
25822 conftest$ac_exeext conftest.$ac_ext
25824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25826 if test `eval echo '${'$as_ac_var'}'` = yes; then
25827 cat >>confdefs.h <<_ACEOF
25828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25831 echo "$as_me:$LINENO: checking if gethostbyname_r takes 3 arguments" >&5
25832 echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
25833 cat >conftest.$ac_ext <<_ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25840 #include <string.h>
25841 #include <sys/types.h>
25844 #define NULL (void *)0
25847 gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
25852 struct hostent_data data;
25853 gethostbyname_r(NULL, NULL, NULL);
25858 rm -f conftest.$ac_objext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25860 (eval $ac_compile) 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } &&
25867 { ac_try='test -z "$ac_c_werror_flag"
25868 || test ! -s conftest.err'
25869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25870 (eval $ac_try) 2>&5
25872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); }; } &&
25874 { ac_try='test -s conftest.$ac_objext'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; }; then
25881 echo "$as_me:$LINENO: result: yes" >&5
25882 echo "${ECHO_T}yes" >&6
25884 cat >>confdefs.h <<\_ACEOF
25885 #define HAVE_GETHOSTBYNAME_R_3 1
25888 ac_cv_gethostbyname_args=3
25890 echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25894 echo "$as_me:$LINENO: result: no" >&5
25895 echo "${ECHO_T}no" >&6
25896 echo "$as_me:$LINENO: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
25897 echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
25898 cat >conftest.$ac_ext <<_ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h. */
25907 #include <string.h>
25908 #include <sys/types.h>
25911 #define NULL (void *)0
25914 gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
25919 struct hostent_data data;
25920 gethostbyname_r(NULL, NULL, NULL);
25925 rm -f conftest.$ac_objext
25926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25927 (eval $ac_compile) 2>conftest.er1
25929 grep -v '^ *+' conftest.er1 >conftest.err
25931 cat conftest.err >&5
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } &&
25934 { ac_try='test -z "$ac_c_werror_flag"
25935 || test ! -s conftest.err'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; } &&
25941 { ac_try='test -s conftest.$ac_objext'
25942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25943 (eval $ac_try) 2>&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); }; }; then
25948 echo "$as_me:$LINENO: result: yes" >&5
25949 echo "${ECHO_T}yes" >&6
25951 cat >>confdefs.h <<\_ACEOF
25952 #define HAVE_GETHOSTBYNAME_R_3 1
25956 cat >>confdefs.h <<\_ACEOF
25957 #define NEED_REENTRANT 1
25960 ac_cv_gethostbyname_args=3
25962 echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25966 echo "$as_me:$LINENO: result: no" >&5
25967 echo "${ECHO_T}no" >&6
25968 echo "$as_me:$LINENO: checking if gethostbyname_r takes 5 arguments" >&5
25969 echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25977 #include <sys/types.h>
25980 #define NULL (void *)0
25983 gethostbyname_r(const char *, struct hostent *, char *, int, int *);
25988 gethostbyname_r(NULL, NULL, NULL, 0, NULL);
25993 rm -f conftest.$ac_objext
25994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25995 (eval $ac_compile) 2>conftest.er1
25997 grep -v '^ *+' conftest.er1 >conftest.err
25999 cat conftest.err >&5
26000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001 (exit $ac_status); } &&
26002 { ac_try='test -z "$ac_c_werror_flag"
26003 || test ! -s conftest.err'
26004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26005 (eval $ac_try) 2>&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); }; } &&
26009 { ac_try='test -s conftest.$ac_objext'
26010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26011 (eval $ac_try) 2>&5
26013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; }; then
26016 echo "$as_me:$LINENO: result: yes" >&5
26017 echo "${ECHO_T}yes" >&6
26019 cat >>confdefs.h <<\_ACEOF
26020 #define HAVE_GETHOSTBYNAME_R_5 1
26023 ac_cv_gethostbyname_args=5
26025 echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26029 echo "$as_me:$LINENO: result: no" >&5
26030 echo "${ECHO_T}no" >&6
26031 echo "$as_me:$LINENO: checking if gethostbyname_r takes 6 arguments" >&5
26032 echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
26033 cat >conftest.$ac_ext <<_ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h. */
26040 #include <sys/types.h>
26043 #define NULL (void *)0
26046 gethostbyname_r(const char *, struct hostent *, char *, size_t,
26047 struct hostent **, int *);
26052 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
26057 rm -f conftest.$ac_objext
26058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059 (eval $ac_compile) 2>conftest.er1
26061 grep -v '^ *+' conftest.er1 >conftest.err
26063 cat conftest.err >&5
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
26066 { ac_try='test -z "$ac_c_werror_flag"
26067 || test ! -s conftest.err'
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; } &&
26073 { ac_try='test -s conftest.$ac_objext'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; }; then
26080 echo "$as_me:$LINENO: result: yes" >&5
26081 echo "${ECHO_T}yes" >&6
26083 cat >>confdefs.h <<\_ACEOF
26084 #define HAVE_GETHOSTBYNAME_R_6 1
26087 ac_cv_gethostbyname_args=6
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26093 echo "$as_me:$LINENO: result: no" >&5
26094 echo "${ECHO_T}no" >&6
26095 have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
26097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26108 if test "$ac_cv_func_gethostbyname_r" = "yes"; then
26109 if test "$ac_cv_gethostbyname_args" = "0"; then
26110 { { echo "$as_me:$LINENO: error: couldn't figure out how to use gethostbyname_r()" >&5
26111 echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
26112 { (exit 1); exit 1; }; }
26119 for ac_func in gethostbyaddr_r
26121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26122 echo "$as_me:$LINENO: checking for $ac_func" >&5
26123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26124 if eval "test \"\${$as_ac_var+set}\" = set"; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26127 cat >conftest.$ac_ext <<_ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26135 #define $ac_func innocuous_$ac_func
26137 /* System header to define __stub macros and hopefully few prototypes,
26138 which can conflict with char $ac_func (); below.
26139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26140 <limits.h> exists even on freestanding compilers. */
26143 # include <limits.h>
26145 # include <assert.h>
26150 /* Override any gcc2 internal prototype to avoid an error. */
26155 /* We use char because int might match the return type of a gcc2
26156 builtin and then its argument prototype would still apply. */
26158 /* The GNU C library defines this for functions which it implements
26159 to always fail with ENOSYS. Some functions are actually named
26160 something starting with __ and the normal name is an alias. */
26161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26164 char (*f) () = $ac_func;
26173 return f != $ac_func;
26178 rm -f conftest.$ac_objext conftest$ac_exeext
26179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26180 (eval $ac_link) 2>conftest.er1
26182 grep -v '^ *+' conftest.er1 >conftest.err
26184 cat conftest.err >&5
26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26186 (exit $ac_status); } &&
26187 { ac_try='test -z "$ac_c_werror_flag"
26188 || test ! -s conftest.err'
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; } &&
26194 { ac_try='test -s conftest$ac_exeext'
26195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 eval "$as_ac_var=yes"
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 eval "$as_ac_var=no"
26207 rm -f conftest.err conftest.$ac_objext \
26208 conftest$ac_exeext conftest.$ac_ext
26210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26212 if test `eval echo '${'$as_ac_var'}'` = yes; then
26213 cat >>confdefs.h <<_ACEOF
26214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26217 echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 5 arguments" >&5
26218 echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
26219 cat >conftest.$ac_ext <<_ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h. */
26226 #include <sys/types.h>
26236 struct hostent_data hdata;
26238 rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26243 rm -f conftest.$ac_objext
26244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245 (eval $ac_compile) 2>conftest.er1
26247 grep -v '^ *+' conftest.er1 >conftest.err
26249 cat conftest.err >&5
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); } &&
26252 { ac_try='test -z "$ac_c_werror_flag"
26253 || test ! -s conftest.err'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26266 echo "$as_me:$LINENO: result: yes" >&5
26267 echo "${ECHO_T}yes" >&6
26269 cat >>confdefs.h <<\_ACEOF
26270 #define HAVE_GETHOSTBYADDR_R_5 1
26273 ac_cv_gethostbyaddr_args=5
26275 echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26279 echo "$as_me:$LINENO: result: no" >&5
26280 echo "${ECHO_T}no" >&6
26281 echo "$as_me:$LINENO: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
26282 echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h. */
26291 #include <sys/types.h>
26301 struct hostent_data hdata;
26303 rc = gethostbyaddr_r(address, length, type, &h, &hdata);
26308 rm -f conftest.$ac_objext
26309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26310 (eval $ac_compile) 2>conftest.er1
26312 grep -v '^ *+' conftest.er1 >conftest.err
26314 cat conftest.err >&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); } &&
26317 { ac_try='test -z "$ac_c_werror_flag"
26318 || test ! -s conftest.err'
26319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320 (eval $ac_try) 2>&5
26322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323 (exit $ac_status); }; } &&
26324 { ac_try='test -s conftest.$ac_objext'
26325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26326 (eval $ac_try) 2>&5
26328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); }; }; then
26331 echo "$as_me:$LINENO: result: yes" >&5
26332 echo "${ECHO_T}yes" >&6
26334 cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_GETHOSTBYADDR_R_5 1
26339 cat >>confdefs.h <<\_ACEOF
26340 #define NEED_REENTRANT 1
26343 ac_cv_gethostbyaddr_args=5
26345 echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26349 echo "$as_me:$LINENO: result: no" >&5
26350 echo "${ECHO_T}no" >&6
26351 echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 7 arguments" >&5
26352 echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
26353 cat >conftest.$ac_ext <<_ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26360 #include <sys/types.h>
26372 struct hostent * hp;
26374 hp = gethostbyaddr_r(address, length, type, &h,
26375 buffer, 8192, &h_errnop);
26380 rm -f conftest.$ac_objext
26381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26382 (eval $ac_compile) 2>conftest.er1
26384 grep -v '^ *+' conftest.er1 >conftest.err
26386 cat conftest.err >&5
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); } &&
26389 { ac_try='test -z "$ac_c_werror_flag"
26390 || test ! -s conftest.err'
26391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392 (eval $ac_try) 2>&5
26394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395 (exit $ac_status); }; } &&
26396 { ac_try='test -s conftest.$ac_objext'
26397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398 (eval $ac_try) 2>&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); }; }; then
26403 echo "$as_me:$LINENO: result: yes" >&5
26404 echo "${ECHO_T}yes" >&6
26406 cat >>confdefs.h <<\_ACEOF
26407 #define HAVE_GETHOSTBYADDR_R_7 1
26410 ac_cv_gethostbyaddr_args=7
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26416 echo "$as_me:$LINENO: result: no" >&5
26417 echo "${ECHO_T}no" >&6
26418 echo "$as_me:$LINENO: checking if gethostbyaddr_r takes 8 arguments" >&5
26419 echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
26420 cat >conftest.$ac_ext <<_ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h. */
26427 #include <sys/types.h>
26439 struct hostent * hp;
26442 rc = gethostbyaddr_r(address, length, type, &h,
26443 buffer, 8192, &hp, &h_errnop);
26448 rm -f conftest.$ac_objext
26449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26450 (eval $ac_compile) 2>conftest.er1
26452 grep -v '^ *+' conftest.er1 >conftest.err
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
26457 { ac_try='test -z "$ac_c_werror_flag"
26458 || test ! -s conftest.err'
26459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460 (eval $ac_try) 2>&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); }; } &&
26464 { ac_try='test -s conftest.$ac_objext'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; }; then
26471 echo "$as_me:$LINENO: result: yes" >&5
26472 echo "${ECHO_T}yes" >&6
26474 cat >>confdefs.h <<\_ACEOF
26475 #define HAVE_GETHOSTBYADDR_R_8 1
26478 ac_cv_gethostbyaddr_args=8
26480 echo "$as_me: failed program was:" >&5
26481 sed 's/^/| /' conftest.$ac_ext >&5
26484 echo "$as_me:$LINENO: result: no" >&5
26485 echo "${ECHO_T}no" >&6
26486 have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
26488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26503 for ac_func in inet_ntoa_r
26505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26506 echo "$as_me:$LINENO: checking for $ac_func" >&5
26507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26508 if eval "test \"\${$as_ac_var+set}\" = set"; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26511 cat >conftest.$ac_ext <<_ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26519 #define $ac_func innocuous_$ac_func
26521 /* System header to define __stub macros and hopefully few prototypes,
26522 which can conflict with char $ac_func (); below.
26523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26524 <limits.h> exists even on freestanding compilers. */
26527 # include <limits.h>
26529 # include <assert.h>
26534 /* Override any gcc2 internal prototype to avoid an error. */
26539 /* We use char because int might match the return type of a gcc2
26540 builtin and then its argument prototype would still apply. */
26542 /* The GNU C library defines this for functions which it implements
26543 to always fail with ENOSYS. Some functions are actually named
26544 something starting with __ and the normal name is an alias. */
26545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26548 char (*f) () = $ac_func;
26557 return f != $ac_func;
26562 rm -f conftest.$ac_objext conftest$ac_exeext
26563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26564 (eval $ac_link) 2>conftest.er1
26566 grep -v '^ *+' conftest.er1 >conftest.err
26568 cat conftest.err >&5
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); } &&
26571 { ac_try='test -z "$ac_c_werror_flag"
26572 || test ! -s conftest.err'
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; } &&
26578 { ac_try='test -s conftest$ac_exeext'
26579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26580 (eval $ac_try) 2>&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); }; }; then
26584 eval "$as_ac_var=yes"
26586 echo "$as_me: failed program was:" >&5
26587 sed 's/^/| /' conftest.$ac_ext >&5
26589 eval "$as_ac_var=no"
26591 rm -f conftest.err conftest.$ac_objext \
26592 conftest$ac_exeext conftest.$ac_ext
26594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26596 if test `eval echo '${'$as_ac_var'}'` = yes; then
26597 cat >>confdefs.h <<_ACEOF
26598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26601 echo "$as_me:$LINENO: checking whether inet_ntoa_r is declared" >&5
26602 echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
26603 cat >conftest.$ac_ext <<_ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26610 #include <arpa/inet.h>
26612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26613 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26616 cat >>confdefs.h <<\_ACEOF
26617 #define HAVE_INET_NTOA_R_DECL 1
26620 echo "$as_me:$LINENO: result: yes" >&5
26621 echo "${ECHO_T}yes" >&6
26624 echo "$as_me:$LINENO: result: no" >&5
26625 echo "${ECHO_T}no" >&6
26626 echo "$as_me:$LINENO: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
26627 echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
26628 cat >conftest.$ac_ext <<_ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h. */
26636 #include <arpa/inet.h>
26638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26639 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then
26642 cat >>confdefs.h <<\_ACEOF
26643 #define HAVE_INET_NTOA_R_DECL 1
26647 cat >>confdefs.h <<\_ACEOF
26648 #define NEED_REENTRANT 1
26651 echo "$as_me:$LINENO: result: yes" >&5
26652 echo "${ECHO_T}yes" >&6
26654 echo "$as_me:$LINENO: result: no" >&5
26655 echo "${ECHO_T}no" >&6
26669 for ac_func in localtime_r
26671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26672 echo "$as_me:$LINENO: checking for $ac_func" >&5
26673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26674 if eval "test \"\${$as_ac_var+set}\" = set"; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26677 cat >conftest.$ac_ext <<_ACEOF
26680 cat confdefs.h >>conftest.$ac_ext
26681 cat >>conftest.$ac_ext <<_ACEOF
26682 /* end confdefs.h. */
26683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26685 #define $ac_func innocuous_$ac_func
26687 /* System header to define __stub macros and hopefully few prototypes,
26688 which can conflict with char $ac_func (); below.
26689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26690 <limits.h> exists even on freestanding compilers. */
26693 # include <limits.h>
26695 # include <assert.h>
26700 /* Override any gcc2 internal prototype to avoid an error. */
26705 /* We use char because int might match the return type of a gcc2
26706 builtin and then its argument prototype would still apply. */
26708 /* The GNU C library defines this for functions which it implements
26709 to always fail with ENOSYS. Some functions are actually named
26710 something starting with __ and the normal name is an alias. */
26711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26714 char (*f) () = $ac_func;
26723 return f != $ac_func;
26728 rm -f conftest.$ac_objext conftest$ac_exeext
26729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26730 (eval $ac_link) 2>conftest.er1
26732 grep -v '^ *+' conftest.er1 >conftest.err
26734 cat conftest.err >&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } &&
26737 { ac_try='test -z "$ac_c_werror_flag"
26738 || test ! -s conftest.err'
26739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26740 (eval $ac_try) 2>&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); }; } &&
26744 { ac_try='test -s conftest$ac_exeext'
26745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26746 (eval $ac_try) 2>&5
26748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749 (exit $ac_status); }; }; then
26750 eval "$as_ac_var=yes"
26752 echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26755 eval "$as_ac_var=no"
26757 rm -f conftest.err conftest.$ac_objext \
26758 conftest$ac_exeext conftest.$ac_ext
26760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26762 if test `eval echo '${'$as_ac_var'}'` = yes; then
26763 cat >>confdefs.h <<_ACEOF
26764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26767 echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
26768 echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
26769 cat >conftest.$ac_ext <<_ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h. */
26778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26779 $EGREP "localtime_r" >/dev/null 2>&1; then
26781 echo "$as_me:$LINENO: result: yes" >&5
26782 echo "${ECHO_T}yes" >&6
26785 echo "$as_me:$LINENO: result: no" >&5
26786 echo "${ECHO_T}no" >&6
26787 echo "$as_me:$LINENO: checking whether localtime_r with -D_REENTRANT is declared" >&5
26788 echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
26789 cat >conftest.$ac_ext <<_ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h. */
26799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26800 $EGREP "localtime_r" >/dev/null 2>&1; then
26802 cat >>confdefs.h <<\_ACEOF
26803 #define NEED_REENTRANT 1
26806 echo "$as_me:$LINENO: result: yes" >&5
26807 echo "${ECHO_T}yes" >&6
26809 echo "$as_me:$LINENO: result: no" >&5
26810 echo "${ECHO_T}no" >&6
26823 for ac_func in gmtime_r
26825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26826 echo "$as_me:$LINENO: checking for $ac_func" >&5
26827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26828 if eval "test \"\${$as_ac_var+set}\" = set"; then
26829 echo $ECHO_N "(cached) $ECHO_C" >&6
26831 cat >conftest.$ac_ext <<_ACEOF
26834 cat confdefs.h >>conftest.$ac_ext
26835 cat >>conftest.$ac_ext <<_ACEOF
26836 /* end confdefs.h. */
26837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26839 #define $ac_func innocuous_$ac_func
26841 /* System header to define __stub macros and hopefully few prototypes,
26842 which can conflict with char $ac_func (); below.
26843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26844 <limits.h> exists even on freestanding compilers. */
26847 # include <limits.h>
26849 # include <assert.h>
26854 /* Override any gcc2 internal prototype to avoid an error. */
26859 /* We use char because int might match the return type of a gcc2
26860 builtin and then its argument prototype would still apply. */
26862 /* The GNU C library defines this for functions which it implements
26863 to always fail with ENOSYS. Some functions are actually named
26864 something starting with __ and the normal name is an alias. */
26865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26868 char (*f) () = $ac_func;
26877 return f != $ac_func;
26882 rm -f conftest.$ac_objext conftest$ac_exeext
26883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26884 (eval $ac_link) 2>conftest.er1
26886 grep -v '^ *+' conftest.er1 >conftest.err
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
26891 { ac_try='test -z "$ac_c_werror_flag"
26892 || test ! -s conftest.err'
26893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26894 (eval $ac_try) 2>&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); }; } &&
26898 { ac_try='test -s conftest$ac_exeext'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; }; then
26904 eval "$as_ac_var=yes"
26906 echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26909 eval "$as_ac_var=no"
26911 rm -f conftest.err conftest.$ac_objext \
26912 conftest$ac_exeext conftest.$ac_ext
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26916 if test `eval echo '${'$as_ac_var'}'` = yes; then
26917 cat >>confdefs.h <<_ACEOF
26918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26928 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26930 if test "${ac_cv_header_stdc+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <stdlib.h>
26940 #include <stdarg.h>
26941 #include <string.h>
26952 rm -f conftest.$ac_objext
26953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26954 (eval $ac_compile) 2>conftest.er1
26956 grep -v '^ *+' conftest.er1 >conftest.err
26958 cat conftest.err >&5
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } &&
26961 { ac_try='test -z "$ac_c_werror_flag"
26962 || test ! -s conftest.err'
26963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26964 (eval $ac_try) 2>&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); }; } &&
26968 { ac_try='test -s conftest.$ac_objext'
26969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26970 (eval $ac_try) 2>&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); }; }; then
26974 ac_cv_header_stdc=yes
26976 echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_cv_header_stdc=no
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26983 if test $ac_cv_header_stdc = yes; then
26984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26985 cat >conftest.$ac_ext <<_ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h. */
26991 #include <string.h>
26994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26995 $EGREP "memchr" >/dev/null 2>&1; then
26998 ac_cv_header_stdc=no
27004 if test $ac_cv_header_stdc = yes; then
27005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27006 cat >conftest.$ac_ext <<_ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27012 #include <stdlib.h>
27015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27016 $EGREP "free" >/dev/null 2>&1; then
27019 ac_cv_header_stdc=no
27025 if test $ac_cv_header_stdc = yes; then
27026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27027 if test "$cross_compiling" = yes; then
27030 cat >conftest.$ac_ext <<_ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h. */
27037 #if ((' ' & 0x0FF) == 0x020)
27038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27041 # define ISLOWER(c) \
27042 (('a' <= (c) && (c) <= 'i') \
27043 || ('j' <= (c) && (c) <= 'r') \
27044 || ('s' <= (c) && (c) <= 'z'))
27045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27053 for (i = 0; i < 256; i++)
27054 if (XOR (islower (i), ISLOWER (i))
27055 || toupper (i) != TOUPPER (i))
27060 rm -f conftest$ac_exeext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27062 (eval $ac_link) 2>&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27067 (eval $ac_try) 2>&5
27069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); }; }; then
27073 echo "$as_me: program exited with status $ac_status" >&5
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27077 ( exit $ac_status )
27078 ac_cv_header_stdc=no
27080 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27084 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27085 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27086 if test $ac_cv_header_stdc = yes; then
27088 cat >>confdefs.h <<\_ACEOF
27089 #define STDC_HEADERS 1
27126 for ac_header in sys/types.h \
27158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27159 echo "$as_me:$LINENO: checking for $ac_header" >&5
27160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27162 echo $ECHO_N "(cached) $ECHO_C" >&6
27164 cat >conftest.$ac_ext <<_ACEOF
27167 cat confdefs.h >>conftest.$ac_ext
27168 cat >>conftest.$ac_ext <<_ACEOF
27169 /* end confdefs.h. */
27171 #ifdef HAVE_SYS_TYPES_H
27172 #include <sys/types.h>
27174 #ifdef HAVE_SYS_TIME_H
27175 #include <sys/time.h>
27177 #ifdef HAVE_SYS_SELECT_H
27178 #include <sys/select.h>
27180 #ifdef HAVE_SYS_SOCKET_H
27181 #include <sys/socket.h>
27186 #include <$ac_header>
27188 rm -f conftest.$ac_objext
27189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27190 (eval $ac_compile) 2>conftest.er1
27192 grep -v '^ *+' conftest.er1 >conftest.err
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
27197 { ac_try='test -z "$ac_c_werror_flag"
27198 || test ! -s conftest.err'
27199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27200 (eval $ac_try) 2>&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); }; } &&
27204 { ac_try='test -s conftest.$ac_objext'
27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206 (eval $ac_try) 2>&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; }; then
27210 eval "$as_ac_Header=yes"
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27215 eval "$as_ac_Header=no"
27217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222 cat >>confdefs.h <<_ACEOF
27223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27231 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
27232 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
27233 if test "${ac_cv_c_const+set}" = set; then
27234 echo $ECHO_N "(cached) $ECHO_C" >&6
27236 cat >conftest.$ac_ext <<_ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h. */
27246 /* FIXME: Include the comments suggested by Paul. */
27247 #ifndef __cplusplus
27248 /* Ultrix mips cc rejects this. */
27249 typedef int charset[2];
27251 /* SunOS 4.1.1 cc rejects this. */
27252 char const *const *ccp;
27254 /* NEC SVR4.0.2 mips cc rejects this. */
27255 struct point {int x, y;};
27256 static struct point const zero = {0,0};
27257 /* AIX XL C 1.02.0.0 rejects this.
27258 It does not let you subtract one const X* pointer from another in
27259 an arm of an if-expression whose if-part is not a constant
27261 const char *g = "string";
27262 ccp = &g + (g ? g-g : 0);
27263 /* HPUX 7.0 cc rejects these. */
27266 ccp = (char const *const *) p;
27267 { /* SCO 3.2v4 cc rejects this. */
27269 char const *s = 0 ? (char *) 0 : (char const *) 0;
27273 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
27274 int x[] = {25, 17};
27275 const int *foo = &x[0];
27278 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27279 typedef const int *iptr;
27283 { /* AIX XL C 1.02.0.0 rejects this saying
27284 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27285 struct s { int j; const int *ap[3]; };
27286 struct s *b; b->j = 5;
27288 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27289 const int foo = 10;
27297 rm -f conftest.$ac_objext
27298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27299 (eval $ac_compile) 2>conftest.er1
27301 grep -v '^ *+' conftest.er1 >conftest.err
27303 cat conftest.err >&5
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); } &&
27306 { ac_try='test -z "$ac_c_werror_flag"
27307 || test ! -s conftest.err'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest.$ac_objext'
27314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315 (eval $ac_try) 2>&5
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); }; }; then
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27328 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
27329 echo "${ECHO_T}$ac_cv_c_const" >&6
27330 if test $ac_cv_c_const = no; then
27332 cat >>confdefs.h <<\_ACEOF
27338 echo "$as_me:$LINENO: checking for size_t" >&5
27339 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27340 if test "${ac_cv_type_size_t+set}" = set; then
27341 echo $ECHO_N "(cached) $ECHO_C" >&6
27343 cat >conftest.$ac_ext <<_ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h. */
27349 $ac_includes_default
27355 if (sizeof (size_t))
27361 rm -f conftest.$ac_objext
27362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27363 (eval $ac_compile) 2>conftest.er1
27365 grep -v '^ *+' conftest.er1 >conftest.err
27367 cat conftest.err >&5
27368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27369 (exit $ac_status); } &&
27370 { ac_try='test -z "$ac_c_werror_flag"
27371 || test ! -s conftest.err'
27372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373 (eval $ac_try) 2>&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest.$ac_objext'
27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27379 (eval $ac_try) 2>&5
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); }; }; then
27383 ac_cv_type_size_t=yes
27385 echo "$as_me: failed program was:" >&5
27386 sed 's/^/| /' conftest.$ac_ext >&5
27388 ac_cv_type_size_t=no
27390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27392 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27393 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27394 if test $ac_cv_type_size_t = yes; then
27398 cat >>confdefs.h <<_ACEOF
27399 #define size_t unsigned
27404 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
27406 if test "${ac_cv_header_time+set}" = set; then
27407 echo $ECHO_N "(cached) $ECHO_C" >&6
27409 cat >conftest.$ac_ext <<_ACEOF
27412 cat confdefs.h >>conftest.$ac_ext
27413 cat >>conftest.$ac_ext <<_ACEOF
27414 /* end confdefs.h. */
27415 #include <sys/types.h>
27416 #include <sys/time.h>
27422 if ((struct tm *) 0)
27428 rm -f conftest.$ac_objext
27429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27430 (eval $ac_compile) 2>conftest.er1
27432 grep -v '^ *+' conftest.er1 >conftest.err
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } &&
27437 { ac_try='test -z "$ac_c_werror_flag"
27438 || test ! -s conftest.err'
27439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27440 (eval $ac_try) 2>&5
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest.$ac_objext'
27445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446 (eval $ac_try) 2>&5
27448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449 (exit $ac_status); }; }; then
27450 ac_cv_header_time=yes
27452 echo "$as_me: failed program was:" >&5
27453 sed 's/^/| /' conftest.$ac_ext >&5
27455 ac_cv_header_time=no
27457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27459 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27460 echo "${ECHO_T}$ac_cv_header_time" >&6
27461 if test $ac_cv_header_time = yes; then
27463 cat >>confdefs.h <<\_ACEOF
27464 #define TIME_WITH_SYS_TIME 1
27470 echo "$as_me:$LINENO: checking for curl_off_t" >&5
27471 echo $ECHO_N "checking for curl_off_t... $ECHO_C" >&6
27472 if test "${ac_cv_type_curl_off_t+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27475 cat >conftest.$ac_ext <<_ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h. */
27483 #include "$srcdir/include/curl/curl.h"
27489 if ((curl_off_t *) 0)
27491 if (sizeof (curl_off_t))
27497 rm -f conftest.$ac_objext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27499 (eval $ac_compile) 2>conftest.er1
27501 grep -v '^ *+' conftest.er1 >conftest.err
27503 cat conftest.err >&5
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); } &&
27506 { ac_try='test -z "$ac_c_werror_flag"
27507 || test ! -s conftest.err'
27508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509 (eval $ac_try) 2>&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); }; } &&
27513 { ac_try='test -s conftest.$ac_objext'
27514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515 (eval $ac_try) 2>&5
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); }; }; then
27519 ac_cv_type_curl_off_t=yes
27521 echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27524 ac_cv_type_curl_off_t=no
27526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27528 echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
27529 echo "${ECHO_T}$ac_cv_type_curl_off_t" >&6
27531 echo "$as_me:$LINENO: checking size of curl_off_t" >&5
27532 echo $ECHO_N "checking size of curl_off_t... $ECHO_C" >&6
27533 if test "${ac_cv_sizeof_curl_off_t+set}" = set; then
27534 echo $ECHO_N "(cached) $ECHO_C" >&6
27536 if test "$ac_cv_type_curl_off_t" = yes; then
27537 # The cast to unsigned long works around a bug in the HP C Compiler
27538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27540 # This bug is HP SR number 8606223364.
27541 if test "$cross_compiling" = yes; then
27542 # Depending upon the size, compute the lo and hi bounds.
27543 cat >conftest.$ac_ext <<_ACEOF
27546 cat confdefs.h >>conftest.$ac_ext
27547 cat >>conftest.$ac_ext <<_ACEOF
27548 /* end confdefs.h. */
27551 #include "$srcdir/include/curl/curl.h"
27557 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= 0)];
27564 rm -f conftest.$ac_objext
27565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27566 (eval $ac_compile) 2>conftest.er1
27568 grep -v '^ *+' conftest.er1 >conftest.err
27570 cat conftest.err >&5
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); } &&
27573 { ac_try='test -z "$ac_c_werror_flag"
27574 || test ! -s conftest.err'
27575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576 (eval $ac_try) 2>&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest.$ac_objext'
27581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582 (eval $ac_try) 2>&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
27588 cat >conftest.$ac_ext <<_ACEOF
27591 cat confdefs.h >>conftest.$ac_ext
27592 cat >>conftest.$ac_ext <<_ACEOF
27593 /* end confdefs.h. */
27596 #include "$srcdir/include/curl/curl.h"
27602 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
27609 rm -f conftest.$ac_objext
27610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27611 (eval $ac_compile) 2>conftest.er1
27613 grep -v '^ *+' conftest.er1 >conftest.err
27615 cat conftest.err >&5
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); } &&
27618 { ac_try='test -z "$ac_c_werror_flag"
27619 || test ! -s conftest.err'
27620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27621 (eval $ac_try) 2>&5
27623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); }; } &&
27625 { ac_try='test -s conftest.$ac_objext'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; }; then
27631 ac_hi=$ac_mid; break
27633 echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27636 ac_lo=`expr $ac_mid + 1`
27637 if test $ac_lo -le $ac_mid; then
27641 ac_mid=`expr 2 '*' $ac_mid + 1`
27643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27646 echo "$as_me: failed program was:" >&5
27647 sed 's/^/| /' conftest.$ac_ext >&5
27649 cat >conftest.$ac_ext <<_ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h. */
27657 #include "$srcdir/include/curl/curl.h"
27663 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) < 0)];
27670 rm -f conftest.$ac_objext
27671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27672 (eval $ac_compile) 2>conftest.er1
27674 grep -v '^ *+' conftest.er1 >conftest.err
27676 cat conftest.err >&5
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } &&
27679 { ac_try='test -z "$ac_c_werror_flag"
27680 || test ! -s conftest.err'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; } &&
27686 { ac_try='test -s conftest.$ac_objext'
27687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27688 (eval $ac_try) 2>&5
27690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691 (exit $ac_status); }; }; then
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27702 #include "$srcdir/include/curl/curl.h"
27708 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) >= $ac_mid)];
27715 rm -f conftest.$ac_objext
27716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27717 (eval $ac_compile) 2>conftest.er1
27719 grep -v '^ *+' conftest.er1 >conftest.err
27721 cat conftest.err >&5
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } &&
27724 { ac_try='test -z "$ac_c_werror_flag"
27725 || test ! -s conftest.err'
27726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27727 (eval $ac_try) 2>&5
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; } &&
27731 { ac_try='test -s conftest.$ac_objext'
27732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27733 (eval $ac_try) 2>&5
27735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 ac_lo=$ac_mid; break
27739 echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27742 ac_hi=`expr '(' $ac_mid ')' - 1`
27743 if test $ac_mid -le $ac_hi; then
27747 ac_mid=`expr 2 '*' $ac_mid`
27749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27752 echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27760 # Binary search between lo and hi bounds.
27761 while test "x$ac_lo" != "x$ac_hi"; do
27762 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27763 cat >conftest.$ac_ext <<_ACEOF
27766 cat confdefs.h >>conftest.$ac_ext
27767 cat >>conftest.$ac_ext <<_ACEOF
27768 /* end confdefs.h. */
27771 #include "$srcdir/include/curl/curl.h"
27777 static int test_array [1 - 2 * !(((long) (sizeof (curl_off_t))) <= $ac_mid)];
27784 rm -f conftest.$ac_objext
27785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27786 (eval $ac_compile) 2>conftest.er1
27788 grep -v '^ *+' conftest.er1 >conftest.err
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } &&
27793 { ac_try='test -z "$ac_c_werror_flag"
27794 || test ! -s conftest.err'
27795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27796 (eval $ac_try) 2>&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; } &&
27800 { ac_try='test -s conftest.$ac_objext'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; }; then
27808 echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 ac_lo=`expr '(' $ac_mid ')' + 1`
27813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27816 ?*) ac_cv_sizeof_curl_off_t=$ac_lo;;
27817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
27818 See \`config.log' for more details." >&5
27819 echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
27820 See \`config.log' for more details." >&2;}
27821 { (exit 1); exit 1; }; } ;;
27824 if test "$cross_compiling" = yes; then
27825 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27826 See \`config.log' for more details." >&5
27827 echo "$as_me: error: cannot run test program while cross compiling
27828 See \`config.log' for more details." >&2;}
27829 { (exit 1); exit 1; }; }
27831 cat >conftest.$ac_ext <<_ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27839 #include "$srcdir/include/curl/curl.h"
27842 long longval () { return (long) (sizeof (curl_off_t)); }
27843 unsigned long ulongval () { return (long) (sizeof (curl_off_t)); }
27845 #include <stdlib.h>
27850 FILE *f = fopen ("conftest.val", "w");
27853 if (((long) (sizeof (curl_off_t))) < 0)
27855 long i = longval ();
27856 if (i != ((long) (sizeof (curl_off_t))))
27858 fprintf (f, "%ld\n", i);
27862 unsigned long i = ulongval ();
27863 if (i != ((long) (sizeof (curl_off_t))))
27865 fprintf (f, "%lu\n", i);
27867 exit (ferror (f) || fclose (f) != 0);
27873 rm -f conftest$ac_exeext
27874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27875 (eval $ac_link) 2>&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
27884 ac_cv_sizeof_curl_off_t=`cat conftest.val`
27886 echo "$as_me: program exited with status $ac_status" >&5
27887 echo "$as_me: failed program was:" >&5
27888 sed 's/^/| /' conftest.$ac_ext >&5
27890 ( exit $ac_status )
27891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (curl_off_t), 77
27892 See \`config.log' for more details." >&5
27893 echo "$as_me: error: cannot compute sizeof (curl_off_t), 77
27894 See \`config.log' for more details." >&2;}
27895 { (exit 1); exit 1; }; }
27897 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27902 ac_cv_sizeof_curl_off_t=0
27905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_curl_off_t" >&5
27906 echo "${ECHO_T}$ac_cv_sizeof_curl_off_t" >&6
27907 cat >>confdefs.h <<_ACEOF
27908 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
27913 echo "$as_me:$LINENO: checking for long long" >&5
27914 echo $ECHO_N "checking for long long... $ECHO_C" >&6
27915 if test "${ac_cv_type_long_long+set}" = set; then
27916 echo $ECHO_N "(cached) $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27924 $ac_includes_default
27928 if ((long long *) 0)
27930 if (sizeof (long long))
27936 rm -f conftest.$ac_objext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938 (eval $ac_compile) 2>conftest.er1
27940 grep -v '^ *+' conftest.er1 >conftest.err
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958 ac_cv_type_long_long=yes
27960 echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27963 ac_cv_type_long_long=no
27965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27967 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
27968 echo "${ECHO_T}$ac_cv_type_long_long" >&6
27969 if test $ac_cv_type_long_long = yes; then
27971 cat >>confdefs.h <<\_ACEOF
27972 #define HAVE_LONGLONG 1
27978 # check for ssize_t
27979 echo "$as_me:$LINENO: checking for ssize_t" >&5
27980 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
27981 if test "${ac_cv_type_ssize_t+set}" = set; then
27982 echo $ECHO_N "(cached) $ECHO_C" >&6
27984 cat >conftest.$ac_ext <<_ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h. */
27990 $ac_includes_default
27996 if (sizeof (ssize_t))
28002 rm -f conftest.$ac_objext
28003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28004 (eval $ac_compile) 2>conftest.er1
28006 grep -v '^ *+' conftest.er1 >conftest.err
28008 cat conftest.err >&5
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); } &&
28011 { ac_try='test -z "$ac_c_werror_flag"
28012 || test ! -s conftest.err'
28013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014 (eval $ac_try) 2>&5
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); }; } &&
28018 { ac_try='test -s conftest.$ac_objext'
28019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; }; then
28024 ac_cv_type_ssize_t=yes
28026 echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28029 ac_cv_type_ssize_t=no
28031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28033 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28034 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28035 if test $ac_cv_type_ssize_t = yes; then
28039 cat >>confdefs.h <<\_ACEOF
28040 #define ssize_t int
28047 echo "$as_me:$LINENO: checking for socklen_t" >&5
28048 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
28049 if test "${ac_cv_type_socklen_t+set}" = set; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 cat >conftest.$ac_ext <<_ACEOF
28055 cat confdefs.h >>conftest.$ac_ext
28056 cat >>conftest.$ac_ext <<_ACEOF
28057 /* end confdefs.h. */
28058 #include <sys/types.h>
28059 #include <sys/socket.h>
28064 if ((socklen_t *) 0)
28066 if (sizeof (socklen_t))
28072 rm -f conftest.$ac_objext
28073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28074 (eval $ac_compile) 2>conftest.er1
28076 grep -v '^ *+' conftest.er1 >conftest.err
28078 cat conftest.err >&5
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } &&
28081 { ac_try='test -z "$ac_c_werror_flag"
28082 || test ! -s conftest.err'
28083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28084 (eval $ac_try) 2>&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); }; } &&
28088 { ac_try='test -s conftest.$ac_objext'
28089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28090 (eval $ac_try) 2>&5
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
28094 ac_cv_type_socklen_t=yes
28096 echo "$as_me: failed program was:" >&5
28097 sed 's/^/| /' conftest.$ac_ext >&5
28099 ac_cv_type_socklen_t=no
28101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28103 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
28104 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
28105 if test $ac_cv_type_socklen_t = yes; then
28109 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
28110 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
28111 if test "${curl_cv_socklen_t_equiv+set}" = set; then
28112 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 # Systems have either "struct sockaddr *" or
28116 # "void *" as the second argument to getpeername
28117 curl_cv_socklen_t_equiv=
28118 for arg2 in "struct sockaddr" void; do
28119 for t in int size_t unsigned long "unsigned long"; do
28120 cat >conftest.$ac_ext <<_ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28127 #ifdef HAVE_SYS_TYPES_H
28128 #include <sys/types.h>
28130 #ifdef HAVE_SYS_SOCKET_H
28131 #include <sys/socket.h>
28134 int getpeername (int, $arg2 *, $t *);
28141 getpeername(0,0,&len);
28147 rm -f conftest.$ac_objext
28148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28149 (eval $ac_compile) 2>conftest.er1
28151 grep -v '^ *+' conftest.er1 >conftest.err
28153 cat conftest.err >&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); } &&
28156 { ac_try='test -z "$ac_c_werror_flag"
28157 || test ! -s conftest.err'
28158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28159 (eval $ac_try) 2>&5
28161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28162 (exit $ac_status); }; } &&
28163 { ac_try='test -s conftest.$ac_objext'
28164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28165 (eval $ac_try) 2>&5
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); }; }; then
28170 curl_cv_socklen_t_equiv="$t"
28174 echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28182 if test "x$curl_cv_socklen_t_equiv" = x; then
28183 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
28184 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
28185 { (exit 1); exit 1; }; }
28190 echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
28191 echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
28193 cat >>confdefs.h <<_ACEOF
28194 #define socklen_t $curl_cv_socklen_t_equiv
28201 echo "$as_me:$LINENO: checking for in_addr_t" >&5
28202 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
28203 if test "${ac_cv_type_in_addr_t+set}" = set; then
28204 echo $ECHO_N "(cached) $ECHO_C" >&6
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 #include <sys/types.h>
28213 #include <sys/socket.h>
28214 #include <arpa/inet.h>
28219 if ((in_addr_t *) 0)
28221 if (sizeof (in_addr_t))
28227 rm -f conftest.$ac_objext
28228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28229 (eval $ac_compile) 2>conftest.er1
28231 grep -v '^ *+' conftest.er1 >conftest.err
28233 cat conftest.err >&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); } &&
28236 { ac_try='test -z "$ac_c_werror_flag"
28237 || test ! -s conftest.err'
28238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239 (eval $ac_try) 2>&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; } &&
28243 { ac_try='test -s conftest.$ac_objext'
28244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245 (eval $ac_try) 2>&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); }; }; then
28249 ac_cv_type_in_addr_t=yes
28251 echo "$as_me: failed program was:" >&5
28252 sed 's/^/| /' conftest.$ac_ext >&5
28254 ac_cv_type_in_addr_t=no
28256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28258 echo "$as_me:$LINENO: result: $ac_cv_type_in_addr_t" >&5
28259 echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
28260 if test $ac_cv_type_in_addr_t = yes; then
28264 echo "$as_me:$LINENO: checking for in_addr_t equivalent" >&5
28265 echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
28266 if test "${curl_cv_in_addr_t_equiv+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28270 curl_cv_in_addr_t_equiv=
28271 for t in "unsigned long" int size_t unsigned long; do
28272 cat >conftest.$ac_ext <<_ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28279 #ifdef HAVE_SYS_TYPES_H
28280 #include <sys/types.h>
28282 #ifdef HAVE_SYS_SOCKET_H
28283 #include <sys/socket.h>
28285 #ifdef HAVE_ARPA_INET_H
28286 #include <arpa/inet.h>
28293 $t data = inet_addr ("1.2.3.4");
28299 rm -f conftest.$ac_objext
28300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28301 (eval $ac_compile) 2>conftest.er1
28303 grep -v '^ *+' conftest.er1 >conftest.err
28305 cat conftest.err >&5
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); } &&
28308 { ac_try='test -z "$ac_c_werror_flag"
28309 || test ! -s conftest.err'
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; } &&
28315 { ac_try='test -s conftest.$ac_objext'
28316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317 (eval $ac_try) 2>&5
28319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); }; }; then
28322 curl_cv_in_addr_t_equiv="$t"
28326 echo "$as_me: failed program was:" >&5
28327 sed 's/^/| /' conftest.$ac_ext >&5
28330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28333 if test "x$curl_cv_in_addr_t_equiv" = x; then
28334 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of in_addr_t" >&5
28335 echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
28336 { (exit 1); exit 1; }; }
28341 echo "$as_me:$LINENO: result: $curl_cv_in_addr_t_equiv" >&5
28342 echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
28344 cat >>confdefs.h <<_ACEOF
28345 #define in_addr_t $curl_cv_in_addr_t_equiv
28354 for ac_header in sys/select.h sys/socket.h
28356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28358 echo "$as_me:$LINENO: checking for $ac_header" >&5
28359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28366 # Is the header compilable?
28367 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28369 cat >conftest.$ac_ext <<_ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28375 $ac_includes_default
28376 #include <$ac_header>
28378 rm -f conftest.$ac_objext
28379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28380 (eval $ac_compile) 2>conftest.er1
28382 grep -v '^ *+' conftest.er1 >conftest.err
28384 cat conftest.err >&5
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); } &&
28387 { ac_try='test -z "$ac_c_werror_flag"
28388 || test ! -s conftest.err'
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest.$ac_objext'
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_header_compiler=yes
28402 echo "$as_me: failed program was:" >&5
28403 sed 's/^/| /' conftest.$ac_ext >&5
28405 ac_header_compiler=no
28407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28409 echo "${ECHO_T}$ac_header_compiler" >&6
28411 # Is the header present?
28412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28414 cat >conftest.$ac_ext <<_ACEOF
28417 cat confdefs.h >>conftest.$ac_ext
28418 cat >>conftest.$ac_ext <<_ACEOF
28419 /* end confdefs.h. */
28420 #include <$ac_header>
28422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28425 grep -v '^ *+' conftest.er1 >conftest.err
28427 cat conftest.err >&5
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } >/dev/null; then
28430 if test -s conftest.err; then
28431 ac_cpp_err=$ac_c_preproc_warn_flag
28432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28439 if test -z "$ac_cpp_err"; then
28440 ac_header_preproc=yes
28442 echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28445 ac_header_preproc=no
28447 rm -f conftest.err conftest.$ac_ext
28448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28449 echo "${ECHO_T}$ac_header_preproc" >&6
28451 # So? What about this header?
28452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28458 ac_header_preproc=yes
28461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28475 ## ------------------------------- ##
28476 ## Report this to curl-bug@haxx.se ##
28477 ## ------------------------------- ##
28480 sed "s/^/$as_me: WARNING: /" >&2
28483 echo "$as_me:$LINENO: checking for $ac_header" >&5
28484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28488 eval "$as_ac_Header=\$ac_header_preproc"
28490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28495 cat >>confdefs.h <<_ACEOF
28496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28503 echo "$as_me:$LINENO: checking types of arguments for select" >&5
28504 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
28505 if test "${ac_cv_func_select_args+set}" = set; then
28506 echo $ECHO_N "(cached) $ECHO_C" >&6
28508 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
28509 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
28510 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
28511 cat >conftest.$ac_ext <<_ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h. */
28517 $ac_includes_default
28518 #if HAVE_SYS_SELECT_H
28519 # include <sys/select.h>
28521 #if HAVE_SYS_SOCKET_H
28522 # include <sys/socket.h>
28528 extern int select ($ac_arg1,
28529 $ac_arg234, $ac_arg234, $ac_arg234,
28535 rm -f conftest.$ac_objext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28537 (eval $ac_compile) 2>conftest.er1
28539 grep -v '^ *+' conftest.er1 >conftest.err
28541 cat conftest.err >&5
28542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } &&
28544 { ac_try='test -z "$ac_c_werror_flag"
28545 || test ! -s conftest.err'
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; } &&
28551 { ac_try='test -s conftest.$ac_objext'
28552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553 (eval $ac_try) 2>&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); }; }; then
28557 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28567 # Provide a safe default value.
28568 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
28571 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
28572 echo "${ECHO_T}$ac_cv_func_select_args" >&6
28573 ac_save_IFS=$IFS; IFS=','
28574 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
28578 cat >>confdefs.h <<_ACEOF
28579 #define SELECT_TYPE_ARG1 $1
28583 cat >>confdefs.h <<_ACEOF
28584 #define SELECT_TYPE_ARG234 ($2)
28588 cat >>confdefs.h <<_ACEOF
28589 #define SELECT_TYPE_ARG5 ($3)
28595 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28596 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
28597 if test "${ac_cv_type_signal+set}" = set; then
28598 echo $ECHO_N "(cached) $ECHO_C" >&6
28600 cat >conftest.$ac_ext <<_ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h. */
28606 #include <sys/types.h>
28607 #include <signal.h>
28612 extern "C" void (*signal (int, void (*)(int)))(int);
28614 void (*signal ()) ();
28625 rm -f conftest.$ac_objext
28626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28627 (eval $ac_compile) 2>conftest.er1
28629 grep -v '^ *+' conftest.er1 >conftest.err
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } &&
28634 { ac_try='test -z "$ac_c_werror_flag"
28635 || test ! -s conftest.err'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
28647 ac_cv_type_signal=void
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28652 ac_cv_type_signal=int
28654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28657 echo "${ECHO_T}$ac_cv_type_signal" >&6
28659 cat >>confdefs.h <<_ACEOF
28660 #define RETSIGTYPE $ac_cv_type_signal
28695 for ac_func in strtoll \
28727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28728 echo "$as_me:$LINENO: checking for $ac_func" >&5
28729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28730 if eval "test \"\${$as_ac_var+set}\" = set"; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28733 cat >conftest.$ac_ext <<_ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h. */
28739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28741 #define $ac_func innocuous_$ac_func
28743 /* System header to define __stub macros and hopefully few prototypes,
28744 which can conflict with char $ac_func (); below.
28745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28746 <limits.h> exists even on freestanding compilers. */
28749 # include <limits.h>
28751 # include <assert.h>
28756 /* Override any gcc2 internal prototype to avoid an error. */
28761 /* We use char because int might match the return type of a gcc2
28762 builtin and then its argument prototype would still apply. */
28764 /* The GNU C library defines this for functions which it implements
28765 to always fail with ENOSYS. Some functions are actually named
28766 something starting with __ and the normal name is an alias. */
28767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28770 char (*f) () = $ac_func;
28779 return f != $ac_func;
28784 rm -f conftest.$ac_objext conftest$ac_exeext
28785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28786 (eval $ac_link) 2>conftest.er1
28788 grep -v '^ *+' conftest.er1 >conftest.err
28790 cat conftest.err >&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } &&
28793 { ac_try='test -z "$ac_c_werror_flag"
28794 || test ! -s conftest.err'
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; } &&
28800 { ac_try='test -s conftest$ac_exeext'
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
28806 eval "$as_ac_var=yes"
28808 echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28811 eval "$as_ac_var=no"
28813 rm -f conftest.err conftest.$ac_objext \
28814 conftest$ac_exeext conftest.$ac_ext
28816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28818 if test `eval echo '${'$as_ac_var'}'` = yes; then
28819 cat >>confdefs.h <<_ACEOF
28820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28825 echo "$as_me:$LINENO: checking deeper for $func" >&5
28826 echo $ECHO_N "checking deeper for $func... $ECHO_C" >&6
28827 cat >conftest.$ac_ext <<_ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h. */
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28844 (eval $ac_link) 2>conftest.er1
28846 grep -v '^ *+' conftest.er1 >conftest.err
28848 cat conftest.err >&5
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); } &&
28851 { ac_try='test -z "$ac_c_werror_flag"
28852 || test ! -s conftest.err'
28853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854 (eval $ac_try) 2>&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); }; } &&
28858 { ac_try='test -s conftest$ac_exeext'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
28864 echo "$as_me:$LINENO: result: yes!" >&5
28865 echo "${ECHO_T}yes!" >&6
28866 eval "ac_cv_func_$func=yes"
28867 def=`echo "HAVE_$func" | tr 'a-z' 'A-Z'`
28869 cat >>confdefs.h <<_ACEOF
28874 echo "$as_me: failed program was:" >&5
28875 sed 's/^/| /' conftest.$ac_ext >&5
28877 echo "$as_me:$LINENO: result: but still no" >&5
28878 echo "${ECHO_T}but still no" >&6
28881 rm -f conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
28889 if test "$ac_cv_func_sigsetjmp" != "yes"; then
28890 echo "$as_me:$LINENO: checking for sigsetjmp defined as macro" >&5
28891 echo $ECHO_N "checking for sigsetjmp defined as macro... $ECHO_C" >&6
28892 cat >conftest.$ac_ext <<_ACEOF
28895 cat confdefs.h >>conftest.$ac_ext
28896 cat >>conftest.$ac_ext <<_ACEOF
28897 /* end confdefs.h. */
28898 #include <setjmp.h>
28903 sigsetjmp(jmpenv, 1);
28908 rm -f conftest.$ac_objext conftest$ac_exeext
28909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28910 (eval $ac_link) 2>conftest.er1
28912 grep -v '^ *+' conftest.er1 >conftest.err
28914 cat conftest.err >&5
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag"
28918 || test ! -s conftest.err'
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest$ac_exeext'
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; }; then
28930 echo "$as_me:$LINENO: result: yes" >&5
28931 echo "${ECHO_T}yes" >&6
28933 cat >>confdefs.h <<\_ACEOF
28934 #define HAVE_SIGSETJMP 1
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28941 echo "$as_me:$LINENO: result: no" >&5
28942 echo "${ECHO_T}no" >&6
28945 rm -f conftest.err conftest.$ac_objext \
28946 conftest$ac_exeext conftest.$ac_ext
28949 # Extract the first word of "perl", so it can be a program name with args.
28950 set dummy perl; ac_word=$2
28951 echo "$as_me:$LINENO: checking for $ac_word" >&5
28952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28953 if test "${ac_cv_path_PERL+set}" = set; then
28954 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28962 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
28963 for as_dir in $as_dummy
28966 test -z "$as_dir" && as_dir=.
28967 for ac_exec_ext in '' $ac_executable_extensions; do
28968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28969 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28979 PERL=$ac_cv_path_PERL
28981 if test -n "$PERL"; then
28982 echo "$as_me:$LINENO: result: $PERL" >&5
28983 echo "${ECHO_T}$PERL" >&6
28985 echo "$as_me:$LINENO: result: no" >&5
28986 echo "${ECHO_T}no" >&6
28991 for ac_prog in gnroff nroff
28993 # Extract the first word of "$ac_prog", so it can be a program name with args.
28994 set dummy $ac_prog; ac_word=$2
28995 echo "$as_me:$LINENO: checking for $ac_word" >&5
28996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28997 if test "${ac_cv_path_NROFF+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29002 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29006 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
29007 for as_dir in $as_dummy
29010 test -z "$as_dir" && as_dir=.
29011 for ac_exec_ext in '' $ac_executable_extensions; do
29012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29013 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29023 NROFF=$ac_cv_path_NROFF
29025 if test -n "$NROFF"; then
29026 echo "$as_me:$LINENO: result: $NROFF" >&5
29027 echo "${ECHO_T}$NROFF" >&6
29029 echo "$as_me:$LINENO: result: no" >&5
29030 echo "${ECHO_T}no" >&6
29033 test -n "$NROFF" && break
29038 if test -n "$NROFF"; then
29040 echo "$as_me:$LINENO: checking how to use *nroff to get plain text from man pages" >&5
29041 echo $ECHO_N "checking how to use *nroff to get plain text from man pages... $ECHO_C" >&6
29043 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29044 if test -z "$mancheck"; then
29046 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
29047 if test -z "$mancheck"; then
29049 echo "$as_me:$LINENO: result: failed" >&5
29050 echo "${ECHO_T}failed" >&6
29051 { echo "$as_me:$LINENO: WARNING: found no *nroff option to get plaintext from man pages" >&5
29052 echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
29054 echo "$as_me:$LINENO: result: $MANOPT" >&5
29055 echo "${ECHO_T}$MANOPT" >&6
29058 echo "$as_me:$LINENO: result: $MANOPT" >&5
29059 echo "${ECHO_T}$MANOPT" >&6
29064 if test -z "$MANOPT"
29066 { echo "$as_me:$LINENO: WARNING: disabling built-in manual" >&5
29067 echo "$as_me: WARNING: disabling built-in manual" >&2;}
29071 for ac_prog in 'bison -y' byacc
29073 # Extract the first word of "$ac_prog", so it can be a program name with args.
29074 set dummy $ac_prog; ac_word=$2
29075 echo "$as_me:$LINENO: checking for $ac_word" >&5
29076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29077 if test "${ac_cv_prog_YACC+set}" = set; then
29078 echo $ECHO_N "(cached) $ECHO_C" >&6
29080 if test -n "$YACC"; then
29081 ac_cv_prog_YACC="$YACC" # Let the user override the test.
29083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29084 for as_dir in $PATH
29087 test -z "$as_dir" && as_dir=.
29088 for ac_exec_ext in '' $ac_executable_extensions; do
29089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29090 ac_cv_prog_YACC="$ac_prog"
29091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29099 YACC=$ac_cv_prog_YACC
29100 if test -n "$YACC"; then
29101 echo "$as_me:$LINENO: result: $YACC" >&5
29102 echo "${ECHO_T}$YACC" >&6
29104 echo "$as_me:$LINENO: result: no" >&5
29105 echo "${ECHO_T}no" >&6
29108 test -n "$YACC" && break
29110 test -n "$YACC" || YACC="yacc"
29115 echo "$as_me:$LINENO: checking if OK to build without bison/yacc" >&5
29116 echo $ECHO_N "checking if OK to build without bison/yacc... $ECHO_C" >&6
29117 if test -r "$srcdir/lib/getdate.c"
29119 echo "$as_me:$LINENO: result: yes" >&5
29120 echo "${ECHO_T}yes" >&6
29122 echo "$as_me:$LINENO: result: no" >&5
29123 echo "${ECHO_T}no" >&6
29124 { { echo "$as_me:$LINENO: error: no yacc or bison found, can't build libcurl!" >&5
29125 echo "$as_me: error: no yacc or bison found, can't build libcurl!" >&2;}
29126 { (exit 1); exit 1; }; }
29131 if test "$USE_MANUAL" = "1"; then
29133 cat >>confdefs.h <<\_ACEOF
29134 #define USE_MANUAL 1
29141 if test x"$USE_MANUAL" = x1; then
29143 USE_MANUAL_FALSE='#'
29145 USE_MANUAL_TRUE='#'
29152 echo "$as_me:$LINENO: checking whether to enable debug options" >&5
29153 echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
29154 # Check whether --enable-debug or --disable-debug was given.
29155 if test "${enable_debug+set}" = set; then
29156 enableval="$enable_debug"
29157 case "$enableval" in
29159 echo "$as_me:$LINENO: result: no" >&5
29160 echo "${ECHO_T}no" >&6
29162 *) echo "$as_me:$LINENO: result: yes" >&5
29163 echo "${ECHO_T}yes" >&6
29165 CPPFLAGS="$CPPFLAGS -DCURLDEBUG"
29166 CFLAGS="$CFLAGS -g"
29169 if test "$GCC" = "yes"; then
29171 echo "$as_me:$LINENO: checking gcc version" >&5
29172 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
29173 gccver=`$CC -dumpversion`
29174 num1=`echo $gccver | cut -d . -f1`
29175 num2=`echo $gccver | cut -d . -f2`
29176 gccnum=`(expr $num1 "*" 100 + $num2) 2>/dev/null`
29177 echo "$as_me:$LINENO: result: $gccver" >&5
29178 echo "${ECHO_T}$gccver" >&6
29180 echo "$as_me:$LINENO: checking if this is icc in disguise" >&5
29181 echo $ECHO_N "checking if this is icc in disguise... $ECHO_C" >&6
29182 cat >conftest.$ac_ext <<_ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h. */
29190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29191 $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then
29193 echo "$as_me:$LINENO: result: no" >&5
29194 echo "${ECHO_T}no" >&6
29197 echo "$as_me:$LINENO: result: yes" >&5
29198 echo "${ECHO_T}yes" >&6
29204 if test "$ICC" = "yes"; then
29207 WARN="-wd279,269,1419,981"
29209 if test "$gccnum" -gt "600"; then
29212 else WARN="-W -Wall -Wwrite-strings -pedantic -Wno-long-long -Wpointer-arith -Wnested-externs -Winline -Wmissing-declarations -Wmissing-prototypes -Wsign-compare"
29215 if test "$gccnum" -gt "295"; then
29216 WARN="$WARN -Wundef"
29219 if test "$gccnum" -ge "296"; then
29220 WARN="$WARN -Wfloat-equal"
29223 if test "$gccnum" -gt "296"; then
29224 WARN="$WARN -Wno-format-nonliteral"
29227 if test "$gccnum" -ge "303"; then
29228 WARN="$WARN -Wendif-labels -Wstrict-prototypes"
29231 for flag in $CPPFLAGS; do
29234 add=`echo $flag | sed 's/^-I/-isystem /g'`
29241 CFLAGS="$CFLAGS $WARN"
29243 { echo "$as_me:$LINENO: Added this set of compiler options: $WARN" >&5
29244 echo "$as_me: Added this set of compiler options: $WARN" >&6;}
29247 { echo "$as_me:$LINENO: Added no extra compiler options" >&5
29248 echo "$as_me: Added no extra compiler options" >&6;}
29252 for flag in $CFLAGS; do
29257 NEWFLAGS="$NEWFLAGS $flag"
29268 echo "$as_me:$LINENO: result: no" >&5
29269 echo "${ECHO_T}no" >&6
29273 echo "$as_me:$LINENO: checking whether to enable ares" >&5
29274 echo $ECHO_N "checking whether to enable ares... $ECHO_C" >&6
29275 # Check whether --enable-ares or --disable-ares was given.
29276 if test "${enable_ares+set}" = set; then
29277 enableval="$enable_ares"
29278 case "$enableval" in
29280 echo "$as_me:$LINENO: result: no" >&5
29281 echo "${ECHO_T}no" >&6
29283 *) echo "$as_me:$LINENO: result: yes" >&5
29284 echo "${ECHO_T}yes" >&6
29286 if test "x$IPV6_ENABLED" = "x1"; then
29287 { { echo "$as_me:$LINENO: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&5
29288 echo "$as_me: error: ares doesn't work with ipv6, disable ipv6 to use ares" >&2;}
29289 { (exit 1); exit 1; }; }
29293 cat >>confdefs.h <<\_ACEOF
29300 LIBS="$LIBS -lcares"
29302 if test "x$enableval" = "xyes" ; then
29303 if test -d "$srcdir/ares"; then
29306 subdirs="$subdirs ares"
29308 aresinc=`cd $srcdir/ares && pwd`
29309 CPPFLAGS="$CPPFLAGS -I$aresinc"
29312 LDFLAGS="$LDFLAGS -L$pwd/ares"
29315 CPPFLAGS="$CPPFLAGS -I$enableval/include"
29316 LDFLAGS="$LDFLAGS -L$enableval/lib"
29321 echo "$as_me:$LINENO: result: no" >&5
29322 echo "${ECHO_T}no" >&6
29326 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 curl-config"
29328 cat >confcache <<\_ACEOF
29329 # This file is a shell script that caches the results of configure
29330 # tests run on this system so they can be shared between configure
29331 # scripts and configure runs, see configure's option --config-cache.
29332 # It is not useful on other systems. If it contains results you don't
29333 # want to keep, you may remove or edit it.
29335 # config.status only pays attention to the cache file if you give it
29336 # the --recheck option to rerun configure.
29338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29340 # following values.
29344 # The following way of writing the cache mishandles newlines in values,
29345 # but we know of no workaround that is simple, portable, and efficient.
29346 # So, don't put newlines in cache variables' values.
29347 # Ultrix sh set writes to stderr and can't be redirected directly,
29348 # and sets the high bit in the cache file unless we assign to the vars.
29351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29353 # `set' does not quote correctly, so add quotes (double-quote
29354 # substitution turns \\\\ into \\, and sed turns \\ into \).
29357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29360 # `set' quotes correctly as required by POSIX, so do not add quotes.
29362 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29371 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29373 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29374 if test -w $cache_file; then
29375 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29376 cat confcache >$cache_file
29378 echo "not updating unwritable cache $cache_file"
29383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29384 # Let make expand exec_prefix.
29385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29389 # trailing colons and then remove the whole line if VPATH becomes empty
29390 # (actually we leave an empty line to preserve line numbers).
29391 if test "x$srcdir" = x.; then
29392 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29393 s/:*\$(srcdir):*/:/;
29394 s/:*\${srcdir}:*/:/;
29396 s/^\([^=]*=[ ]*\):*/\1/;
29402 DEFS=-DHAVE_CONFIG_H
29406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29407 # 1. Remove the extension, and $U if already installed.
29408 ac_i=`echo "$ac_i" |
29409 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29411 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29412 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29414 LIBOBJS=$ac_libobjs
29416 LTLIBOBJS=$ac_ltlibobjs
29419 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
29420 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
29421 Usually this means the macro was only invoked conditionally." >&5
29422 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
29423 Usually this means the macro was only invoked conditionally." >&2;}
29424 { (exit 1); exit 1; }; }
29426 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29427 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29428 Usually this means the macro was only invoked conditionally." >&5
29429 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29430 Usually this means the macro was only invoked conditionally." >&2;}
29431 { (exit 1); exit 1; }; }
29433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29434 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29435 Usually this means the macro was only invoked conditionally." >&5
29436 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29437 Usually this means the macro was only invoked conditionally." >&2;}
29438 { (exit 1); exit 1; }; }
29440 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29441 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29442 Usually this means the macro was only invoked conditionally." >&5
29443 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29444 Usually this means the macro was only invoked conditionally." >&2;}
29445 { (exit 1); exit 1; }; }
29447 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29448 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29449 Usually this means the macro was only invoked conditionally." >&5
29450 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29451 Usually this means the macro was only invoked conditionally." >&2;}
29452 { (exit 1); exit 1; }; }
29454 if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
29455 { { echo "$as_me:$LINENO: error: conditional \"NO_UNDEFINED\" was never defined.
29456 Usually this means the macro was only invoked conditionally." >&5
29457 echo "$as_me: error: conditional \"NO_UNDEFINED\" was never defined.
29458 Usually this means the macro was only invoked conditionally." >&2;}
29459 { (exit 1); exit 1; }; }
29461 if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then
29462 { { echo "$as_me:$LINENO: error: conditional \"MIMPURE\" was never defined.
29463 Usually this means the macro was only invoked conditionally." >&5
29464 echo "$as_me: error: conditional \"MIMPURE\" was never defined.
29465 Usually this means the macro was only invoked conditionally." >&2;}
29466 { (exit 1); exit 1; }; }
29468 if test -z "${CABUNDLE_TRUE}" && test -z "${CABUNDLE_FALSE}"; then
29469 { { echo "$as_me:$LINENO: error: conditional \"CABUNDLE\" was never defined.
29470 Usually this means the macro was only invoked conditionally." >&5
29471 echo "$as_me: error: conditional \"CABUNDLE\" was never defined.
29472 Usually this means the macro was only invoked conditionally." >&2;}
29473 { (exit 1); exit 1; }; }
29475 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
29476 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
29477 Usually this means the macro was only invoked conditionally." >&5
29478 echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
29479 Usually this means the macro was only invoked conditionally." >&2;}
29480 { (exit 1); exit 1; }; }
29482 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
29483 { { echo "$as_me:$LINENO: error: conditional \"USE_MANUAL\" was never defined.
29484 Usually this means the macro was only invoked conditionally." >&5
29485 echo "$as_me: error: conditional \"USE_MANUAL\" was never defined.
29486 Usually this means the macro was only invoked conditionally." >&2;}
29487 { (exit 1); exit 1; }; }
29490 : ${CONFIG_STATUS=./config.status}
29491 ac_clean_files_save=$ac_clean_files
29492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29493 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29494 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29495 cat >$CONFIG_STATUS <<_ACEOF
29497 # Generated by $as_me.
29498 # Run this file to recreate the current configuration.
29499 # Compiler output produced by configure, useful for debugging
29500 # configure, is in config.log if it exists.
29503 ac_cs_recheck=false
29505 SHELL=\${CONFIG_SHELL-$SHELL}
29508 cat >>$CONFIG_STATUS <<\_ACEOF
29509 ## --------------------- ##
29510 ## M4sh Initialization. ##
29511 ## --------------------- ##
29513 # Be Bourne compatible
29514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29517 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29518 # is contrary to our usage. Disable this feature.
29519 alias -g '${1+"$@"}'='"$@"'
29520 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29523 DUALCASE=1; export DUALCASE # for MKS sh
29525 # Support unset when possible.
29526 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29533 # Work around bugs in pre-3.0 UWIN ksh.
29534 $as_unset ENV MAIL MAILPATH
29541 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29542 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29543 LC_TELEPHONE LC_TIME
29545 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29546 eval $as_var=C; export $as_var
29552 # Required to use basename.
29553 if expr a : '\(a\)' >/dev/null 2>&1; then
29559 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29560 as_basename=basename
29566 # Name of the executable.
29567 as_me=`$as_basename "$0" ||
29568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29569 X"$0" : 'X\(//\)$' \| \
29570 X"$0" : 'X\(/\)$' \| \
29571 . : '\(.\)' 2>/dev/null ||
29573 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29574 /^X\/\(\/\/\)$/{ s//\1/; q; }
29575 /^X\/\(\/\).*/{ s//\1/; q; }
29579 # PATH needs CR, and LINENO needs CR and PATH.
29580 # Avoid depending upon Character Ranges.
29581 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29582 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29583 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29584 as_cr_digits='0123456789'
29585 as_cr_alnum=$as_cr_Letters$as_cr_digits
29587 # The user is always right.
29588 if test "${PATH_SEPARATOR+set}" != set; then
29589 echo "#! /bin/sh" >conf$$.sh
29590 echo "exit 0" >>conf$$.sh
29592 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29601 as_lineno_1=$LINENO
29602 as_lineno_2=$LINENO
29603 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29604 test "x$as_lineno_1" != "x$as_lineno_2" &&
29605 test "x$as_lineno_3" = "x$as_lineno_2" || {
29606 # Find who we are. Look in the path if we contain no path at all
29609 *[\\/]* ) as_myself=$0 ;;
29610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29611 for as_dir in $PATH
29614 test -z "$as_dir" && as_dir=.
29615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29620 # We did not find ourselves, most probably we were run as `sh COMMAND'
29621 # in which case we are not to be found in the path.
29622 if test "x$as_myself" = x; then
29625 if test ! -f "$as_myself"; then
29626 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29627 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29628 { (exit 1); exit 1; }; }
29630 case $CONFIG_SHELL in
29632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29633 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29636 test -z "$as_dir" && as_dir=.
29637 for as_base in sh bash ksh sh5; do
29640 if ("$as_dir/$as_base" -c '
29641 as_lineno_1=$LINENO
29642 as_lineno_2=$LINENO
29643 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29644 test "x$as_lineno_1" != "x$as_lineno_2" &&
29645 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29646 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29647 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29648 CONFIG_SHELL=$as_dir/$as_base
29649 export CONFIG_SHELL
29650 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29658 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29659 # uniformly replaced by the line number. The first 'sed' inserts a
29660 # line-number line before each line; the second 'sed' does the real
29661 # work. The second script uses 'N' to pair each line-number line
29662 # with the numbered line, and appends trailing '-' during
29663 # substitution so that $LINENO is not a special case at line end.
29664 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29665 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29666 sed '=' <$as_myself |
29671 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29674 s,^['$as_cr_digits']*\n,,
29675 ' >$as_me.lineno &&
29676 chmod +x $as_me.lineno ||
29677 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29678 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29679 { (exit 1); exit 1; }; }
29681 # Don't try to exec as it changes $[0], causing all sort of problems
29682 # (the dirname of $[0] is not the place where we might find the
29683 # original and so on. Autoconf is especially sensible to this).
29685 # Exit status is that of the last command.
29690 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29691 *c*,-n*) ECHO_N= ECHO_C='
29693 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29694 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29697 if expr a : '\(a\)' >/dev/null 2>&1; then
29703 rm -f conf$$ conf$$.exe conf$$.file
29705 if ln -s conf$$.file conf$$ 2>/dev/null; then
29706 # We could just check for DJGPP; but this test a) works b) is more generic
29707 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29708 if test -f conf$$.exe; then
29709 # Don't use ln at all; we don't have any links
29714 elif ln conf$$.file conf$$ 2>/dev/null; then
29719 rm -f conf$$ conf$$.exe conf$$.file
29721 if mkdir -p . 2>/dev/null; then
29724 test -d ./-p && rmdir ./-p
29728 as_executable_p="test -f"
29730 # Sed expression to map a string onto a valid CPP name.
29731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29733 # Sed expression to map a string onto a valid variable name.
29734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29738 # We need space, tab and new line, in precisely that order.
29748 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29749 # report actual input values of CONFIG_FILES etc. instead of their
29750 # values after options handling. Logging --version etc. is OK.
29754 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29755 ## Running $as_me. ##
29760 This file was extended by curl $as_me -, which was
29761 generated by GNU Autoconf 2.59. Invocation command line was
29763 CONFIG_FILES = $CONFIG_FILES
29764 CONFIG_HEADERS = $CONFIG_HEADERS
29765 CONFIG_LINKS = $CONFIG_LINKS
29766 CONFIG_COMMANDS = $CONFIG_COMMANDS
29770 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29774 # Files that config.status was made for.
29775 if test -n "$ac_config_files"; then
29776 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29779 if test -n "$ac_config_headers"; then
29780 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29783 if test -n "$ac_config_links"; then
29784 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29787 if test -n "$ac_config_commands"; then
29788 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29791 cat >>$CONFIG_STATUS <<\_ACEOF
29794 \`$as_me' instantiates files from templates according to the
29795 current configuration.
29797 Usage: $0 [OPTIONS] [FILE]...
29799 -h, --help print this help, then exit
29800 -V, --version print version number, then exit
29801 -q, --quiet do not print progress messages
29802 -d, --debug don't remove temporary files
29803 --recheck update $as_me by reconfiguring in the same conditions
29804 --file=FILE[:TEMPLATE]
29805 instantiate the configuration file FILE
29806 --header=FILE[:TEMPLATE]
29807 instantiate the configuration header FILE
29809 Configuration files:
29812 Configuration headers:
29815 Configuration commands:
29818 Report bugs to <bug-autoconf@gnu.org>."
29821 cat >>$CONFIG_STATUS <<_ACEOF
29823 curl config.status -
29824 configured by $0, generated by GNU Autoconf 2.59,
29825 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29827 Copyright (C) 2003 Free Software Foundation, Inc.
29828 This config.status script is free software; the Free Software Foundation
29829 gives unlimited permission to copy, distribute and modify it."
29834 cat >>$CONFIG_STATUS <<\_ACEOF
29835 # If no file are specified by the user, then we need to provide default
29836 # value. By we need to know if files were specified by the user.
29842 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29843 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29851 *) # This is not an option, so the user has probably given explicit
29854 ac_need_defaults=false;;
29858 # Handling of the options.
29860 cat >>$CONFIG_STATUS <<\_ACEOF
29861 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29863 --version | --vers* | -V )
29864 echo "$ac_cs_version"; exit 0 ;;
29866 # Conflict between --help and --header
29867 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29868 Try \`$0 --help' for more information." >&5
29869 echo "$as_me: error: ambiguous option: $1
29870 Try \`$0 --help' for more information." >&2;}
29871 { (exit 1); exit 1; }; };;
29872 --help | --hel | -h )
29873 echo "$ac_cs_usage"; exit 0 ;;
29874 --debug | --d* | -d )
29876 --file | --fil | --fi | --f )
29878 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29879 ac_need_defaults=false;;
29880 --header | --heade | --head | --hea )
29882 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29883 ac_need_defaults=false;;
29884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29888 # This is an error.
29889 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29890 Try \`$0 --help' for more information." >&5
29891 echo "$as_me: error: unrecognized option: $1
29892 Try \`$0 --help' for more information." >&2;}
29893 { (exit 1); exit 1; }; } ;;
29895 *) ac_config_targets="$ac_config_targets $1" ;;
29901 ac_configure_extra_args=
29903 if $ac_cs_silent; then
29905 ac_configure_extra_args="$ac_configure_extra_args --silent"
29909 cat >>$CONFIG_STATUS <<_ACEOF
29910 if \$ac_cs_recheck; then
29911 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29912 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29917 cat >>$CONFIG_STATUS <<_ACEOF
29919 # INIT-COMMANDS section.
29922 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29928 cat >>$CONFIG_STATUS <<\_ACEOF
29929 for ac_config_target in $ac_config_targets
29931 case "$ac_config_target" in
29932 # Handling of arguments.
29933 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29934 "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
29935 "docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
29936 "docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
29937 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29938 "include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
29939 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29940 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
29941 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29942 "tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
29943 "tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
29944 "tests/libtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
29945 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
29946 "packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
29947 "packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
29948 "packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
29949 "packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
29950 "packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
29951 "packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
29952 "packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
29953 "packages/DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/DOS/Makefile" ;;
29954 "packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
29955 "packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
29956 "packages/vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
29957 "curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
29958 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29959 "lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
29960 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
29961 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29963 { (exit 1); exit 1; }; };;
29967 # If the user did not use the arguments to specify the items to instantiate,
29968 # then the envvar interface is used. Set only those that are not.
29969 # We use the long form for the default assignment because of an extremely
29970 # bizarre bug on SunOS 4.1.3.
29971 if $ac_need_defaults; then
29972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29974 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29977 # Have a temporary directory for convenience. Make it in the build tree
29978 # simply because there is no reason to put it here, and in addition,
29979 # creating and moving files from /tmp can sometimes cause problems.
29980 # Create a temporary directory, and hook for its removal unless debugging.
29983 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29984 trap '{ (exit 1); exit 1; }' 1 2 13 15
29987 # Create a (secure) tmp directory for tmp files.
29990 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29991 test -n "$tmp" && test -d "$tmp"
29994 tmp=./confstat$$-$RANDOM
29995 (umask 077 && mkdir $tmp)
29998 echo "$me: cannot create a temporary directory in ." >&2
29999 { (exit 1); exit 1; }
30004 cat >>$CONFIG_STATUS <<_ACEOF
30007 # CONFIG_FILES section.
30010 # No need to generate the scripts if there are no CONFIG_FILES.
30011 # This happens for instance when ./config.status config.h
30012 if test -n "\$CONFIG_FILES"; then
30013 # Protect against being on the right side of a sed subst in config.status.
30014 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30015 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30016 s,@SHELL@,$SHELL,;t t
30017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30023 s,@exec_prefix@,$exec_prefix,;t t
30024 s,@prefix@,$prefix,;t t
30025 s,@program_transform_name@,$program_transform_name,;t t
30026 s,@bindir@,$bindir,;t t
30027 s,@sbindir@,$sbindir,;t t
30028 s,@libexecdir@,$libexecdir,;t t
30029 s,@datadir@,$datadir,;t t
30030 s,@sysconfdir@,$sysconfdir,;t t
30031 s,@sharedstatedir@,$sharedstatedir,;t t
30032 s,@localstatedir@,$localstatedir,;t t
30033 s,@libdir@,$libdir,;t t
30034 s,@includedir@,$includedir,;t t
30035 s,@oldincludedir@,$oldincludedir,;t t
30036 s,@infodir@,$infodir,;t t
30037 s,@mandir@,$mandir,;t t
30038 s,@build_alias@,$build_alias,;t t
30039 s,@host_alias@,$host_alias,;t t
30040 s,@target_alias@,$target_alias,;t t
30041 s,@DEFS@,$DEFS,;t t
30042 s,@ECHO_C@,$ECHO_C,;t t
30043 s,@ECHO_N@,$ECHO_N,;t t
30044 s,@ECHO_T@,$ECHO_T,;t t
30045 s,@LIBS@,$LIBS,;t t
30046 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30047 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30048 s,@MAINT@,$MAINT,;t t
30051 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30052 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30053 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30054 s,@CYGPATH_W@,$CYGPATH_W,;t t
30055 s,@PACKAGE@,$PACKAGE,;t t
30056 s,@VERSION@,$VERSION,;t t
30057 s,@ACLOCAL@,$ACLOCAL,;t t
30058 s,@AUTOCONF@,$AUTOCONF,;t t
30059 s,@AUTOMAKE@,$AUTOMAKE,;t t
30060 s,@AUTOHEADER@,$AUTOHEADER,;t t
30061 s,@MAKEINFO@,$MAKEINFO,;t t
30062 s,@AMTAR@,$AMTAR,;t t
30063 s,@install_sh@,$install_sh,;t t
30064 s,@STRIP@,$STRIP,;t t
30065 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30067 s,@mkdir_p@,$mkdir_p,;t t
30069 s,@SET_MAKE@,$SET_MAKE,;t t
30070 s,@am__leading_dot@,$am__leading_dot,;t t
30071 s,@VERSIONNUM@,$VERSIONNUM,;t t
30072 s,@PKGADD_PKG@,$PKGADD_PKG,;t t
30073 s,@PKGADD_NAME@,$PKGADD_NAME,;t t
30074 s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
30075 s,@build@,$build,;t t
30076 s,@build_cpu@,$build_cpu,;t t
30077 s,@build_vendor@,$build_vendor,;t t
30078 s,@build_os@,$build_os,;t t
30079 s,@host@,$host,;t t
30080 s,@host_cpu@,$host_cpu,;t t
30081 s,@host_vendor@,$host_vendor,;t t
30082 s,@host_os@,$host_os,;t t
30084 s,@CFLAGS@,$CFLAGS,;t t
30085 s,@LDFLAGS@,$LDFLAGS,;t t
30086 s,@CPPFLAGS@,$CPPFLAGS,;t t
30087 s,@ac_ct_CC@,$ac_ct_CC,;t t
30088 s,@EXEEXT@,$EXEEXT,;t t
30089 s,@OBJEXT@,$OBJEXT,;t t
30090 s,@DEPDIR@,$DEPDIR,;t t
30091 s,@am__include@,$am__include,;t t
30092 s,@am__quote@,$am__quote,;t t
30093 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30094 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30095 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30096 s,@CCDEPMODE@,$CCDEPMODE,;t t
30097 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30098 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30100 s,@EGREP@,$EGREP,;t t
30101 s,@LN_S@,$LN_S,;t t
30102 s,@ECHO@,$ECHO,;t t
30103 s,@ac_ct_AR@,$ac_ct_AR,;t t
30104 s,@RANLIB@,$RANLIB,;t t
30105 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30106 s,@DLLTOOL@,$DLLTOOL,;t t
30107 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
30109 s,@ac_ct_AS@,$ac_ct_AS,;t t
30110 s,@OBJDUMP@,$OBJDUMP,;t t
30111 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
30113 s,@CXXFLAGS@,$CXXFLAGS,;t t
30114 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30115 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30116 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30117 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30118 s,@CXXCPP@,$CXXCPP,;t t
30120 s,@FFLAGS@,$FFLAGS,;t t
30121 s,@ac_ct_F77@,$ac_ct_F77,;t t
30122 s,@LIBTOOL@,$LIBTOOL,;t t
30123 s,@NO_UNDEFINED_TRUE@,$NO_UNDEFINED_TRUE,;t t
30124 s,@NO_UNDEFINED_FALSE@,$NO_UNDEFINED_FALSE,;t t
30125 s,@MIMPURE_TRUE@,$MIMPURE_TRUE,;t t
30126 s,@MIMPURE_FALSE@,$MIMPURE_FALSE,;t t
30127 s,@CURL_DISABLE_HTTP@,$CURL_DISABLE_HTTP,;t t
30128 s,@CURL_DISABLE_GOPHER@,$CURL_DISABLE_GOPHER,;t t
30129 s,@CURL_DISABLE_FTP@,$CURL_DISABLE_FTP,;t t
30130 s,@CURL_DISABLE_FILE@,$CURL_DISABLE_FILE,;t t
30131 s,@CURL_DISABLE_LDAP@,$CURL_DISABLE_LDAP,;t t
30132 s,@CURL_DISABLE_DICT@,$CURL_DISABLE_DICT,;t t
30133 s,@CURL_DISABLE_TELNET@,$CURL_DISABLE_TELNET,;t t
30134 s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
30135 s,@RANDOM_FILE@,$RANDOM_FILE,;t t
30136 s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
30137 s,@PKGCONFIG@,$PKGCONFIG,;t t
30138 s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
30139 s,@CURL_CA_BUNDLE@,$CURL_CA_BUNDLE,;t t
30140 s,@CABUNDLE_TRUE@,$CABUNDLE_TRUE,;t t
30141 s,@CABUNDLE_FALSE@,$CABUNDLE_FALSE,;t t
30142 s,@HAVE_LIBZ@,$HAVE_LIBZ,;t t
30143 s,@HAVE_LIBZ_TRUE@,$HAVE_LIBZ_TRUE,;t t
30144 s,@HAVE_LIBZ_FALSE@,$HAVE_LIBZ_FALSE,;t t
30145 s,@PERL@,$PERL,;t t
30146 s,@NROFF@,$NROFF,;t t
30147 s,@MANOPT@,$MANOPT,;t t
30148 s,@YACC@,$YACC,;t t
30149 s,@USE_MANUAL_TRUE@,$USE_MANUAL_TRUE,;t t
30150 s,@USE_MANUAL_FALSE@,$USE_MANUAL_FALSE,;t t
30151 s,@HAVE_ARES@,$HAVE_ARES,;t t
30152 s,@subdirs@,$subdirs,;t t
30153 s,@LIBOBJS@,$LIBOBJS,;t t
30154 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30159 cat >>$CONFIG_STATUS <<\_ACEOF
30160 # Split the substitutions into bite-sized pieces for seds with
30161 # small command number limits, like on Digital OSF/1 and HP-UX.
30162 ac_max_sed_lines=48
30163 ac_sed_frag=1 # Number of current file.
30164 ac_beg=1 # First line for current file.
30165 ac_end=$ac_max_sed_lines # Line after last line for current file.
30168 while $ac_more_lines; do
30169 if test $ac_beg -gt 1; then
30170 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30172 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30174 if test ! -s $tmp/subs.frag; then
30175 ac_more_lines=false
30177 # The purpose of the label and of the branching condition is to
30178 # speed up the sed processing (if there are no `@' at all, there
30179 # is no need to browse any of the substitutions).
30180 # These are the two extra sed commands mentioned above.
30182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30183 if test -z "$ac_sed_cmds"; then
30184 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30186 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30188 ac_sed_frag=`expr $ac_sed_frag + 1`
30190 ac_end=`expr $ac_end + $ac_max_sed_lines`
30193 if test -z "$ac_sed_cmds"; then
30196 fi # test -n "$CONFIG_FILES"
30199 cat >>$CONFIG_STATUS <<\_ACEOF
30200 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30201 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30203 - | *:- | *:-:* ) # input from stdin
30205 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30206 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30207 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30209 * ) ac_file_in=$ac_file.in ;;
30212 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30213 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30215 X"$ac_file" : 'X\(//\)[^/]' \| \
30216 X"$ac_file" : 'X\(//\)$' \| \
30217 X"$ac_file" : 'X\(/\)' \| \
30218 . : '\(.\)' 2>/dev/null ||
30220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30222 /^X\(\/\/\)$/{ s//\1/; q; }
30223 /^X\(\/\).*/{ s//\1/; q; }
30225 { if $as_mkdir_p; then
30230 while test ! -d "$as_dir"; do
30231 as_dirs="$as_dir $as_dirs"
30232 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30234 X"$as_dir" : 'X\(//\)[^/]' \| \
30235 X"$as_dir" : 'X\(//\)$' \| \
30236 X"$as_dir" : 'X\(/\)' \| \
30237 . : '\(.\)' 2>/dev/null ||
30239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30241 /^X\(\/\/\)$/{ s//\1/; q; }
30242 /^X\(\/\).*/{ s//\1/; q; }
30245 test ! -n "$as_dirs" || mkdir $as_dirs
30246 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30247 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30248 { (exit 1); exit 1; }; }; }
30252 if test "$ac_dir" != .; then
30253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30254 # A "../" for each directory in $ac_dir_suffix.
30255 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30257 ac_dir_suffix= ac_top_builddir=
30261 .) # No --srcdir option. We are building in place.
30263 if test -z "$ac_top_builddir"; then
30266 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30268 [\\/]* | ?:[\\/]* ) # Absolute path.
30269 ac_srcdir=$srcdir$ac_dir_suffix;
30270 ac_top_srcdir=$srcdir ;;
30271 *) # Relative path.
30272 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30273 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30276 # Do not use `cd foo && pwd` to compute absolute paths, because
30277 # the directories may not exist.
30279 .) ac_abs_builddir="$ac_dir";;
30282 .) ac_abs_builddir=`pwd`;;
30283 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30284 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30287 case $ac_abs_builddir in
30288 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30290 case ${ac_top_builddir}. in
30291 .) ac_abs_top_builddir=$ac_abs_builddir;;
30292 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30293 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30296 case $ac_abs_builddir in
30297 .) ac_abs_srcdir=$ac_srcdir;;
30300 .) ac_abs_srcdir=$ac_abs_builddir;;
30301 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30302 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30305 case $ac_abs_builddir in
30306 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30308 case $ac_top_srcdir in
30309 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30310 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30311 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30318 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30321 if test x"$ac_file" != x-; then
30322 { echo "$as_me:$LINENO: creating $ac_file" >&5
30323 echo "$as_me: creating $ac_file" >&6;}
30326 # Let's still pretend it is `configure' which instantiates (i.e., don't
30327 # use $as_me), people would be surprised to read:
30328 # /* config.h. Generated by config.status. */
30329 if test x"$ac_file" = x-; then
30332 configure_input="$ac_file. "
30334 configure_input=$configure_input"Generated from `echo $ac_file_in |
30335 sed 's,.*/,,'` by configure."
30337 # First look for the input files in the build tree, otherwise in the
30339 ac_file_inputs=`IFS=:
30340 for f in $ac_file_in; do
30342 -) echo $tmp/stdin ;;
30344 # Absolute (can't be DOS-style, as IFS=:)
30345 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30346 echo "$as_me: error: cannot find input file: $f" >&2;}
30347 { (exit 1); exit 1; }; }
30350 if test -f "$f"; then
30353 elif test -f "$srcdir/$f"; then
30358 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30359 echo "$as_me: error: cannot find input file: $f" >&2;}
30360 { (exit 1); exit 1; }; }
30363 done` || { (exit 1); exit 1; }
30365 cat >>$CONFIG_STATUS <<_ACEOF
30369 cat >>$CONFIG_STATUS <<\_ACEOF
30371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30372 s,@configure_input@,$configure_input,;t t
30373 s,@srcdir@,$ac_srcdir,;t t
30374 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30375 s,@top_srcdir@,$ac_top_srcdir,;t t
30376 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30377 s,@builddir@,$ac_builddir,;t t
30378 s,@abs_builddir@,$ac_abs_builddir,;t t
30379 s,@top_builddir@,$ac_top_builddir,;t t
30380 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30381 s,@INSTALL@,$ac_INSTALL,;t t
30382 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30384 if test x"$ac_file" != x-; then
30385 mv $tmp/out $ac_file
30393 cat >>$CONFIG_STATUS <<\_ACEOF
30396 # CONFIG_HEADER section.
30399 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30400 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30402 # ac_d sets the value in "#define NAME VALUE" lines.
30403 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30404 ac_dB='[ ].*$,\1#\2'
30407 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30408 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30409 ac_uB='$,\1#\2define\3'
30413 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30414 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30416 - | *:- | *:-:* ) # input from stdin
30418 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30420 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30421 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30422 * ) ac_file_in=$ac_file.in ;;
30425 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30426 echo "$as_me: creating $ac_file" >&6;}
30428 # First look for the input files in the build tree, otherwise in the
30430 ac_file_inputs=`IFS=:
30431 for f in $ac_file_in; do
30433 -) echo $tmp/stdin ;;
30435 # Absolute (can't be DOS-style, as IFS=:)
30436 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30437 echo "$as_me: error: cannot find input file: $f" >&2;}
30438 { (exit 1); exit 1; }; }
30439 # Do quote $f, to prevent DOS paths from being IFS'd.
30442 if test -f "$f"; then
30445 elif test -f "$srcdir/$f"; then
30450 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30451 echo "$as_me: error: cannot find input file: $f" >&2;}
30452 { (exit 1); exit 1; }; }
30455 done` || { (exit 1); exit 1; }
30456 # Remove the trailing spaces.
30457 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30461 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30462 # `conftest.undefs', that substitutes the proper values into
30463 # config.h.in to produce config.h. The first handles `#define'
30464 # templates, and the second `#undef' templates.
30465 # And first: Protect against being on the right side of a sed subst in
30466 # config.status. Protect against being in an unquoted here document
30467 # in config.status.
30468 rm -f conftest.defines conftest.undefs
30469 # Using a here document instead of a string reduces the quoting nightmare.
30470 # Putting comments in sed scripts is not portable.
30472 # `end' is used to avoid that the second main sed command (meant for
30473 # 0-ary CPP macros) applies to n-ary macro definitions.
30474 # See the Autoconf documentation for `clear'.
30475 cat >confdef2sed.sed <<\_ACEOF
30480 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30482 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30485 # If some macros were called several times there might be several times
30486 # the same #defines, which is useless. Nevertheless, we may not want to
30487 # sort them, since we want the *last* AC-DEFINE to be honored.
30488 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30489 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30490 rm -f confdef2sed.sed
30492 # This sed command replaces #undef with comments. This is necessary, for
30493 # example, in the case of _POSIX_SOURCE, which is predefined and required
30494 # on some systems where configure will not decide to define it.
30495 cat >>conftest.undefs <<\_ACEOF
30496 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30499 # Break up conftest.defines because some shells have a limit on the size
30500 # of here documents, and old seds have small limits too (100 cmds).
30501 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30502 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30503 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30504 echo ' :' >>$CONFIG_STATUS
30505 rm -f conftest.tail
30506 while grep . conftest.defines >/dev/null
30508 # Write a limited-size here document to $tmp/defines.sed.
30509 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30510 # Speed up: don't consider the non `#define' lines.
30511 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30512 # Work around the forget-to-reset-the-flag bug.
30513 echo 't clr' >>$CONFIG_STATUS
30514 echo ': clr' >>$CONFIG_STATUS
30515 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30517 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30519 mv $tmp/out $tmp/in
30521 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30522 rm -f conftest.defines
30523 mv conftest.tail conftest.defines
30525 rm -f conftest.defines
30526 echo ' fi # grep' >>$CONFIG_STATUS
30527 echo >>$CONFIG_STATUS
30529 # Break up conftest.undefs because some shells have a limit on the size
30530 # of here documents, and old seds have small limits too (100 cmds).
30531 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30532 rm -f conftest.tail
30533 while grep . conftest.undefs >/dev/null
30535 # Write a limited-size here document to $tmp/undefs.sed.
30536 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30537 # Speed up: don't consider the non `#undef'
30538 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30539 # Work around the forget-to-reset-the-flag bug.
30540 echo 't clr' >>$CONFIG_STATUS
30541 echo ': clr' >>$CONFIG_STATUS
30542 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30544 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30546 mv $tmp/out $tmp/in
30548 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30549 rm -f conftest.undefs
30550 mv conftest.tail conftest.undefs
30552 rm -f conftest.undefs
30554 cat >>$CONFIG_STATUS <<\_ACEOF
30555 # Let's still pretend it is `configure' which instantiates (i.e., don't
30556 # use $as_me), people would be surprised to read:
30557 # /* config.h. Generated by config.status. */
30558 if test x"$ac_file" = x-; then
30559 echo "/* Generated by configure. */" >$tmp/config.h
30561 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30563 cat $tmp/in >>$tmp/config.h
30565 if test x"$ac_file" != x-; then
30566 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30567 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30568 echo "$as_me: $ac_file is unchanged" >&6;}
30570 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30572 X"$ac_file" : 'X\(//\)[^/]' \| \
30573 X"$ac_file" : 'X\(//\)$' \| \
30574 X"$ac_file" : 'X\(/\)' \| \
30575 . : '\(.\)' 2>/dev/null ||
30577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30579 /^X\(\/\/\)$/{ s//\1/; q; }
30580 /^X\(\/\).*/{ s//\1/; q; }
30582 { if $as_mkdir_p; then
30587 while test ! -d "$as_dir"; do
30588 as_dirs="$as_dir $as_dirs"
30589 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30591 X"$as_dir" : 'X\(//\)[^/]' \| \
30592 X"$as_dir" : 'X\(//\)$' \| \
30593 X"$as_dir" : 'X\(/\)' \| \
30594 . : '\(.\)' 2>/dev/null ||
30596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30597 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30598 /^X\(\/\/\)$/{ s//\1/; q; }
30599 /^X\(\/\).*/{ s//\1/; q; }
30602 test ! -n "$as_dirs" || mkdir $as_dirs
30603 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30604 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30605 { (exit 1); exit 1; }; }; }
30608 mv $tmp/config.h $ac_file
30612 rm -f $tmp/config.h
30614 # Compute $ac_file's index in $config_headers.
30616 for _am_header in $config_headers :; do
30617 case $_am_header in
30618 $ac_file | $ac_file:* )
30621 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30624 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30625 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30626 X$ac_file : 'X\(//\)[^/]' \| \
30627 X$ac_file : 'X\(//\)$' \| \
30628 X$ac_file : 'X\(/\)' \| \
30629 . : '\(.\)' 2>/dev/null ||
30631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30633 /^X\(\/\/\)$/{ s//\1/; q; }
30634 /^X\(\/\).*/{ s//\1/; q; }
30635 s/.*/./; q'`/stamp-h$_am_stamp_count
30638 cat >>$CONFIG_STATUS <<\_ACEOF
30641 # CONFIG_COMMANDS section.
30643 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30644 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30645 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30646 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30647 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30648 X"$ac_dest" : 'X\(//\)[^/]' \| \
30649 X"$ac_dest" : 'X\(//\)$' \| \
30650 X"$ac_dest" : 'X\(/\)' \| \
30651 . : '\(.\)' 2>/dev/null ||
30653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30654 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30655 /^X\(\/\/\)$/{ s//\1/; q; }
30656 /^X\(\/\).*/{ s//\1/; q; }
30658 { if $as_mkdir_p; then
30663 while test ! -d "$as_dir"; do
30664 as_dirs="$as_dir $as_dirs"
30665 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30667 X"$as_dir" : 'X\(//\)[^/]' \| \
30668 X"$as_dir" : 'X\(//\)$' \| \
30669 X"$as_dir" : 'X\(/\)' \| \
30670 . : '\(.\)' 2>/dev/null ||
30672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30673 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30674 /^X\(\/\/\)$/{ s//\1/; q; }
30675 /^X\(\/\).*/{ s//\1/; q; }
30678 test ! -n "$as_dirs" || mkdir $as_dirs
30679 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30680 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30681 { (exit 1); exit 1; }; }; }
30685 if test "$ac_dir" != .; then
30686 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30687 # A "../" for each directory in $ac_dir_suffix.
30688 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30690 ac_dir_suffix= ac_top_builddir=
30694 .) # No --srcdir option. We are building in place.
30696 if test -z "$ac_top_builddir"; then
30699 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30701 [\\/]* | ?:[\\/]* ) # Absolute path.
30702 ac_srcdir=$srcdir$ac_dir_suffix;
30703 ac_top_srcdir=$srcdir ;;
30704 *) # Relative path.
30705 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30706 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30709 # Do not use `cd foo && pwd` to compute absolute paths, because
30710 # the directories may not exist.
30712 .) ac_abs_builddir="$ac_dir";;
30715 .) ac_abs_builddir=`pwd`;;
30716 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30717 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30720 case $ac_abs_builddir in
30721 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30723 case ${ac_top_builddir}. in
30724 .) ac_abs_top_builddir=$ac_abs_builddir;;
30725 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30726 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30729 case $ac_abs_builddir in
30730 .) ac_abs_srcdir=$ac_srcdir;;
30733 .) ac_abs_srcdir=$ac_abs_builddir;;
30734 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30735 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30738 case $ac_abs_builddir in
30739 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30741 case $ac_top_srcdir in
30742 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30743 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30744 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30749 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30750 echo "$as_me: executing $ac_dest commands" >&6;}
30752 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30753 # Strip MF so we end up with the name of the file.
30754 mf=`echo "$mf" | sed -e 's/:.*$//'`
30755 # Check whether this is an Automake generated Makefile or not.
30756 # We used to match only the files named `Makefile.in', but
30757 # some people rename them; so instead we look at the file content.
30758 # Grep'ing the first line is not enough: some people post-process
30759 # each Makefile.in and add a new line on top of each file to say so.
30760 # So let's grep whole file.
30761 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30762 dirpart=`(dirname "$mf") 2>/dev/null ||
30763 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30764 X"$mf" : 'X\(//\)[^/]' \| \
30765 X"$mf" : 'X\(//\)$' \| \
30766 X"$mf" : 'X\(/\)' \| \
30767 . : '\(.\)' 2>/dev/null ||
30769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30770 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30771 /^X\(\/\/\)$/{ s//\1/; q; }
30772 /^X\(\/\).*/{ s//\1/; q; }
30777 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
30778 # Extract the definition of DEP_FILES from the Makefile without
30780 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30781 test -z "$DEPDIR" && continue
30782 # When using ansi2knr, U may be empty or an underscore; expand it
30783 U=`sed -n 's/^U = //p' < "$mf"`
30784 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
30785 # We invoke sed twice because it is the simplest approach to
30786 # changing $(DEPDIR) to its actual value in the expansion.
30787 for file in `sed -n '
30788 /^DEP_FILES = .*\\\\$/ {
30797 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
30798 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30799 # Make sure the directory exists.
30800 test -f "$dirpart/$file" && continue
30801 fdir=`(dirname "$file") 2>/dev/null ||
30802 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30803 X"$file" : 'X\(//\)[^/]' \| \
30804 X"$file" : 'X\(//\)$' \| \
30805 X"$file" : 'X\(/\)' \| \
30806 . : '\(.\)' 2>/dev/null ||
30808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30810 /^X\(\/\/\)$/{ s//\1/; q; }
30811 /^X\(\/\).*/{ s//\1/; q; }
30813 { if $as_mkdir_p; then
30814 mkdir -p $dirpart/$fdir
30816 as_dir=$dirpart/$fdir
30818 while test ! -d "$as_dir"; do
30819 as_dirs="$as_dir $as_dirs"
30820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30822 X"$as_dir" : 'X\(//\)[^/]' \| \
30823 X"$as_dir" : 'X\(//\)$' \| \
30824 X"$as_dir" : 'X\(/\)' \| \
30825 . : '\(.\)' 2>/dev/null ||
30827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30829 /^X\(\/\/\)$/{ s//\1/; q; }
30830 /^X\(\/\).*/{ s//\1/; q; }
30833 test ! -n "$as_dirs" || mkdir $as_dirs
30834 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30835 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30836 { (exit 1); exit 1; }; }; }
30838 # echo "creating $dirpart/$file"
30839 echo '# dummy' > "$dirpart/$file"
30847 cat >>$CONFIG_STATUS <<\_ACEOF
30849 { (exit 0); exit 0; }
30851 chmod +x $CONFIG_STATUS
30852 ac_clean_files=$ac_clean_files_save
30855 # configure is writing to config.log, and then calls config.status.
30856 # config.status does its own redirection, appending to config.log.
30857 # Unfortunately, on DOS this fails, as config.log is still kept open
30858 # by configure, so config.status won't be able to write to it; its
30859 # output is simply discarded. So we exec the FD to /dev/null,
30860 # effectively closing config.log, so it can be properly (re)opened and
30861 # appended to by config.status. When coming back to configure, we
30862 # need to make the FD available again.
30863 if test "$no_create" != yes; then
30865 ac_config_status_args=
30866 test "$silent" = yes &&
30867 ac_config_status_args="$ac_config_status_args --quiet"
30869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30872 # would make configure fail if this is the last instruction.
30873 $ac_cs_success || { (exit 1); exit 1; }
30877 # CONFIG_SUBDIRS section.
30879 if test "$no_recursion" != yes; then
30881 # Remove --cache-file and --srcdir arguments so they do not pile up.
30882 ac_sub_configure_args=
30884 for ac_arg in $ac_configure_args; do
30885 if test -n "$ac_prev"; then
30890 -cache-file | --cache-file | --cache-fil | --cache-fi \
30891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30892 ac_prev=cache_file ;;
30893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30897 --config-cache | -C)
30899 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30901 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30907 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
30911 # Always prepend --prefix to ensure using the same prefix
30912 # in subdir configurations.
30913 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
30916 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30918 # Do not complain, so a configure script can configure whichever
30919 # parts of a large source tree are present.
30920 test -d $srcdir/$ac_dir || continue
30922 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30923 echo "$as_me: configuring in $ac_dir" >&6;}
30924 { if $as_mkdir_p; then
30929 while test ! -d "$as_dir"; do
30930 as_dirs="$as_dir $as_dirs"
30931 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30932 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30933 X"$as_dir" : 'X\(//\)[^/]' \| \
30934 X"$as_dir" : 'X\(//\)$' \| \
30935 X"$as_dir" : 'X\(/\)' \| \
30936 . : '\(.\)' 2>/dev/null ||
30938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30940 /^X\(\/\/\)$/{ s//\1/; q; }
30941 /^X\(\/\).*/{ s//\1/; q; }
30944 test ! -n "$as_dirs" || mkdir $as_dirs
30945 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30946 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30947 { (exit 1); exit 1; }; }; }
30951 if test "$ac_dir" != .; then
30952 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30953 # A "../" for each directory in $ac_dir_suffix.
30954 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30956 ac_dir_suffix= ac_top_builddir=
30960 .) # No --srcdir option. We are building in place.
30962 if test -z "$ac_top_builddir"; then
30965 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30967 [\\/]* | ?:[\\/]* ) # Absolute path.
30968 ac_srcdir=$srcdir$ac_dir_suffix;
30969 ac_top_srcdir=$srcdir ;;
30970 *) # Relative path.
30971 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30972 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30975 # Do not use `cd foo && pwd` to compute absolute paths, because
30976 # the directories may not exist.
30978 .) ac_abs_builddir="$ac_dir";;
30981 .) ac_abs_builddir=`pwd`;;
30982 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30983 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30986 case $ac_abs_builddir in
30987 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30989 case ${ac_top_builddir}. in
30990 .) ac_abs_top_builddir=$ac_abs_builddir;;
30991 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30992 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30995 case $ac_abs_builddir in
30996 .) ac_abs_srcdir=$ac_srcdir;;
30999 .) ac_abs_srcdir=$ac_abs_builddir;;
31000 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31001 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31004 case $ac_abs_builddir in
31005 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31007 case $ac_top_srcdir in
31008 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31009 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31010 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31017 # Check for guested configure; otherwise get Cygnus style configure.
31018 if test -f $ac_srcdir/configure.gnu; then
31019 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31020 elif test -f $ac_srcdir/configure; then
31021 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31022 elif test -f $ac_srcdir/configure.in; then
31023 ac_sub_configure=$ac_configure
31025 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31026 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31030 # The recursion is here.
31031 if test -n "$ac_sub_configure"; then
31032 # Make the cache file name correct relative to the subdirectory.
31033 case $cache_file in
31034 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31035 *) # Relative path.
31036 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31039 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31040 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31041 # The eval makes quoting arguments work.
31042 eval $ac_sub_configure $ac_sub_configure_args \
31043 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31044 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31045 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31046 { (exit 1); exit 1; }; }