2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
305 # So, first we look for a working echo in the user's PATH.
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
358 # maybe with a smaller string...
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 # Oops. We lost completely, so just stick with echo.
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
409 SHELL=${CONFIG_SHELL-/bin/sh}
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete. It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
416 # Identity of this package.
423 ac_unique_file="gcj_mlc.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
428 # include <sys/types.h>
431 # include <sys/stat.h>
442 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <strings.h>
451 # include <inttypes.h>
461 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 multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CFLAGS CXXFLAGS CCAS CCASFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GC_CFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS LDFLAGS CXXCPP THREADLIBS POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE extra_ldflags_libgc EXTRA_TEST_LIBS target_all CPLUSPLUS_TRUE CPLUSPLUS_FALSE AM_CPPFLAGS addobjs addincludes addlibs addtests MY_CFLAGS toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
465 # Initialize some variables set by options.
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
477 program_transform_name=s,x,x,
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
580 -help | --help | --hel | --he | -h)
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631 # Obsolete; use --without-fp.
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
710 -site=* | --site=* | --sit=*)
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 -version | --version | --versio | --versi | --vers | -V)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
759 # Obsolete; use --with-x.
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
872 if test ! -r $srcdir/$ac_unique_file; then
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
929 # Report the --help message.
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
935 \`configure' configures this package to adapt to many kinds of systems.
937 Usage: $0 [OPTION]... [VAR=VALUE]...
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
942 Defaults for the options are specified in brackets.
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
969 For better control, use the options below.
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 --target=TARGET configure for building compilers for TARGET [HOST]
1000 if test -n "$ac_init_help"; then
1005 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1006 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1007 --enable-multilib build many library versions (default)
1008 --disable-dependency-tracking speeds up one-time build
1009 --enable-dependency-tracking do not reject slow dependency extractors
1010 --enable-maintainer-mode enable make rules and dependencies not useful
1011 (and sometimes confusing) to the casual installer
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
1018 --disable-libtool-lock avoid locking (might break parallel builds)
1019 --enable-parallel-mark parallelize marking and free list construction
1020 --enable-gc-debug include full support for pointer backtracing etc.
1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1025 --with-pic try to use only PIC/non-PIC objects [default=use
1027 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1028 --with-target-subdir=SUBDIR
1029 configuring with a cross compiler
1030 --with-cross-host=HOST configuring with a cross compiler
1031 --with-ecos enable runtime eCos target support
1033 Some influential environment variables:
1034 CC C compiler command
1035 CFLAGS C compiler flags
1036 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037 nonstandard directory <lib dir>
1038 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039 headers in a nonstandard directory <include dir>
1040 CXX C++ compiler command
1041 CXXFLAGS C++ compiler flags
1043 CXXCPP C++ preprocessor
1045 Use these variables to override the choices made by `configure' or to help
1046 it to find libraries and programs with nonstandard names/locations.
1051 if test "$ac_init_help" = "recursive"; then
1052 # If there are subdirs, report their specific --help.
1054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1055 test -d $ac_dir || continue
1058 if test "$ac_dir" != .; then
1059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1060 # A "../" for each directory in $ac_dir_suffix.
1061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1063 ac_dir_suffix= ac_top_builddir=
1067 .) # No --srcdir option. We are building in place.
1069 if test -z "$ac_top_builddir"; then
1072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1074 [\\/]* | ?:[\\/]* ) # Absolute path.
1075 ac_srcdir=$srcdir$ac_dir_suffix;
1076 ac_top_srcdir=$srcdir ;;
1078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1082 # Do not use `cd foo && pwd` to compute absolute paths, because
1083 # the directories may not exist.
1085 .) ac_abs_builddir="$ac_dir";;
1088 .) ac_abs_builddir=`pwd`;;
1089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1093 case $ac_abs_builddir in
1094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1096 case ${ac_top_builddir}. in
1097 .) ac_abs_top_builddir=$ac_abs_builddir;;
1098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1102 case $ac_abs_builddir in
1103 .) ac_abs_srcdir=$ac_srcdir;;
1106 .) ac_abs_srcdir=$ac_abs_builddir;;
1107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1111 case $ac_abs_builddir in
1112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1114 case $ac_top_srcdir in
1115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1122 # Check for guested configure; otherwise get Cygnus style configure.
1123 if test -f $ac_srcdir/configure.gnu; then
1125 $SHELL $ac_srcdir/configure.gnu --help=recursive
1126 elif test -f $ac_srcdir/configure; then
1128 $SHELL $ac_srcdir/configure --help=recursive
1129 elif test -f $ac_srcdir/configure.ac ||
1130 test -f $ac_srcdir/configure.in; then
1132 $ac_configure --help
1134 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1140 test -n "$ac_init_help" && exit 0
1141 if $ac_init_version; then
1144 Copyright (C) 2003 Free Software Foundation, Inc.
1145 This configure script is free software; the Free Software Foundation
1146 gives unlimited permission to copy, distribute and modify it.
1152 This file contains any messages produced by compilers while
1153 running configure, to aid debugging if configure makes a mistake.
1155 It was created by $as_me, which was
1156 generated by GNU Autoconf 2.59. Invocation command line was
1167 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1168 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1169 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1170 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1171 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1173 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1174 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1176 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1177 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1178 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1179 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1180 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1181 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1182 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1190 test -z "$as_dir" && as_dir=.
1191 echo "PATH: $as_dir"
1206 # Keep a trace of the command line.
1207 # Strip out --no-create and --no-recursion so they do not pile up.
1208 # Strip out --silent because we don't want to record it for future runs.
1209 # Also quote any args containing shell meta-characters.
1210 # Make two passes to allow for proper duplicate-argument suppression.
1215 ac_must_keep_next=false
1221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1229 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1231 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1232 if test $ac_must_keep_next = true; then
1233 ac_must_keep_next=false # Got value, back to normal.
1236 *=* | --config-cache | -C | -disable-* | --disable-* \
1237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1239 | -with-* | --with-* | -without-* | --without-* | --x)
1240 case "$ac_configure_args0 " in
1241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1244 -* ) ac_must_keep_next=true ;;
1247 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1248 # Get rid of the leading space.
1254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1257 # When interrupted or exit'd, cleanup temporary files, and complete
1258 # config.log. We remove comments because anyway the quotes in there
1259 # would cause problems or look ugly.
1260 # WARNING: Be sure not to use single quotes in there, as some shells,
1261 # such as our DU 5.0 friend, will then `close' the trap.
1262 trap 'exit_status=$?
1263 # Save into config.log some information that might help in debugging.
1268 ## ---------------- ##
1269 ## Cache variables. ##
1270 ## ---------------- ##
1273 # The following way of writing the cache mishandles newlines in values,
1276 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1279 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1291 ## ----------------- ##
1292 ## Output variables. ##
1293 ## ----------------- ##
1296 for ac_var in $ac_subst_vars
1298 eval ac_val=$`echo $ac_var`
1299 echo "$ac_var='"'"'$ac_val'"'"'"
1303 if test -n "$ac_subst_files"; then
1310 for ac_var in $ac_subst_files
1312 eval ac_val=$`echo $ac_var`
1313 echo "$ac_var='"'"'$ac_val'"'"'"
1318 if test -s confdefs.h; then
1325 sed "/^$/d" confdefs.h | sort
1328 test "$ac_signal" != 0 &&
1329 echo "$as_me: caught signal $ac_signal"
1330 echo "$as_me: exit $exit_status"
1332 rm -f core *.core &&
1333 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1336 for ac_signal in 1 2 13 15; do
1337 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1342 rm -rf conftest* confdefs.h
1343 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1346 # Predefined preprocessor variables.
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_NAME "$PACKAGE_NAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_STRING "$PACKAGE_STRING"
1368 cat >>confdefs.h <<_ACEOF
1369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1373 # Let the site file select an alternate cache file if it wants to.
1374 # Prefer explicitly selected file to automatically selected ones.
1375 if test -z "$CONFIG_SITE"; then
1376 if test "x$prefix" != xNONE; then
1377 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1379 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1382 for ac_site_file in $CONFIG_SITE; do
1383 if test -r "$ac_site_file"; then
1384 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1385 echo "$as_me: loading site script $ac_site_file" >&6;}
1386 sed 's/^/| /' "$ac_site_file" >&5
1391 if test -r "$cache_file"; then
1392 # Some versions of bash will fail to source /dev/null (special
1393 # files actually), so we avoid doing that.
1394 if test -f "$cache_file"; then
1395 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1396 echo "$as_me: loading cache $cache_file" >&6;}
1398 [\\/]* | ?:[\\/]* ) . $cache_file;;
1399 *) . ./$cache_file;;
1403 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1404 echo "$as_me: creating cache $cache_file" >&6;}
1408 # Check that the precious variables saved in the cache have kept the same
1410 ac_cache_corrupted=false
1411 for ac_var in `(set) 2>&1 |
1412 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1413 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1414 eval ac_new_set=\$ac_env_${ac_var}_set
1415 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1416 eval ac_new_val="\$ac_env_${ac_var}_value"
1417 case $ac_old_set,$ac_new_set in
1419 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1420 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1421 ac_cache_corrupted=: ;;
1423 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1424 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1425 ac_cache_corrupted=: ;;
1428 if test "x$ac_old_val" != "x$ac_new_val"; then
1429 # differences in whitespace do not lead to failure.
1430 ac_old_val_w=`echo x $ac_old_val`
1431 ac_new_val_w=`echo x $ac_new_val`
1432 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1433 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1434 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1435 ac_cache_corrupted=:
1437 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1438 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1439 eval $ac_var=\$ac_old_val
1441 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1442 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1443 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1444 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1447 # Pass precious variables to config.status.
1448 if test "$ac_new_set" = set; then
1450 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1451 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1452 *) ac_arg=$ac_var=$ac_new_val ;;
1454 case " $ac_configure_args " in
1455 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1456 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1460 if $ac_cache_corrupted; then
1461 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1462 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1463 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1464 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1465 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1466 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1467 { (exit 1); exit 1; }; }
1471 ac_cpp='$CPP $CPPFLAGS'
1472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498 # This works around the fact that libtool configuration may change LD
1499 # for this particular configuration, but some shells, instead of
1500 # keeping the changes in LD private, export them just because LD is
1502 ORIGINAL_LD_FOR_MULTILIBS=$LD
1504 # Default to --enable-multilib
1505 # Check whether --enable-multilib or --disable-multilib was given.
1506 if test "${enable_multilib+set}" = set; then
1507 enableval="$enable_multilib"
1508 case "$enableval" in
1509 yes) multilib=yes ;;
1511 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1512 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1513 { (exit 1); exit 1; }; } ;;
1519 # We may get other options which we leave undocumented:
1520 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1521 # See config-ml.in if you want the gory details.
1523 if test "$srcdir" = "."; then
1524 if test "$with_target_subdir" != "."; then
1525 multi_basedir="$srcdir/$with_multisrctop../.."
1527 multi_basedir="$srcdir/$with_multisrctop.."
1530 multi_basedir="$srcdir/.."
1534 # Even if the default multilib is not a cross compilation,
1535 # it may be that some of the other multilibs are.
1536 if test $cross_compiling = no && test $multilib = yes \
1537 && test "x${with_multisubdir}" != x ; then
1538 cross_compiling=maybe
1541 ac_config_commands="$ac_config_commands default-1"
1545 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if test -f $ac_dir/install-sh; then
1548 ac_install_sh="$ac_aux_dir/install-sh -c"
1550 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1554 elif test -f $ac_dir/shtool; then
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1565 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1569 # Make sure we can run config.sub.
1570 $ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1575 echo "$as_me:$LINENO: checking build system type" >&5
1576 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577 if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 ac_cv_build_alias=$build_alias
1581 test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583 test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594 echo "${ECHO_T}$ac_cv_build" >&6
1596 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking host system type" >&5
1602 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603 if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_host_alias=$host_alias
1607 test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616 echo "${ECHO_T}$ac_cv_host" >&6
1618 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 echo "$as_me:$LINENO: checking target system type" >&5
1624 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625 if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 ac_cv_target_alias=$target_alias
1629 test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1637 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638 echo "${ECHO_T}$ac_cv_target" >&6
1639 target=$ac_cv_target
1640 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645 # The aliases save the names the user supplied, while $host etc.
1646 # will get canonicalized.
1647 test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1650 program_prefix=${target_alias}-
1652 # Get the 'noncanonical' system names.
1653 case ${build_alias} in
1654 "") build_noncanonical=${build} ;;
1655 *) build_noncanonical=${build_alias} ;;
1658 case ${host_alias} in
1659 "") host_noncanonical=${build_noncanonical} ;;
1660 *) host_noncanonical=${host_alias} ;;
1663 case ${target_alias} in
1664 "") target_noncanonical=${host_noncanonical} ;;
1665 *) target_noncanonical=${target_alias} ;;
1671 # This works around an automake problem.
1672 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1675 am__api_version="1.9"
1676 # Find a good install program. We prefer a C program (faster),
1677 # so one script is as good as another. But avoid the broken or
1678 # incompatible versions:
1679 # SysV /etc/install, /usr/sbin/install
1680 # SunOS /usr/etc/install
1681 # IRIX /sbin/install
1683 # AmigaOS /C/install, which installs bootblocks on floppy discs
1684 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1685 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1686 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1687 # OS/2's system install, which has a completely different semantic
1688 # ./install, which can be erroneously created by make from ./install.sh.
1689 # Reject install programs that cannot install multiple files.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 # Account for people who put trailing slashes in PATH elements.
1703 ./ | .// | /cC/* | \
1704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1708 # OSF1 and SCO ODT 3.0 have their own names for install.
1709 # Don't use installbsd from OSF since it installs stuff as root
1711 for ac_prog in ginstall scoinst install; do
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714 if test $ac_prog = install &&
1715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1718 elif test $ac_prog = install &&
1719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720 # program-specific install script used by HP pwplus--don't use.
1723 rm -rf conftest.one conftest.two conftest.dir
1724 echo one > conftest.one
1725 echo two > conftest.two
1727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1728 test -s conftest.one && test -s conftest.two &&
1729 test -s conftest.dir/conftest.one &&
1730 test -s conftest.dir/conftest.two
1732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1743 rm -rf conftest.one conftest.two conftest.dir
1746 if test "${ac_cv_path_install+set}" = set; then
1747 INSTALL=$ac_cv_path_install
1749 # As a last resort, use the slow shell script. Don't cache a
1750 # value for INSTALL within a source directory, because that will
1751 # break other packages using the cache if that directory is
1752 # removed, or if the value is a relative name.
1753 INSTALL=$ac_install_sh
1756 echo "$as_me:$LINENO: result: $INSTALL" >&5
1757 echo "${ECHO_T}$INSTALL" >&6
1759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1760 # It thinks the first close brace ends the variable substitution.
1761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1768 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1771 echo timestamp > conftest.file
1772 # Do `set' in a subshell so we don't clobber the current shell's
1773 # arguments. Must try -L first in case configure is actually a
1774 # symlink; some systems play weird games with the mod time of symlinks
1775 # (eg FreeBSD returns the mod time of the symlink's containing
1778 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1779 if test "$*" = "X"; then
1781 set X `ls -t $srcdir/configure conftest.file`
1784 if test "$*" != "X $srcdir/configure conftest.file" \
1785 && test "$*" != "X conftest.file $srcdir/configure"; then
1787 # If neither matched, then we have a broken ls. This can happen
1788 # if, for instance, CONFIG_SHELL is bash and it inherits a
1789 # broken ls alias from the environment. This has actually
1790 # happened. Such a system could not be considered "sane".
1791 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1792 alias in your environment" >&5
1793 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1794 alias in your environment" >&2;}
1795 { (exit 1); exit 1; }; }
1798 test "$2" = conftest.file
1804 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1805 Check your system clock" >&5
1806 echo "$as_me: error: newly created file is older than distributed files!
1807 Check your system clock" >&2;}
1808 { (exit 1); exit 1; }; }
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812 test "$program_prefix" != NONE &&
1813 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1814 # Use a double $ so make ignores it.
1815 test "$program_suffix" != NONE &&
1816 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1817 # Double any \ or $. echo might interpret backslashes.
1818 # By default was `s,x,x', remove it if useless.
1819 cat <<\_ACEOF >conftest.sed
1820 s/[\\$]/&&/g;s/;s,x,x,$//
1822 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1825 # expand $ac_aux_dir to an absolute path
1826 am_aux_dir=`cd $ac_aux_dir && pwd`
1828 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1829 # Use eval to expand $SHELL
1830 if eval "$MISSING --run true"; then
1831 am_missing_run="$MISSING --run "
1834 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1835 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1838 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1839 # We used to keeping the `.' as first argument, in order to
1840 # allow $(mkdir_p) to be used without argument. As in
1841 # $(mkdir_p) $(somedir)
1842 # where $(somedir) is conditionally defined. However this is wrong
1844 # 1. if the package is installed by a user who cannot write `.'
1845 # make install will fail,
1846 # 2. the above comment should most certainly read
1847 # $(mkdir_p) $(DESTDIR)$(somedir)
1848 # so it does not work when $(somedir) is undefined and
1849 # $(DESTDIR) is not.
1850 # To support the latter case, we have to write
1851 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1852 # so the `.' trick is pointless.
1853 mkdir_p='mkdir -p --'
1855 # On NextStep and OpenStep, the `mkdir' command does not
1856 # recognize any option. It will interpret all options as
1857 # directories to create, and then abort because `.' already
1859 for d in ./-p ./--version;
1861 test -d $d && rmdir $d
1863 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1864 if test -f "$ac_aux_dir/mkinstalldirs"; then
1865 mkdir_p='$(mkinstalldirs)'
1867 mkdir_p='$(install_sh) -d'
1871 for ac_prog in gawk mawk nawk awk
1873 # Extract the first word of "$ac_prog", so it can be a program name with args.
1874 set dummy $ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_AWK+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$AWK"; then
1881 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_AWK="$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 if test -n "$AWK"; then
1901 echo "$as_me:$LINENO: result: $AWK" >&5
1902 echo "${ECHO_T}$AWK" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$AWK" && break
1911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.make <<\_ACEOF
1919 @echo 'ac_maketemp="$(MAKE)"'
1921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1923 if test -n "$ac_maketemp"; then
1924 eval ac_cv_prog_make_${ac_make}_set=yes
1926 eval ac_cv_prog_make_${ac_make}_set=no
1930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1931 echo "$as_me:$LINENO: result: yes" >&5
1932 echo "${ECHO_T}yes" >&6
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1937 SET_MAKE="MAKE=${MAKE-make}"
1940 rm -rf .tst 2>/dev/null
1941 mkdir .tst 2>/dev/null
1942 if test -d .tst; then
1947 rmdir .tst 2>/dev/null
1949 # test to see if srcdir already configured
1950 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1951 test -f $srcdir/config.status; then
1952 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1953 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1954 { (exit 1); exit 1; }; }
1957 # test whether we have cygpath
1958 if test -z "$CYGPATH_W"; then
1959 if (cygpath --version) >/dev/null 2>/dev/null; then
1960 CYGPATH_W='cygpath -w'
1967 # Define the identity of the package.
1972 # Some tools Automake needs.
1974 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1977 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1980 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1983 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1986 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1988 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1990 # Installed binaries are usually stripped using `strip' when the user
1991 # run `make install-strip'. However `strip' might not be the right
1992 # tool to use in cross-compilation environments, therefore Automake
1993 # will honor the `STRIP' environment variable to overrule this program.
1994 if test "$cross_compiling" != no; then
1995 if test -n "$ac_tool_prefix"; then
1996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1997 set dummy ${ac_tool_prefix}strip; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_STRIP+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$STRIP"; then
2004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 STRIP=$ac_cv_prog_STRIP
2023 if test -n "$STRIP"; then
2024 echo "$as_me:$LINENO: result: $STRIP" >&5
2025 echo "${ECHO_T}$STRIP" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2032 if test -z "$ac_cv_prog_STRIP"; then
2034 # Extract the first word of "strip", so it can be a program name with args.
2035 set dummy strip; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$ac_ct_STRIP"; then
2042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051 ac_cv_prog_ac_ct_STRIP="strip"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2062 if test -n "$ac_ct_STRIP"; then
2063 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2064 echo "${ECHO_T}$ac_ct_STRIP" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2072 STRIP="$ac_cv_prog_STRIP"
2076 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2078 # We need awk for the "check" target. The system "awk" is bad on
2080 # Always define AMTAR for backward compatibility.
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2091 # The autoconf 2.5x version of the no-executables hack.
2094 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2095 # the wrong, non-multilib-adjusted value will be used in multilibs.
2096 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105 if test -n "$ac_tool_prefix"; then
2106 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2107 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 if test -n "$CC"; then
2114 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133 if test -n "$CC"; then
2134 echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6
2137 echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2142 if test -z "$ac_cv_prog_CC"; then
2144 # Extract the first word of "gcc", so it can be a program name with args.
2145 set dummy gcc; ac_word=$2
2146 echo "$as_me:$LINENO: checking for $ac_word" >&5
2147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 if test -n "$ac_ct_CC"; then
2152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161 ac_cv_prog_ac_ct_CC="gcc"
2162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2171 if test -n "$ac_ct_CC"; then
2172 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2173 echo "${ECHO_T}$ac_ct_CC" >&6
2175 echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2184 if test -z "$CC"; then
2185 if test -n "$ac_tool_prefix"; then
2186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test -n "$CC"; then
2194 ac_cv_prog_CC="$CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203 ac_cv_prog_CC="${ac_tool_prefix}cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 if test -n "$CC"; then
2214 echo "$as_me:$LINENO: result: $CC" >&5
2215 echo "${ECHO_T}$CC" >&6
2217 echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2222 if test -z "$ac_cv_prog_CC"; then
2224 # Extract the first word of "cc", so it can be a program name with args.
2225 set dummy cc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$ac_ct_CC"; then
2232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241 ac_cv_prog_ac_ct_CC="cc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2255 echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2265 if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285 ac_prog_rejected=yes
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295 if test $ac_prog_rejected = yes; then
2296 # We found a bogon in the path, so make sure we never use it.
2297 set dummy $ac_cv_prog_CC
2299 if test $# != 0; then
2300 # We chose a different compiler from the bogus one.
2301 # However, it has the same basename, so the bogon will be chosen
2302 # first if we set CC to just the basename; use the full file name.
2304 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2319 if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 if test -n "$CC"; then
2351 echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2354 echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2358 test -n "$CC" && break
2361 if test -z "$CC"; then
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test -n "$ac_ct_CC"; then
2373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2382 ac_cv_prog_ac_ct_CC="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6
2396 echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6
2400 test -n "$ac_ct_CC" && break
2409 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2410 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&2;}
2415 { (exit 1); exit 1; }; }; }
2417 # Provide some information about the compiler.
2418 echo "$as_me:$LINENO:" \
2419 "checking for C compiler version" >&5
2420 ac_compiler=`set X $ac_compile; echo $2`
2421 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2422 (eval $ac_compiler --version </dev/null >&5) 2>&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2427 (eval $ac_compiler -v </dev/null >&5) 2>&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }
2431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2432 (eval $ac_compiler -V </dev/null >&5) 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2463 if test x$gcc_no_link = xyes; then
2464 # Setting cross_compile will disable run tests; it will
2465 # also disable AC_CHECK_FILE but that's generally
2466 # correct if we can't link.
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2490 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2494 (eval $ac_link_default) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; then
2498 # Find the output, starting from the most likely. This scheme is
2499 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2502 # Be careful to initialize this variable, since it used to be cached.
2503 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2505 # b.out is created by i960 compilers.
2506 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2508 test -f "$ac_file" || continue
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2513 # This is the source file.
2516 # We found the default executable, but exeext='' is most
2520 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 # FIXME: I believe we export ac_cv_exeext for Libtool,
2522 # but it would be cool to find out if it's true. Does anybody
2523 # maintain Libtool? --akim.
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2534 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2535 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: C compiler cannot create executables
2539 See \`config.log' for more details." >&2;}
2540 { (exit 77); exit 77; }; }; }
2543 ac_exeext=$ac_cv_exeext
2544 echo "$as_me:$LINENO: result: $ac_file" >&5
2545 echo "${ECHO_T}$ac_file" >&6
2547 # Check the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2552 # If not cross compiling, check that we can run a simple program.
2553 if test "$cross_compiling" != yes; then
2554 if { ac_try='./$ac_file'
2555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2562 if test "$cross_compiling" = maybe; then
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2568 If you meant to cross compile, use \`--host'.
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot run C compiled programs.
2571 If you meant to cross compile, use \`--host'.
2572 See \`config.log' for more details." >&2;}
2573 { (exit 1); exit 1; }; }; }
2577 echo "$as_me:$LINENO: result: yes" >&5
2578 echo "${ECHO_T}yes" >&6
2580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2581 ac_clean_files=$ac_clean_files_save
2582 # Check the compiler produces executables we can run. If not, either
2583 # the compiler is broken, or we cross compile.
2584 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2586 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2587 echo "${ECHO_T}$cross_compiling" >&6
2589 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2592 (eval $ac_link) 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 for ac_file in conftest.exe conftest conftest.*; do
2601 test -f "$ac_file" || continue
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&5
2615 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2616 See \`config.log' for more details." >&2;}
2617 { (exit 1); exit 1; }; }; }
2620 rm -f conftest$ac_cv_exeext
2621 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2622 echo "${ECHO_T}$ac_cv_exeext" >&6
2624 rm -f conftest.$ac_ext
2625 EXEEXT=$ac_cv_exeext
2628 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2630 if test "${ac_cv_objext+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.o conftest.obj
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2657 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2665 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2666 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }; }
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6
2678 OBJEXT=$ac_cv_objext
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2736 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2738 GCC=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CFLAGS=${CFLAGS+set}
2740 ac_save_CFLAGS=$CFLAGS
2742 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cc_g+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1 >conftest.err
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2786 echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2804 if test "$GCC" = yes; then
2810 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2811 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2812 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 ac_cv_prog_cc_stdc=no
2817 cat >conftest.$ac_ext <<_ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h. */
2825 #include <sys/types.h>
2826 #include <sys/stat.h>
2827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2828 struct buf { int x; };
2829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2830 static char *e (p, i)
2836 static char *f (char * (*g) (char **, int), char **p, ...)
2841 s = g (p, va_arg (v,int));
2846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2847 function prototypes and stuff, but not '\xHH' hex character constants.
2848 These don't provoke an error unfortunately, instead are silently treated
2849 as 'x'. The following induces an error, until -std1 is added to get
2850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2851 array size at least. It's necessary to write '\x00'==0 to get something
2852 that's true only with -std1. */
2853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2855 int test (int i, double x);
2856 struct s1 {int (*f) (int a);};
2857 struct s2 {int (*f) (double a);};
2858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2869 # Don't try gcc -ansi; that turns off useful extensions and
2870 # breaks some systems' header files.
2871 # AIX -qlanglvl=ansi
2872 # Ultrix and OSF/1 -std1
2873 # HP-UX 10.20 and later -Ae
2874 # HP-UX older versions -Aa -D_HPUX_SOURCE
2875 # SVR4 -Xc -D__EXTENSIONS__
2876 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2878 CC="$ac_save_CC $ac_arg"
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag"
2889 || test ! -s conftest.err'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_prog_cc_stdc=$ac_arg
2904 echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f conftest.err conftest.$ac_objext
2910 rm -f conftest.$ac_ext conftest.$ac_objext
2915 case "x$ac_cv_prog_cc_stdc" in
2917 echo "$as_me:$LINENO: result: none needed" >&5
2918 echo "${ECHO_T}none needed" >&6 ;;
2920 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2921 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2922 CC="$CC $ac_cv_prog_cc_stdc" ;;
2925 # Some people use a C++ compiler to compile C. Since we use `exit',
2926 # in C++ we need to declare it. In case someone uses the same compiler
2927 # for both compiling C and C++ we need to have the C++ compiler decide
2928 # the declaration of exit, since it's the most demanding environment.
2929 cat >conftest.$ac_ext <<_ACEOF
2934 rm -f conftest.$ac_objext
2935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2936 (eval $ac_compile) 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
2943 { ac_try='test -z "$ac_c_werror_flag"
2944 || test ! -s conftest.err'
2945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); }; } &&
2950 { ac_try='test -s conftest.$ac_objext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 for ac_declaration in \
2958 'extern "C" void std::exit (int) throw (); using std::exit;' \
2959 'extern "C" void std::exit (int); using std::exit;' \
2960 'extern "C" void exit (int) throw ();' \
2961 'extern "C" void exit (int);' \
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2980 rm -f conftest.$ac_objext
2981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2982 (eval $ac_compile) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -z "$ac_c_werror_flag"
2990 || test ! -s conftest.err'
2991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3027 (eval $ac_compile) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -z "$ac_c_werror_flag"
3035 || test ! -s conftest.err'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 if test -n "$ac_declaration"; then
3057 echo '#ifdef __cplusplus' >>confdefs.h
3058 echo $ac_declaration >>confdefs.h
3059 echo '#endif' >>confdefs.h
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 DEPDIR="${am__leading_dot}deps"
3075 ac_config_commands="$ac_config_commands depfiles"
3078 am_make=${MAKE-make}
3079 cat > confinc << 'END'
3084 # If we don't find an include directive, just comment out the code.
3085 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3086 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3090 # First try GNU make style include.
3091 echo "include confinc" > confmf
3092 # We grep out `Entering directory' and `Leaving directory'
3093 # messages which can occur if `w' ends up in MAKEFLAGS.
3094 # In particular we don't look at `^make:' because GNU make might
3095 # be invoked under some other name (usually "gmake"), in which
3096 # case it prints its new name instead of `make'.
3097 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3102 # Now try BSD make style include.
3103 if test "$am__include" = "#"; then
3104 echo '.include "confinc"' > confmf
3105 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3106 am__include=.include
3113 echo "$as_me:$LINENO: result: $_am_result" >&5
3114 echo "${ECHO_T}$_am_result" >&6
3115 rm -f confinc confmf
3117 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3118 if test "${enable_dependency_tracking+set}" = set; then
3119 enableval="$enable_dependency_tracking"
3122 if test "x$enable_dependency_tracking" != xno; then
3123 am_depcomp="$ac_aux_dir/depcomp"
3128 if test "x$enable_dependency_tracking" != xno; then
3139 depcc="$CC" am_compiler_list=
3141 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3142 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3143 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3147 # We make a subdir and do the tests there. Otherwise we can end up
3148 # making bogus files that we don't know about and never remove. For
3149 # instance it was reported that on HP-UX the gcc test will end up
3150 # making a dummy file named `D' -- because `-MD' means `put the output
3153 # Copy depcomp to subdir because otherwise we won't find it if we're
3154 # using a relative directory.
3155 cp "$am_depcomp" conftest.dir
3157 # We will build objects and dependencies in a subdirectory because
3158 # it helps to detect inapplicable dependency modes. For instance
3159 # both Tru64's cc and ICC support -MD to output dependencies as a
3160 # side effect of compilation, but ICC will put the dependencies in
3161 # the current directory while Tru64 will put them in the object
3165 am_cv_CC_dependencies_compiler_type=none
3166 if test "$am_compiler_list" = ""; then
3167 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3169 for depmode in $am_compiler_list; do
3170 # Setup a source with many dependencies, because some compilers
3171 # like to wrap large dependency lists on column 80 (with \), and
3172 # we should not choose a depcomp mode which is confused by this.
3174 # We need to recreate these files for each test, as the compiler may
3175 # overwrite some of them when testing with obscure command lines.
3176 # This happens at least with the AIX C compiler.
3178 for i in 1 2 3 4 5 6; do
3179 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3180 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3181 # Solaris 8's {/usr,}/bin/sh.
3182 touch sub/conftst$i.h
3184 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3188 # after this tag, mechanisms are not by side-effect, so they'll
3189 # only be used when explicitly requested
3190 if test "x$enable_dependency_tracking" = xyes; then
3198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3199 # mode. It turns out that the SunPro C++ compiler does not properly
3200 # handle `-M -o', and we need to detect this.
3201 if depmode=$depmode \
3202 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3203 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3204 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3205 >/dev/null 2>conftest.err &&
3206 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3207 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3208 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3209 # icc doesn't choke on unknown options, it will just issue warnings
3210 # or remarks (even with -Werror). So we grep stderr for any message
3211 # that says an option was ignored or not supported.
3212 # When given -MP, icc 7.0 and 7.1 complain thusly:
3213 # icc: Command line warning: ignoring option '-M'; no argument required
3214 # The diagnosis changed in icc 8.0:
3215 # icc: Command line remark: option '-MP' not supported
3216 if (grep 'ignoring option' conftest.err ||
3217 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3218 am_cv_CC_dependencies_compiler_type=$depmode
3227 am_cv_CC_dependencies_compiler_type=none
3231 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3232 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3233 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3238 test "x$enable_dependency_tracking" != xno \
3239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3241 am__fastdepCC_FALSE='#'
3243 am__fastdepCC_TRUE='#'
3244 am__fastdepCC_FALSE=
3249 ac_cpp='$CXXCPP $CPPFLAGS'
3250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3257 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_CXX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 if test -n "$CXX"; then
3264 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 if test -n "$CXX"; then
3284 echo "$as_me:$LINENO: result: $CXX" >&5
3285 echo "${ECHO_T}$CXX" >&6
3287 echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3291 test -n "$CXX" && break
3294 if test -z "$CXX"; then
3296 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3298 # Extract the first word of "$ac_prog", so it can be a program name with args.
3299 set dummy $ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 if test -n "$ac_ct_CXX"; then
3306 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_ac_ct_CXX="$ac_prog"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3325 if test -n "$ac_ct_CXX"; then
3326 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3327 echo "${ECHO_T}$ac_ct_CXX" >&6
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3333 test -n "$ac_ct_CXX" && break
3335 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3341 # Provide some information about the compiler.
3342 echo "$as_me:$LINENO:" \
3343 "checking for C++ compiler version" >&5
3344 ac_compiler=`set X $ac_compile; echo $2`
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346 (eval $ac_compiler --version </dev/null >&5) 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }
3350 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351 (eval $ac_compiler -v </dev/null >&5) 2>&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356 (eval $ac_compiler -V </dev/null >&5) 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3361 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3362 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3363 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
3393 { ac_try='test -z "$ac_cxx_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3417 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3419 GXX=`test $ac_compiler_gnu = yes && echo yes`
3420 ac_test_CXXFLAGS=${CXXFLAGS+set}
3421 ac_save_CXXFLAGS=$CXXFLAGS
3423 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3424 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3425 if test "${ac_cv_prog_cxx_g+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_prog_cxx_g=yes
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3474 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3475 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3476 if test "$ac_test_CXXFLAGS" = set; then
3477 CXXFLAGS=$ac_save_CXXFLAGS
3478 elif test $ac_cv_prog_cxx_g = yes; then
3479 if test "$GXX" = yes; then
3485 if test "$GXX" = yes; then
3491 for ac_declaration in \
3493 'extern "C" void std::exit (int) throw (); using std::exit;' \
3494 'extern "C" void std::exit (int); using std::exit;' \
3495 'extern "C" void exit (int) throw ();' \
3496 'extern "C" void exit (int);' \
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag"
3525 || test ! -s conftest.err'
3526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); }; } &&
3531 { ac_try='test -s conftest.$ac_objext'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; }; then
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try='test -z "$ac_cxx_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3591 if test -n "$ac_declaration"; then
3592 echo '#ifdef __cplusplus' >>confdefs.h
3593 echo $ac_declaration >>confdefs.h
3594 echo '#endif' >>confdefs.h
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603 depcc="$CXX" am_compiler_list=
3605 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3606 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3607 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3611 # We make a subdir and do the tests there. Otherwise we can end up
3612 # making bogus files that we don't know about and never remove. For
3613 # instance it was reported that on HP-UX the gcc test will end up
3614 # making a dummy file named `D' -- because `-MD' means `put the output
3617 # Copy depcomp to subdir because otherwise we won't find it if we're
3618 # using a relative directory.
3619 cp "$am_depcomp" conftest.dir
3621 # We will build objects and dependencies in a subdirectory because
3622 # it helps to detect inapplicable dependency modes. For instance
3623 # both Tru64's cc and ICC support -MD to output dependencies as a
3624 # side effect of compilation, but ICC will put the dependencies in
3625 # the current directory while Tru64 will put them in the object
3629 am_cv_CXX_dependencies_compiler_type=none
3630 if test "$am_compiler_list" = ""; then
3631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3633 for depmode in $am_compiler_list; do
3634 # Setup a source with many dependencies, because some compilers
3635 # like to wrap large dependency lists on column 80 (with \), and
3636 # we should not choose a depcomp mode which is confused by this.
3638 # We need to recreate these files for each test, as the compiler may
3639 # overwrite some of them when testing with obscure command lines.
3640 # This happens at least with the AIX C compiler.
3642 for i in 1 2 3 4 5 6; do
3643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3644 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3645 # Solaris 8's {/usr,}/bin/sh.
3646 touch sub/conftst$i.h
3648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3652 # after this tag, mechanisms are not by side-effect, so they'll
3653 # only be used when explicitly requested
3654 if test "x$enable_dependency_tracking" = xyes; then
3662 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3663 # mode. It turns out that the SunPro C++ compiler does not properly
3664 # handle `-M -o', and we need to detect this.
3665 if depmode=$depmode \
3666 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3668 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3669 >/dev/null 2>conftest.err &&
3670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673 # icc doesn't choke on unknown options, it will just issue warnings
3674 # or remarks (even with -Werror). So we grep stderr for any message
3675 # that says an option was ignored or not supported.
3676 # When given -MP, icc 7.0 and 7.1 complain thusly:
3677 # icc: Command line warning: ignoring option '-M'; no argument required
3678 # The diagnosis changed in icc 8.0:
3679 # icc: Command line remark: option '-MP' not supported
3680 if (grep 'ignoring option' conftest.err ||
3681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682 am_cv_CXX_dependencies_compiler_type=$depmode
3691 am_cv_CXX_dependencies_compiler_type=none
3695 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3696 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3697 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCXX_TRUE=
3705 am__fastdepCXX_FALSE='#'
3707 am__fastdepCXX_TRUE='#'
3708 am__fastdepCXX_FALSE=
3714 if test "x$CC" != xcc; then
3715 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3716 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3718 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3719 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3721 set dummy $CC; ac_cc=`echo $2 |
3722 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3723 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 # Make sure it works both with $CC and with simple cc.
3742 # We do the test twice because some compilers refuse to overwrite an
3743 # existing .o file with -o, though they will create one.
3744 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3745 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); };
3756 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3757 if test "x$CC" != xcc; then
3758 # Test first that cc exists at all.
3759 if { ac_try='cc -c conftest.$ac_ext >&5'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3766 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); };
3780 # cc exists but doesn't like -o.
3781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3791 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793 echo "${ECHO_T}yes" >&6
3795 echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3798 cat >>confdefs.h <<\_ACEOF
3799 #define NO_MINUS_C_MINUS_O 1
3804 # FIXME: we rely on the cache variable name because
3805 # there is no other way.
3807 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3809 # Losing compiler, so override with the script.
3810 # FIXME: It is wrong to rewrite CC.
3811 # But if we don't then we get into trouble of one sort or another.
3812 # A longer-term fix would be to have automake use am__CC in this case,
3813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3814 CC="$am_aux_dir/compile $CC"
3821 # Newer automakes demand CCAS and CCASFLAGS.
3823 : ${CCASFLAGS='$(CFLAGS)'}
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3829 set dummy ${ac_tool_prefix}as; ac_word=$2
3830 echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3832 if test "${ac_cv_prog_AS+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 if test -n "$AS"; then
3836 ac_cv_prog_AS="$AS" # Let the user override the test.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3845 ac_cv_prog_AS="${ac_tool_prefix}as"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 if test -n "$AS"; then
3856 echo "$as_me:$LINENO: result: $AS" >&5
3857 echo "${ECHO_T}$AS" >&6
3859 echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3864 if test -z "$ac_cv_prog_AS"; then
3866 # Extract the first word of "as", so it can be a program name with args.
3867 set dummy as; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3871 echo $ECHO_N "(cached) $ECHO_C" >&6
3873 if test -n "$ac_ct_AS"; then
3874 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_AS="as"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3893 if test -n "$ac_ct_AS"; then
3894 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3895 echo "${ECHO_T}$ac_ct_AS" >&6
3897 echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3906 if test -n "$ac_tool_prefix"; then
3907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_AR="${ac_tool_prefix}ar"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3943 if test -z "$ac_cv_prog_AR"; then
3945 # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 if test -n "$ac_ct_AR"; then
3953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_AR="ar"
3963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3972 if test -n "$ac_ct_AR"; then
3973 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3974 echo "${ECHO_T}$ac_ct_AR" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3987 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3988 echo "$as_me:$LINENO: checking for $ac_word" >&5
3989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3990 if test "${ac_cv_prog_RANLIB+set}" = set; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 if test -n "$RANLIB"; then
3994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 RANLIB=$ac_cv_prog_RANLIB
4013 if test -n "$RANLIB"; then
4014 echo "$as_me:$LINENO: result: $RANLIB" >&5
4015 echo "${ECHO_T}$RANLIB" >&6
4017 echo "$as_me:$LINENO: result: no" >&5
4018 echo "${ECHO_T}no" >&6
4022 if test -z "$ac_cv_prog_RANLIB"; then
4023 ac_ct_RANLIB=$RANLIB
4024 # Extract the first word of "ranlib", so it can be a program name with args.
4025 set dummy ranlib; ac_word=$2
4026 echo "$as_me:$LINENO: checking for $ac_word" >&5
4027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4028 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 if test -n "$ac_ct_RANLIB"; then
4032 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_RANLIB="ranlib"
4042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4051 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4052 if test -n "$ac_ct_RANLIB"; then
4053 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4054 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4056 echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4060 RANLIB=$ac_ct_RANLIB
4062 RANLIB="$ac_cv_prog_RANLIB"
4066 # Find a good install program. We prefer a C program (faster),
4067 # so one script is as good as another. But avoid the broken or
4068 # incompatible versions:
4069 # SysV /etc/install, /usr/sbin/install
4070 # SunOS /usr/etc/install
4071 # IRIX /sbin/install
4073 # AmigaOS /C/install, which installs bootblocks on floppy discs
4074 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4075 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4076 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4077 # OS/2's system install, which has a completely different semantic
4078 # ./install, which can be erroneously created by make from ./install.sh.
4079 # Reject install programs that cannot install multiple files.
4080 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4081 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4082 if test -z "$INSTALL"; then
4083 if test "${ac_cv_path_install+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090 test -z "$as_dir" && as_dir=.
4091 # Account for people who put trailing slashes in PATH elements.
4093 ./ | .// | /cC/* | \
4094 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4095 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4098 # OSF1 and SCO ODT 3.0 have their own names for install.
4099 # Don't use installbsd from OSF since it installs stuff as root
4101 for ac_prog in ginstall scoinst install; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4104 if test $ac_prog = install &&
4105 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4106 # AIX install. It has an incompatible calling convention.
4108 elif test $ac_prog = install &&
4109 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110 # program-specific install script used by HP pwplus--don't use.
4113 rm -rf conftest.one conftest.two conftest.dir
4114 echo one > conftest.one
4115 echo two > conftest.two
4117 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4118 test -s conftest.one && test -s conftest.two &&
4119 test -s conftest.dir/conftest.one &&
4120 test -s conftest.dir/conftest.two
4122 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4133 rm -rf conftest.one conftest.two conftest.dir
4136 if test "${ac_cv_path_install+set}" = set; then
4137 INSTALL=$ac_cv_path_install
4139 # As a last resort, use the slow shell script. Don't cache a
4140 # value for INSTALL within a source directory, because that will
4141 # break other packages using the cache if that directory is
4142 # removed, or if the value is a relative name.
4143 INSTALL=$ac_install_sh
4146 echo "$as_me:$LINENO: result: $INSTALL" >&5
4147 echo "${ECHO_T}$INSTALL" >&6
4149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4150 # It thinks the first close brace ends the variable substitution.
4151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4158 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4159 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4160 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4161 if test "${enable_maintainer_mode+set}" = set; then
4162 enableval="$enable_maintainer_mode"
4163 USE_MAINTAINER_MODE=$enableval
4165 USE_MAINTAINER_MODE=no
4167 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4168 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4171 if test $USE_MAINTAINER_MODE = yes; then
4172 MAINTAINER_MODE_TRUE=
4173 MAINTAINER_MODE_FALSE='#'
4175 MAINTAINER_MODE_TRUE='#'
4176 MAINTAINER_MODE_FALSE=
4179 MAINT=$MAINTAINER_MODE_TRUE
4183 . ${srcdir}/configure.host
4185 case ${gc_basedir} in
4186 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4187 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4190 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4193 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4199 gc_cflags="${gc_cflags} -DGC_BUILD=1"
4204 GC_CFLAGS=${gc_cflags}
4209 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4210 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4215 macro_version='2.2.6'
4216 macro_revision='1.3012'
4230 ltmain="$ac_aux_dir/ltmain.sh"
4232 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4233 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4234 if test "${lt_cv_path_SED+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 # Loop through the user's path and test for sed and gsed.
4238 # Then use that list of sed's as ones to test for truncation.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for lt_ac_prog in sed gsed; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4247 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4255 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4256 # along with /bin/sed that truncates output.
4257 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4258 test ! -f $lt_ac_sed && continue
4259 cat /dev/null > conftest.in
4261 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4262 # Check for GNU sed and select it if it is found.
4263 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4264 lt_cv_path_SED=$lt_ac_sed
4268 cat conftest.in conftest.in >conftest.tmp
4269 mv conftest.tmp conftest.in
4270 cp conftest.in conftest.nl
4272 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4273 cmp -s conftest.out conftest.nl || break
4274 # 10000 chars as input seems more than enough
4275 test $lt_ac_count -gt 10 && break
4276 lt_ac_count=`expr $lt_ac_count + 1`
4277 if test $lt_ac_count -gt $lt_ac_max; then
4278 lt_ac_max=$lt_ac_count
4279 lt_cv_path_SED=$lt_ac_sed
4288 echo "$as_me:$LINENO: result: $SED" >&5
4289 echo "${ECHO_T}$SED" >&6
4291 test -z "$SED" && SED=sed
4292 Xsed="$SED -e 1s/^X//"
4304 echo "$as_me:$LINENO: checking for egrep" >&5
4305 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4306 if test "${ac_cv_prog_egrep+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4310 then ac_cv_prog_egrep='grep -E'
4311 else ac_cv_prog_egrep='egrep'
4314 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4315 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4316 EGREP=$ac_cv_prog_egrep
4319 echo "$as_me:$LINENO: checking for fgrep" >&5
4320 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4321 if test "${ac_cv_prog_fgrep+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4325 then ac_cv_prog_fgrep='grep -F'
4326 else ac_cv_prog_fgrep='fgrep'
4329 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4330 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4331 FGREP=$ac_cv_prog_fgrep
4334 test -z "$GREP" && GREP=grep
4354 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4355 if test "${with_gnu_ld+set}" = set; then
4356 withval="$with_gnu_ld"
4357 test "$withval" = no || with_gnu_ld=yes
4362 if test "$GCC" = yes; then
4363 # Check if gcc -print-prog-name=ld gives a path.
4364 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4365 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4368 # gcc leaves a trailing carriage return which upsets mingw
4369 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4371 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4374 # Accept absolute paths.
4376 re_direlt='/[^/][^/]*/\.\./'
4377 # Canonicalize the pathname of ld
4378 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4379 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4380 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4382 test -z "$LD" && LD="$ac_prog"
4385 # If it fails, then pretend we aren't using GCC.
4389 # If it is relative, then search for the first ld in PATH.
4393 elif test "$with_gnu_ld" = yes; then
4394 echo "$as_me:$LINENO: checking for GNU ld" >&5
4395 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4397 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4398 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4400 if test "${lt_cv_path_LD+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -z "$LD"; then
4404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4405 for ac_dir in $PATH; do
4407 test -z "$ac_dir" && ac_dir=.
4408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4409 lt_cv_path_LD="$ac_dir/$ac_prog"
4410 # Check to see if the program is GNU ld. I'd rather use --version,
4411 # but apparently some variants of GNU ld only accept -v.
4412 # Break only if it was the GNU/non-GNU ld that we prefer.
4413 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4414 *GNU* | *'with BFD'*)
4415 test "$with_gnu_ld" != no && break
4418 test "$with_gnu_ld" != yes && break
4425 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4430 if test -n "$LD"; then
4431 echo "$as_me:$LINENO: result: $LD" >&5
4432 echo "${ECHO_T}$LD" >&6
4434 echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6
4437 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4438 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4439 { (exit 1); exit 1; }; }
4440 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4441 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4442 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4446 case `$LD -v 2>&1 </dev/null` in
4447 *GNU* | *'with BFD'*)
4448 lt_cv_prog_gnu_ld=yes
4451 lt_cv_prog_gnu_ld=no
4455 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4456 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4457 with_gnu_ld=$lt_cv_prog_gnu_ld
4467 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4468 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4469 if test "${lt_cv_path_NM+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 if test -n "$NM"; then
4473 # Let the user override the test.
4476 lt_nm_to_check="${ac_tool_prefix}nm"
4477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4478 lt_nm_to_check="$lt_nm_to_check nm"
4480 for lt_tmp_nm in $lt_nm_to_check; do
4481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4484 test -z "$ac_dir" && ac_dir=.
4485 tmp_nm="$ac_dir/$lt_tmp_nm"
4486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4487 # Check to see if the nm accepts a BSD-compat flag.
4488 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4489 # nm: unknown option "B" ignored
4490 # Tru64's nm complains that /dev/null is an invalid object file
4491 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4492 */dev/null* | *'Invalid file or object type'*)
4493 lt_cv_path_NM="$tmp_nm -B"
4497 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4499 lt_cv_path_NM="$tmp_nm -p"
4503 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4504 continue # so that we can try to find one that supports BSD flags
4513 : ${lt_cv_path_NM=no}
4516 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4517 echo "${ECHO_T}$lt_cv_path_NM" >&6
4518 if test "$lt_cv_path_NM" != "no"; then
4521 # Didn't find any BSD compatible name lister, look for dumpbin.
4522 if test -n "$ac_tool_prefix"; then
4523 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4525 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4527 echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4529 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 if test -n "$DUMPBIN"; then
4533 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 DUMPBIN=$ac_cv_prog_DUMPBIN
4552 if test -n "$DUMPBIN"; then
4553 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4554 echo "${ECHO_T}$DUMPBIN" >&6
4556 echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6
4560 test -n "$DUMPBIN" && break
4563 if test -z "$DUMPBIN"; then
4564 ac_ct_DUMPBIN=$DUMPBIN
4565 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4567 # Extract the first word of "$ac_prog", so it can be a program name with args.
4568 set dummy $ac_prog; ac_word=$2
4569 echo "$as_me:$LINENO: checking for $ac_word" >&5
4570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4571 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 if test -n "$ac_ct_DUMPBIN"; then
4575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 test -z "$as_dir" && as_dir=.
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4594 if test -n "$ac_ct_DUMPBIN"; then
4595 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4596 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 test -n "$ac_ct_DUMPBIN" && break
4604 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4606 DUMPBIN=$ac_ct_DUMPBIN
4610 if test "$DUMPBIN" != ":"; then
4614 test -z "$NM" && NM=nm
4621 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4622 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4623 if test "${lt_cv_nm_interface+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 lt_cv_nm_interface="BSD nm"
4627 echo "int some_variable = 0;" > conftest.$ac_ext
4628 (eval echo "\"\$as_me:4628: $ac_compile\"" >&5)
4629 (eval "$ac_compile" 2>conftest.err)
4630 cat conftest.err >&5
4631 (eval echo "\"\$as_me:4631: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4632 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4633 cat conftest.err >&5
4634 (eval echo "\"\$as_me:4634: output\"" >&5)
4635 cat conftest.out >&5
4636 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4637 lt_cv_nm_interface="MS dumpbin"
4641 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4642 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4644 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4645 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4647 if test "$LN_S" = "ln -s"; then
4648 echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6
4651 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4652 echo "${ECHO_T}no, using $LN_S" >&6
4655 # find the maximum length of command line arguments
4656 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4657 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4658 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 # On DJGPP, this test can blow up pretty badly due to problems in libc
4667 # (any single argument exceeding 2000 bytes causes a buffer overrun
4668 # during glob expansion). Even if it were fixed, the result of this
4669 # check would be larger than it should be.
4670 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4674 # Under GNU Hurd, this test is not required because there is
4675 # no limit to the length of command line arguments.
4676 # Libtool will interpret -1 as no limit whatsoever
4677 lt_cv_sys_max_cmd_len=-1;
4680 cygwin* | mingw* | cegcc*)
4681 # On Win9x/ME, this test blows up -- it succeeds, but takes
4682 # about 5 minutes as the teststring grows exponentially.
4683 # Worse, since 9x/ME are not pre-emptively multitasking,
4684 # you end up with a "frozen" computer, even though with patience
4685 # the test eventually succeeds (with a max line length of 256k).
4686 # Instead, let's just punt: use the minimum linelength reported by
4687 # all of the supported platforms: 8192 (on NT/2K/XP).
4688 lt_cv_sys_max_cmd_len=8192;
4692 # On AmigaOS with pdksh, this test takes hours, literally.
4693 # So we just punt and use a minimum line length of 8192.
4694 lt_cv_sys_max_cmd_len=8192;
4697 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4698 # This has been around since 386BSD, at least. Likely further.
4699 if test -x /sbin/sysctl; then
4700 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4701 elif test -x /usr/sbin/sysctl; then
4702 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4704 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4706 # And add a safety zone
4707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4708 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4712 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4713 lt_cv_sys_max_cmd_len=196608
4717 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4718 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4719 # nice to cause kernel panics so lets avoid the loop below.
4720 # First set a reasonable default.
4721 lt_cv_sys_max_cmd_len=16384
4723 if test -x /sbin/sysconfig; then
4724 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4725 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4730 lt_cv_sys_max_cmd_len=102400
4732 sysv5* | sco5v6* | sysv4.2uw2*)
4733 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4734 if test -n "$kargmax"; then
4735 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4737 lt_cv_sys_max_cmd_len=32768
4741 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4742 if test -n "$lt_cv_sys_max_cmd_len"; then
4743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746 # Make teststring a little bigger before we do anything with it.
4747 # a 1K string should be a reasonable start.
4748 for i in 1 2 3 4 5 6 7 8 ; do
4749 teststring=$teststring$teststring
4751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4752 # If test is not a shell built-in, we'll probably end up computing a
4753 # maximum length that is only half of the actual maximum length, but
4755 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4756 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4757 test $i != 17 # 1/2 MB should be enough
4760 teststring=$teststring$teststring
4762 # Only check the string length outside the loop.
4763 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4765 # Add a significant safety factor because C++ compilers can tack on
4766 # massive amounts of additional arguments before passing them to the
4767 # linker. It appears as though 1/2 is a usable value.
4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4775 if test -n $lt_cv_sys_max_cmd_len ; then
4776 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4777 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4779 echo "$as_me:$LINENO: result: none" >&5
4780 echo "${ECHO_T}none" >&6
4782 max_cmd_len=$lt_cv_sys_max_cmd_len
4793 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4794 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4795 # Try some XSI features
4798 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4800 && eval 'test $(( 1 + 1 )) -eq 2 \
4801 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4803 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4804 echo "${ECHO_T}$xsi_shell" >&6
4807 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4808 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4810 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4812 && lt_shell_append=yes
4813 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4814 echo "${ECHO_T}$lt_shell_append" >&6
4817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4827 # test EBCDIC or ASCII
4828 case `echo X|tr X '\101'` in
4829 A) # ASCII based system
4830 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4831 lt_SP2NL='tr \040 \012'
4832 lt_NL2SP='tr \015\012 \040\040'
4834 *) # EBCDIC based system
4835 lt_SP2NL='tr \100 \n'
4836 lt_NL2SP='tr \r\n \100\100'
4848 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4849 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4850 if test "${lt_cv_ld_reload_flag+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 lt_cv_ld_reload_flag='-r'
4855 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4856 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4857 reload_flag=$lt_cv_ld_reload_flag
4858 case $reload_flag in
4860 *) reload_flag=" $reload_flag" ;;
4862 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4865 if test "$GCC" = yes; then
4866 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4881 if test -n "$ac_tool_prefix"; then
4882 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$OBJDUMP"; then
4890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 OBJDUMP=$ac_cv_prog_OBJDUMP
4909 if test -n "$OBJDUMP"; then
4910 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4911 echo "${ECHO_T}$OBJDUMP" >&6
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4918 if test -z "$ac_cv_prog_OBJDUMP"; then
4919 ac_ct_OBJDUMP=$OBJDUMP
4920 # Extract the first word of "objdump", so it can be a program name with args.
4921 set dummy objdump; ac_word=$2
4922 echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4924 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 if test -n "$ac_ct_OBJDUMP"; then
4928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4947 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4948 if test -n "$ac_ct_OBJDUMP"; then
4949 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4950 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4952 echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4956 OBJDUMP=$ac_ct_OBJDUMP
4958 OBJDUMP="$ac_cv_prog_OBJDUMP"
4961 test -z "$OBJDUMP" && OBJDUMP=objdump
4971 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4972 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4973 if test "${lt_cv_deplibs_check_method+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 lt_cv_file_magic_cmd='$MAGIC_CMD'
4977 lt_cv_file_magic_test_file=
4978 lt_cv_deplibs_check_method='unknown'
4979 # Need to set the preceding variable on all platforms that support
4980 # interlibrary dependencies.
4981 # 'none' -- dependencies not supported.
4982 # `unknown' -- same as none, but documents that we really don't know.
4983 # 'pass_all' -- all dependencies passed with no checks.
4984 # 'test_compile' -- check by making test program.
4985 # 'file_magic [[regex]]' -- check by looking for files in library path
4986 # which responds to the $file_magic_cmd with a given extended regex.
4987 # If you have `file' or equivalent on your system and you're not sure
4988 # whether `pass_all' will *always* work, you probably want this one.
4992 lt_cv_deplibs_check_method=pass_all
4996 lt_cv_deplibs_check_method=pass_all
5000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5001 lt_cv_file_magic_cmd='/usr/bin/file -L'
5002 lt_cv_file_magic_test_file=/shlib/libc.so
5006 # func_win32_libid is a shell function defined in ltmain.sh
5007 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5008 lt_cv_file_magic_cmd='func_win32_libid'
5012 # Base MSYS/MinGW do not provide the 'file' command needed by
5013 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5014 # unless we find 'file', for example because we are cross-compiling.
5015 if ( file / ) >/dev/null 2>&1; then
5016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5017 lt_cv_file_magic_cmd='func_win32_libid'
5019 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5020 lt_cv_file_magic_cmd='$OBJDUMP -f'
5025 # use the weaker test based on 'objdump'. See mingw*.
5026 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5027 lt_cv_file_magic_cmd='$OBJDUMP -f'
5030 darwin* | rhapsody*)
5031 lt_cv_deplibs_check_method=pass_all
5034 freebsd* | dragonfly*)
5035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5038 # Not sure whether the presence of OpenBSD here was a mistake.
5039 # Let's accept both of them until this is cleared up.
5040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5041 lt_cv_file_magic_cmd=/usr/bin/file
5042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5046 lt_cv_deplibs_check_method=pass_all
5051 lt_cv_deplibs_check_method=pass_all
5054 hpux10.20* | hpux11*)
5055 lt_cv_file_magic_cmd=/usr/bin/file
5058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5062 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]'
5063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5077 irix5* | irix6* | nonstopux*)
5079 *-32|*"-32 ") libmagic=32-bit;;
5080 *-n32|*"-n32 ") libmagic=N32;;
5081 *-64|*"-64 ") libmagic=64-bit;;
5082 *) libmagic=never-match;;
5084 lt_cv_deplibs_check_method=pass_all
5087 # This must be Linux ELF.
5088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5089 lt_cv_deplibs_check_method=pass_all
5093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5102 lt_cv_file_magic_cmd=/usr/bin/file
5103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5107 lt_cv_deplibs_check_method=pass_all
5111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5118 osf3* | osf4* | osf5*)
5119 lt_cv_deplibs_check_method=pass_all
5123 lt_cv_deplibs_check_method=pass_all
5127 lt_cv_deplibs_check_method=pass_all
5130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5131 lt_cv_deplibs_check_method=pass_all
5135 case $host_vendor in
5137 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]'
5138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5141 lt_cv_deplibs_check_method=pass_all
5144 lt_cv_file_magic_cmd='/bin/file'
5145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5148 lt_cv_file_magic_cmd='/bin/file'
5149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5150 lt_cv_file_magic_test_file=/lib/libc.so
5153 lt_cv_deplibs_check_method=pass_all
5156 lt_cv_deplibs_check_method=pass_all
5162 lt_cv_deplibs_check_method=pass_all
5167 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5168 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5169 file_magic_cmd=$lt_cv_file_magic_cmd
5170 deplibs_check_method=$lt_cv_deplibs_check_method
5171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5184 if test -n "$ac_tool_prefix"; then
5185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5186 set dummy ${ac_tool_prefix}ar; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_AR+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 if test -n "$AR"; then
5193 ac_cv_prog_AR="$AR" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_AR="${ac_tool_prefix}ar"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 if test -n "$AR"; then
5213 echo "$as_me:$LINENO: result: $AR" >&5
5214 echo "${ECHO_T}$AR" >&6
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5221 if test -z "$ac_cv_prog_AR"; then
5223 # Extract the first word of "ar", so it can be a program name with args.
5224 set dummy ar; ac_word=$2
5225 echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5227 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 if test -n "$ac_ct_AR"; then
5231 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_ac_ct_AR="ar"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5253 echo "${ECHO_T}$ac_ct_AR" >&6
5255 echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5264 test -z "$AR" && AR=ar
5265 test -z "$AR_FLAGS" && AR_FLAGS=cru
5277 if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5279 set dummy ${ac_tool_prefix}strip; ac_word=$2
5280 echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282 if test "${ac_cv_prog_STRIP+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$STRIP"; then
5286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 STRIP=$ac_cv_prog_STRIP
5305 if test -n "$STRIP"; then
5306 echo "$as_me:$LINENO: result: $STRIP" >&5
5307 echo "${ECHO_T}$STRIP" >&6
5309 echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6
5314 if test -z "$ac_cv_prog_STRIP"; then
5316 # Extract the first word of "strip", so it can be a program name with args.
5317 set dummy strip; ac_word=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$ac_ct_STRIP"; then
5324 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_STRIP="strip"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5343 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5344 if test -n "$ac_ct_STRIP"; then
5345 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5346 echo "${ECHO_T}$ac_ct_STRIP" >&6
5348 echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6
5354 STRIP="$ac_cv_prog_STRIP"
5357 test -z "$STRIP" && STRIP=:
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_prog_RANLIB+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 if test -n "$RANLIB"; then
5373 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 RANLIB=$ac_cv_prog_RANLIB
5392 if test -n "$RANLIB"; then
5393 echo "$as_me:$LINENO: result: $RANLIB" >&5
5394 echo "${ECHO_T}$RANLIB" >&6
5396 echo "$as_me:$LINENO: result: no" >&5
5397 echo "${ECHO_T}no" >&6
5401 if test -z "$ac_cv_prog_RANLIB"; then
5402 ac_ct_RANLIB=$RANLIB
5403 # Extract the first word of "ranlib", so it can be a program name with args.
5404 set dummy ranlib; ac_word=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 if test -n "$ac_ct_RANLIB"; then
5411 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_ac_ct_RANLIB="ranlib"
5421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5430 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5431 if test -n "$ac_ct_RANLIB"; then
5432 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5433 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5439 RANLIB=$ac_ct_RANLIB
5441 RANLIB="$ac_cv_prog_RANLIB"
5444 test -z "$RANLIB" && RANLIB=:
5451 # Determine commands to create old-style static archives.
5452 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5453 old_postinstall_cmds='chmod 644 $oldlib'
5454 old_postuninstall_cmds=
5456 if test -n "$RANLIB"; then
5459 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5462 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5465 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5501 # If no C compiler was specified, use CC.
5504 # If no C compiler flags were specified, use CFLAGS.
5505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5507 # Allow CC to be a program name with arguments.
5511 # Check for command to grab the raw symbol name followed by C symbol from nm.
5512 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5513 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5514 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 # These are sane defaults that work on at least a few old systems.
5519 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5521 # Character class describing NM global symbol codes.
5522 symcode='[BCDEGRST]'
5524 # Regexp to match symbols that can be accessed directly from C.
5525 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5527 # Define system-specific variables.
5532 cygwin* | mingw* | pw32* | cegcc*)
5533 symcode='[ABCDGISTW]'
5536 if test "$host_cpu" = ia64; then
5537 symcode='[ABCDEGRST]'
5541 symcode='[BCDEGRST]'
5544 symcode='[BCDEGQRST]'
5555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5563 # If we're using GNU nm, then use its standard symbol codes.
5564 case `$NM -V 2>&1` in
5565 *GNU* | *'with BFD'*)
5566 symcode='[ABCDGIRSTW]' ;;
5569 # Transform an extracted symbol line into a proper C declaration.
5570 # Some systems (esp. on ia64) link data and code symbols differently,
5571 # so use this general approach.
5572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5574 # Transform an extracted symbol line into symbol name and symbol address
5575 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5578 # Handle CRLF in mingw tool chain
5582 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5586 # Try without a prefix underscore, then with it.
5587 for ac_symprfx in "" "_"; do
5589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5590 symxfrm="\\1 $ac_symprfx\\2 \\2"
5592 # Write the raw and C identifiers.
5593 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5594 # Fake it for dumpbin and say T for any non-static function
5595 # and D for any global variable.
5596 # Also find C++ and __fastcall symbols from MSVC++,
5597 # which start with @ or ?.
5598 lt_cv_sys_global_symbol_pipe="$AWK '"\
5599 " {last_section=section; section=\$ 3};"\
5600 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5601 " \$ 0!~/External *\|/{next};"\
5602 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5603 " {if(hide[section]) next};"\
5604 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5605 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5606 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5607 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5608 " ' prfx=^$ac_symprfx"
5610 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5613 # Check to see that the pipe works correctly.
5617 cat > conftest.$ac_ext <<_LT_EOF
5622 void nm_test_func(void);
5623 void nm_test_func(void){}
5627 int main(){nm_test_var='a';nm_test_func();return(0);}
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; then
5635 # Now try to grab the symbols.
5637 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5638 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && test -s "$nlist"; then
5642 # Try sorting and uniquifying the output.
5643 if sort "$nlist" | uniq > "$nlist"T; then
5644 mv -f "$nlist"T "$nlist"
5649 # Make sure that we snagged all the symbols we need.
5650 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5651 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5652 cat <<_LT_EOF > conftest.$ac_ext
5658 # Now generate the symbol file.
5659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5661 cat <<_LT_EOF >> conftest.$ac_ext
5663 /* The mapping between symbol names and symbols. */
5668 lt__PROGRAM__LTX_preloaded_symbols[] =
5670 { "@PROGRAM@", (void *) 0 },
5672 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5673 cat <<\_LT_EOF >> conftest.$ac_ext
5677 /* This works around a problem in FreeBSD linker */
5678 #ifdef FREEBSD_WORKAROUND
5679 static const void *lt_preloaded_setup() {
5680 return lt__PROGRAM__LTX_preloaded_symbols;
5688 # Now try linking the two files.
5689 mv conftest.$ac_objext conftstm.$ac_objext
5690 lt_save_LIBS="$LIBS"
5691 lt_save_CFLAGS="$CFLAGS"
5692 LIBS="conftstm.$ac_objext"
5693 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5701 LIBS="$lt_save_LIBS"
5702 CFLAGS="$lt_save_CFLAGS"
5704 echo "cannot find nm_test_func in $nlist" >&5
5707 echo "cannot find nm_test_var in $nlist" >&5
5710 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5713 echo "$progname: failed program was:" >&5
5714 cat conftest.$ac_ext >&5
5716 rm -rf conftest* conftst*
5718 # Do not use the global_symbol_pipe unless it works.
5719 if test "$pipe_works" = yes; then
5722 lt_cv_sys_global_symbol_pipe=
5728 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5729 lt_cv_sys_global_symbol_to_cdecl=
5731 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5732 echo "$as_me:$LINENO: result: failed" >&5
5733 echo "${ECHO_T}failed" >&6
5735 echo "$as_me:$LINENO: result: ok" >&5
5736 echo "${ECHO_T}ok" >&6
5761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5762 if test "${enable_libtool_lock+set}" = set; then
5763 enableval="$enable_libtool_lock"
5766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5768 # Some flags need to be propagated to the compiler or linker for good
5772 # Find out which ABI we are using.
5773 echo 'int i;' > conftest.$ac_ext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; then
5779 case `/usr/bin/file conftest.$ac_objext` in
5791 # Find out which ABI we are using.
5792 echo '#line 5792 "configure"' > conftest.$ac_ext
5793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; then
5798 if test "$lt_cv_prog_gnu_ld" = yes; then
5799 case `/usr/bin/file conftest.$ac_objext` in
5801 LD="${LD-ld} -melf32bsmip"
5804 LD="${LD-ld} -melf32bmipn32"
5807 LD="${LD-ld} -melf64bmip"
5811 case `/usr/bin/file conftest.$ac_objext` in
5827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5829 # Find out which ABI we are using.
5830 echo 'int i;' > conftest.$ac_ext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; then
5836 case `/usr/bin/file conftest.o` in
5839 x86_64-*kfreebsd*-gnu)
5840 LD="${LD-ld} -m elf_i386_fbsd"
5843 LD="${LD-ld} -m elf_i386"
5845 ppc64-*linux*|powerpc64-*linux*)
5846 LD="${LD-ld} -m elf32ppclinux"
5849 LD="${LD-ld} -m elf_s390"
5852 LD="${LD-ld} -m elf32_sparc"
5858 x86_64-*kfreebsd*-gnu)
5859 LD="${LD-ld} -m elf_x86_64_fbsd"
5862 LD="${LD-ld} -m elf_x86_64"
5864 ppc*-*linux*|powerpc*-*linux*)
5865 LD="${LD-ld} -m elf64ppc"
5867 s390*-*linux*|s390*-*tpf*)
5868 LD="${LD-ld} -m elf64_s390"
5871 LD="${LD-ld} -m elf64_sparc"
5881 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5882 SAVE_CFLAGS="$CFLAGS"
5883 CFLAGS="$CFLAGS -belf"
5884 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5885 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5886 if test "${lt_cv_cc_needs_belf+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895 if test x$gcc_no_link = xyes; then
5896 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5898 { (exit 1); exit 1; }; }
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917 (eval $ac_link) 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } &&
5924 { ac_try='test -z "$ac_c_werror_flag"
5925 || test ! -s conftest.err'
5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; } &&
5931 { ac_try='test -s conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5937 lt_cv_cc_needs_belf=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 lt_cv_cc_needs_belf=no
5944 rm -f conftest.err conftest.$ac_objext \
5945 conftest$ac_exeext conftest.$ac_ext
5947 ac_cpp='$CPP $CPPFLAGS'
5948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5954 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5955 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5956 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5957 CFLAGS="$SAVE_CFLAGS"
5961 # Find out which ABI we are using.
5962 echo 'int i;' > conftest.$ac_ext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; then
5968 case `/usr/bin/file conftest.o` in
5970 case $lt_cv_prog_gnu_ld in
5971 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5973 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5985 need_locks="$enable_libtool_lock"
5989 rhapsody* | darwin*)
5990 if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5993 echo "$as_me:$LINENO: checking for $ac_word" >&5
5994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 if test -n "$DSYMUTIL"; then
5999 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6018 if test -n "$DSYMUTIL"; then
6019 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6020 echo "${ECHO_T}$DSYMUTIL" >&6
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6027 if test -z "$ac_cv_prog_DSYMUTIL"; then
6028 ac_ct_DSYMUTIL=$DSYMUTIL
6029 # Extract the first word of "dsymutil", so it can be a program name with args.
6030 set dummy dsymutil; ac_word=$2
6031 echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 if test -n "$ac_ct_DSYMUTIL"; then
6037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6057 if test -n "$ac_ct_DSYMUTIL"; then
6058 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6059 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6061 echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6
6065 DSYMUTIL=$ac_ct_DSYMUTIL
6067 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6073 echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 if test -n "$NMEDIT"; then
6079 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 NMEDIT=$ac_cv_prog_NMEDIT
6098 if test -n "$NMEDIT"; then
6099 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6100 echo "${ECHO_T}$NMEDIT" >&6
6102 echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6
6107 if test -z "$ac_cv_prog_NMEDIT"; then
6108 ac_ct_NMEDIT=$NMEDIT
6109 # Extract the first word of "nmedit", so it can be a program name with args.
6110 set dummy nmedit; ac_word=$2
6111 echo "$as_me:$LINENO: checking for $ac_word" >&5
6112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 if test -n "$ac_ct_NMEDIT"; then
6117 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6136 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6137 if test -n "$ac_ct_NMEDIT"; then
6138 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6139 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6141 echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6
6145 NMEDIT=$ac_ct_NMEDIT
6147 NMEDIT="$ac_cv_prog_NMEDIT"
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6153 echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155 if test "${ac_cv_prog_LIPO+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 if test -n "$LIPO"; then
6159 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 LIPO=$ac_cv_prog_LIPO
6178 if test -n "$LIPO"; then
6179 echo "$as_me:$LINENO: result: $LIPO" >&5
6180 echo "${ECHO_T}$LIPO" >&6
6182 echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6187 if test -z "$ac_cv_prog_LIPO"; then
6189 # Extract the first word of "lipo", so it can be a program name with args.
6190 set dummy lipo; ac_word=$2
6191 echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6193 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$ac_ct_LIPO"; then
6197 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_ac_ct_LIPO="lipo"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6216 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6217 if test -n "$ac_ct_LIPO"; then
6218 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6219 echo "${ECHO_T}$ac_ct_LIPO" >&6
6221 echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6
6227 LIPO="$ac_cv_prog_LIPO"
6230 if test -n "$ac_tool_prefix"; then
6231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6232 set dummy ${ac_tool_prefix}otool; ac_word=$2
6233 echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235 if test "${ac_cv_prog_OTOOL+set}" = set; then
6236 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 if test -n "$OTOOL"; then
6239 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 OTOOL=$ac_cv_prog_OTOOL
6258 if test -n "$OTOOL"; then
6259 echo "$as_me:$LINENO: result: $OTOOL" >&5
6260 echo "${ECHO_T}$OTOOL" >&6
6262 echo "$as_me:$LINENO: result: no" >&5
6263 echo "${ECHO_T}no" >&6
6267 if test -z "$ac_cv_prog_OTOOL"; then
6269 # Extract the first word of "otool", so it can be a program name with args.
6270 set dummy otool; ac_word=$2
6271 echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6273 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 if test -n "$ac_ct_OTOOL"; then
6277 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_ac_ct_OTOOL="otool"
6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6296 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6297 if test -n "$ac_ct_OTOOL"; then
6298 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6299 echo "${ECHO_T}$ac_ct_OTOOL" >&6
6301 echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6
6307 OTOOL="$ac_cv_prog_OTOOL"
6310 if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6313 echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 if test -n "$OTOOL64"; then
6319 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 OTOOL64=$ac_cv_prog_OTOOL64
6338 if test -n "$OTOOL64"; then
6339 echo "$as_me:$LINENO: result: $OTOOL64" >&5
6340 echo "${ECHO_T}$OTOOL64" >&6
6342 echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6
6347 if test -z "$ac_cv_prog_OTOOL64"; then
6348 ac_ct_OTOOL64=$OTOOL64
6349 # Extract the first word of "otool64", so it can be a program name with args.
6350 set dummy otool64; ac_word=$2
6351 echo "$as_me:$LINENO: checking for $ac_word" >&5
6352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 if test -n "$ac_ct_OTOOL64"; then
6357 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_OTOOL64="otool64"
6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6376 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6377 if test -n "$ac_ct_OTOOL64"; then
6378 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6379 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6381 echo "$as_me:$LINENO: result: no" >&5
6382 echo "${ECHO_T}no" >&6
6385 OTOOL64=$ac_ct_OTOOL64
6387 OTOOL64="$ac_cv_prog_OTOOL64"
6416 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6417 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6418 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 lt_cv_apple_cc_single_mod=no
6422 if test -z "${LT_MULTI_MODULE}"; then
6423 # By default we will add the -single_module flag. You can override
6424 # by either setting the environment variable LT_MULTI_MODULE
6425 # non-empty at configure time, or by adding -multi_module to the
6427 rm -rf libconftest.dylib*
6428 echo "int foo(void){return 1;}" > conftest.c
6429 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430 -dynamiclib -Wl,-single_module conftest.c" >&5
6431 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6434 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6435 lt_cv_apple_cc_single_mod=yes
6437 cat conftest.err >&5
6439 rm -rf libconftest.dylib*
6443 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6444 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6445 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6446 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6447 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 lt_cv_ld_exported_symbols_list=no
6451 save_LDFLAGS=$LDFLAGS
6452 echo "_main" > conftest.sym
6453 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6454 if test x$gcc_no_link = xyes; then
6455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6457 { (exit 1); exit 1; }; }
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6474 rm -f conftest.$ac_objext conftest$ac_exeext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6476 (eval $ac_link) 2>conftest.er1
6478 grep -v '^ *+' conftest.er1 >conftest.err
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest$ac_exeext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
6496 lt_cv_ld_exported_symbols_list=yes
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 lt_cv_ld_exported_symbols_list=no
6503 rm -f conftest.err conftest.$ac_objext \
6504 conftest$ac_exeext conftest.$ac_ext
6505 LDFLAGS="$save_LDFLAGS"
6508 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6509 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6511 rhapsody* | darwin1.[012])
6512 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6515 darwin*) # darwin 5.x on
6516 # if running on 10.5 or later, the deployment target defaults
6517 # to the OS version, if on x86, and 10.4, the deployment
6518 # target defaults to 10.4. Don't you love it?
6519 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6520 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6521 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6523 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6529 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6530 _lt_dar_single_mod='$single_module'
6532 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6533 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6535 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6537 if test "$DSYMUTIL" != ":"; then
6538 _lt_dsymutil='~$DSYMUTIL $lib || :'
6546 ac_cpp='$CPP $CPPFLAGS'
6547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6550 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6551 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6552 # On Suns, sometimes $CPP names a directory.
6553 if test -n "$CPP" && test -d "$CPP"; then
6556 if test -z "$CPP"; then
6557 if test "${ac_cv_prog_CPP+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 # Double quotes because CPP needs to be expanded
6561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6564 for ac_c_preproc_warn_flag in '' yes
6566 # Use a header file that comes with gcc, so configuring glibc
6567 # with a fresh cross-compiler works.
6568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 # <limits.h> exists even on freestanding compilers.
6570 # On the NeXT, cc -E runs the code through the compiler's parser,
6571 # not just through cpp. "Syntax error" is here to catch this case.
6572 cat >conftest.$ac_ext <<_ACEOF
6575 cat confdefs.h >>conftest.$ac_ext
6576 cat >>conftest.$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6579 # include <limits.h>
6581 # include <assert.h>
6585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } >/dev/null; then
6593 if test -s conftest.err; then
6594 ac_cpp_err=$ac_c_preproc_warn_flag
6595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6602 if test -z "$ac_cpp_err"; then
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 # Broken: fails on valid input.
6611 rm -f conftest.err conftest.$ac_ext
6613 # OK, works on sane cases. Now check whether non-existent headers
6614 # can be detected and how.
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <ac_nonexistent.h>
6623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } >/dev/null; then
6631 if test -s conftest.err; then
6632 ac_cpp_err=$ac_c_preproc_warn_flag
6633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6640 if test -z "$ac_cpp_err"; then
6641 # Broken: success on invalid input.
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 # Passes both tests.
6651 rm -f conftest.err conftest.$ac_ext
6654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6655 rm -f conftest.err conftest.$ac_ext
6656 if $ac_preproc_ok; then
6668 echo "$as_me:$LINENO: result: $CPP" >&5
6669 echo "${ECHO_T}$CPP" >&6
6671 for ac_c_preproc_warn_flag in '' yes
6673 # Use a header file that comes with gcc, so configuring glibc
6674 # with a fresh cross-compiler works.
6675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6676 # <limits.h> exists even on freestanding compilers.
6677 # On the NeXT, cc -E runs the code through the compiler's parser,
6678 # not just through cpp. "Syntax error" is here to catch this case.
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6686 # include <limits.h>
6688 # include <assert.h>
6692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6695 grep -v '^ *+' conftest.er1 >conftest.err
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } >/dev/null; then
6700 if test -s conftest.err; then
6701 ac_cpp_err=$ac_c_preproc_warn_flag
6702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6709 if test -z "$ac_cpp_err"; then
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 # Broken: fails on valid input.
6718 rm -f conftest.err conftest.$ac_ext
6720 # OK, works on sane cases. Now check whether non-existent headers
6721 # can be detected and how.
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <ac_nonexistent.h>
6730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6733 grep -v '^ *+' conftest.er1 >conftest.err
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } >/dev/null; then
6738 if test -s conftest.err; then
6739 ac_cpp_err=$ac_c_preproc_warn_flag
6740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6747 if test -z "$ac_cpp_err"; then
6748 # Broken: success on invalid input.
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6754 # Passes both tests.
6758 rm -f conftest.err conftest.$ac_ext
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then
6766 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6767 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6769 See \`config.log' for more details." >&5
6770 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6771 See \`config.log' for more details." >&2;}
6772 { (exit 1); exit 1; }; }; }
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784 if test "${ac_cv_header_stdc+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6806 rm -f conftest.$ac_objext
6807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808 (eval $ac_compile) 2>conftest.er1
6810 grep -v '^ *+' conftest.er1 >conftest.err
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_c_werror_flag"
6816 || test ! -s conftest.err'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; } &&
6822 { ac_try='test -s conftest.$ac_objext'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; }; then
6828 ac_cv_header_stdc=yes
6830 echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6833 ac_cv_header_stdc=no
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6837 if test $ac_cv_header_stdc = yes; then
6838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6839 cat >conftest.$ac_ext <<_ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6849 $EGREP "memchr" >/dev/null 2>&1; then
6852 ac_cv_header_stdc=no
6858 if test $ac_cv_header_stdc = yes; then
6859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870 $EGREP "free" >/dev/null 2>&1; then
6873 ac_cv_header_stdc=no
6879 if test $ac_cv_header_stdc = yes; then
6880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881 if test "$cross_compiling" = yes; then
6884 cat >conftest.$ac_ext <<_ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6895 # define ISLOWER(c) \
6896 (('a' <= (c) && (c) <= 'i') \
6897 || ('j' <= (c) && (c) <= 'r') \
6898 || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6907 for (i = 0; i < 256; i++)
6908 if (XOR (islower (i), ISLOWER (i))
6909 || toupper (i) != TOUPPER (i))
6914 rm -f conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6927 echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_header_stdc=no
6934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6938 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940 if test $ac_cv_header_stdc = yes; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define STDC_HEADERS 1
6948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959 inttypes.h stdint.h unistd.h
6961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 $ac_includes_default
6975 #include <$ac_header>
6977 rm -f conftest.$ac_objext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 eval "$as_ac_Header=yes"
7001 echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7004 eval "$as_ac_Header=no"
7006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7011 cat >>confdefs.h <<_ACEOF
7012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7021 for ac_header in dlfcn.h
7023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024 echo "$as_me:$LINENO: checking for $ac_header" >&5
7025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7037 #include <$ac_header>
7039 rm -f conftest.$ac_objext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041 (eval $ac_compile) 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest.$ac_objext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 eval "$as_ac_Header=yes"
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 eval "$as_ac_Header=no"
7068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7073 cat >>confdefs.h <<_ACEOF
7074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7084 ac_cpp='$CXXCPP $CPPFLAGS'
7085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7088 if test -n "$ac_tool_prefix"; then
7089 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_CXX+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 if test -n "$CXX"; then
7099 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 if test -n "$CXX"; then
7119 echo "$as_me:$LINENO: result: $CXX" >&5
7120 echo "${ECHO_T}$CXX" >&6
7122 echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7126 test -n "$CXX" && break
7129 if test -z "$CXX"; then
7131 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7133 # Extract the first word of "$ac_prog", so it can be a program name with args.
7134 set dummy $ac_prog; ac_word=$2
7135 echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 if test -n "$ac_ct_CXX"; then
7141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_CXX="$ac_prog"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7160 if test -n "$ac_ct_CXX"; then
7161 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7162 echo "${ECHO_T}$ac_ct_CXX" >&6
7164 echo "$as_me:$LINENO: result: no" >&5
7165 echo "${ECHO_T}no" >&6
7168 test -n "$ac_ct_CXX" && break
7170 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7176 # Provide some information about the compiler.
7177 echo "$as_me:$LINENO:" \
7178 "checking for C++ compiler version" >&5
7179 ac_compiler=`set X $ac_compile; echo $2`
7180 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7181 (eval $ac_compiler --version </dev/null >&5) 2>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }
7185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7186 (eval $ac_compiler -v </dev/null >&5) 2>&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }
7190 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7191 (eval $ac_compiler -V </dev/null >&5) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }
7196 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7197 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7198 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 cat >conftest.$ac_ext <<_ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7219 rm -f conftest.$ac_objext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>conftest.er1
7223 grep -v '^ *+' conftest.er1 >conftest.err
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
7228 { ac_try='test -z "$ac_cxx_werror_flag"
7229 || test ! -s conftest.err'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest.$ac_objext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7249 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7252 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7253 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7254 GXX=`test $ac_compiler_gnu = yes && echo yes`
7255 ac_test_CXXFLAGS=${CXXFLAGS+set}
7256 ac_save_CXXFLAGS=$CXXFLAGS
7258 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7260 if test "${ac_cv_prog_cxx_g+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280 (eval $ac_compile) 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_cxx_werror_flag"
7288 || test ! -s conftest.err'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_prog_cxx_g=yes
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7310 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7311 if test "$ac_test_CXXFLAGS" = set; then
7312 CXXFLAGS=$ac_save_CXXFLAGS
7313 elif test $ac_cv_prog_cxx_g = yes; then
7314 if test "$GXX" = yes; then
7320 if test "$GXX" = yes; then
7326 for ac_declaration in \
7328 'extern "C" void std::exit (int) throw (); using std::exit;' \
7329 'extern "C" void std::exit (int); using std::exit;' \
7330 'extern "C" void exit (int) throw ();' \
7331 'extern "C" void exit (int);' \
7334 cat >conftest.$ac_ext <<_ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7350 rm -f conftest.$ac_objext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352 (eval $ac_compile) 2>conftest.er1
7354 grep -v '^ *+' conftest.er1 >conftest.err
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_cxx_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest.$ac_objext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7395 rm -f conftest.$ac_objext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7397 (eval $ac_compile) 2>conftest.er1
7399 grep -v '^ *+' conftest.er1 >conftest.err
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_cxx_werror_flag"
7405 || test ! -s conftest.err'
7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); }; } &&
7411 { ac_try='test -s conftest.$ac_objext'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; }; then
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426 if test -n "$ac_declaration"; then
7427 echo '#ifdef __cplusplus' >>confdefs.h
7428 echo $ac_declaration >>confdefs.h
7429 echo '#endif' >>confdefs.h
7433 ac_cpp='$CPP $CPPFLAGS'
7434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438 depcc="$CXX" am_compiler_list=
7440 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7442 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7445 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7446 # We make a subdir and do the tests there. Otherwise we can end up
7447 # making bogus files that we don't know about and never remove. For
7448 # instance it was reported that on HP-UX the gcc test will end up
7449 # making a dummy file named `D' -- because `-MD' means `put the output
7452 # Copy depcomp to subdir because otherwise we won't find it if we're
7453 # using a relative directory.
7454 cp "$am_depcomp" conftest.dir
7456 # We will build objects and dependencies in a subdirectory because
7457 # it helps to detect inapplicable dependency modes. For instance
7458 # both Tru64's cc and ICC support -MD to output dependencies as a
7459 # side effect of compilation, but ICC will put the dependencies in
7460 # the current directory while Tru64 will put them in the object
7464 am_cv_CXX_dependencies_compiler_type=none
7465 if test "$am_compiler_list" = ""; then
7466 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7468 for depmode in $am_compiler_list; do
7469 # Setup a source with many dependencies, because some compilers
7470 # like to wrap large dependency lists on column 80 (with \), and
7471 # we should not choose a depcomp mode which is confused by this.
7473 # We need to recreate these files for each test, as the compiler may
7474 # overwrite some of them when testing with obscure command lines.
7475 # This happens at least with the AIX C compiler.
7477 for i in 1 2 3 4 5 6; do
7478 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7479 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7480 # Solaris 8's {/usr,}/bin/sh.
7481 touch sub/conftst$i.h
7483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7487 # after this tag, mechanisms are not by side-effect, so they'll
7488 # only be used when explicitly requested
7489 if test "x$enable_dependency_tracking" = xyes; then
7497 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7498 # mode. It turns out that the SunPro C++ compiler does not properly
7499 # handle `-M -o', and we need to detect this.
7500 if depmode=$depmode \
7501 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7503 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7504 >/dev/null 2>conftest.err &&
7505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7506 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7508 # icc doesn't choke on unknown options, it will just issue warnings
7509 # or remarks (even with -Werror). So we grep stderr for any message
7510 # that says an option was ignored or not supported.
7511 # When given -MP, icc 7.0 and 7.1 complain thusly:
7512 # icc: Command line warning: ignoring option '-M'; no argument required
7513 # The diagnosis changed in icc 8.0:
7514 # icc: Command line remark: option '-MP' not supported
7515 if (grep 'ignoring option' conftest.err ||
7516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7517 am_cv_CXX_dependencies_compiler_type=$depmode
7526 am_cv_CXX_dependencies_compiler_type=none
7530 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7531 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7532 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7537 test "x$enable_dependency_tracking" != xno \
7538 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7539 am__fastdepCXX_TRUE=
7540 am__fastdepCXX_FALSE='#'
7542 am__fastdepCXX_TRUE='#'
7543 am__fastdepCXX_FALSE=
7547 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7548 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7549 (test "X$CXX" != "Xg++"))) ; then
7551 ac_cpp='$CXXCPP $CPPFLAGS'
7552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7555 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7556 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7557 if test -z "$CXXCPP"; then
7558 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 # Double quotes because CXXCPP needs to be expanded
7562 for CXXCPP in "$CXX -E" "/lib/cpp"
7565 for ac_cxx_preproc_warn_flag in '' yes
7567 # Use a header file that comes with gcc, so configuring glibc
7568 # with a fresh cross-compiler works.
7569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7570 # <limits.h> exists even on freestanding compilers.
7571 # On the NeXT, cc -E runs the code through the compiler's parser,
7572 # not just through cpp. "Syntax error" is here to catch this case.
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 # include <limits.h>
7582 # include <assert.h>
7586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7589 grep -v '^ *+' conftest.er1 >conftest.err
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } >/dev/null; then
7594 if test -s conftest.err; then
7595 ac_cpp_err=$ac_cxx_preproc_warn_flag
7596 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7603 if test -z "$ac_cpp_err"; then
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 # Broken: fails on valid input.
7612 rm -f conftest.err conftest.$ac_ext
7614 # OK, works on sane cases. Now check whether non-existent headers
7615 # can be detected and how.
7616 cat >conftest.$ac_ext <<_ACEOF
7619 cat confdefs.h >>conftest.$ac_ext
7620 cat >>conftest.$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <ac_nonexistent.h>
7624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } >/dev/null; then
7632 if test -s conftest.err; then
7633 ac_cpp_err=$ac_cxx_preproc_warn_flag
7634 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7641 if test -z "$ac_cpp_err"; then
7642 # Broken: success on invalid input.
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 # Passes both tests.
7652 rm -f conftest.err conftest.$ac_ext
7655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7656 rm -f conftest.err conftest.$ac_ext
7657 if $ac_preproc_ok; then
7662 ac_cv_prog_CXXCPP=$CXXCPP
7665 CXXCPP=$ac_cv_prog_CXXCPP
7667 ac_cv_prog_CXXCPP=$CXXCPP
7669 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7670 echo "${ECHO_T}$CXXCPP" >&6
7672 for ac_cxx_preproc_warn_flag in '' yes
7674 # Use a header file that comes with gcc, so configuring glibc
7675 # with a fresh cross-compiler works.
7676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7677 # <limits.h> exists even on freestanding compilers.
7678 # On the NeXT, cc -E runs the code through the compiler's parser,
7679 # not just through cpp. "Syntax error" is here to catch this case.
7680 cat >conftest.$ac_ext <<_ACEOF
7683 cat confdefs.h >>conftest.$ac_ext
7684 cat >>conftest.$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7687 # include <limits.h>
7689 # include <assert.h>
7693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } >/dev/null; then
7701 if test -s conftest.err; then
7702 ac_cpp_err=$ac_cxx_preproc_warn_flag
7703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7710 if test -z "$ac_cpp_err"; then
7713 echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7716 # Broken: fails on valid input.
7719 rm -f conftest.err conftest.$ac_ext
7721 # OK, works on sane cases. Now check whether non-existent headers
7722 # can be detected and how.
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 #include <ac_nonexistent.h>
7731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } >/dev/null; then
7739 if test -s conftest.err; then
7740 ac_cpp_err=$ac_cxx_preproc_warn_flag
7741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7748 if test -z "$ac_cpp_err"; then
7749 # Broken: success on invalid input.
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 # Passes both tests.
7759 rm -f conftest.err conftest.$ac_ext
7762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7763 rm -f conftest.err conftest.$ac_ext
7764 if $ac_preproc_ok; then
7767 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7768 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7769 _lt_caught_CXX_error=yes; }
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779 _lt_caught_CXX_error=yes
7796 # Check whether --enable-shared or --disable-shared was given.
7797 if test "${enable_shared+set}" = set; then
7798 enableval="$enable_shared"
7799 p=${PACKAGE-default}
7801 yes) enable_shared=yes ;;
7802 no) enable_shared=no ;;
7805 # Look at the argument we got. We use all the common list separators.
7806 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7807 for pkg in $enableval; do
7809 if test "X$pkg" = "X$p"; then
7827 # Check whether --enable-static or --disable-static was given.
7828 if test "${enable_static+set}" = set; then
7829 enableval="$enable_static"
7830 p=${PACKAGE-default}
7832 yes) enable_static=yes ;;
7833 no) enable_static=no ;;
7836 # Look at the argument we got. We use all the common list separators.
7837 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7838 for pkg in $enableval; do
7840 if test "X$pkg" = "X$p"; then
7859 # Check whether --with-pic or --without-pic was given.
7860 if test "${with_pic+set}" = set; then
7867 test -z "$pic_mode" && pic_mode=default
7875 # Check whether --enable-fast-install or --disable-fast-install was given.
7876 if test "${enable_fast_install+set}" = set; then
7877 enableval="$enable_fast_install"
7878 p=${PACKAGE-default}
7880 yes) enable_fast_install=yes ;;
7881 no) enable_fast_install=no ;;
7883 enable_fast_install=no
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886 for pkg in $enableval; do
7888 if test "X$pkg" = "X$p"; then
7889 enable_fast_install=yes
7896 enable_fast_install=yes
7908 # This can be used to rebuild libtool when needed
7909 LIBTOOL_DEPS="$ltmain"
7911 # Always use our own libtool.
7912 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7938 test -z "$LN_S" && LN_S="ln -s"
7953 if test -n "${ZSH_VERSION+set}" ; then
7954 setopt NO_GLOB_SUBST
7957 echo "$as_me:$LINENO: checking for objdir" >&5
7958 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7959 if test "${lt_cv_objdir+set}" = set; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7962 rm -f .libs 2>/dev/null
7963 mkdir .libs 2>/dev/null
7964 if test -d .libs; then
7967 # MS-DOS does not allow filenames that begin with a dot.
7970 rmdir .libs 2>/dev/null
7972 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7973 echo "${ECHO_T}$lt_cv_objdir" >&6
7974 objdir=$lt_cv_objdir
7980 cat >>confdefs.h <<_ACEOF
7981 #define LT_OBJDIR "$lt_cv_objdir/"
8002 # AIX sometimes has problems with the GCC collect2 program. For some
8003 # reason, if we set the COLLECT_NAMES environment variable, the problems
8004 # vanish in a puff of smoke.
8005 if test "X${COLLECT_NAMES+set}" != Xset; then
8007 export COLLECT_NAMES
8012 # Sed substitution that helps us do robust quoting. It backslashifies
8013 # metacharacters that are still active within double-quoted strings.
8014 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8016 # Same as above, but do not quote variable references.
8017 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8019 # Sed substitution to delay expansion of an escaped shell variable in a
8020 # double_quote_subst'ed string.
8021 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8023 # Sed substitution to delay expansion of an escaped single quote.
8024 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8026 # Sed substitution to avoid accidental globbing in evaled expressions
8027 no_glob_subst='s/\*/\\\*/g'
8031 can_build_shared=yes
8033 # All known linkers require a `.a' archive for static linking (except MSVC,
8034 # which needs '.lib').
8037 with_gnu_ld="$lt_cv_prog_gnu_ld"
8040 old_CFLAGS="$CFLAGS"
8042 # Set sane defaults for various variables
8043 test -z "$CC" && CC=cc
8044 test -z "$LTCC" && LTCC=$CC
8045 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8046 test -z "$LD" && LD=ld
8047 test -z "$ac_objext" && ac_objext=o
8049 for cc_temp in $compiler""; do
8051 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8052 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8060 # Only perform the check for file, if the check method requires it
8061 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8062 case $deplibs_check_method in
8064 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8065 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8066 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8067 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8075 lt_save_MAGIC_CMD="$MAGIC_CMD"
8076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8077 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8078 for ac_dir in $ac_dummy; do
8080 test -z "$ac_dir" && ac_dir=.
8081 if test -f $ac_dir/${ac_tool_prefix}file; then
8082 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8083 if test -n "$file_magic_test_file"; then
8084 case $deplibs_check_method in
8086 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8088 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8089 $EGREP "$file_magic_regex" > /dev/null; then
8094 *** Warning: the command libtool uses to detect shared libraries,
8095 *** $file_magic_cmd, produces output that libtool cannot recognize.
8096 *** The result is that libtool may fail to recognize shared libraries
8097 *** as such. This will affect the creation of libtool libraries that
8098 *** depend on shared libraries, but programs linked with such libtool
8099 *** libraries will work regardless of this problem. Nevertheless, you
8100 *** may want to report the problem to your system manager and/or to
8101 *** bug-libtool@gnu.org
8111 MAGIC_CMD="$lt_save_MAGIC_CMD"
8116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8117 if test -n "$MAGIC_CMD"; then
8118 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8119 echo "${ECHO_T}$MAGIC_CMD" >&6
8121 echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8129 if test -z "$lt_cv_path_MAGIC_CMD"; then
8130 if test -n "$ac_tool_prefix"; then
8131 echo "$as_me:$LINENO: checking for file" >&5
8132 echo $ECHO_N "checking for file... $ECHO_C" >&6
8133 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8141 lt_save_MAGIC_CMD="$MAGIC_CMD"
8142 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8144 for ac_dir in $ac_dummy; do
8146 test -z "$ac_dir" && ac_dir=.
8147 if test -f $ac_dir/file; then
8148 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8149 if test -n "$file_magic_test_file"; then
8150 case $deplibs_check_method in
8152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8155 $EGREP "$file_magic_regex" > /dev/null; then
8160 *** Warning: the command libtool uses to detect shared libraries,
8161 *** $file_magic_cmd, produces output that libtool cannot recognize.
8162 *** The result is that libtool may fail to recognize shared libraries
8163 *** as such. This will affect the creation of libtool libraries that
8164 *** depend on shared libraries, but programs linked with such libtool
8165 *** libraries will work regardless of this problem. Nevertheless, you
8166 *** may want to report the problem to your system manager and/or to
8167 *** bug-libtool@gnu.org
8177 MAGIC_CMD="$lt_save_MAGIC_CMD"
8182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183 if test -n "$MAGIC_CMD"; then
8184 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8185 echo "${ECHO_T}$MAGIC_CMD" >&6
8187 echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8201 # Use C for the default configuration in the libtool script
8205 ac_cpp='$CPP $CPPFLAGS'
8206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8211 # Source file extension for C test sources.
8214 # Object file extension for compiled C test sources.
8218 # Code to be used in simple compile tests
8219 lt_simple_compile_test_code="int some_variable = 0;"
8221 # Code to be used in simple link tests
8222 lt_simple_link_test_code='int main(){return(0);}'
8230 # If no C compiler was specified, use CC.
8233 # If no C compiler flags were specified, use CFLAGS.
8234 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8236 # Allow CC to be a program name with arguments.
8239 # Save the default compiler, since it gets overwritten when the other
8240 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8241 compiler_DEFAULT=$CC
8243 # save warnings/boilerplate of simple test code
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8247 _lt_compiler_boilerplate=`cat conftest.err`
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253 _lt_linker_boilerplate=`cat conftest.err`
8258 ## There is no encapsulation within the following macros, do not change
8259 ## the running order or otherwise move them around unless you know exactly
8260 ## what you are doing...
8261 if test -n "$compiler"; then
8263 lt_prog_compiler_no_builtin_flag=
8265 if test "$GCC" = yes; then
8266 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8268 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8269 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8270 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 lt_cv_prog_compiler_rtti_exceptions=no
8274 ac_outfile=conftest.$ac_objext
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276 lt_compiler_flag="-fno-rtti -fno-exceptions"
8277 # Insert the option either (1) after the last *FLAGS variable, or
8278 # (2) before a word containing "conftest.", or (3) at the end.
8279 # Note that $ac_compile itself does not contain backslashes and begins
8280 # with a dollar sign (not a hyphen), so the echo should work correctly.
8281 # The option is referenced via a variable to avoid confusing sed.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:8286: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>conftest.err)
8289 cat conftest.err >&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s "$ac_outfile"; then
8292 # The compiler can only warn and ignore the option if not recognized
8293 # So say no if there are warnings other than the usual output.
8294 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8295 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8296 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8297 lt_cv_prog_compiler_rtti_exceptions=yes
8303 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8304 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8306 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8307 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319 lt_prog_compiler_wl=
8320 lt_prog_compiler_pic=
8321 lt_prog_compiler_static=
8323 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8324 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8326 if test "$GCC" = yes; then
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_static='-static'
8332 # All AIX code is PIC.
8333 if test "$host_cpu" = ia64; then
8334 # AIX 5 now supports IA64 processor
8335 lt_prog_compiler_static='-Bstatic'
8342 # see comment about AmigaOS4 .so support
8343 lt_prog_compiler_pic='-fPIC'
8346 # FIXME: we need at least 68020 code to build shared libraries, but
8347 # adding the `-m68020' flag to GCC prevents building anything better,
8349 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8355 # PIC is the default for these OSes.
8358 mingw* | cygwin* | pw32* | os2* | cegcc*)
8359 # This hack is so that the source file can tell whether it is being
8360 # built for inclusion in a dll (and should export symbols for example).
8361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8362 # (--disable-auto-import) libraries
8363 lt_prog_compiler_pic='-DDLL_EXPORT'
8366 darwin* | rhapsody*)
8367 # PIC is the default on this platform
8368 # Common symbols not allowed in MH_DYLIB files
8369 lt_prog_compiler_pic='-fno-common'
8373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8375 # sets the default TLS model and affects inlining.
8381 lt_prog_compiler_pic='-fPIC'
8387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8388 # Instead, we relocate shared libraries at runtime.
8392 # Just because we use GCC doesn't mean we suddenly get shared libraries
8393 # on systems that don't support them.
8394 lt_prog_compiler_can_build_shared=no
8399 # QNX uses GNU C++, but need to define -shared option too, otherwise
8401 lt_prog_compiler_pic='-fPIC -shared'
8405 if test -d /usr/nec; then
8406 lt_prog_compiler_pic=-Kconform_pic
8411 lt_prog_compiler_pic='-fPIC'
8415 # PORTME Check for flag to pass linker flags through the system compiler.
8418 lt_prog_compiler_wl='-Wl,'
8419 if test "$host_cpu" = ia64; then
8420 # AIX 5 now supports IA64 processor
8421 lt_prog_compiler_static='-Bstatic'
8423 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8427 mingw* | cygwin* | pw32* | os2* | cegcc*)
8428 # This hack is so that the source file can tell whether it is being
8429 # built for inclusion in a dll (and should export symbols for example).
8430 lt_prog_compiler_pic='-DDLL_EXPORT'
8433 hpux9* | hpux10* | hpux11*)
8434 lt_prog_compiler_wl='-Wl,'
8435 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8442 lt_prog_compiler_pic='+Z'
8445 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8446 lt_prog_compiler_static='${wl}-a ${wl}archive'
8449 irix5* | irix6* | nonstopux*)
8450 lt_prog_compiler_wl='-Wl,'
8451 # PIC (with -KPIC) is the default.
8452 lt_prog_compiler_static='-non_shared'
8455 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8456 case $cc_basename in
8457 # old Intel for x86_64 which still supported -KPIC.
8459 lt_prog_compiler_wl='-Wl,'
8460 lt_prog_compiler_pic='-KPIC'
8461 lt_prog_compiler_static='-static'
8463 # icc used to be incompatible with GCC.
8464 # ICC 10 doesn't accept -KPIC any more.
8466 lt_prog_compiler_wl='-Wl,'
8467 lt_prog_compiler_pic='-fPIC'
8468 lt_prog_compiler_static='-static'
8470 # Lahey Fortran 8.1.
8472 lt_prog_compiler_wl='-Wl,'
8473 lt_prog_compiler_pic='--shared'
8474 lt_prog_compiler_static='--static'
8476 pgcc* | pgf77* | pgf90* | pgf95*)
8477 # Portland Group compilers (*not* the Pentium gcc compiler,
8478 # which looks to be a dead project)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_pic='-fpic'
8481 lt_prog_compiler_static='-Bstatic'
8484 lt_prog_compiler_wl='-Wl,'
8485 # All Alpha code is PIC.
8486 lt_prog_compiler_static='-non_shared'
8489 # IBM XL C 8.0/Fortran 10.1 on PPC
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-qpic'
8492 lt_prog_compiler_static='-qstaticlink'
8495 case `$CC -V 2>&1 | sed 5q` in
8498 lt_prog_compiler_pic='-KPIC'
8499 lt_prog_compiler_static='-Bstatic'
8500 lt_prog_compiler_wl='-Wl,'
8503 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8506 lt_prog_compiler_wl=''
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8519 # QNX uses GNU C++, but need to define -shared option too, otherwise
8521 lt_prog_compiler_pic='-fPIC -shared'
8524 osf3* | osf4* | osf5*)
8525 lt_prog_compiler_wl='-Wl,'
8526 # All OSF/1 code is PIC.
8527 lt_prog_compiler_static='-non_shared'
8531 lt_prog_compiler_static='-non_shared'
8535 lt_prog_compiler_pic='-KPIC'
8536 lt_prog_compiler_static='-Bstatic'
8537 case $cc_basename in
8539 lt_prog_compiler_wl='-Qoption ld ';;
8541 lt_prog_compiler_wl='-Wl,';;
8546 lt_prog_compiler_wl='-Qoption ld '
8547 lt_prog_compiler_pic='-PIC'
8548 lt_prog_compiler_static='-Bstatic'
8551 sysv4 | sysv4.2uw2* | sysv4.3*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-KPIC'
8554 lt_prog_compiler_static='-Bstatic'
8558 if test -d /usr/nec ;then
8559 lt_prog_compiler_pic='-Kconform_pic'
8560 lt_prog_compiler_static='-Bstatic'
8564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8565 lt_prog_compiler_wl='-Wl,'
8566 lt_prog_compiler_pic='-KPIC'
8567 lt_prog_compiler_static='-Bstatic'
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_can_build_shared=no
8576 lt_prog_compiler_pic='-pic'
8577 lt_prog_compiler_static='-Bstatic'
8581 lt_prog_compiler_can_build_shared=no
8587 # For platforms which do not support PIC, -DPIC is meaningless:
8589 lt_prog_compiler_pic=
8592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8595 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8596 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8604 # Check to make sure the PIC flag actually works.
8606 if test -n "$lt_prog_compiler_pic"; then
8607 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8608 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8609 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 lt_cv_prog_compiler_pic_works=no
8613 ac_outfile=conftest.$ac_objext
8614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 # The option is referenced via a variable to avoid confusing sed.
8621 lt_compile=`echo "$ac_compile" | $SED \
8622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8624 -e 's:$: $lt_compiler_flag:'`
8625 (eval echo "\"\$as_me:8625: $lt_compile\"" >&5)
8626 (eval "$lt_compile" 2>conftest.err)
8628 cat conftest.err >&5
8629 echo "$as_me:8629: \$? = $ac_status" >&5
8630 if (exit $ac_status) && test -s "$ac_outfile"; then
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings other than the usual output.
8633 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_pic_works=yes
8642 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8643 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8645 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8646 case $lt_prog_compiler_pic in
8648 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8651 lt_prog_compiler_pic=
8652 lt_prog_compiler_can_build_shared=no
8663 # Check to make sure the static flag actually works.
8665 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8666 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8667 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8668 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 lt_cv_prog_compiler_static_works=no
8672 save_LDFLAGS="$LDFLAGS"
8673 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8676 # The linker can only warn and ignore the option if not recognized
8677 # So say no if there are warnings
8678 if test -s conftest.err; then
8679 # Append any errors to the config.log.
8680 cat conftest.err 1>&5
8681 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8683 if diff conftest.exp conftest.er2 >/dev/null; then
8684 lt_cv_prog_compiler_static_works=yes
8687 lt_cv_prog_compiler_static_works=yes
8691 LDFLAGS="$save_LDFLAGS"
8694 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8695 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8697 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8700 lt_prog_compiler_static=
8709 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8710 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8711 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 lt_cv_prog_compiler_c_o=no
8715 $RM -r conftest 2>/dev/null
8719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721 lt_compiler_flag="-o out/conftest2.$ac_objext"
8722 # Insert the option either (1) after the last *FLAGS variable, or
8723 # (2) before a word containing "conftest.", or (3) at the end.
8724 # Note that $ac_compile itself does not contain backslashes and begins
8725 # with a dollar sign (not a hyphen), so the echo should work correctly.
8726 lt_compile=`echo "$ac_compile" | $SED \
8727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729 -e 's:$: $lt_compiler_flag:'`
8730 (eval echo "\"\$as_me:8730: $lt_compile\"" >&5)
8731 (eval "$lt_compile" 2>out/conftest.err)
8733 cat out/conftest.err >&5
8734 echo "$as_me:8734: \$? = $ac_status" >&5
8735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737 # The compiler can only warn and ignore the option if not recognized
8738 # So say no if there are warnings
8739 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8742 lt_cv_prog_compiler_c_o=yes
8747 # SGI C++ compiler will create directory out/ii_files/ for
8748 # template instantiation
8749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8750 $RM out/* && rmdir out
8756 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8757 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8764 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8765 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8766 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 lt_cv_prog_compiler_c_o=no
8770 $RM -r conftest 2>/dev/null
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776 lt_compiler_flag="-o out/conftest2.$ac_objext"
8777 # Insert the option either (1) after the last *FLAGS variable, or
8778 # (2) before a word containing "conftest.", or (3) at the end.
8779 # Note that $ac_compile itself does not contain backslashes and begins
8780 # with a dollar sign (not a hyphen), so the echo should work correctly.
8781 lt_compile=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:8785: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>out/conftest.err)
8788 cat out/conftest.err >&5
8789 echo "$as_me:8789: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792 # The compiler can only warn and ignore the option if not recognized
8793 # So say no if there are warnings
8794 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8797 lt_cv_prog_compiler_c_o=yes
8802 # SGI C++ compiler will create directory out/ii_files/ for
8803 # template instantiation
8804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8805 $RM out/* && rmdir out
8811 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8812 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8817 hard_links="nottested"
8818 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8819 # do not overwrite the value of need_locks provided by the user
8820 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8821 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8826 ln conftest.a conftest.b 2>&5 || hard_links=no
8827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8828 echo "$as_me:$LINENO: result: $hard_links" >&5
8829 echo "${ECHO_T}$hard_links" >&6
8830 if test "$hard_links" = no; then
8831 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8832 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8844 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8848 allow_undefined_flag=
8849 always_export_symbols=no
8851 archive_expsym_cmds=
8852 compiler_needs_object=no
8853 enable_shared_with_static_runtimes=no
8854 export_dynamic_flag_spec=
8855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8856 hardcode_automatic=no
8858 hardcode_direct_absolute=no
8859 hardcode_libdir_flag_spec=
8860 hardcode_libdir_flag_spec_ld=
8861 hardcode_libdir_separator=
8863 hardcode_shlibpath_var=unsupported
8865 link_all_deplibs=unknown
8868 old_archive_from_new_cmds=
8869 old_archive_from_expsyms_cmds=
8870 thread_safe_flag_spec=
8871 whole_archive_flag_spec=
8872 # include_expsyms should be a list of space-separated symbols to be *always*
8873 # included in the symbol list
8875 # exclude_expsyms can be an extended regexp of symbols to exclude
8876 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8877 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8878 # as well as any symbol that contains `d'.
8879 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8880 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8881 # platforms (ab)use it in PIC code, but their linkers get confused if
8882 # the symbol is explicitly referenced. Since portable code cannot
8883 # rely on this symbol name, it's probably fine to never include it in
8884 # preloaded symbol tables.
8885 # Exclude shared library initialization/finalization symbols.
8886 extract_expsyms_cmds=
8889 cygwin* | mingw* | pw32* | cegcc*)
8890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8891 # When not using gcc, we currently assume that we are using
8892 # Microsoft Visual C++.
8893 if test "$GCC" != yes; then
8898 # we just hope/assume this is gcc and not c89 (= MSVC++)
8907 if test "$with_gnu_ld" = yes; then
8908 # If archive_cmds runs LD, not CC, wlarc should be empty
8911 # Set some defaults for GNU ld with shared library support. These
8912 # are reset later if shared libraries are not supported. Putting them
8913 # here allows them to be overridden if necessary.
8914 runpath_var=LD_RUN_PATH
8915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8916 export_dynamic_flag_spec='${wl}--export-dynamic'
8917 # ancient GNU ld didn't support --whole-archive et. al.
8918 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8919 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8921 whole_archive_flag_spec=
8923 supports_anon_versioning=no
8924 case `$LD -v 2>&1` in
8925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8928 *\ 2.11.*) ;; # other 2.11 versions
8929 *) supports_anon_versioning=yes ;;
8932 # See if GNU ld supports shared libraries.
8935 # On AIX/PPC, the GNU linker is very broken
8936 if test "$host_cpu" != ia64; then
8940 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8941 *** to be unable to reliably create shared libraries on AIX.
8942 *** Therefore, libtool is disabling shared libraries support. If you
8943 *** really care for shared libraries, you may want to modify your PATH
8944 *** so that a non-GNU linker is found, and then restart.
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 allow_undefined_flag=unsupported
8968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969 # support --undefined. This deserves some investigation. FIXME
8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 cygwin* | mingw* | pw32* | cegcc*)
8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978 # as there is no search path for DLLs.
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 allow_undefined_flag=unsupported
8981 always_export_symbols=no
8982 enable_shared_with_static_runtimes=yes
8983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8985 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8987 # If the export-symbols file already is a .def file (1st line
8988 # is EXPORTS), use it as is; otherwise, prepend...
8989 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8990 cp $export_symbols $output_objdir/$soname.def;
8992 echo EXPORTS > $output_objdir/$soname.def;
8993 cat $export_symbols >> $output_objdir/$soname.def;
8995 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9003 hardcode_shlibpath_var=no
9004 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005 export_dynamic_flag_spec='${wl}-E'
9006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9007 # Instead, shared libraries are loaded at an image base (0x10000000 by
9008 # default) and relocated if they conflict, which is a slow very memory
9009 # consuming and fragmenting process. To avoid this, we pick a random,
9010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9012 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9013 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9016 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9018 if test "$host_os" = linux-dietlibc; then
9019 case $cc_basename in
9020 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9023 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9024 && test "$tmp_diet" = no
9027 tmp_sharedflag='-shared'
9028 case $cc_basename,$host_cpu in
9029 pgcc*) # Portland Group C compiler
9030 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9031 tmp_addflag=' $pic_flag'
9033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9034 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9035 tmp_addflag=' $pic_flag -Mnomain' ;;
9036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9037 tmp_addflag=' -i_dynamic' ;;
9038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9039 tmp_addflag=' -i_dynamic -nofor_main' ;;
9040 ifc* | ifort*) # Intel Fortran compiler
9041 tmp_addflag=' -nofor_main' ;;
9042 lf95*) # Lahey Fortran 8.1
9043 whole_archive_flag_spec=
9044 tmp_sharedflag='--shared' ;;
9045 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9046 tmp_sharedflag='-qmkshrobj'
9049 case `$CC -V 2>&1 | sed 5q` in
9050 *Sun\ C*) # Sun C 5.9
9051 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9052 compiler_needs_object=yes
9053 tmp_sharedflag='-G' ;;
9054 *Sun\ F*) # Sun Fortran 8.3
9055 tmp_sharedflag='-G' ;;
9057 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 if test "x$supports_anon_versioning" = xyes; then
9060 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9061 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9062 echo "local: *; };" >> $output_objdir/$libname.ver~
9063 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9066 case $cc_basename in
9068 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9069 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9070 hardcode_libdir_flag_spec=
9071 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9072 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9073 if test "x$supports_anon_versioning" = xyes; then
9074 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9075 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9076 echo "local: *; };" >> $output_objdir/$libname.ver~
9077 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9087 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9088 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9097 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9102 *** create shared libraries on Solaris systems. Therefore, libtool
9103 *** is disabling shared libraries support. We urge you to upgrade GNU
9104 *** binutils to release 2.9.1 or newer. Another option is to modify
9105 *** your PATH or compiler configuration so that the native linker is
9106 *** used, and then restart.
9109 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9118 case `$LD -v 2>&1` in
9119 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9124 *** reliably create shared libraries on SCO systems. Therefore, libtool
9125 *** is disabling shared libraries support. We urge you to upgrade GNU
9126 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9127 *** your PATH or compiler configuration so that the native linker is
9128 *** used, and then restart.
9133 # For security reasons, it is highly recommended that you always
9134 # use absolute paths for naming shared libraries, and exclude the
9135 # DT_RUNPATH tag from executables and libraries. But doing so
9136 # requires that you compile everything twice, which is a pain.
9137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9152 hardcode_shlibpath_var=no
9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9165 if test "$ld_shlibs" = no; then
9167 hardcode_libdir_flag_spec=
9168 export_dynamic_flag_spec=
9169 whole_archive_flag_spec=
9172 # PORTME fill in a description of your system's linker (not GNU ld)
9175 allow_undefined_flag=unsupported
9176 always_export_symbols=yes
9177 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'
9178 # Note: this linker hardcodes the directories in LIBPATH if there
9179 # are no directories specified by -L.
9180 hardcode_minus_L=yes
9181 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9182 # Neither direct hardcoding nor static linking is supported with a
9184 hardcode_direct=unsupported
9189 if test "$host_cpu" = ia64; then
9190 # On IA64, the linker does run time linking by default, so we don't
9191 # have to do anything special.
9192 aix_use_runtimelinking=no
9193 exp_sym_flag='-Bexport'
9196 # If we're using GNU nm, then we don't want the "-C" option.
9197 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9198 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9199 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'
9201 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'
9203 aix_use_runtimelinking=no
9205 # Test if we are trying to use run time linking or normal
9206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9207 # need to do runtime linking.
9208 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9209 for ld_flag in $LDFLAGS; do
9210 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9211 aix_use_runtimelinking=yes
9218 exp_sym_flag='-bexport'
9219 no_entry_flag='-bnoentry'
9222 # When large executables or shared objects are built, AIX ld can
9223 # have problems creating the table of contents. If linking a library
9224 # or program results in "error TOC overflow" add -mminimal-toc to
9225 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9226 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9230 hardcode_direct_absolute=yes
9231 hardcode_libdir_separator=':'
9232 link_all_deplibs=yes
9233 file_list_spec='${wl}-f,'
9235 if test "$GCC" = yes; then
9236 case $host_os in aix4.[012]|aix4.[012].*)
9237 # We only want to do this on AIX 4.2 and lower, the check
9238 # below for broken collect2 doesn't work under 4.3+
9239 collect2name=`${CC} -print-prog-name=collect2`
9240 if test -f "$collect2name" &&
9241 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9243 # We have reworked collect2
9246 # We have old collect2
9247 hardcode_direct=unsupported
9248 # It fails to find uninstalled libraries when the uninstalled
9249 # path is not listed in the libpath. Setting hardcode_minus_L
9250 # to unsupported forces relinking
9251 hardcode_minus_L=yes
9252 hardcode_libdir_flag_spec='-L$libdir'
9253 hardcode_libdir_separator=
9257 shared_flag='-shared'
9258 if test "$aix_use_runtimelinking" = yes; then
9259 shared_flag="$shared_flag "'${wl}-G'
9263 if test "$host_cpu" = ia64; then
9264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9265 # chokes on -Wl,-G. The following line is correct:
9268 if test "$aix_use_runtimelinking" = yes; then
9269 shared_flag='${wl}-G'
9271 shared_flag='${wl}-bM:SRE'
9276 export_dynamic_flag_spec='${wl}-bexpall'
9277 # It seems that -bexpall does not export symbols beginning with
9278 # underscore (_), so it is better to generate a list of symbols to export.
9279 always_export_symbols=yes
9280 if test "$aix_use_runtimelinking" = yes; then
9281 # Warning - without using the other runtime loading flags (-brtl),
9282 # -berok will link without error, but may produce a broken library.
9283 allow_undefined_flag='-berok'
9284 # Determine the default libpath from the value encoded in an
9286 if test x$gcc_no_link = xyes; then
9287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9289 { (exit 1); exit 1; }; }
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9308 (eval $ac_link) 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -z "$ac_c_werror_flag"
9316 || test ! -s conftest.err'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9329 lt_aix_libpath_sed='
9330 /Import File Strings/,/^$/ {
9336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9337 # Check for a 64-bit object if we didn't find anything.
9338 if test -z "$aix_libpath"; then
9339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9346 rm -f conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9350 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9351 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9353 if test "$host_cpu" = ia64; then
9354 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9355 allow_undefined_flag="-z nodefs"
9356 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9358 # Determine the default libpath from the value encoded in an
9360 if test x$gcc_no_link = xyes; then
9361 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9363 { (exit 1); exit 1; }; }
9365 cat >conftest.$ac_ext <<_ACEOF
9368 cat confdefs.h >>conftest.$ac_ext
9369 cat >>conftest.$ac_ext <<_ACEOF
9370 /* end confdefs.h. */
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382 (eval $ac_link) 2>conftest.er1
9384 grep -v '^ *+' conftest.er1 >conftest.err
9386 cat conftest.err >&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -z "$ac_c_werror_flag"
9390 || test ! -s conftest.err'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try='test -s conftest$ac_exeext'
9397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); }; }; then
9403 lt_aix_libpath_sed='
9404 /Import File Strings/,/^$/ {
9410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9411 # Check for a 64-bit object if we didn't find anything.
9412 if test -z "$aix_libpath"; then
9413 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425 # Warning - without using the other run time loading flags,
9426 # -berok will link without error, but may produce a broken library.
9427 no_undefined_flag=' ${wl}-bernotok'
9428 allow_undefined_flag=' ${wl}-berok'
9429 # Exported symbols can be pulled into shared objects from archives
9430 whole_archive_flag_spec='$convenience'
9431 archive_cmds_need_lc=yes
9432 # This is similar to how AIX traditionally builds its shared libraries.
9433 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9441 # see comment about AmigaOS4 .so support
9442 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443 archive_expsym_cmds=''
9446 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)'
9447 hardcode_libdir_flag_spec='-L$libdir'
9448 hardcode_minus_L=yes
9454 export_dynamic_flag_spec=-rdynamic
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 # When not using gcc, we currently assume that we are using
9459 # Microsoft Visual C++.
9460 # hardcode_libdir_flag_spec is actually meaningless, as there is
9461 # no search path for DLLs.
9462 hardcode_libdir_flag_spec=' '
9463 allow_undefined_flag=unsupported
9464 # Tell ltmain to make .lib files, not .a files.
9466 # Tell ltmain to make .dll files, not .so files.
9468 # FIXME: Setting linknames here is a bad hack.
9469 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9470 # The linker will automatically build a .lib file if we build a DLL.
9471 old_archive_from_new_cmds='true'
9472 # FIXME: Should let the user specify the lib program.
9473 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9474 fix_srcfile_path='`cygpath -w "$srcfile"`'
9475 enable_shared_with_static_runtimes=yes
9478 darwin* | rhapsody*)
9481 archive_cmds_need_lc=no
9483 hardcode_automatic=yes
9484 hardcode_shlibpath_var=unsupported
9485 whole_archive_flag_spec=''
9486 link_all_deplibs=yes
9487 allow_undefined_flag="$_lt_dar_allow_undefined"
9488 case $cc_basename in
9489 ifort*) _lt_dar_can_shared=yes ;;
9490 *) _lt_dar_can_shared=$GCC ;;
9492 if test "$_lt_dar_can_shared" = "yes"; then
9493 output_verbose_link_cmd=echo
9494 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9495 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9496 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9497 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_libdir_flag_spec='-L$libdir'
9508 hardcode_shlibpath_var=no
9515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9516 # support. Future versions do this automatically, but an explicit c++rt0.o
9517 # does not break anything, and helps significantly (at the cost of a little
9520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9521 hardcode_libdir_flag_spec='-R$libdir'
9523 hardcode_shlibpath_var=no
9526 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9528 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_minus_L=yes
9531 hardcode_shlibpath_var=no
9534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9535 freebsd* | dragonfly*)
9536 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9537 hardcode_libdir_flag_spec='-R$libdir'
9539 hardcode_shlibpath_var=no
9543 if test "$GCC" = yes; then
9544 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'
9546 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'
9548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549 hardcode_libdir_separator=:
9552 # hardcode_minus_L: Not really in the search PATH,
9553 # but as the default location of the library.
9554 hardcode_minus_L=yes
9555 export_dynamic_flag_spec='${wl}-E'
9559 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9560 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9562 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9564 if test "$with_gnu_ld" = no; then
9565 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9566 hardcode_libdir_flag_spec_ld='+b $libdir'
9567 hardcode_libdir_separator=:
9569 hardcode_direct_absolute=yes
9570 export_dynamic_flag_spec='${wl}-E'
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9578 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9581 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9587 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9596 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9603 if test "$with_gnu_ld" = no; then
9604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9605 hardcode_libdir_separator=:
9610 hardcode_shlibpath_var=no
9614 hardcode_direct_absolute=yes
9615 export_dynamic_flag_spec='${wl}-E'
9617 # hardcode_minus_L: Not really in the search PATH,
9618 # but as the default location of the library.
9619 hardcode_minus_L=yes
9625 irix5* | irix6* | nonstopux*)
9626 if test "$GCC" = yes; then
9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9628 # Try to use the -exported_symbol ld option, if it does not
9629 # work, assume that -exports_file does not work either and
9630 # implicitly export all symbols.
9631 save_LDFLAGS="$LDFLAGS"
9632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9633 if test x$gcc_no_link = xyes; then
9634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9636 { (exit 1); exit 1; }; }
9638 cat >conftest.$ac_ext <<_ACEOF
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9643 (eval $ac_link) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1 >conftest.err
9647 cat conftest.err >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -z "$ac_c_werror_flag"
9651 || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9670 rm -f conftest.err conftest.$ac_objext \
9671 conftest$ac_exeext conftest.$ac_ext
9672 LDFLAGS="$save_LDFLAGS"
9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9677 archive_cmds_need_lc='no'
9678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679 hardcode_libdir_separator=:
9681 link_all_deplibs=yes
9685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9688 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9690 hardcode_libdir_flag_spec='-R$libdir'
9692 hardcode_shlibpath_var=no
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699 hardcode_libdir_separator=:
9700 hardcode_shlibpath_var=no
9707 if test -f /usr/libexec/ld.so; then
9709 hardcode_shlibpath_var=no
9710 hardcode_direct_absolute=yes
9711 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9715 export_dynamic_flag_spec='${wl}-E'
9718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-R$libdir'
9723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_minus_L=yes
9736 allow_undefined_flag=unsupported
9737 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'
9738 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9742 if test "$GCC" = yes; then
9743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9744 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9746 allow_undefined_flag=' -expect_unresolved \*'
9747 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9749 archive_cmds_need_lc='no'
9750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751 hardcode_libdir_separator=:
9754 osf4* | osf5*) # as osf3* with the addition of -msym flag
9755 if test "$GCC" = yes; then
9756 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9757 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760 allow_undefined_flag=' -expect_unresolved \*'
9761 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9762 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9763 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9765 # Both c and cxx compiler support -rpath directly
9766 hardcode_libdir_flag_spec='-rpath $libdir'
9768 archive_cmds_need_lc='no'
9769 hardcode_libdir_separator=:
9773 no_undefined_flag=' -z defs'
9774 if test "$GCC" = yes; then
9776 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9778 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9780 case `$CC -V 2>&1` in
9783 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9785 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9789 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9791 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9795 hardcode_libdir_flag_spec='-R$libdir'
9796 hardcode_shlibpath_var=no
9798 solaris2.[0-5] | solaris2.[0-5].*) ;;
9800 # The compiler driver will combine and reorder linker options,
9801 # but understands `-z linker_flag'. GCC discards it without `$wl',
9802 # but is careful enough not to reorder.
9803 # Supported since Solaris 2.6 (maybe 2.5.1?)
9804 if test "$GCC" = yes; then
9805 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9807 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9811 link_all_deplibs=yes
9815 if test "x$host_vendor" = xsequent; then
9816 # Use $CC to link under sequent, because it throws in some extra .o
9817 # files that make .init and .fini sections work.
9818 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9820 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9822 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_minus_L=yes
9825 hardcode_shlibpath_var=no
9829 case $host_vendor in
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_direct=yes # is this really true???
9835 ## LD is ld it makes a PLAMLIB
9836 ## CC just makes a GrossModule.
9837 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9838 reload_cmds='$CC -r -o $output$reload_objs'
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9846 runpath_var='LD_RUN_PATH'
9847 hardcode_shlibpath_var=no
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852 hardcode_shlibpath_var=no
9853 export_dynamic_flag_spec='-Bexport'
9857 if test -d /usr/nec; then
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_shlibpath_var=no
9860 runpath_var=LD_RUN_PATH
9861 hardcode_runpath_var=yes
9866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9867 no_undefined_flag='${wl}-z,text'
9868 archive_cmds_need_lc=no
9869 hardcode_shlibpath_var=no
9870 runpath_var='LD_RUN_PATH'
9872 if test "$GCC" = yes; then
9873 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 sysv5* | sco3.2v5* | sco5v6*)
9882 # Note: We can NOT use -z defs as we might desire, because we do not
9883 # link with -lc, and that would cause any symbols used from libc to
9884 # always be unresolved, which means just about no library would
9885 # ever link correctly. If we're not using GNU ld we use -z text
9886 # though, which does catch some bad symbols but isn't as heavy-handed
9888 no_undefined_flag='${wl}-z,text'
9889 allow_undefined_flag='${wl}-z,nodefs'
9890 archive_cmds_need_lc=no
9891 hardcode_shlibpath_var=no
9892 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9893 hardcode_libdir_separator=':'
9894 link_all_deplibs=yes
9895 export_dynamic_flag_spec='${wl}-Bexport'
9896 runpath_var='LD_RUN_PATH'
9898 if test "$GCC" = yes; then
9899 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9909 hardcode_libdir_flag_spec='-L$libdir'
9910 hardcode_shlibpath_var=no
9918 if test x$host_vendor = xsni; then
9920 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9921 export_dynamic_flag_spec='${wl}-Blargedynsym'
9927 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9928 echo "${ECHO_T}$ld_shlibs" >&6
9929 test "$ld_shlibs" = no && can_build_shared=no
9931 with_gnu_ld=$with_gnu_ld
9948 # Do we need to explicitly link libc?
9950 case "x$archive_cmds_need_lc" in
9952 # Assume -lc should be added
9953 archive_cmds_need_lc=yes
9955 if test "$enable_shared" = yes && test "$GCC" = yes; then
9956 case $archive_cmds in
9958 # FIXME: we may have to deal with multi-command sequences.
9961 # Test whether the compiler implicitly links with -lc since on some
9962 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9963 # to ld, don't add -lc before -lgcc.
9964 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9965 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9966 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } 2>conftest.err; then
9979 libobjs=conftest.$ac_objext
9981 wl=$lt_prog_compiler_wl
9982 pic_flag=$lt_prog_compiler_pic
9988 lt_save_allow_undefined_flag=$allow_undefined_flag
9989 allow_undefined_flag=
9990 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9991 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }
9996 lt_cv_archive_cmds_need_lc=no
9998 lt_cv_archive_cmds_need_lc=yes
10000 allow_undefined_flag=$lt_save_allow_undefined_flag
10002 cat conftest.err 1>&5
10007 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10008 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
10009 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10172 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10173 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10175 if test "$GCC" = yes; then
10177 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10178 *) lt_awk_arg="/^libraries:/" ;;
10180 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10181 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10182 # if the path contains ";" then we assume it to be the separator
10183 # otherwise default to the standard path separator (i.e. ":") - it is
10184 # assumed that no part of a normal pathname contains ";" but that should
10185 # okay in the real world where ";" in dirpaths is itself problematic.
10186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10190 # Ok, now we have the path, separated by spaces, we can step through it
10191 # and add multilib dir if necessary.
10192 lt_tmp_lt_search_path_spec=
10193 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10194 for lt_sys_path in $lt_search_path_spec; do
10195 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10196 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10198 test -d "$lt_sys_path" && \
10199 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10202 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10203 BEGIN {RS=" "; FS="/|\n";} {
10206 for (lt_i = NF; lt_i > 0; lt_i--) {
10207 if ($lt_i != "" && $lt_i != ".") {
10208 if ($lt_i == "..") {
10211 if (lt_count == 0) {
10212 lt_foo="/" $lt_i lt_foo;
10219 if (lt_foo != "") { lt_freq[lt_foo]++; }
10220 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10222 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10224 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10226 library_names_spec=
10227 libname_spec='lib$name'
10231 postuninstall_cmds=
10235 shlibpath_overrides_runpath=unknown
10237 dynamic_linker="$host_os ld.so"
10238 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10239 need_lib_prefix=unknown
10240 hardcode_into_libs=no
10242 # when you set need_version to no, make sure it does not cause -set_version
10243 # flags to be left without arguments
10244 need_version=unknown
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10250 shlibpath_var=LIBPATH
10252 # AIX 3 has no versioning support, so we append a major version to the name.
10253 soname_spec='${libname}${release}${shared_ext}$major'
10260 hardcode_into_libs=yes
10261 if test "$host_cpu" = ia64; then
10262 # AIX 5 supports IA64
10263 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10264 shlibpath_var=LD_LIBRARY_PATH
10266 # With GCC up to 2.95.x, collect2 would create an import file
10267 # for dependence libraries. The import file would start with
10268 # the line `#! .'. This would cause the generated library to
10269 # depend on `.', always an invalid library. This was fixed in
10270 # development snapshots of GCC prior to 3.0.
10272 aix4 | aix4.[01] | aix4.[01].*)
10273 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10275 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10278 can_build_shared=no
10282 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10283 # soname into executable. Probably we can add versioning support to
10284 # collect2, so additional links can be useful in future.
10285 if test "$aix_use_runtimelinking" = yes; then
10286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10287 # instead of lib<name>.a to let people know that these are not
10288 # typical AIX shared libraries.
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 # We preserve .a as extension for shared libraries through AIX4.2
10292 # and later when we are not doing run time linking.
10293 library_names_spec='${libname}${release}.a $libname.a'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10296 shlibpath_var=LIBPATH
10303 # Since July 2007 AmigaOS4 officially supports .so libraries.
10304 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 library_names_spec='$libname.ixlibrary $libname.a'
10309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10310 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'
10316 library_names_spec='${libname}${shared_ext}'
10317 dynamic_linker="$host_os ld.so"
10318 shlibpath_var=LIBRARY_PATH
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10329 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10330 # the default ld.so.conf also contains /usr/contrib/lib and
10331 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10332 # libtool to hard-code these into programs
10335 cygwin* | mingw* | pw32* | cegcc*)
10336 version_type=windows
10341 case $GCC,$host_os in
10342 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10343 library_names_spec='$libname.dll.a'
10344 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10345 postinstall_cmds='base_file=`basename \${file}`~
10346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10347 dldir=$destdir/`dirname \$dlpath`~
10348 test -d \$dldir || mkdir -p \$dldir~
10349 $install_prog $dir/$dlname \$dldir/$dlname~
10350 chmod a+x \$dldir/$dlname~
10351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10355 dlpath=$dir/\$dldll~
10357 shlibpath_overrides_runpath=yes
10361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10362 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10366 # MinGW DLLs use traditional 'lib' prefix
10367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10368 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10369 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10370 # It is most probably a Windows format PATH printed by
10371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10372 # path with ; separators, and with drive letters. We can handle the
10373 # drive letters (cygwin fileutils understands them), so leave them,
10374 # especially as we might pass files found there to a mingw objdump,
10375 # which wouldn't understand a cygwinified path. Ahh.
10376 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10382 # pw32 DLLs use 'pw' prefix rather than 'lib'
10383 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10392 dynamic_linker='Win32 ld.exe'
10393 # FIXME: first we should search . and the directory the executable is in
10397 darwin* | rhapsody*)
10398 dynamic_linker="$host_os dyld"
10399 version_type=darwin
10402 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10403 soname_spec='${libname}${release}${major}$shared_ext'
10404 shlibpath_overrides_runpath=yes
10405 shlibpath_var=DYLD_LIBRARY_PATH
10406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10417 soname_spec='${libname}${release}${shared_ext}$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10425 freebsd* | dragonfly*)
10426 # DragonFly does not have aout. When/if they implement a new
10427 # versioning mechanism, adjust this.
10428 if test -x /usr/bin/objformat; then
10429 objformat=`/usr/bin/objformat`
10432 freebsd[123]*) objformat=aout ;;
10433 *) objformat=elf ;;
10436 version_type=freebsd-$objformat
10437 case $version_type in
10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10444 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10448 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10453 freebsd3.[01]* | freebsdelf3.[01]*)
10454 shlibpath_overrides_runpath=yes
10455 hardcode_into_libs=yes
10457 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10458 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10459 shlibpath_overrides_runpath=no
10460 hardcode_into_libs=yes
10462 *) # from 4.6 on, and DragonFly
10463 shlibpath_overrides_runpath=yes
10464 hardcode_into_libs=yes
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 hardcode_into_libs=yes
10479 hpux9* | hpux10* | hpux11*)
10480 # Give a soname corresponding to the major version so that dld.sl refuses to
10481 # link against other versions.
10488 hardcode_into_libs=yes
10489 dynamic_linker="$host_os dld.so"
10490 shlibpath_var=LD_LIBRARY_PATH
10491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 if test "X$HPUX_IA64_MODE" = X32; then
10495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10497 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10503 hardcode_into_libs=yes
10504 dynamic_linker="$host_os dld.sl"
10505 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10510 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10514 dynamic_linker="$host_os dld.sl"
10515 shlibpath_var=SHLIB_PATH
10516 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 soname_spec='${libname}${release}${shared_ext}$major'
10521 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10522 postinstall_cmds='chmod 555 $lib'
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10537 irix5* | irix6* | nonstopux*)
10539 nonstopux*) version_type=nonstopux ;;
10541 if test "$lt_cv_prog_gnu_ld" = yes; then
10549 soname_spec='${libname}${release}${shared_ext}$major'
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10552 irix5* | nonstopux*)
10553 libsuff= shlibsuff=
10556 case $LD in # libtool.m4 will add one of these switches to LD
10557 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10558 libsuff= shlibsuff= libmagic=32-bit;;
10559 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10560 libsuff=32 shlibsuff=N32 libmagic=N32;;
10561 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10562 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10563 *) libsuff= shlibsuff= libmagic=never-match;;
10567 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10568 shlibpath_overrides_runpath=no
10569 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10570 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10571 hardcode_into_libs=yes
10574 # No shared lib support for Linux oldld, aout, or coff.
10575 linux*oldld* | linux*aout* | linux*coff*)
10579 # This must be Linux ELF.
10580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10587 shlibpath_var=LD_LIBRARY_PATH
10588 shlibpath_overrides_runpath=no
10590 # Some binutils ld are patched to set DT_RUNPATH
10591 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 lt_cv_shlibpath_overrides_runpath=no
10595 save_LDFLAGS=$LDFLAGS
10596 save_libdir=$libdir
10597 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10598 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10599 if test x$gcc_no_link = xyes; then
10600 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10601 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10602 { (exit 1); exit 1; }; }
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10619 rm -f conftest.$ac_objext conftest$ac_exeext
10620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10621 (eval $ac_link) 2>conftest.er1
10623 grep -v '^ *+' conftest.er1 >conftest.err
10625 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_c_werror_flag"
10629 || test ! -s conftest.err'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; } &&
10635 { ac_try='test -s conftest$ac_exeext'
10636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637 (eval $ac_try) 2>&5
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10642 lt_cv_shlibpath_overrides_runpath=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10650 rm -f conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LDFLAGS=$save_LDFLAGS
10653 libdir=$save_libdir
10657 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10659 # This implies no fast_install, which is unacceptable.
10660 # Some rework will be needed to allow for fast_install
10661 # before this can be enabled.
10662 hardcode_into_libs=yes
10664 # Append ld.so.conf contents to the search path
10665 if test -f /etc/ld.so.conf; then
10666 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10667 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10670 # We used to test for /lib/ld.so.1 and disable shared libraries on
10671 # powerpc, because MkLinux only supported shared libraries with the
10672 # GNU dynamic linker. Since this was broken with cross compilers,
10673 # most powerpc-linux boxes support dynamic linking these days and
10674 # people can always --disable-shared, the test was removed, and we
10675 # assume the GNU/Linux dynamic linker is in use.
10676 dynamic_linker='GNU/Linux ld.so'
10683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10686 dynamic_linker='NetBSD (a.out) ld.so'
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 dynamic_linker='NetBSD ld.elf_so'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=yes
10694 hardcode_into_libs=yes
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=yes
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 shlibpath_overrides_runpath=no
10712 hardcode_into_libs=yes
10713 dynamic_linker='ldqnx.so'
10718 sys_lib_dlsearch_path_spec="/usr/lib"
10720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10722 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10723 *) need_version=no ;;
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10730 openbsd2.[89] | openbsd2.[89].*)
10731 shlibpath_overrides_runpath=no
10734 shlibpath_overrides_runpath=yes
10738 shlibpath_overrides_runpath=yes
10743 libname_spec='$name'
10746 library_names_spec='$libname${shared_ext} $libname.a'
10747 dynamic_linker='OS/2 ld.exe'
10748 shlibpath_var=LIBPATH
10751 osf3* | osf4* | osf5*)
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10775 # ldd complains unless libraries are executable
10776 postinstall_cmds='chmod +x $lib'
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 if test "$with_gnu_ld" = yes; then
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 case $host_vendor in
10798 shlibpath_overrides_runpath=no
10800 runpath_var=LD_RUN_PATH
10808 shlibpath_overrides_runpath=no
10809 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10815 if test -d /usr/nec ;then
10817 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10818 soname_spec='$libname${shared_ext}.$major'
10819 shlibpath_var=LD_LIBRARY_PATH
10823 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10824 version_type=freebsd-elf
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 hardcode_into_libs=yes
10832 if test "$with_gnu_ld" = yes; then
10833 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10835 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10838 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10842 sys_lib_dlsearch_path_spec='/usr/lib'
10846 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 shlibpath_overrides_runpath=no
10853 hardcode_into_libs=yes
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LD_LIBRARY_PATH
10867 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10868 echo "${ECHO_T}$dynamic_linker" >&6
10869 test "$dynamic_linker" = no && can_build_shared=no
10871 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10872 if test "$GCC" = yes; then
10873 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10876 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10877 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10879 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10880 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10969 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10970 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10972 if test -n "$hardcode_libdir_flag_spec" ||
10973 test -n "$runpath_var" ||
10974 test "X$hardcode_automatic" = "Xyes" ; then
10976 # We can hardcode non-existent directories.
10977 if test "$hardcode_direct" != no &&
10978 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10979 # have to relink, otherwise we might link with an installed library
10980 # when we should be linking with a yet-to-be-installed one
10981 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10982 test "$hardcode_minus_L" != no; then
10983 # Linking always hardcodes the temporary library directory.
10984 hardcode_action=relink
10986 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10987 hardcode_action=immediate
10990 # We cannot hardcode anything, or else we can only hardcode existing
10992 hardcode_action=unsupported
10994 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10995 echo "${ECHO_T}$hardcode_action" >&6
10997 if test "$hardcode_action" = relink ||
10998 test "$inherit_rpath" = yes; then
10999 # Fast installation is not supported
11000 enable_fast_install=no
11001 elif test "$shlibpath_overrides_runpath" = yes ||
11002 test "$enable_shared" = no; then
11003 # Fast installation is not necessary
11004 enable_fast_install=needless
11012 if test "x$enable_dlopen" != xyes; then
11013 enable_dlopen=unknown
11014 enable_dlopen_self=unknown
11015 enable_dlopen_self_static=unknown
11022 lt_cv_dlopen="load_add_on"
11024 lt_cv_dlopen_self=yes
11027 mingw* | pw32* | cegcc*)
11028 lt_cv_dlopen="LoadLibrary"
11033 lt_cv_dlopen="dlopen"
11038 # if libdl is installed we need to link against it
11039 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11040 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11041 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_check_lib_save_LIBS=$LIBS
11046 if test x$gcc_no_link = xyes; then
11047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11049 { (exit 1); exit 1; }; }
11051 cat >conftest.$ac_ext <<_ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11058 /* Override any gcc2 internal prototype to avoid an error. */
11062 /* We use char because int might match the return type of a gcc2
11063 builtin and then its argument prototype would still apply. */
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>conftest.er1
11077 grep -v '^ *+' conftest.er1 >conftest.err
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 ac_cv_lib_dl_dlopen=yes
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_cv_lib_dl_dlopen=no
11102 rm -f conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 LIBS=$ac_check_lib_save_LIBS
11106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11107 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11108 if test $ac_cv_lib_dl_dlopen = yes; then
11109 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11112 lt_cv_dlopen="dyld"
11114 lt_cv_dlopen_self=yes
11121 echo "$as_me:$LINENO: checking for shl_load" >&5
11122 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11123 if test "${ac_cv_func_shl_load+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 if test x$gcc_no_link = xyes; then
11127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11129 { (exit 1); exit 1; }; }
11131 cat >conftest.$ac_ext <<_ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11139 #define shl_load innocuous_shl_load
11141 /* System header to define __stub macros and hopefully few prototypes,
11142 which can conflict with char shl_load (); below.
11143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144 <limits.h> exists even on freestanding compilers. */
11147 # include <limits.h>
11149 # include <assert.h>
11154 /* Override any gcc2 internal prototype to avoid an error. */
11159 /* We use char because int might match the return type of a gcc2
11160 builtin and then its argument prototype would still apply. */
11162 /* The GNU C library defines this for functions which it implements
11163 to always fail with ENOSYS. Some functions are actually named
11164 something starting with __ and the normal name is an alias. */
11165 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11168 char (*f) () = shl_load;
11177 return f != shl_load;
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11184 (eval $ac_link) 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try='test -z "$ac_c_werror_flag"
11192 || test ! -s conftest.err'
11193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194 (eval $ac_try) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }; } &&
11198 { ac_try='test -s conftest$ac_exeext'
11199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200 (eval $ac_try) 2>&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); }; }; then
11204 ac_cv_func_shl_load=yes
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 ac_cv_func_shl_load=no
11211 rm -f conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11214 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11215 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11216 if test $ac_cv_func_shl_load = yes; then
11217 lt_cv_dlopen="shl_load"
11219 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11220 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11221 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_check_lib_save_LIBS=$LIBS
11226 if test x$gcc_no_link = xyes; then
11227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11229 { (exit 1); exit 1; }; }
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11238 /* Override any gcc2 internal prototype to avoid an error. */
11242 /* We use char because int might match the return type of a gcc2
11243 builtin and then its argument prototype would still apply. */
11253 rm -f conftest.$ac_objext conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } &&
11262 { ac_try='test -z "$ac_c_werror_flag"
11263 || test ! -s conftest.err'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; } &&
11269 { ac_try='test -s conftest$ac_exeext'
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_lib_dld_shl_load=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_cv_lib_dld_shl_load=no
11282 rm -f conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11286 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11287 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11288 if test $ac_cv_lib_dld_shl_load = yes; then
11289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11291 echo "$as_me:$LINENO: checking for dlopen" >&5
11292 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11293 if test "${ac_cv_func_dlopen+set}" = set; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 if test x$gcc_no_link = xyes; then
11297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11299 { (exit 1); exit 1; }; }
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11309 #define dlopen innocuous_dlopen
11311 /* System header to define __stub macros and hopefully few prototypes,
11312 which can conflict with char dlopen (); below.
11313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314 <limits.h> exists even on freestanding compilers. */
11317 # include <limits.h>
11319 # include <assert.h>
11324 /* Override any gcc2 internal prototype to avoid an error. */
11329 /* We use char because int might match the return type of a gcc2
11330 builtin and then its argument prototype would still apply. */
11332 /* The GNU C library defines this for functions which it implements
11333 to always fail with ENOSYS. Some functions are actually named
11334 something starting with __ and the normal name is an alias. */
11335 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11338 char (*f) () = dlopen;
11347 return f != dlopen;
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11354 (eval $ac_link) 2>conftest.er1
11356 grep -v '^ *+' conftest.er1 >conftest.err
11358 cat conftest.err >&5
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); } &&
11361 { ac_try='test -z "$ac_c_werror_flag"
11362 || test ! -s conftest.err'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; } &&
11368 { ac_try='test -s conftest$ac_exeext'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_func_dlopen=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_cv_func_dlopen=no
11381 rm -f conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11384 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11385 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11386 if test $ac_cv_func_dlopen = yes; then
11387 lt_cv_dlopen="dlopen"
11389 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11390 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11391 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 ac_check_lib_save_LIBS=$LIBS
11396 if test x$gcc_no_link = xyes; then
11397 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11398 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11399 { (exit 1); exit 1; }; }
11401 cat >conftest.$ac_ext <<_ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 ac_cv_lib_dl_dlopen=yes
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 ac_cv_lib_dl_dlopen=no
11452 rm -f conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11456 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11458 if test $ac_cv_lib_dl_dlopen = yes; then
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11461 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-lsvld $LIBS"
11468 if test x$gcc_no_link = xyes; then
11469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11471 { (exit 1); exit 1; }; }
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11480 /* Override any gcc2 internal prototype to avoid an error. */
11484 /* We use char because int might match the return type of a gcc2
11485 builtin and then its argument prototype would still apply. */
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11497 (eval $ac_link) 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest$ac_exeext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_cv_lib_svld_dlopen=yes
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11522 ac_cv_lib_svld_dlopen=no
11524 rm -f conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11528 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11529 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11530 if test $ac_cv_lib_svld_dlopen = yes; then
11531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11533 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11534 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11535 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 ac_check_lib_save_LIBS=$LIBS
11540 if test x$gcc_no_link = xyes; then
11541 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11542 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11543 { (exit 1); exit 1; }; }
11545 cat >conftest.$ac_ext <<_ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11552 /* Override any gcc2 internal prototype to avoid an error. */
11556 /* We use char because int might match the return type of a gcc2
11557 builtin and then its argument prototype would still apply. */
11567 rm -f conftest.$ac_objext conftest$ac_exeext
11568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11569 (eval $ac_link) 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag"
11577 || test ! -s conftest.err'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; } &&
11583 { ac_try='test -s conftest$ac_exeext'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; }; then
11589 ac_cv_lib_dld_dld_link=yes
11591 echo "$as_me: failed program was:" >&5
11592 sed 's/^/| /' conftest.$ac_ext >&5
11594 ac_cv_lib_dld_dld_link=no
11596 rm -f conftest.err conftest.$ac_objext \
11597 conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11600 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11601 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11602 if test $ac_cv_lib_dld_dld_link = yes; then
11603 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11624 if test "x$lt_cv_dlopen" != xno; then
11630 case $lt_cv_dlopen in
11632 save_CPPFLAGS="$CPPFLAGS"
11633 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11635 save_LDFLAGS="$LDFLAGS"
11636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11639 LIBS="$lt_cv_dlopen_libs $LIBS"
11641 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11642 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11643 if test "${lt_cv_dlopen_self+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 if test "$cross_compiling" = yes; then :
11647 lt_cv_dlopen_self=cross
11649 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11650 lt_status=$lt_dlunknown
11651 cat > conftest.$ac_ext <<_LT_EOF
11652 #line 11652 "configure"
11653 #include "confdefs.h"
11662 # define LT_DLGLOBAL RTLD_GLOBAL
11665 # define LT_DLGLOBAL DL_GLOBAL
11667 # define LT_DLGLOBAL 0
11671 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11672 find out it does not work in some platform. */
11673 #ifndef LT_DLLAZY_OR_NOW
11675 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11678 # define LT_DLLAZY_OR_NOW DL_LAZY
11681 # define LT_DLLAZY_OR_NOW RTLD_NOW
11684 # define LT_DLLAZY_OR_NOW DL_NOW
11686 # define LT_DLLAZY_OR_NOW 0
11693 void fnord() { int i=42;}
11696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11697 int status = $lt_dlunknown;
11701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703 /* dlclose (self); */
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712 (eval $ac_link) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11716 (./conftest; exit; ) >&5 2>/dev/null
11718 case x$lt_status in
11719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11721 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11724 # compilation failed
11725 lt_cv_dlopen_self=no
11732 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11733 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11735 if test "x$lt_cv_dlopen_self" = xyes; then
11736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11737 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11738 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11739 if test "${lt_cv_dlopen_self_static+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self_static=cross
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<_LT_EOF
11748 #line 11748 "configure"
11749 #include "confdefs.h"
11758 # define LT_DLGLOBAL RTLD_GLOBAL
11761 # define LT_DLGLOBAL DL_GLOBAL
11763 # define LT_DLGLOBAL 0
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11774 # define LT_DLLAZY_OR_NOW DL_LAZY
11777 # define LT_DLLAZY_OR_NOW RTLD_NOW
11780 # define LT_DLLAZY_OR_NOW DL_NOW
11782 # define LT_DLLAZY_OR_NOW 0
11789 void fnord() { int i=42;}
11792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11793 int status = $lt_dlunknown;
11797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11798 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799 /* dlclose (self); */
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11812 (./conftest; exit; ) >&5 2>/dev/null
11814 case x$lt_status in
11815 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11816 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11817 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11820 # compilation failed
11821 lt_cv_dlopen_self_static=no
11828 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11829 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11832 CPPFLAGS="$save_CPPFLAGS"
11833 LDFLAGS="$save_LDFLAGS"
11838 case $lt_cv_dlopen_self in
11839 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11840 *) enable_dlopen_self=unknown ;;
11843 case $lt_cv_dlopen_self_static in
11844 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11845 *) enable_dlopen_self_static=unknown ;;
11867 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11868 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11869 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11870 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11871 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11872 echo "$as_me:$LINENO: result: yes" >&5
11873 echo "${ECHO_T}yes" >&6
11875 # FIXME - insert some real tests, host_os isn't really good enough
11878 if test -n "$STRIP" ; then
11879 striplib="$STRIP -x"
11880 old_striplib="$STRIP -S"
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11884 echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6
11889 echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11906 # Report which library types will actually be built
11907 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11908 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11909 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11910 echo "${ECHO_T}$can_build_shared" >&6
11912 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11913 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11914 test "$can_build_shared" = "no" && enable_shared=no
11916 # On AIX, shared libraries and static libraries use the same namespace, and
11917 # are all built from PIC.
11920 test "$enable_shared" = yes && enable_static=no
11921 if test -n "$RANLIB"; then
11922 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11923 postinstall_cmds='$RANLIB $lib'
11928 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11929 test "$enable_shared" = yes && enable_static=no
11933 echo "$as_me:$LINENO: result: $enable_shared" >&5
11934 echo "${ECHO_T}$enable_shared" >&6
11936 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11937 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11938 # Make sure either enable_shared or enable_static is yes.
11939 test "$enable_shared" = yes || enable_static=yes
11940 echo "$as_me:$LINENO: result: $enable_static" >&5
11941 echo "${ECHO_T}$enable_static" >&6
11948 ac_cpp='$CPP $CPPFLAGS'
11949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11957 ac_cpp='$CXXCPP $CPPFLAGS'
11958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11962 archive_cmds_need_lc_CXX=no
11963 allow_undefined_flag_CXX=
11964 always_export_symbols_CXX=no
11965 archive_expsym_cmds_CXX=
11966 compiler_needs_object_CXX=no
11967 export_dynamic_flag_spec_CXX=
11968 hardcode_direct_CXX=no
11969 hardcode_direct_absolute_CXX=no
11970 hardcode_libdir_flag_spec_CXX=
11971 hardcode_libdir_flag_spec_ld_CXX=
11972 hardcode_libdir_separator_CXX=
11973 hardcode_minus_L_CXX=no
11974 hardcode_shlibpath_var_CXX=unsupported
11975 hardcode_automatic_CXX=no
11976 inherit_rpath_CXX=no
11978 module_expsym_cmds_CXX=
11979 link_all_deplibs_CXX=unknown
11980 old_archive_cmds_CXX=$old_archive_cmds
11981 no_undefined_flag_CXX=
11982 whole_archive_flag_spec_CXX=
11983 enable_shared_with_static_runtimes_CXX=no
11985 # Source file extension for C++ test sources.
11988 # Object file extension for compiled C++ test sources.
11992 # No sense in running all these tests if we already determined that
11993 # the CXX compiler isn't working. Some variables (like enable_shared)
11994 # are currently assumed to apply to all compilers on this platform,
11995 # and will be corrupted by setting them based on a non-working compiler.
11996 if test "$_lt_caught_CXX_error" != yes; then
11997 # Code to be used in simple compile tests
11998 lt_simple_compile_test_code="int some_variable = 0;"
12000 # Code to be used in simple link tests
12001 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12010 # If no C compiler was specified, use CC.
12013 # If no C compiler flags were specified, use CFLAGS.
12014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12016 # Allow CC to be a program name with arguments.
12020 # save warnings/boilerplate of simple test code
12021 ac_outfile=conftest.$ac_objext
12022 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12024 _lt_compiler_boilerplate=`cat conftest.err`
12027 ac_outfile=conftest.$ac_objext
12028 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12030 _lt_linker_boilerplate=`cat conftest.err`
12034 # Allow CC to be a program name with arguments.
12039 lt_save_with_gnu_ld=$with_gnu_ld
12040 lt_save_path_LD=$lt_cv_path_LD
12041 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12042 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12044 $as_unset lt_cv_prog_gnu_ld
12046 if test -n "${lt_cv_path_LDCXX+set}"; then
12047 lt_cv_path_LD=$lt_cv_path_LDCXX
12049 $as_unset lt_cv_path_LD
12051 test -z "${LDCXX+set}" || LD=$LDCXX
12055 for cc_temp in $compiler""; do
12057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12063 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12066 if test -n "$compiler"; then
12067 # We don't want -fno-exception when compiling C++ code, so set the
12068 # no_builtin_flag separately
12069 if test "$GXX" = yes; then
12070 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12072 lt_prog_compiler_no_builtin_flag_CXX=
12075 if test "$GXX" = yes; then
12076 # Set up default GNU C++ configuration
12080 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12081 if test "${with_gnu_ld+set}" = set; then
12082 withval="$with_gnu_ld"
12083 test "$withval" = no || with_gnu_ld=yes
12088 if test "$GCC" = yes; then
12089 # Check if gcc -print-prog-name=ld gives a path.
12090 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12094 # gcc leaves a trailing carriage return which upsets mingw
12095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12100 # Accept absolute paths.
12102 re_direlt='/[^/][^/]*/\.\./'
12103 # Canonicalize the pathname of ld
12104 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12105 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12106 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12108 test -z "$LD" && LD="$ac_prog"
12111 # If it fails, then pretend we aren't using GCC.
12115 # If it is relative, then search for the first ld in PATH.
12116 with_gnu_ld=unknown
12119 elif test "$with_gnu_ld" = yes; then
12120 echo "$as_me:$LINENO: checking for GNU ld" >&5
12121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12123 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12126 if test "${lt_cv_path_LD+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 if test -z "$LD"; then
12130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12131 for ac_dir in $PATH; do
12133 test -z "$ac_dir" && ac_dir=.
12134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12135 lt_cv_path_LD="$ac_dir/$ac_prog"
12136 # Check to see if the program is GNU ld. I'd rather use --version,
12137 # but apparently some variants of GNU ld only accept -v.
12138 # Break only if it was the GNU/non-GNU ld that we prefer.
12139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12140 *GNU* | *'with BFD'*)
12141 test "$with_gnu_ld" != no && break
12144 test "$with_gnu_ld" != yes && break
12151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12155 LD="$lt_cv_path_LD"
12156 if test -n "$LD"; then
12157 echo "$as_me:$LINENO: result: $LD" >&5
12158 echo "${ECHO_T}$LD" >&6
12160 echo "$as_me:$LINENO: result: no" >&5
12161 echo "${ECHO_T}no" >&6
12163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12165 { (exit 1); exit 1; }; }
12166 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12172 case `$LD -v 2>&1 </dev/null` in
12173 *GNU* | *'with BFD'*)
12174 lt_cv_prog_gnu_ld=yes
12177 lt_cv_prog_gnu_ld=no
12181 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12183 with_gnu_ld=$lt_cv_prog_gnu_ld
12191 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12192 # archiving commands below assume that GNU ld is being used.
12193 if test "$with_gnu_ld" = yes; then
12194 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12195 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'
12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12198 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12200 # If archive_cmds runs LD, not CC, wlarc should be empty
12201 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12202 # investigate it a little bit more. (MM)
12205 # ancient GNU ld didn't support --whole-archive et. al.
12206 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12207 $GREP 'no-whole-archive' > /dev/null; then
12208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12210 whole_archive_flag_spec_CXX=
12216 # A generic and very simple default shared library creation
12217 # command for GNU C++ for the case where it uses the native
12218 # linker, instead of GNU ld. If possible, this setting should
12219 # overridden to take advantage of the native linker features on
12220 # the platform it is being used on.
12221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12224 # Commands to make compiler produce verbose output that lists
12225 # what "hidden" libraries, object files and flags are used when
12226 # linking a shared library.
12227 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12235 # PORTME: fill in a description of your system's C++ link characteristics
12236 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12241 # FIXME: insert proper C++ library support
12245 if test "$host_cpu" = ia64; then
12246 # On IA64, the linker does run time linking by default, so we don't
12247 # have to do anything special.
12248 aix_use_runtimelinking=no
12249 exp_sym_flag='-Bexport'
12252 aix_use_runtimelinking=no
12254 # Test if we are trying to use run time linking or normal
12255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12256 # need to do runtime linking.
12257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12258 for ld_flag in $LDFLAGS; do
12261 aix_use_runtimelinking=yes
12269 exp_sym_flag='-bexport'
12270 no_entry_flag='-bnoentry'
12273 # When large executables or shared objects are built, AIX ld can
12274 # have problems creating the table of contents. If linking a library
12275 # or program results in "error TOC overflow" add -mminimal-toc to
12276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12279 archive_cmds_CXX=''
12280 hardcode_direct_CXX=yes
12281 hardcode_direct_absolute_CXX=yes
12282 hardcode_libdir_separator_CXX=':'
12283 link_all_deplibs_CXX=yes
12284 file_list_spec_CXX='${wl}-f,'
12286 if test "$GXX" = yes; then
12287 case $host_os in aix4.[012]|aix4.[012].*)
12288 # We only want to do this on AIX 4.2 and lower, the check
12289 # below for broken collect2 doesn't work under 4.3+
12290 collect2name=`${CC} -print-prog-name=collect2`
12291 if test -f "$collect2name" &&
12292 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12294 # We have reworked collect2
12297 # We have old collect2
12298 hardcode_direct_CXX=unsupported
12299 # It fails to find uninstalled libraries when the uninstalled
12300 # path is not listed in the libpath. Setting hardcode_minus_L
12301 # to unsupported forces relinking
12302 hardcode_minus_L_CXX=yes
12303 hardcode_libdir_flag_spec_CXX='-L$libdir'
12304 hardcode_libdir_separator_CXX=
12307 shared_flag='-shared'
12308 if test "$aix_use_runtimelinking" = yes; then
12309 shared_flag="$shared_flag "'${wl}-G'
12313 if test "$host_cpu" = ia64; then
12314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12315 # chokes on -Wl,-G. The following line is correct:
12318 if test "$aix_use_runtimelinking" = yes; then
12319 shared_flag='${wl}-G'
12321 shared_flag='${wl}-bM:SRE'
12326 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12327 # It seems that -bexpall does not export symbols beginning with
12328 # underscore (_), so it is better to generate a list of symbols to
12330 always_export_symbols_CXX=yes
12331 if test "$aix_use_runtimelinking" = yes; then
12332 # Warning - without using the other runtime loading flags (-brtl),
12333 # -berok will link without error, but may produce a broken library.
12334 allow_undefined_flag_CXX='-berok'
12335 # Determine the default libpath from the value encoded in an empty
12337 if test x$gcc_no_link = xyes; then
12338 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12340 { (exit 1); exit 1; }; }
12342 cat >conftest.$ac_ext <<_ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12359 (eval $ac_link) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_cxx_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest$ac_exeext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12380 lt_aix_libpath_sed='
12381 /Import File Strings/,/^$/ {
12387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12388 # Check for a 64-bit object if we didn't find anything.
12389 if test -z "$aix_libpath"; then
12390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12397 rm -f conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12401 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12403 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12405 if test "$host_cpu" = ia64; then
12406 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12407 allow_undefined_flag_CXX="-z nodefs"
12408 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12410 # Determine the default libpath from the value encoded in an
12411 # empty executable.
12412 if test x$gcc_no_link = xyes; then
12413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12415 { (exit 1); exit 1; }; }
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12432 rm -f conftest.$ac_objext conftest$ac_exeext
12433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434 (eval $ac_link) 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_cxx_werror_flag"
12442 || test ! -s conftest.err'
12443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444 (eval $ac_try) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12455 lt_aix_libpath_sed='
12456 /Import File Strings/,/^$/ {
12462 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12463 # Check for a 64-bit object if we didn't find anything.
12464 if test -z "$aix_libpath"; then
12465 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12472 rm -f conftest.err conftest.$ac_objext \
12473 conftest$ac_exeext conftest.$ac_ext
12474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12476 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12477 # Warning - without using the other run time loading flags,
12478 # -berok will link without error, but may produce a broken library.
12479 no_undefined_flag_CXX=' ${wl}-bernotok'
12480 allow_undefined_flag_CXX=' ${wl}-berok'
12481 # Exported symbols can be pulled into shared objects from archives
12482 whole_archive_flag_spec_CXX='$convenience'
12483 archive_cmds_need_lc_CXX=yes
12484 # This is similar to how AIX traditionally builds its shared
12486 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12493 allow_undefined_flag_CXX=unsupported
12494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12495 # support --undefined. This deserves some investigation. FIXME
12496 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12503 case $cc_basename in
12505 # FIXME: insert proper C++ library support
12511 cygwin* | mingw* | pw32* | cegcc*)
12512 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12513 # as there is no search path for DLLs.
12514 hardcode_libdir_flag_spec_CXX='-L$libdir'
12515 allow_undefined_flag_CXX=unsupported
12516 always_export_symbols_CXX=no
12517 enable_shared_with_static_runtimes_CXX=yes
12519 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12520 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12521 # If the export-symbols file already is a .def file (1st line
12522 # is EXPORTS), use it as is; otherwise, prepend...
12523 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12524 cp $export_symbols $output_objdir/$soname.def;
12526 echo EXPORTS > $output_objdir/$soname.def;
12527 cat $export_symbols >> $output_objdir/$soname.def;
12529 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12534 darwin* | rhapsody*)
12537 archive_cmds_need_lc_CXX=no
12538 hardcode_direct_CXX=no
12539 hardcode_automatic_CXX=yes
12540 hardcode_shlibpath_var_CXX=unsupported
12541 whole_archive_flag_spec_CXX=''
12542 link_all_deplibs_CXX=yes
12543 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12544 case $cc_basename in
12545 ifort*) _lt_dar_can_shared=yes ;;
12546 *) _lt_dar_can_shared=$GCC ;;
12548 if test "$_lt_dar_can_shared" = "yes"; then
12549 output_verbose_link_cmd=echo
12550 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12551 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12552 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12553 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12554 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12555 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12556 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12566 case $cc_basename in
12568 # FIXME: insert proper C++ library support
12572 # Green Hills C++ Compiler
12573 # FIXME: insert proper C++ library support
12577 # FIXME: insert proper C++ library support
12584 # C++ shared libraries reported to be fairly broken before
12590 archive_cmds_need_lc_CXX=no
12593 freebsd* | dragonfly*)
12594 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12603 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12604 hardcode_libdir_separator_CXX=:
12605 export_dynamic_flag_spec_CXX='${wl}-E'
12606 hardcode_direct_CXX=yes
12607 hardcode_minus_L_CXX=yes # Not in the search PATH,
12608 # but as the default
12609 # location of the library.
12611 case $cc_basename in
12613 # FIXME: insert proper C++ library support
12617 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'
12618 # Commands to make compiler produce verbose output that lists
12619 # what "hidden" libraries, object files and flags are used when
12620 # linking a shared library.
12622 # There doesn't appear to be a way to prevent this compiler from
12623 # explicitly linking system object files so we need to strip them
12624 # from the output so that they don't get included in the library
12626 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 "X$list" | $Xsed'
12629 if test "$GXX" = yes; then
12630 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'
12632 # FIXME: insert proper C++ library support
12640 if test $with_gnu_ld = no; then
12641 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12642 hardcode_libdir_separator_CXX=:
12648 export_dynamic_flag_spec_CXX='${wl}-E'
12654 hardcode_direct_CXX=no
12655 hardcode_shlibpath_var_CXX=no
12658 hardcode_direct_CXX=yes
12659 hardcode_direct_absolute_CXX=yes
12660 hardcode_minus_L_CXX=yes # Not in the search PATH,
12661 # but as the default
12662 # location of the library.
12666 case $cc_basename in
12668 # FIXME: insert proper C++ library support
12674 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12677 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12680 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12683 # Commands to make compiler produce verbose output that lists
12684 # what "hidden" libraries, object files and flags are used when
12685 # linking a shared library.
12687 # There doesn't appear to be a way to prevent this compiler from
12688 # explicitly linking system object files so we need to strip them
12689 # from the output so that they don't get included in the library
12691 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 "X$list" | $Xsed'
12694 if test "$GXX" = yes; then
12695 if test $with_gnu_ld = no; then
12698 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12701 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12704 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'
12709 # FIXME: insert proper C++ library support
12717 hardcode_direct_CXX=no
12718 hardcode_shlibpath_var_CXX=no
12719 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12720 export_dynamic_flag_spec_CXX='${wl}-E'
12721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12722 # Instead, shared libraries are loaded at an image base (0x10000000 by
12723 # default) and relocated if they conflict, which is a slow very memory
12724 # consuming and fragmenting process. To avoid this, we pick a random,
12725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12727 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12728 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12731 case $cc_basename in
12734 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12736 # Archives containing C++ object files must be created using
12737 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12738 # necessary to make sure instantiated templates are included
12740 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12743 if test "$GXX" = yes; then
12744 if test "$with_gnu_ld" = no; then
12745 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12747 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12750 link_all_deplibs_CXX=yes
12753 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12754 hardcode_libdir_separator_CXX=:
12755 inherit_rpath_CXX=yes
12758 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12759 case $cc_basename in
12761 # Kuck and Associates, Inc. (KAI) C++ Compiler
12763 # KCC will only create a shared library if the output file
12764 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12765 # to its proper name (with version) after linking.
12766 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'
12767 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'
12768 # Commands to make compiler produce verbose output that lists
12769 # what "hidden" libraries, object files and flags are used when
12770 # linking a shared library.
12772 # There doesn't appear to be a way to prevent this compiler from
12773 # explicitly linking system object files so we need to strip them
12774 # from the output so that they don't get included in the library
12776 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 "X$list" | $Xsed'
12778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12779 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12781 # Archives containing C++ object files must be created using
12782 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12783 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12788 # version 8.0 and above of icpc choke on multiply defined symbols
12789 # if we add $predep_objects and $postdep_objects, however 7.1 and
12790 # earlier do not add the objects themselves.
12791 case `$CC -V 2>&1` in
12793 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12794 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'
12796 *) # Version 8.0 or newer
12799 ia64*) tmp_idyn=' -i_dynamic';;
12801 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12802 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12805 archive_cmds_need_lc_CXX=no
12806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12807 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12808 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12811 # Portland Group C++ compiler
12813 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12814 prelink_cmds_CXX='tpldir=Template.dir~
12816 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12817 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12818 old_archive_cmds_CXX='tpldir=Template.dir~
12820 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12821 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12823 archive_cmds_CXX='tpldir=Template.dir~
12825 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12826 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12827 archive_expsym_cmds_CXX='tpldir=Template.dir~
12829 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12830 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12832 *) # Version 6 will use weak symbols
12833 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12834 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12838 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12839 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12840 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12844 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12845 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'
12847 runpath_var=LD_RUN_PATH
12848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12849 hardcode_libdir_separator_CXX=:
12851 # Commands to make compiler produce verbose output that lists
12852 # what "hidden" libraries, object files and flags are used when
12853 # linking a shared library.
12855 # There doesn't appear to be a way to prevent this compiler from
12856 # explicitly linking system object files so we need to strip them
12857 # from the output so that they don't get included in the library
12859 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12862 # IBM XL 8.0 on PPC, with GNU ld
12863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12865 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12866 if test "x$supports_anon_versioning" = xyes; then
12867 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12869 echo "local: *; };" >> $output_objdir/$libname.ver~
12870 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12874 case `$CC -V 2>&1 | sed 5q` in
12877 no_undefined_flag_CXX=' -zdefs'
12878 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12880 hardcode_libdir_flag_spec_CXX='-R$libdir'
12881 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12882 compiler_needs_object_CXX=yes
12884 # Not sure whether something based on
12885 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12887 output_verbose_link_cmd='echo'
12889 # Archives containing C++ object files must be created using
12890 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12891 # necessary to make sure instantiated templates are included
12893 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12901 # FIXME: insert proper C++ library support
12906 # FIXME: insert proper C++ library support
12911 case $cc_basename in
12913 # FIXME: insert proper C++ library support
12917 # FIXME: insert proper C++ library support
12924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12927 hardcode_libdir_flag_spec_CXX='-R$libdir'
12928 hardcode_direct_CXX=yes
12929 hardcode_shlibpath_var_CXX=no
12931 # Workaround some broken pre-1.5 toolchains
12932 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12940 # C++ shared libraries are fairly broken
12945 if test -f /usr/libexec/ld.so; then
12946 hardcode_direct_CXX=yes
12947 hardcode_shlibpath_var_CXX=no
12948 hardcode_direct_absolute_CXX=yes
12949 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12952 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12953 export_dynamic_flag_spec_CXX='${wl}-E'
12954 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12956 output_verbose_link_cmd=echo
12962 osf3* | osf4* | osf5*)
12963 case $cc_basename in
12965 # Kuck and Associates, Inc. (KAI) C++ Compiler
12967 # KCC will only create a shared library if the output file
12968 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12969 # to its proper name (with version) after linking.
12970 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'
12972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12973 hardcode_libdir_separator_CXX=:
12975 # Archives containing C++ object files must be created using
12976 # the KAI C++ compiler.
12978 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12979 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12983 # Rational C++ 2.4.1
12984 # FIXME: insert proper C++ library support
12990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12991 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12992 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12995 allow_undefined_flag_CXX=' -expect_unresolved \*'
12996 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12997 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12998 echo "-hidden">> $lib.exp~
12999 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13001 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13005 hardcode_libdir_separator_CXX=:
13007 # Commands to make compiler produce verbose output that lists
13008 # what "hidden" libraries, object files and flags are used when
13009 # linking a shared library.
13011 # There doesn't appear to be a way to prevent this compiler from
13012 # explicitly linking system object files so we need to strip them
13013 # from the output so that they don't get included in the library
13015 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13018 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13022 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13025 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13029 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13030 hardcode_libdir_separator_CXX=:
13032 # Commands to make compiler produce verbose output that lists
13033 # what "hidden" libraries, object files and flags are used when
13034 # linking a shared library.
13035 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13038 # FIXME: insert proper C++ library support
13046 # FIXME: insert proper C++ library support
13051 case $cc_basename in
13054 # FIXME: insert proper C++ library support
13059 # FIXME: insert proper C++ library support
13063 # FIXME: insert proper C++ library support
13070 case $cc_basename in
13072 # Sun C++ 4.2, 5.x and Centerline C++
13073 archive_cmds_need_lc_CXX=yes
13074 no_undefined_flag_CXX=' -zdefs'
13075 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13077 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13079 hardcode_libdir_flag_spec_CXX='-R$libdir'
13080 hardcode_shlibpath_var_CXX=no
13082 solaris2.[0-5] | solaris2.[0-5].*) ;;
13084 # The compiler driver will combine and reorder linker options,
13085 # but understands `-z linker_flag'.
13086 # Supported since Solaris 2.6 (maybe 2.5.1?)
13087 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13090 link_all_deplibs_CXX=yes
13092 output_verbose_link_cmd='echo'
13094 # Archives containing C++ object files must be created using
13095 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13096 # necessary to make sure instantiated templates are included
13098 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13101 # Green Hills C++ Compiler
13102 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13104 # The C++ compiler must be used to create the archive.
13105 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13108 # GNU C++ compiler with Solaris linker
13109 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13110 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13111 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13112 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13113 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13114 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13116 # Commands to make compiler produce verbose output that lists
13117 # what "hidden" libraries, object files and flags are used when
13118 # linking a shared library.
13119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13121 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13123 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13124 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13125 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13127 # Commands to make compiler produce verbose output that lists
13128 # what "hidden" libraries, object files and flags are used when
13129 # linking a shared library.
13130 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13133 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13135 solaris2.[0-5] | solaris2.[0-5].*) ;;
13137 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13146 no_undefined_flag_CXX='${wl}-z,text'
13147 archive_cmds_need_lc_CXX=no
13148 hardcode_shlibpath_var_CXX=no
13149 runpath_var='LD_RUN_PATH'
13151 case $cc_basename in
13153 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13154 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13157 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13158 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13163 sysv5* | sco3.2v5* | sco5v6*)
13164 # Note: We can NOT use -z defs as we might desire, because we do not
13165 # link with -lc, and that would cause any symbols used from libc to
13166 # always be unresolved, which means just about no library would
13167 # ever link correctly. If we're not using GNU ld we use -z text
13168 # though, which does catch some bad symbols but isn't as heavy-handed
13170 no_undefined_flag_CXX='${wl}-z,text'
13171 allow_undefined_flag_CXX='${wl}-z,nodefs'
13172 archive_cmds_need_lc_CXX=no
13173 hardcode_shlibpath_var_CXX=no
13174 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13175 hardcode_libdir_separator_CXX=':'
13176 link_all_deplibs_CXX=yes
13177 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13178 runpath_var='LD_RUN_PATH'
13180 case $cc_basename in
13182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13193 case $cc_basename in
13195 # NonStop-UX NCC 3.20
13196 # FIXME: insert proper C++ library support
13200 # FIXME: insert proper C++ library support
13207 # FIXME: insert proper C++ library support
13212 # FIXME: insert proper C++ library support
13217 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13218 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13219 test "$ld_shlibs_CXX" = no && can_build_shared=no
13225 ## There is no encapsulation within the following macros, do not change
13226 ## the running order or otherwise move them around unless you know exactly
13227 ## what you are doing...
13228 # Dependencies to place before and after the object being linked:
13229 predep_objects_CXX=
13230 postdep_objects_CXX=
13233 compiler_lib_search_path_CXX=
13235 cat > conftest.$ac_ext <<_LT_EOF
13239 Foo (void) { a = 0; }
13245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; then
13250 # Parse the compiler output and extract the necessary
13251 # objects, libraries and library flags.
13253 # Sentinel used to keep track of whether or not we are before
13254 # the conftest object file.
13255 pre_test_object_deps_done=no
13257 for p in `eval "$output_verbose_link_cmd"`; do
13261 # Some compilers place space between "-{L,R}" and the path.
13262 # Remove the space.
13263 if test $p = "-L" ||
13264 test $p = "-R"; then
13271 if test "$pre_test_object_deps_done" = no; then
13274 # Internal compiler library paths should come after those
13275 # provided the user. The postdeps already come after the
13276 # user supplied libs so there is no need to process them.
13277 if test -z "$compiler_lib_search_path_CXX"; then
13278 compiler_lib_search_path_CXX="${prev}${p}"
13280 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13283 # The "-l" case would never come before the object being
13284 # linked, so don't bother handling this case.
13287 if test -z "$postdeps_CXX"; then
13288 postdeps_CXX="${prev}${p}"
13290 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13296 # This assumes that the test object file only shows up
13297 # once in the compiler output.
13298 if test "$p" = "conftest.$objext"; then
13299 pre_test_object_deps_done=yes
13303 if test "$pre_test_object_deps_done" = no; then
13304 if test -z "$predep_objects_CXX"; then
13305 predep_objects_CXX="$p"
13307 predep_objects_CXX="$predep_objects_CXX $p"
13310 if test -z "$postdep_objects_CXX"; then
13311 postdep_objects_CXX="$p"
13313 postdep_objects_CXX="$postdep_objects_CXX $p"
13318 *) ;; # Ignore the rest.
13326 echo "libtool.m4: error: problem compiling CXX test program"
13329 $RM -f confest.$objext
13331 # PORTME: override above test on systems where it is broken
13334 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13335 # hack all around it, let's just trust "g++" to DTRT.
13336 predep_objects_CXX=
13337 postdep_objects_CXX=
13342 case `$CC -V 2>&1 | sed 5q` in
13346 # The more standards-conforming stlport4 library is
13347 # incompatible with the Cstd library. Avoid specifying
13348 # it if it's in CXXFLAGS. Ignore libCrun as
13349 # -library=stlport4 depends on it.
13350 case " $CXX $CXXFLAGS " in
13351 *" -library=stlport4 "*)
13352 solaris_use_stlport4=yes
13356 if test "$solaris_use_stlport4" != yes; then
13357 postdeps_CXX='-library=Cstd -library=Crun'
13364 case $cc_basename in
13366 # The more standards-conforming stlport4 library is
13367 # incompatible with the Cstd library. Avoid specifying
13368 # it if it's in CXXFLAGS. Ignore libCrun as
13369 # -library=stlport4 depends on it.
13370 case " $CXX $CXXFLAGS " in
13371 *" -library=stlport4 "*)
13372 solaris_use_stlport4=yes
13376 # Adding this requires a known-good setup of shared libraries for
13377 # Sun compiler versions before 5.6, else PIC objects from an old
13378 # archive will be linked into the output, leading to subtle bugs.
13379 if test "$solaris_use_stlport4" != yes; then
13380 postdeps_CXX='-library=Cstd -library=Crun'
13388 case " $postdeps_CXX " in
13389 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13391 compiler_lib_search_dirs_CXX=
13392 if test -n "${compiler_lib_search_path_CXX}"; then
13393 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13426 lt_prog_compiler_wl_CXX=
13427 lt_prog_compiler_pic_CXX=
13428 lt_prog_compiler_static_CXX=
13430 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13431 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13433 # C++ specific cases for pic, static, wl, etc.
13434 if test "$GXX" = yes; then
13435 lt_prog_compiler_wl_CXX='-Wl,'
13436 lt_prog_compiler_static_CXX='-static'
13440 # All AIX code is PIC.
13441 if test "$host_cpu" = ia64; then
13442 # AIX 5 now supports IA64 processor
13443 lt_prog_compiler_static_CXX='-Bstatic'
13450 # see comment about AmigaOS4 .so support
13451 lt_prog_compiler_pic_CXX='-fPIC'
13454 # FIXME: we need at least 68020 code to build shared libraries, but
13455 # adding the `-m68020' flag to GCC prevents building anything better,
13457 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13463 # PIC is the default for these OSes.
13465 mingw* | cygwin* | os2* | pw32* | cegcc*)
13466 # This hack is so that the source file can tell whether it is being
13467 # built for inclusion in a dll (and should export symbols for example).
13468 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13469 # (--disable-auto-import) libraries
13470 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13472 darwin* | rhapsody*)
13473 # PIC is the default on this platform
13474 # Common symbols not allowed in MH_DYLIB files
13475 lt_prog_compiler_pic_CXX='-fno-common'
13478 # DJGPP does not support shared libraries at all
13479 lt_prog_compiler_pic_CXX=
13482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13483 # Instead, we relocate shared libraries at runtime.
13486 if test -d /usr/nec; then
13487 lt_prog_compiler_pic_CXX=-Kconform_pic
13491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13493 # sets the default TLS model and affects inlining.
13498 lt_prog_compiler_pic_CXX='-fPIC'
13503 # QNX uses GNU C++, but need to define -shared option too, otherwise
13504 # it will coredump.
13505 lt_prog_compiler_pic_CXX='-fPIC -shared'
13508 lt_prog_compiler_pic_CXX='-fPIC'
13514 # All AIX code is PIC.
13515 if test "$host_cpu" = ia64; then
13516 # AIX 5 now supports IA64 processor
13517 lt_prog_compiler_static_CXX='-Bstatic'
13519 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13523 case $cc_basename in
13525 # Green Hills C++ Compiler
13526 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13531 case $cc_basename in
13533 lt_prog_compiler_pic_CXX='-KPIC'
13536 # Green Hills C++ Compiler
13537 lt_prog_compiler_pic_CXX='-pic'
13543 freebsd* | dragonfly*)
13544 # FreeBSD uses GNU C++
13546 hpux9* | hpux10* | hpux11*)
13547 case $cc_basename in
13549 lt_prog_compiler_wl_CXX='-Wl,'
13550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13551 if test "$host_cpu" != ia64; then
13552 lt_prog_compiler_pic_CXX='+Z'
13556 lt_prog_compiler_wl_CXX='-Wl,'
13557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13563 lt_prog_compiler_pic_CXX='+Z'
13572 # This is c89, which is MS Visual C++ (no shared libs)
13573 # Anyone wants to do a port?
13575 irix5* | irix6* | nonstopux*)
13576 case $cc_basename in
13578 lt_prog_compiler_wl_CXX='-Wl,'
13579 lt_prog_compiler_static_CXX='-non_shared'
13580 # CC pic flag -KPIC is the default.
13586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13587 case $cc_basename in
13590 lt_prog_compiler_wl_CXX='--backend -Wl,'
13591 lt_prog_compiler_pic_CXX='-fPIC'
13594 # old Intel C++ for x86_64 which still supported -KPIC.
13595 lt_prog_compiler_wl_CXX='-Wl,'
13596 lt_prog_compiler_pic_CXX='-KPIC'
13597 lt_prog_compiler_static_CXX='-static'
13600 # Intel C++, used to be incompatible with GCC.
13601 # ICC 10 doesn't accept -KPIC any more.
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 lt_prog_compiler_pic_CXX='-fPIC'
13604 lt_prog_compiler_static_CXX='-static'
13607 # Portland Group C++ compiler
13608 lt_prog_compiler_wl_CXX='-Wl,'
13609 lt_prog_compiler_pic_CXX='-fpic'
13610 lt_prog_compiler_static_CXX='-Bstatic'
13614 # Make sure the PIC flag is empty. It appears that all Alpha
13615 # Linux and Compaq Tru64 Unix objects are PIC.
13616 lt_prog_compiler_pic_CXX=
13617 lt_prog_compiler_static_CXX='-non_shared'
13620 # IBM XL 8.0 on PPC
13621 lt_prog_compiler_wl_CXX='-Wl,'
13622 lt_prog_compiler_pic_CXX='-qpic'
13623 lt_prog_compiler_static_CXX='-qstaticlink'
13626 case `$CC -V 2>&1 | sed 5q` in
13629 lt_prog_compiler_pic_CXX='-KPIC'
13630 lt_prog_compiler_static_CXX='-Bstatic'
13631 lt_prog_compiler_wl_CXX='-Qoption ld '
13642 case $cc_basename in
13644 lt_prog_compiler_pic_CXX='-W c,exportall'
13653 # QNX uses GNU C++, but need to define -shared option too, otherwise
13654 # it will coredump.
13655 lt_prog_compiler_pic_CXX='-fPIC -shared'
13657 osf3* | osf4* | osf5*)
13658 case $cc_basename in
13660 lt_prog_compiler_wl_CXX='--backend -Wl,'
13663 # Rational C++ 2.4.1
13664 lt_prog_compiler_pic_CXX='-pic'
13667 # Digital/Compaq C++
13668 lt_prog_compiler_wl_CXX='-Wl,'
13669 # Make sure the PIC flag is empty. It appears that all Alpha
13670 # Linux and Compaq Tru64 Unix objects are PIC.
13671 lt_prog_compiler_pic_CXX=
13672 lt_prog_compiler_static_CXX='-non_shared'
13681 case $cc_basename in
13683 # Sun C++ 4.2, 5.x and Centerline C++
13684 lt_prog_compiler_pic_CXX='-KPIC'
13685 lt_prog_compiler_static_CXX='-Bstatic'
13686 lt_prog_compiler_wl_CXX='-Qoption ld '
13689 # Green Hills C++ Compiler
13690 lt_prog_compiler_pic_CXX='-PIC'
13697 case $cc_basename in
13700 lt_prog_compiler_pic_CXX='-pic'
13701 lt_prog_compiler_static_CXX='-Bstatic'
13705 lt_prog_compiler_pic_CXX='-pic'
13711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13712 case $cc_basename in
13714 lt_prog_compiler_wl_CXX='-Wl,'
13715 lt_prog_compiler_pic_CXX='-KPIC'
13716 lt_prog_compiler_static_CXX='-Bstatic'
13721 case $cc_basename in
13723 # NonStop-UX NCC 3.20
13724 lt_prog_compiler_pic_CXX='-KPIC'
13733 lt_prog_compiler_can_build_shared_CXX=no
13739 # For platforms which do not support PIC, -DPIC is meaningless:
13741 lt_prog_compiler_pic_CXX=
13744 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13747 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13748 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13753 # Check to make sure the PIC flag actually works.
13755 if test -n "$lt_prog_compiler_pic_CXX"; then
13756 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13757 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13758 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 lt_cv_prog_compiler_pic_works_CXX=no
13762 ac_outfile=conftest.$ac_objext
13763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13764 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13765 # Insert the option either (1) after the last *FLAGS variable, or
13766 # (2) before a word containing "conftest.", or (3) at the end.
13767 # Note that $ac_compile itself does not contain backslashes and begins
13768 # with a dollar sign (not a hyphen), so the echo should work correctly.
13769 # The option is referenced via a variable to avoid confusing sed.
13770 lt_compile=`echo "$ac_compile" | $SED \
13771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13773 -e 's:$: $lt_compiler_flag:'`
13774 (eval echo "\"\$as_me:13774: $lt_compile\"" >&5)
13775 (eval "$lt_compile" 2>conftest.err)
13777 cat conftest.err >&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 if (exit $ac_status) && test -s "$ac_outfile"; then
13780 # The compiler can only warn and ignore the option if not recognized
13781 # So say no if there are warnings other than the usual output.
13782 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13783 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13784 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13785 lt_cv_prog_compiler_pic_works_CXX=yes
13791 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13792 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
13794 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13795 case $lt_prog_compiler_pic_CXX in
13797 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13800 lt_prog_compiler_pic_CXX=
13801 lt_prog_compiler_can_build_shared_CXX=no
13809 # Check to make sure the static flag actually works.
13811 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13812 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13813 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13814 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 lt_cv_prog_compiler_static_works_CXX=no
13818 save_LDFLAGS="$LDFLAGS"
13819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13820 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13822 # The linker can only warn and ignore the option if not recognized
13823 # So say no if there are warnings
13824 if test -s conftest.err; then
13825 # Append any errors to the config.log.
13826 cat conftest.err 1>&5
13827 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13829 if diff conftest.exp conftest.er2 >/dev/null; then
13830 lt_cv_prog_compiler_static_works_CXX=yes
13833 lt_cv_prog_compiler_static_works_CXX=yes
13837 LDFLAGS="$save_LDFLAGS"
13840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13841 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
13843 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13846 lt_prog_compiler_static_CXX=
13852 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13853 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13854 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13857 lt_cv_prog_compiler_c_o_CXX=no
13858 $RM -r conftest 2>/dev/null
13862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13864 lt_compiler_flag="-o out/conftest2.$ac_objext"
13865 # Insert the option either (1) after the last *FLAGS variable, or
13866 # (2) before a word containing "conftest.", or (3) at the end.
13867 # Note that $ac_compile itself does not contain backslashes and begins
13868 # with a dollar sign (not a hyphen), so the echo should work correctly.
13869 lt_compile=`echo "$ac_compile" | $SED \
13870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13872 -e 's:$: $lt_compiler_flag:'`
13873 (eval echo "\"\$as_me:13873: $lt_compile\"" >&5)
13874 (eval "$lt_compile" 2>out/conftest.err)
13876 cat out/conftest.err >&5
13877 echo "$as_me:13877: \$? = $ac_status" >&5
13878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13880 # The compiler can only warn and ignore the option if not recognized
13881 # So say no if there are warnings
13882 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13885 lt_cv_prog_compiler_c_o_CXX=yes
13890 # SGI C++ compiler will create directory out/ii_files/ for
13891 # template instantiation
13892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13893 $RM out/* && rmdir out
13899 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13904 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13905 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13906 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 lt_cv_prog_compiler_c_o_CXX=no
13910 $RM -r conftest 2>/dev/null
13914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13916 lt_compiler_flag="-o out/conftest2.$ac_objext"
13917 # Insert the option either (1) after the last *FLAGS variable, or
13918 # (2) before a word containing "conftest.", or (3) at the end.
13919 # Note that $ac_compile itself does not contain backslashes and begins
13920 # with a dollar sign (not a hyphen), so the echo should work correctly.
13921 lt_compile=`echo "$ac_compile" | $SED \
13922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13924 -e 's:$: $lt_compiler_flag:'`
13925 (eval echo "\"\$as_me:13925: $lt_compile\"" >&5)
13926 (eval "$lt_compile" 2>out/conftest.err)
13928 cat out/conftest.err >&5
13929 echo "$as_me:13929: \$? = $ac_status" >&5
13930 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13932 # The compiler can only warn and ignore the option if not recognized
13933 # So say no if there are warnings
13934 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13937 lt_cv_prog_compiler_c_o_CXX=yes
13942 # SGI C++ compiler will create directory out/ii_files/ for
13943 # template instantiation
13944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13945 $RM out/* && rmdir out
13951 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13952 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13957 hard_links="nottested"
13958 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13959 # do not overwrite the value of need_locks provided by the user
13960 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13961 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13964 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13966 ln conftest.a conftest.b 2>&5 || hard_links=no
13967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13968 echo "$as_me:$LINENO: result: $hard_links" >&5
13969 echo "${ECHO_T}$hard_links" >&6
13970 if test "$hard_links" = no; then
13971 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13972 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13981 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13982 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13984 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13987 # If we're using GNU nm, then we don't want the "-C" option.
13988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13990 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'
13992 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'
13996 export_symbols_cmds_CXX="$ltdll_cmds"
13998 cygwin* | mingw* | cegcc*)
13999 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14002 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14005 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14007 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14008 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14009 test "$ld_shlibs_CXX" = no && can_build_shared=no
14011 with_gnu_ld_CXX=$with_gnu_ld
14019 # Do we need to explicitly link libc?
14021 case "x$archive_cmds_need_lc_CXX" in
14023 # Assume -lc should be added
14024 archive_cmds_need_lc_CXX=yes
14026 if test "$enable_shared" = yes && test "$GCC" = yes; then
14027 case $archive_cmds_CXX in
14029 # FIXME: we may have to deal with multi-command sequences.
14032 # Test whether the compiler implicitly links with -lc since on some
14033 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14034 # to ld, don't add -lc before -lgcc.
14035 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14037 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } 2>conftest.err; then
14050 libobjs=conftest.$ac_objext
14052 wl=$lt_prog_compiler_wl_CXX
14053 pic_flag=$lt_prog_compiler_pic_CXX
14059 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14060 allow_undefined_flag_CXX=
14061 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14062 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }
14067 lt_cv_archive_cmds_need_lc_CXX=no
14069 lt_cv_archive_cmds_need_lc_CXX=yes
14071 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14073 cat conftest.err 1>&5
14078 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14079 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
14080 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14150 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14151 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14153 library_names_spec=
14154 libname_spec='lib$name'
14158 postuninstall_cmds=
14162 shlibpath_overrides_runpath=unknown
14164 dynamic_linker="$host_os ld.so"
14165 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14166 need_lib_prefix=unknown
14167 hardcode_into_libs=no
14169 # when you set need_version to no, make sure it does not cause -set_version
14170 # flags to be left without arguments
14171 need_version=unknown
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14177 shlibpath_var=LIBPATH
14179 # AIX 3 has no versioning support, so we append a major version to the name.
14180 soname_spec='${libname}${release}${shared_ext}$major'
14187 hardcode_into_libs=yes
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 supports IA64
14190 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14191 shlibpath_var=LD_LIBRARY_PATH
14193 # With GCC up to 2.95.x, collect2 would create an import file
14194 # for dependence libraries. The import file would start with
14195 # the line `#! .'. This would cause the generated library to
14196 # depend on `.', always an invalid library. This was fixed in
14197 # development snapshots of GCC prior to 3.0.
14199 aix4 | aix4.[01] | aix4.[01].*)
14200 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14202 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14205 can_build_shared=no
14209 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14210 # soname into executable. Probably we can add versioning support to
14211 # collect2, so additional links can be useful in future.
14212 if test "$aix_use_runtimelinking" = yes; then
14213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14214 # instead of lib<name>.a to let people know that these are not
14215 # typical AIX shared libraries.
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14218 # We preserve .a as extension for shared libraries through AIX4.2
14219 # and later when we are not doing run time linking.
14220 library_names_spec='${libname}${release}.a $libname.a'
14221 soname_spec='${libname}${release}${shared_ext}$major'
14223 shlibpath_var=LIBPATH
14230 # Since July 2007 AmigaOS4 officially supports .so libraries.
14231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14235 library_names_spec='$libname.ixlibrary $libname.a'
14236 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14237 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'
14243 library_names_spec='${libname}${shared_ext}'
14244 dynamic_linker="$host_os ld.so"
14245 shlibpath_var=LIBRARY_PATH
14251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14252 soname_spec='${libname}${release}${shared_ext}$major'
14253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14257 # the default ld.so.conf also contains /usr/contrib/lib and
14258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14259 # libtool to hard-code these into programs
14262 cygwin* | mingw* | pw32* | cegcc*)
14263 version_type=windows
14268 case $GCC,$host_os in
14269 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14270 library_names_spec='$libname.dll.a'
14271 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14272 postinstall_cmds='base_file=`basename \${file}`~
14273 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14274 dldir=$destdir/`dirname \$dlpath`~
14275 test -d \$dldir || mkdir -p \$dldir~
14276 $install_prog $dir/$dlname \$dldir/$dlname~
14277 chmod a+x \$dldir/$dlname~
14278 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14279 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14282 dlpath=$dir/\$dldll~
14284 shlibpath_overrides_runpath=yes
14288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14289 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14290 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14293 # MinGW DLLs use traditional 'lib' prefix
14294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14295 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14296 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14297 # It is most probably a Windows format PATH printed by
14298 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14299 # path with ; separators, and with drive letters. We can handle the
14300 # drive letters (cygwin fileutils understands them), so leave them,
14301 # especially as we might pass files found there to a mingw objdump,
14302 # which wouldn't understand a cygwinified path. Ahh.
14303 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14305 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14309 # pw32 DLLs use 'pw' prefix rather than 'lib'
14310 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14316 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14319 dynamic_linker='Win32 ld.exe'
14320 # FIXME: first we should search . and the directory the executable is in
14324 darwin* | rhapsody*)
14325 dynamic_linker="$host_os dyld"
14326 version_type=darwin
14329 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14330 soname_spec='${libname}${release}${major}$shared_ext'
14331 shlibpath_overrides_runpath=yes
14332 shlibpath_var=DYLD_LIBRARY_PATH
14333 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14343 soname_spec='${libname}${release}${shared_ext}$major'
14344 shlibpath_var=LD_LIBRARY_PATH
14351 freebsd* | dragonfly*)
14352 # DragonFly does not have aout. When/if they implement a new
14353 # versioning mechanism, adjust this.
14354 if test -x /usr/bin/objformat; then
14355 objformat=`/usr/bin/objformat`
14358 freebsd[123]*) objformat=aout ;;
14359 *) objformat=elf ;;
14362 version_type=freebsd-$objformat
14363 case $version_type in
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14374 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=yes
14379 freebsd3.[01]* | freebsdelf3.[01]*)
14380 shlibpath_overrides_runpath=yes
14381 hardcode_into_libs=yes
14383 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14384 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14385 shlibpath_overrides_runpath=no
14386 hardcode_into_libs=yes
14388 *) # from 4.6 on, and DragonFly
14389 shlibpath_overrides_runpath=yes
14390 hardcode_into_libs=yes
14399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 shlibpath_var=LD_LIBRARY_PATH
14402 hardcode_into_libs=yes
14405 hpux9* | hpux10* | hpux11*)
14406 # Give a soname corresponding to the major version so that dld.sl refuses to
14407 # link against other versions.
14414 hardcode_into_libs=yes
14415 dynamic_linker="$host_os dld.so"
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 if test "X$HPUX_IA64_MODE" = X32; then
14421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14429 hardcode_into_libs=yes
14430 dynamic_linker="$host_os dld.sl"
14431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14440 dynamic_linker="$host_os dld.sl"
14441 shlibpath_var=SHLIB_PATH
14442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14447 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14448 postinstall_cmds='chmod 555 $lib'
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath=no
14460 hardcode_into_libs=yes
14463 irix5* | irix6* | nonstopux*)
14465 nonstopux*) version_type=nonstopux ;;
14467 if test "$lt_cv_prog_gnu_ld" = yes; then
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14478 irix5* | nonstopux*)
14479 libsuff= shlibsuff=
14482 case $LD in # libtool.m4 will add one of these switches to LD
14483 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14484 libsuff= shlibsuff= libmagic=32-bit;;
14485 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14486 libsuff=32 shlibsuff=N32 libmagic=N32;;
14487 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14488 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14489 *) libsuff= shlibsuff= libmagic=never-match;;
14493 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14494 shlibpath_overrides_runpath=no
14495 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14496 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14497 hardcode_into_libs=yes
14500 # No shared lib support for Linux oldld, aout, or coff.
14501 linux*oldld* | linux*aout* | linux*coff*)
14505 # This must be Linux ELF.
14506 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=no
14516 # Some binutils ld are patched to set DT_RUNPATH
14517 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 lt_cv_shlibpath_overrides_runpath=no
14521 save_LDFLAGS=$LDFLAGS
14522 save_libdir=$libdir
14523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14525 if test x$gcc_no_link = xyes; then
14526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14528 { (exit 1); exit 1; }; }
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try='test -z "$ac_cxx_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14568 lt_cv_shlibpath_overrides_runpath=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14576 rm -f conftest.err conftest.$ac_objext \
14577 conftest$ac_exeext conftest.$ac_ext
14578 LDFLAGS=$save_LDFLAGS
14579 libdir=$save_libdir
14583 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14585 # This implies no fast_install, which is unacceptable.
14586 # Some rework will be needed to allow for fast_install
14587 # before this can be enabled.
14588 hardcode_into_libs=yes
14590 # Append ld.so.conf contents to the search path
14591 if test -f /etc/ld.so.conf; then
14592 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14593 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14596 # We used to test for /lib/ld.so.1 and disable shared libraries on
14597 # powerpc, because MkLinux only supported shared libraries with the
14598 # GNU dynamic linker. Since this was broken with cross compilers,
14599 # most powerpc-linux boxes support dynamic linking these days and
14600 # people can always --disable-shared, the test was removed, and we
14601 # assume the GNU/Linux dynamic linker is in use.
14602 dynamic_linker='GNU/Linux ld.so'
14609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14612 dynamic_linker='NetBSD (a.out) ld.so'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 dynamic_linker='NetBSD ld.elf_so'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=yes
14620 hardcode_into_libs=yes
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=yes
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14635 soname_spec='${libname}${release}${shared_ext}$major'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=no
14638 hardcode_into_libs=yes
14639 dynamic_linker='ldqnx.so'
14644 sys_lib_dlsearch_path_spec="/usr/lib"
14646 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14648 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14649 *) need_version=no ;;
14651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14656 openbsd2.[89] | openbsd2.[89].*)
14657 shlibpath_overrides_runpath=no
14660 shlibpath_overrides_runpath=yes
14664 shlibpath_overrides_runpath=yes
14669 libname_spec='$name'
14672 library_names_spec='$libname${shared_ext} $libname.a'
14673 dynamic_linker='OS/2 ld.exe'
14674 shlibpath_var=LIBPATH
14677 osf3* | osf4* | osf5*)
14681 soname_spec='${libname}${release}${shared_ext}$major'
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683 shlibpath_var=LD_LIBRARY_PATH
14684 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14685 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=yes
14700 hardcode_into_libs=yes
14701 # ldd complains unless libraries are executable
14702 postinstall_cmds='chmod +x $lib'
14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14708 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 if test "$with_gnu_ld" = yes; then
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 case $host_vendor in
14724 shlibpath_overrides_runpath=no
14726 runpath_var=LD_RUN_PATH
14734 shlibpath_overrides_runpath=no
14735 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14741 if test -d /usr/nec ;then
14743 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14744 soname_spec='$libname${shared_ext}.$major'
14745 shlibpath_var=LD_LIBRARY_PATH
14749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14750 version_type=freebsd-elf
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14754 soname_spec='${libname}${release}${shared_ext}$major'
14755 shlibpath_var=LD_LIBRARY_PATH
14756 shlibpath_overrides_runpath=yes
14757 hardcode_into_libs=yes
14758 if test "$with_gnu_ld" = yes; then
14759 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14761 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14764 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14768 sys_lib_dlsearch_path_spec='/usr/lib'
14772 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777 shlibpath_var=LD_LIBRARY_PATH
14778 shlibpath_overrides_runpath=no
14779 hardcode_into_libs=yes
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14793 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14794 echo "${ECHO_T}$dynamic_linker" >&6
14795 test "$dynamic_linker" = no && can_build_shared=no
14797 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14798 if test "$GCC" = yes; then
14799 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14802 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14803 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14805 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14806 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14844 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14846 hardcode_action_CXX=
14847 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14848 test -n "$runpath_var_CXX" ||
14849 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14851 # We can hardcode non-existent directories.
14852 if test "$hardcode_direct_CXX" != no &&
14853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14854 # have to relink, otherwise we might link with an installed library
14855 # when we should be linking with a yet-to-be-installed one
14856 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14857 test "$hardcode_minus_L_CXX" != no; then
14858 # Linking always hardcodes the temporary library directory.
14859 hardcode_action_CXX=relink
14861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14862 hardcode_action_CXX=immediate
14865 # We cannot hardcode anything, or else we can only hardcode existing
14867 hardcode_action_CXX=unsupported
14869 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14870 echo "${ECHO_T}$hardcode_action_CXX" >&6
14872 if test "$hardcode_action_CXX" = relink ||
14873 test "$inherit_rpath_CXX" = yes; then
14874 # Fast installation is not supported
14875 enable_fast_install=no
14876 elif test "$shlibpath_overrides_runpath" = yes ||
14877 test "$enable_shared" = no; then
14878 # Fast installation is not necessary
14879 enable_fast_install=needless
14888 fi # test -n "$compiler"
14894 with_gnu_ld=$lt_save_with_gnu_ld
14895 lt_cv_path_LDCXX=$lt_cv_path_LD
14896 lt_cv_path_LD=$lt_save_path_LD
14897 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14898 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14899 fi # test "$_lt_caught_CXX_error" != yes
14902 ac_cpp='$CPP $CPPFLAGS'
14903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14919 ac_config_commands="$ac_config_commands libtool"
14924 # Only expand once:
14929 # Check whether --with-target-subdir or --without-target-subdir was given.
14930 if test "${with_target_subdir+set}" = set; then
14931 withval="$with_target_subdir"
14935 # Check whether --with-cross-host or --without-cross-host was given.
14936 if test "${with_cross_host+set}" = set; then
14937 withval="$with_cross_host"
14941 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14942 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14943 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14944 if test -z "$THREADS"; then
14947 echo "$as_me:$LINENO: result: $THREADS" >&5
14948 echo "${ECHO_T}$THREADS" >&6
14950 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14951 if test "${enable_parallel_mark+set}" = set; then
14952 enableval="$enable_parallel_mark"
14954 no | none | single)
14955 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14956 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14957 { (exit 1); exit 1; }; }
14963 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14966 no | none | single)
14969 posix | posix95 | pthreads)
14971 THREADLIBS=-lpthread
14973 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14975 cat >>confdefs.h <<\_ACEOF
14976 #define GC_LINUX_THREADS 1
14980 cat >>confdefs.h <<\_ACEOF
14981 #define _REENTRANT 1
14984 if test "${enable_parallel_mark}" = yes; then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define PARALLEL_MARK 1
14992 cat >>confdefs.h <<\_ACEOF
14993 #define THREAD_LOCAL_ALLOC 1
14998 cat >>confdefs.h <<\_ACEOF
14999 #define GC_LINUX_THREADS 1
15002 cat >>confdefs.h <<\_ACEOF
15003 #define _REENTRANT 1
15009 cat >>confdefs.h <<\_ACEOF
15010 #define GC_AIX_THREADS 1
15013 cat >>confdefs.h <<\_ACEOF
15014 #define _REENTRANT 1
15019 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15020 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15022 cat >>confdefs.h <<\_ACEOF
15023 #define GC_HPUX_THREADS 1
15027 cat >>confdefs.h <<\_ACEOF
15028 #define _POSIX_C_SOURCE 199506L
15031 if test "${enable_parallel_mark}" = yes; then
15032 cat >>confdefs.h <<\_ACEOF
15033 #define PARALLEL_MARK 1
15037 cat >>confdefs.h <<\_ACEOF
15038 #define THREAD_LOCAL_ALLOC 1
15041 THREADLIBS="-lpthread -lrt"
15042 # HPUX needs REENTRANT for the _r calls.
15044 cat >>confdefs.h <<\_ACEOF
15045 #define _REENTRANT 1
15050 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
15051 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
15054 cat >>confdefs.h <<\_ACEOF
15055 #define GC_FREEBSD_THREADS 1
15058 INCLUDES="$INCLUDES -pthread"
15059 THREADDLLIBS=-pthread
15060 cat >>confdefs.h <<\_ACEOF
15061 #define _REENTRANT 1
15064 if test "${enable_parallel_mark}" = yes; then
15065 cat >>confdefs.h <<\_ACEOF
15066 #define PARALLEL_MARK 1
15070 cat >>confdefs.h <<\_ACEOF
15071 #define THREAD_LOCAL_ALLOC 1
15075 cat >>confdefs.h <<\_ACEOF
15076 #define USE_COMPILER_TLS 1
15081 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
15082 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
15084 cat >>confdefs.h <<\_ACEOF
15085 #define GC_FREEBSD_THREADS 1
15088 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15089 THREADLIBS=-pthread
15093 cat >>confdefs.h <<\_ACEOF
15094 #define GC_SOLARIS_PTHREADS 1
15097 # Need to use alternate thread library, otherwise gctest hangs
15099 multi_os_directory=`$CC -print-multi-os-directory`
15100 THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
15101 -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
15105 cat >>confdefs.h <<\_ACEOF
15106 #define GC_IRIX_THREADS 1
15112 cat >>confdefs.h <<\_ACEOF
15113 #define GC_WIN32_THREADS 1
15119 cat >>confdefs.h <<\_ACEOF
15120 #define GC_DARWIN_THREADS 1
15123 cat >>confdefs.h <<\_ACEOF
15124 #define THREAD_LOCAL_ALLOC 1
15127 if test "${enable_parallel_mark}" = yes; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define PARALLEL_MARK 1
15136 cat >>confdefs.h <<\_ACEOF
15137 #define GC_OSF1_THREADS 1
15140 if test "${enable_parallel_mark}" = yes; then
15141 cat >>confdefs.h <<\_ACEOF
15142 #define PARALLEL_MARK 1
15145 cat >>confdefs.h <<\_ACEOF
15146 #define THREAD_LOCAL_ALLOC 1
15149 # May want to enable it in other cases, too.
15150 # Measurements havent yet been done.
15152 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
15153 THREADLIBS="-lpthread -lrt"
15158 cat >>confdefs.h <<\_ACEOF
15159 #define GC_WIN32_THREADS 1
15165 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
15166 echo "${ECHO_T}$THREADLIBS" >&6
15167 # Use pthread GCC switch
15168 THREADLIBS=-pthread
15169 if test "${enable_parallel_mark}" = yes; then
15170 cat >>confdefs.h <<\_ACEOF
15171 #define PARALLEL_MARK 1
15175 cat >>confdefs.h <<\_ACEOF
15176 #define THREAD_LOCAL_ALLOC 1
15180 cat >>confdefs.h <<\_ACEOF
15181 #define GC_DGUX386_THREADS 1
15185 cat >>confdefs.h <<\_ACEOF
15186 #define DGUX_THREADS 1
15189 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
15190 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
15194 THREADLIBS=-lpthread
15195 cat >>confdefs.h <<\_ACEOF
15196 #define GC_AIX_THREADS 1
15199 cat >>confdefs.h <<\_ACEOF
15200 #define _REENTRANT 1
15204 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
15205 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
15206 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
15207 { (exit 1); exit 1; }; }
15210 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
15211 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
15212 { (exit 1); exit 1; }; }
15219 powerpc_darwin=true
15224 if test x$powerpc_darwin = xtrue; then
15225 POWERPC_DARWIN_TRUE=
15226 POWERPC_DARWIN_FALSE='#'
15228 POWERPC_DARWIN_TRUE='#'
15229 POWERPC_DARWIN_FALSE=
15233 # Darwin needs a few extra special tests to deal with variation in the
15236 powerpc*-*-darwin*)
15237 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
15238 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
15239 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <mach/thread_status.h>
15253 static ppc_thread_state_t ac_aggr;
15260 rm -f conftest.$ac_objext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15262 (eval $ac_compile) 2>conftest.er1
15264 grep -v '^ *+' conftest.er1 >conftest.err
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
15269 { ac_try='test -z "$ac_c_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest.$ac_objext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ac_cv_member_ppc_thread_state_t_r0=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <mach/thread_status.h>
15298 static ppc_thread_state_t ac_aggr;
15299 if (sizeof ac_aggr.r0)
15305 rm -f conftest.$ac_objext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15307 (eval $ac_compile) 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
15314 { ac_try='test -z "$ac_c_werror_flag"
15315 || test ! -s conftest.err'
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_member_ppc_thread_state_t_r0=yes
15329 echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15332 ac_cv_member_ppc_thread_state_t_r0=no
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
15339 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
15340 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
15342 cat >>confdefs.h <<\_ACEOF
15343 #define HAS_PPC_THREAD_STATE_R0 1
15348 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
15349 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
15350 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <mach/thread_status.h>
15364 static ppc_thread_state_t ac_aggr;
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -z "$ac_c_werror_flag"
15381 || test ! -s conftest.err'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest.$ac_objext'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }; then
15393 ac_cv_member_ppc_thread_state_t___r0=yes
15395 echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15404 #include <mach/thread_status.h>
15409 static ppc_thread_state_t ac_aggr;
15410 if (sizeof ac_aggr.__r0)
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>conftest.er1
15420 grep -v '^ *+' conftest.er1 >conftest.err
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_cv_member_ppc_thread_state_t___r0=yes
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_cv_member_ppc_thread_state_t___r0=no
15445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15449 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
15450 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
15451 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAS_PPC_THREAD_STATE___R0 1
15459 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
15460 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
15461 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <mach/thread_status.h>
15475 static ppc_thread_state64_t ac_aggr;
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 ac_cv_member_ppc_thread_state64_t_r0=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <mach/thread_status.h>
15520 static ppc_thread_state64_t ac_aggr;
15521 if (sizeof ac_aggr.r0)
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529 (eval $ac_compile) 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
15536 { ac_try='test -z "$ac_c_werror_flag"
15537 || test ! -s conftest.err'
15538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539 (eval $ac_try) 2>&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); }; } &&
15543 { ac_try='test -s conftest.$ac_objext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_member_ppc_thread_state64_t_r0=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_cv_member_ppc_thread_state64_t_r0=no
15556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
15561 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
15562 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAS_PPC_THREAD_STATE64_R0 1
15570 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
15571 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
15572 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <mach/thread_status.h>
15586 static ppc_thread_state64_t ac_aggr;
15593 rm -f conftest.$ac_objext
15594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15595 (eval $ac_compile) 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -z "$ac_c_werror_flag"
15603 || test ! -s conftest.err'
15604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest.$ac_objext'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; }; then
15615 ac_cv_member_ppc_thread_state64_t___r0=yes
15617 echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #include <mach/thread_status.h>
15631 static ppc_thread_state64_t ac_aggr;
15632 if (sizeof ac_aggr.__r0)
15638 rm -f conftest.$ac_objext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640 (eval $ac_compile) 2>conftest.er1
15642 grep -v '^ *+' conftest.er1 >conftest.err
15644 cat conftest.err >&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); } &&
15647 { ac_try='test -z "$ac_c_werror_flag"
15648 || test ! -s conftest.err'
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_cv_member_ppc_thread_state64_t___r0=yes
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_cv_member_ppc_thread_state64_t___r0=no
15667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15671 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
15672 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
15673 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAS_PPC_THREAD_STATE64___R0 1
15683 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
15684 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
15685 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <sys/cdefs.h>
15695 #include <mach/thread_status.h>
15700 static x86_thread_state32_t ac_aggr;
15707 rm -f conftest.$ac_objext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15709 (eval $ac_compile) 2>conftest.er1
15711 grep -v '^ *+' conftest.er1 >conftest.err
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_member_x86_thread_state32_t_eax=yes
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <sys/cdefs.h>
15741 #include <mach/thread_status.h>
15746 static x86_thread_state32_t ac_aggr;
15747 if (sizeof ac_aggr.eax)
15753 rm -f conftest.$ac_objext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15755 (eval $ac_compile) 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -z "$ac_c_werror_flag"
15763 || test ! -s conftest.err'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; } &&
15769 { ac_try='test -s conftest.$ac_objext'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15775 ac_cv_member_x86_thread_state32_t_eax=yes
15777 echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_member_x86_thread_state32_t_eax=no
15782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15787 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15788 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15790 cat >>confdefs.h <<\_ACEOF
15791 #define HAS_X86_THREAD_STATE32_EAX 1
15796 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15797 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15798 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15799 echo $ECHO_N "(cached) $ECHO_C" >&6
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 #include <sys/cdefs.h>
15808 #include <mach/thread_status.h>
15813 static x86_thread_state32_t ac_aggr;
15820 rm -f conftest.$ac_objext
15821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15822 (eval $ac_compile) 2>conftest.er1
15824 grep -v '^ *+' conftest.er1 >conftest.err
15826 cat conftest.err >&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); } &&
15829 { ac_try='test -z "$ac_c_werror_flag"
15830 || test ! -s conftest.err'
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; } &&
15836 { ac_try='test -s conftest.$ac_objext'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 ac_cv_member_x86_thread_state32_t___eax=yes
15844 echo "$as_me: failed program was:" >&5
15845 sed 's/^/| /' conftest.$ac_ext >&5
15847 cat >conftest.$ac_ext <<_ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 #include <sys/cdefs.h>
15854 #include <mach/thread_status.h>
15859 static x86_thread_state32_t ac_aggr;
15860 if (sizeof ac_aggr.__eax)
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15868 (eval $ac_compile) 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -z "$ac_c_werror_flag"
15876 || test ! -s conftest.err'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; } &&
15882 { ac_try='test -s conftest.$ac_objext'
15883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884 (eval $ac_try) 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_cv_member_x86_thread_state32_t___eax=yes
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_cv_member_x86_thread_state32_t___eax=no
15895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15900 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15901 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAS_X86_THREAD_STATE32___EAX 1
15911 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15912 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15913 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <sys/cdefs.h>
15923 #include <mach/thread_status.h>
15928 static x86_thread_state64_t ac_aggr;
15935 rm -f conftest.$ac_objext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937 (eval $ac_compile) 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -z "$ac_c_werror_flag"
15945 || test ! -s conftest.err'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; } &&
15951 { ac_try='test -s conftest.$ac_objext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_member_x86_thread_state64_t_rax=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <sys/cdefs.h>
15969 #include <mach/thread_status.h>
15974 static x86_thread_state64_t ac_aggr;
15975 if (sizeof ac_aggr.rax)
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -z "$ac_c_werror_flag"
15991 || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 ac_cv_member_x86_thread_state64_t_rax=yes
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_cv_member_x86_thread_state64_t_rax=no
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16014 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
16015 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
16016 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAS_X86_THREAD_STATE64_RAX 1
16024 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
16025 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
16026 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16029 cat >conftest.$ac_ext <<_ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 #include <sys/cdefs.h>
16036 #include <mach/thread_status.h>
16041 static x86_thread_state64_t ac_aggr;
16048 rm -f conftest.$ac_objext
16049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16050 (eval $ac_compile) 2>conftest.er1
16052 grep -v '^ *+' conftest.er1 >conftest.err
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } &&
16057 { ac_try='test -z "$ac_c_werror_flag"
16058 || test ! -s conftest.err'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_member_x86_thread_state64_t___rax=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 cat >conftest.$ac_ext <<_ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 #include <sys/cdefs.h>
16082 #include <mach/thread_status.h>
16087 static x86_thread_state64_t ac_aggr;
16088 if (sizeof ac_aggr.__rax)
16094 rm -f conftest.$ac_objext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>conftest.er1
16098 grep -v '^ *+' conftest.er1 >conftest.err
16100 cat conftest.err >&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_member_x86_thread_state64_t___rax=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_cv_member_x86_thread_state64_t___rax=no
16123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16127 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
16128 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
16129 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
16131 cat >>confdefs.h <<\_ACEOF
16132 #define HAS_X86_THREAD_STATE64___RAX 1
16141 # We never want libdl on darwin. It is a fake libdl that just ends up making
16142 # dyld calls anyway
16146 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 ac_check_lib_save_LIBS=$LIBS
16153 if test x$gcc_no_link = xyes; then
16154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16156 { (exit 1); exit 1; }; }
16158 cat >conftest.$ac_ext <<_ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h. */
16165 /* Override any gcc2 internal prototype to avoid an error. */
16169 /* We use char because int might match the return type of a gcc2
16170 builtin and then its argument prototype would still apply. */
16180 rm -f conftest.$ac_objext conftest$ac_exeext
16181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16182 (eval $ac_link) 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
16189 { ac_try='test -z "$ac_c_werror_flag"
16190 || test ! -s conftest.err'
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest$ac_exeext'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_cv_lib_dl_dlopen=yes
16204 echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 ac_cv_lib_dl_dlopen=no
16209 rm -f conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16213 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16214 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16215 if test $ac_cv_lib_dl_dlopen = yes; then
16216 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
16222 # extra LD Flags which are required for targets
16225 extra_ldflags_libgc=-Wl,-single_module
16232 target_all=libgcjgc.la
16237 # Check whether --with-ecos or --without-ecos was given.
16238 if test "${with_ecos+set}" = set; then
16239 withval="$with_ecos"
16240 TARGET_ECOS="$with_ecos"
16248 case "$TARGET_ECOS" in
16253 cat >>confdefs.h <<\_ACEOF
16257 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
16258 addobjs="$addobjs ecos.lo"
16262 if test "${enable_cplusplus}" = yes; then
16263 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
16264 addtests="$addtests test_cpp"
16269 if test "${enable_cplusplus}" = yes; then
16271 CPLUSPLUS_FALSE='#'
16282 # Configuration of shared libraries
16284 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16285 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16286 # Check whether --enable-shared or --disable-shared was given.
16287 if test "${enable_shared+set}" = set; then
16288 enableval="$enable_shared"
16289 p=${PACKAGE-default}
16291 yes) enable_shared=yes ;;
16292 no) enable_shared=no ;;
16295 # Look at the argument we got. We use all the common list separators.
16296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16297 for pkg in $enableval; do
16299 if test "X$pkg" = "X$p"; then
16318 echo "$as_me:$LINENO: result: no" >&5
16319 echo "${ECHO_T}no" >&6
16322 echo "$as_me:$LINENO: result: yes" >&5
16323 echo "${ECHO_T}yes" >&6
16327 # Checks for pthreads functions
16330 LIBS="$LIBS $THREADLIBS"
16332 for ac_func in pthread_getattr_np
16334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16335 echo "$as_me:$LINENO: checking for $ac_func" >&5
16336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16337 if eval "test \"\${$as_ac_var+set}\" = set"; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 if test x$gcc_no_link = xyes; then
16341 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16342 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16343 { (exit 1); exit 1; }; }
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16353 #define $ac_func innocuous_$ac_func
16355 /* System header to define __stub macros and hopefully few prototypes,
16356 which can conflict with char $ac_func (); below.
16357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16358 <limits.h> exists even on freestanding compilers. */
16361 # include <limits.h>
16363 # include <assert.h>
16368 /* Override any gcc2 internal prototype to avoid an error. */
16373 /* We use char because int might match the return type of a gcc2
16374 builtin and then its argument prototype would still apply. */
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16382 char (*f) () = $ac_func;
16391 return f != $ac_func;
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398 (eval $ac_link) 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag"
16406 || test ! -s conftest.err'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest$ac_exeext'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 eval "$as_ac_var=yes"
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 eval "$as_ac_var=no"
16425 rm -f conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16429 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16430 if test `eval echo '${'$as_ac_var'}'` = yes; then
16431 cat >>confdefs.h <<_ACEOF
16432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16440 # Configuration of machine-dependent code
16442 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
16443 # ffi_closure_{alloc,free} which takes care of allocating trampolines
16444 # in executable memory.
16446 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
16447 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
16451 machdep="alpha_mach_dep.lo"
16452 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
16453 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
16454 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
16458 machdep="alpha_mach_dep.lo"
16460 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
16462 cat >>confdefs.h <<\_ACEOF
16463 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
16468 machdep="mips_ultrix_mach_dep.lo"
16470 cat >>confdefs.h <<\_ACEOF
16471 #define STACKBASE __stackbase
16475 cat >>confdefs.h <<\_ACEOF
16476 #define DATASTART_IS_ETEXT 1
16481 machdep="mips_ultrix_mach-dep.lo"
16483 mips-nec-sysv*|mips-unknown-sysv*)
16488 machdep="mips_sgi_mach_dep.lo"
16491 machdep="sparc_netbsd_mach_dep.lo"
16493 sparc-sun-solaris2.3)
16494 machdep="sparc_mach_dep.lo"
16496 cat >>confdefs.h <<\_ACEOF
16497 #define SUNOS53_SHARED_LIB 1
16501 sparc*-sun-solaris2.*)
16502 machdep="sparc_mach_dep.lo"
16505 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
16509 cat >>confdefs.h <<\_ACEOF
16510 #define NO_EXECUTE_PERMISSION 1
16513 if test x"$machdep" = x; then
16514 echo "$as_me:$LINENO: result: $machdep" >&5
16515 echo "${ECHO_T}$machdep" >&6
16516 machdep="mach_dep.lo"
16518 addobjs="$addobjs $machdep"
16525 # Check for AViiON Machines running DGUX
16527 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
16528 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
16530 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16531 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16532 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16533 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16537 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16539 # Is the header compilable?
16540 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16541 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16542 cat >conftest.$ac_ext <<_ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16548 $ac_includes_default
16549 #include <sys/dg_sys_info.h>
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>conftest.er1
16555 grep -v '^ *+' conftest.er1 >conftest.err
16557 cat conftest.err >&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -z "$ac_c_werror_flag"
16561 || test ! -s conftest.err'
16562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); }; } &&
16567 { ac_try='test -s conftest.$ac_objext'
16568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16569 (eval $ac_try) 2>&5
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_header_compiler=yes
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_header_compiler=no
16580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16581 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16582 echo "${ECHO_T}$ac_header_compiler" >&6
16584 # Is the header present?
16585 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16586 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16587 cat >conftest.$ac_ext <<_ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 #include <sys/dg_sys_info.h>
16595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16598 grep -v '^ *+' conftest.er1 >conftest.err
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } >/dev/null; then
16603 if test -s conftest.err; then
16604 ac_cpp_err=$ac_c_preproc_warn_flag
16605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16612 if test -z "$ac_cpp_err"; then
16613 ac_header_preproc=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_header_preproc=no
16620 rm -f conftest.err conftest.$ac_ext
16621 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16622 echo "${ECHO_T}$ac_header_preproc" >&6
16624 # So? What about this header?
16625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16627 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16628 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16629 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16630 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16631 ac_header_preproc=yes
16634 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16639 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16640 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16641 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16643 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16645 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16648 ## ------------------------------------------ ##
16649 ## Report this to the AC_PACKAGE_NAME lists. ##
16650 ## ------------------------------------------ ##
16653 sed "s/^/$as_me: WARNING: /" >&2
16656 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16657 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16658 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16664 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16667 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16673 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
16674 echo "${ECHO_T}$ac_is_dgux" >&6
16675 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16676 if test $ac_is_dgux = yes; then
16677 if test "$enable_full_debug" = "yes"; then
16678 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16679 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16681 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16682 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16688 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
16689 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
16692 if test "$GCC" = yes; then
16693 echo "$as_me:$LINENO: result: yes" >&5
16694 echo "${ECHO_T}yes" >&6
16696 for i in $CFLAGS; do
16701 new_CFLAGS="$new_CFLAGS $i"
16705 CFLAGS="$new_CFLAGS"
16707 echo "$as_me:$LINENO: result: no" >&5
16708 echo "${ECHO_T}no" >&6
16711 *) echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6 ;;
16715 MY_CFLAGS="$CFLAGS"
16719 cat >>confdefs.h <<\_ACEOF
16724 cat >>confdefs.h <<\_ACEOF
16725 #define NO_SIGNALS 1
16729 cat >>confdefs.h <<\_ACEOF
16730 #define ALL_INTERIOR_POINTERS 1
16735 cat >>confdefs.h <<\_ACEOF
16736 #define JAVA_FINALIZATION 1
16740 cat >>confdefs.h <<\_ACEOF
16741 #define GC_GCJ_SUPPORT 1
16745 cat >>confdefs.h <<\_ACEOF
16746 #define ATOMIC_UNCOLLECTABLE 1
16750 # Check whether --enable-gc-debug or --disable-gc-debug was given.
16751 if test "${enable_gc_debug+set}" = set; then
16752 enableval="$enable_gc_debug"
16753 if test "$enable_gc_debug" = "yes"; then
16754 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
16755 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16757 cat >>confdefs.h <<\_ACEOF
16758 #define KEEP_BACK_PTRS 1
16762 cat >>confdefs.h <<\_ACEOF
16763 #define DBG_HDRS_ALL 1
16769 cat >>confdefs.h <<\_ACEOF
16770 #define MAKE_BACK_GRAPH 1
16774 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16775 cat >>confdefs.h <<\_ACEOF
16776 #define MAKE_BACK_GRAPH 1
16779 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16780 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16782 cat >>confdefs.h <<\_ACEOF
16783 #define SAVE_CALL_COUNT 8
16788 cat >>confdefs.h <<\_ACEOF
16789 #define MAKE_BACK_GRAPH 1
16797 if test "${gc_use_mmap}" = "yes"; then
16799 cat >>confdefs.h <<\_ACEOF
16805 if test -n "$with_cross_host" &&
16806 test x"$with_cross_host" != x"no"; then
16807 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16808 toolexeclibdir='$(toolexecdir)/lib'
16810 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16811 toolexeclibdir='$(libdir)'
16813 multi_os_directory=`$CC -print-multi-os-directory`
16814 case $multi_os_directory in
16815 .) ;; # Avoid trailing /.
16816 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16821 if test "${multilib}" = "yes"; then
16822 multilib_arg="--enable-multilib"
16827 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16830 ac_config_files="$ac_config_files Makefile include/Makefile threads.mk"
16832 cat >confcache <<\_ACEOF
16833 # This file is a shell script that caches the results of configure
16834 # tests run on this system so they can be shared between configure
16835 # scripts and configure runs, see configure's option --config-cache.
16836 # It is not useful on other systems. If it contains results you don't
16837 # want to keep, you may remove or edit it.
16839 # config.status only pays attention to the cache file if you give it
16840 # the --recheck option to rerun configure.
16842 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16843 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16844 # following values.
16848 # The following way of writing the cache mishandles newlines in values,
16849 # but we know of no workaround that is simple, portable, and efficient.
16850 # So, don't put newlines in cache variables' values.
16851 # Ultrix sh set writes to stderr and can't be redirected directly,
16852 # and sets the high bit in the cache file unless we assign to the vars.
16855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16857 # `set' does not quote correctly, so add quotes (double-quote
16858 # substitution turns \\\\ into \\, and sed turns \\ into \).
16861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16864 # `set' quotes correctly as required by POSIX, so do not add quotes.
16866 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16875 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16877 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16878 if test -w $cache_file; then
16879 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16880 cat confcache >$cache_file
16882 echo "not updating unwritable cache $cache_file"
16887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16888 # Let make expand exec_prefix.
16889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16891 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16892 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16893 # trailing colons and then remove the whole line if VPATH becomes empty
16894 # (actually we leave an empty line to preserve line numbers).
16895 if test "x$srcdir" = x.; then
16896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16897 s/:*\$(srcdir):*/:/;
16898 s/:*\${srcdir}:*/:/;
16900 s/^\([^=]*=[ ]*\):*/\1/;
16906 DEFS=-DHAVE_CONFIG_H
16910 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16911 # 1. Remove the extension, and $U if already installed.
16912 ac_i=`echo "$ac_i" |
16913 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16915 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16916 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16918 LIBOBJS=$ac_libobjs
16920 LTLIBOBJS=$ac_ltlibobjs
16923 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16924 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928 { (exit 1); exit 1; }; }
16930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935 { (exit 1); exit 1; }; }
16937 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16938 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942 { (exit 1); exit 1; }; }
16944 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16945 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949 { (exit 1); exit 1; }; }
16951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956 { (exit 1); exit 1; }; }
16958 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16959 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963 { (exit 1); exit 1; }; }
16965 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16966 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16967 Usually this means the macro was only invoked conditionally." >&5
16968 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16969 Usually this means the macro was only invoked conditionally." >&2;}
16970 { (exit 1); exit 1; }; }
16973 : ${CONFIG_STATUS=./config.status}
16974 ac_clean_files_save=$ac_clean_files
16975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16978 cat >$CONFIG_STATUS <<_ACEOF
16980 # Generated by $as_me.
16981 # Run this file to recreate the current configuration.
16982 # Compiler output produced by configure, useful for debugging
16983 # configure, is in config.log if it exists.
16986 ac_cs_recheck=false
16988 SHELL=\${CONFIG_SHELL-$SHELL}
16991 cat >>$CONFIG_STATUS <<\_ACEOF
16992 ## --------------------- ##
16993 ## M4sh Initialization. ##
16994 ## --------------------- ##
16996 # Be Bourne compatible
16997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17000 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17001 # is contrary to our usage. Disable this feature.
17002 alias -g '${1+"$@"}'='"$@"'
17003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17006 DUALCASE=1; export DUALCASE # for MKS sh
17008 # Support unset when possible.
17009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17016 # Work around bugs in pre-3.0 UWIN ksh.
17017 $as_unset ENV MAIL MAILPATH
17024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17026 LC_TELEPHONE LC_TIME
17028 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17029 eval $as_var=C; export $as_var
17035 # Required to use basename.
17036 if expr a : '\(a\)' >/dev/null 2>&1; then
17042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17043 as_basename=basename
17049 # Name of the executable.
17050 as_me=`$as_basename "$0" ||
17051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17052 X"$0" : 'X\(//\)$' \| \
17053 X"$0" : 'X\(/\)$' \| \
17054 . : '\(.\)' 2>/dev/null ||
17056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17057 /^X\/\(\/\/\)$/{ s//\1/; q; }
17058 /^X\/\(\/\).*/{ s//\1/; q; }
17062 # PATH needs CR, and LINENO needs CR and PATH.
17063 # Avoid depending upon Character Ranges.
17064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17067 as_cr_digits='0123456789'
17068 as_cr_alnum=$as_cr_Letters$as_cr_digits
17070 # The user is always right.
17071 if test "${PATH_SEPARATOR+set}" != set; then
17072 echo "#! /bin/sh" >conf$$.sh
17073 echo "exit 0" >>conf$$.sh
17075 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17084 as_lineno_1=$LINENO
17085 as_lineno_2=$LINENO
17086 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17087 test "x$as_lineno_1" != "x$as_lineno_2" &&
17088 test "x$as_lineno_3" = "x$as_lineno_2" || {
17089 # Find who we are. Look in the path if we contain no path at all
17092 *[\\/]* ) as_myself=$0 ;;
17093 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $PATH
17097 test -z "$as_dir" && as_dir=.
17098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17103 # We did not find ourselves, most probably we were run as `sh COMMAND'
17104 # in which case we are not to be found in the path.
17105 if test "x$as_myself" = x; then
17108 if test ! -f "$as_myself"; then
17109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17111 { (exit 1); exit 1; }; }
17113 case $CONFIG_SHELL in
17115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17119 test -z "$as_dir" && as_dir=.
17120 for as_base in sh bash ksh sh5; do
17123 if ("$as_dir/$as_base" -c '
17124 as_lineno_1=$LINENO
17125 as_lineno_2=$LINENO
17126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17127 test "x$as_lineno_1" != "x$as_lineno_2" &&
17128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17129 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17130 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17131 CONFIG_SHELL=$as_dir/$as_base
17132 export CONFIG_SHELL
17133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17142 # uniformly replaced by the line number. The first 'sed' inserts a
17143 # line-number line before each line; the second 'sed' does the real
17144 # work. The second script uses 'N' to pair each line-number line
17145 # with the numbered line, and appends trailing '-' during
17146 # substitution so that $LINENO is not a special case at line end.
17147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17149 sed '=' <$as_myself |
17154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17157 s,^['$as_cr_digits']*\n,,
17158 ' >$as_me.lineno &&
17159 chmod +x $as_me.lineno ||
17160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17162 { (exit 1); exit 1; }; }
17164 # Don't try to exec as it changes $[0], causing all sort of problems
17165 # (the dirname of $[0] is not the place where we might find the
17166 # original and so on. Autoconf is especially sensible to this).
17168 # Exit status is that of the last command.
17173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17174 *c*,-n*) ECHO_N= ECHO_C='
17176 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17177 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17180 if expr a : '\(a\)' >/dev/null 2>&1; then
17186 rm -f conf$$ conf$$.exe conf$$.file
17188 if ln -s conf$$.file conf$$ 2>/dev/null; then
17189 # We could just check for DJGPP; but this test a) works b) is more generic
17190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17191 if test -f conf$$.exe; then
17192 # Don't use ln at all; we don't have any links
17197 elif ln conf$$.file conf$$ 2>/dev/null; then
17202 rm -f conf$$ conf$$.exe conf$$.file
17204 if mkdir -p . 2>/dev/null; then
17207 test -d ./-p && rmdir ./-p
17211 as_executable_p="test -f"
17213 # Sed expression to map a string onto a valid CPP name.
17214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17216 # Sed expression to map a string onto a valid variable name.
17217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17221 # We need space, tab and new line, in precisely that order.
17231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17232 # report actual input values of CONFIG_FILES etc. instead of their
17233 # values after options handling. Logging --version etc. is OK.
17237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17238 ## Running $as_me. ##
17243 This file was extended by $as_me, which was
17244 generated by GNU Autoconf 2.59. Invocation command line was
17246 CONFIG_FILES = $CONFIG_FILES
17247 CONFIG_HEADERS = $CONFIG_HEADERS
17248 CONFIG_LINKS = $CONFIG_LINKS
17249 CONFIG_COMMANDS = $CONFIG_COMMANDS
17253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17257 # Files that config.status was made for.
17258 if test -n "$ac_config_files"; then
17259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17262 if test -n "$ac_config_headers"; then
17263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17266 if test -n "$ac_config_links"; then
17267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17270 if test -n "$ac_config_commands"; then
17271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17277 \`$as_me' instantiates files from templates according to the
17278 current configuration.
17280 Usage: $0 [OPTIONS] [FILE]...
17282 -h, --help print this help, then exit
17283 -V, --version print version number, then exit
17284 -q, --quiet do not print progress messages
17285 -d, --debug don't remove temporary files
17286 --recheck update $as_me by reconfiguring in the same conditions
17287 --file=FILE[:TEMPLATE]
17288 instantiate the configuration file FILE
17289 --header=FILE[:TEMPLATE]
17290 instantiate the configuration header FILE
17292 Configuration files:
17295 Configuration headers:
17298 Configuration commands:
17301 Report bugs to <bug-autoconf@gnu.org>."
17304 cat >>$CONFIG_STATUS <<_ACEOF
17307 configured by $0, generated by GNU Autoconf 2.59,
17308 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17310 Copyright (C) 2003 Free Software Foundation, Inc.
17311 This config.status script is free software; the Free Software Foundation
17312 gives unlimited permission to copy, distribute and modify it."
17317 cat >>$CONFIG_STATUS <<\_ACEOF
17318 # If no file are specified by the user, then we need to provide default
17319 # value. By we need to know if files were specified by the user.
17325 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17334 *) # This is not an option, so the user has probably given explicit
17337 ac_need_defaults=false;;
17341 # Handling of the options.
17343 cat >>$CONFIG_STATUS <<\_ACEOF
17344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17346 --version | --vers* | -V )
17347 echo "$ac_cs_version"; exit 0 ;;
17349 # Conflict between --help and --header
17350 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17351 Try \`$0 --help' for more information." >&5
17352 echo "$as_me: error: ambiguous option: $1
17353 Try \`$0 --help' for more information." >&2;}
17354 { (exit 1); exit 1; }; };;
17355 --help | --hel | -h )
17356 echo "$ac_cs_usage"; exit 0 ;;
17357 --debug | --d* | -d )
17359 --file | --fil | --fi | --f )
17361 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17362 ac_need_defaults=false;;
17363 --header | --heade | --head | --hea )
17365 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17366 ac_need_defaults=false;;
17367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17371 # This is an error.
17372 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17373 Try \`$0 --help' for more information." >&5
17374 echo "$as_me: error: unrecognized option: $1
17375 Try \`$0 --help' for more information." >&2;}
17376 { (exit 1); exit 1; }; } ;;
17378 *) ac_config_targets="$ac_config_targets $1" ;;
17384 ac_configure_extra_args=
17386 if $ac_cs_silent; then
17388 ac_configure_extra_args="$ac_configure_extra_args --silent"
17392 cat >>$CONFIG_STATUS <<_ACEOF
17393 if \$ac_cs_recheck; then
17394 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17395 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17400 cat >>$CONFIG_STATUS <<_ACEOF
17402 # INIT-COMMANDS section.
17409 with_multisubdir="$with_multisubdir"
17410 with_multisrctop="$with_multisrctop"
17411 with_target_subdir="$with_target_subdir"
17412 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17413 multi_basedir="$multi_basedir"
17414 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17417 GFORTRAN="$GFORTRAN"
17419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17422 # The HP-UX ksh and POSIX shell print the target directory to stdout
17423 # if CDPATH is set.
17424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17426 sed_quote_subst='$sed_quote_subst'
17427 double_quote_subst='$double_quote_subst'
17428 delay_variable_subst='$delay_variable_subst'
17429 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17430 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17431 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17433 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17434 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17435 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17436 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17437 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17438 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17439 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17440 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17441 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17442 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17443 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17444 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17445 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17446 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17447 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17448 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17449 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17450 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17451 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17452 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17453 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17454 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17455 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17456 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17457 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17475 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17476 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17477 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17478 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17479 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17480 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17481 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17482 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17483 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17484 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17485 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17486 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17487 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17488 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17489 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17490 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17491 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17492 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17493 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17494 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17495 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17496 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17497 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17498 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17499 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17500 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17501 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17502 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17503 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17504 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17505 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17506 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17507 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17508 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17509 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17510 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17511 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17512 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17513 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17514 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17515 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17516 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17517 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17518 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17519 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17520 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17521 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17522 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17523 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17524 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17525 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17526 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17527 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17528 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17529 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17530 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17531 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17532 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17533 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17534 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17535 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17536 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17537 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17538 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17539 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17540 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17541 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17542 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17543 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17544 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17545 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17546 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17547 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
17548 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17549 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
17550 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
17551 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
17552 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
17553 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17554 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17555 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17556 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17557 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17558 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17559 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17560 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17561 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17562 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17563 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17564 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17565 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17566 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17567 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17568 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17569 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17570 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17571 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17572 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17573 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17574 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17575 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17576 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17577 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17578 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17579 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17580 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17581 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17582 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17583 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17584 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17585 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17586 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17587 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17588 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17589 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17590 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17591 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17592 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17593 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17594 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17595 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17596 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17597 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17598 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17599 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17602 LTCFLAGS='$LTCFLAGS'
17603 compiler='$compiler_DEFAULT'
17605 # Quote evaled strings.
17617 deplibs_check_method \
17626 lt_cv_sys_global_symbol_pipe \
17627 lt_cv_sys_global_symbol_to_cdecl \
17628 lt_cv_sys_global_symbol_to_c_name_address \
17629 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17632 lt_prog_compiler_no_builtin_flag \
17633 lt_prog_compiler_wl \
17634 lt_prog_compiler_pic \
17635 lt_prog_compiler_static \
17636 lt_cv_prog_compiler_c_o \
17644 export_dynamic_flag_spec \
17645 whole_archive_flag_spec \
17646 compiler_needs_object \
17648 allow_undefined_flag \
17649 no_undefined_flag \
17650 hardcode_libdir_flag_spec \
17651 hardcode_libdir_flag_spec_ld \
17652 hardcode_libdir_separator \
17657 variables_saved_for_relink \
17659 library_names_spec \
17664 compiler_lib_search_dirs \
17669 compiler_lib_search_path \
17672 lt_prog_compiler_no_builtin_flag_CXX \
17673 lt_prog_compiler_wl_CXX \
17674 lt_prog_compiler_pic_CXX \
17675 lt_prog_compiler_static_CXX \
17676 lt_cv_prog_compiler_c_o_CXX \
17677 export_dynamic_flag_spec_CXX \
17678 whole_archive_flag_spec_CXX \
17679 compiler_needs_object_CXX \
17681 allow_undefined_flag_CXX \
17682 no_undefined_flag_CXX \
17683 hardcode_libdir_flag_spec_CXX \
17684 hardcode_libdir_flag_spec_ld_CXX \
17685 hardcode_libdir_separator_CXX \
17686 fix_srcfile_path_CXX \
17687 exclude_expsyms_CXX \
17688 include_expsyms_CXX \
17689 file_list_spec_CXX \
17690 compiler_lib_search_dirs_CXX \
17691 predep_objects_CXX \
17692 postdep_objects_CXX \
17695 compiler_lib_search_path_CXX; do
17696 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17697 *[\\\\\\\`\\"\\\$]*)
17698 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17701 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17706 # Double-quote double-evaled strings.
17707 for var in reload_cmds \
17708 old_postinstall_cmds \
17709 old_postuninstall_cmds \
17711 extract_expsyms_cmds \
17712 old_archive_from_new_cmds \
17713 old_archive_from_expsyms_cmds \
17715 archive_expsym_cmds \
17717 module_expsym_cmds \
17718 export_symbols_cmds \
17721 postuninstall_cmds \
17723 sys_lib_search_path_spec \
17724 sys_lib_dlsearch_path_spec \
17725 old_archive_cmds_CXX \
17726 old_archive_from_new_cmds_CXX \
17727 old_archive_from_expsyms_cmds_CXX \
17729 archive_expsym_cmds_CXX \
17731 module_expsym_cmds_CXX \
17732 export_symbols_cmds_CXX \
17733 prelink_cmds_CXX; do
17734 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17735 *[\\\\\\\`\\"\\\$]*)
17736 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17739 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17744 # Fix-up fallback echo if it was mangled by the above quoting rules.
17746 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17750 ac_aux_dir='$ac_aux_dir'
17751 xsi_shell='$xsi_shell'
17752 lt_shell_append='$lt_shell_append'
17754 # See if we are running on zsh, and set the options which allow our
17755 # commands through without removal of \ escapes INIT.
17756 if test -n "\${ZSH_VERSION+set}" ; then
17757 setopt NO_GLOB_SUBST
17763 TIMESTAMP='$TIMESTAMP'
17776 cat >>$CONFIG_STATUS <<\_ACEOF
17777 for ac_config_target in $ac_config_targets
17779 case "$ac_config_target" in
17780 # Handling of arguments.
17781 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17782 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17783 "threads.mk" ) CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
17784 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17785 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17786 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17787 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
17788 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
17789 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17790 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17791 { (exit 1); exit 1; }; };;
17795 # If the user did not use the arguments to specify the items to instantiate,
17796 # then the envvar interface is used. Set only those that are not.
17797 # We use the long form for the default assignment because of an extremely
17798 # bizarre bug on SunOS 4.1.3.
17799 if $ac_need_defaults; then
17800 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17801 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17805 # Have a temporary directory for convenience. Make it in the build tree
17806 # simply because there is no reason to put it here, and in addition,
17807 # creating and moving files from /tmp can sometimes cause problems.
17808 # Create a temporary directory, and hook for its removal unless debugging.
17811 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17812 trap '{ (exit 1); exit 1; }' 1 2 13 15
17815 # Create a (secure) tmp directory for tmp files.
17818 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17819 test -n "$tmp" && test -d "$tmp"
17822 tmp=./confstat$$-$RANDOM
17823 (umask 077 && mkdir $tmp)
17826 echo "$me: cannot create a temporary directory in ." >&2
17827 { (exit 1); exit 1; }
17832 cat >>$CONFIG_STATUS <<_ACEOF
17835 # CONFIG_FILES section.
17838 # No need to generate the scripts if there are no CONFIG_FILES.
17839 # This happens for instance when ./config.status config.h
17840 if test -n "\$CONFIG_FILES"; then
17841 # Protect against being on the right side of a sed subst in config.status.
17842 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17843 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17844 s,@SHELL@,$SHELL,;t t
17845 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17846 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17847 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17848 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17849 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17850 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17851 s,@exec_prefix@,$exec_prefix,;t t
17852 s,@prefix@,$prefix,;t t
17853 s,@program_transform_name@,$program_transform_name,;t t
17854 s,@bindir@,$bindir,;t t
17855 s,@sbindir@,$sbindir,;t t
17856 s,@libexecdir@,$libexecdir,;t t
17857 s,@datadir@,$datadir,;t t
17858 s,@sysconfdir@,$sysconfdir,;t t
17859 s,@sharedstatedir@,$sharedstatedir,;t t
17860 s,@localstatedir@,$localstatedir,;t t
17861 s,@libdir@,$libdir,;t t
17862 s,@includedir@,$includedir,;t t
17863 s,@oldincludedir@,$oldincludedir,;t t
17864 s,@infodir@,$infodir,;t t
17865 s,@mandir@,$mandir,;t t
17866 s,@build_alias@,$build_alias,;t t
17867 s,@host_alias@,$host_alias,;t t
17868 s,@target_alias@,$target_alias,;t t
17869 s,@DEFS@,$DEFS,;t t
17870 s,@ECHO_C@,$ECHO_C,;t t
17871 s,@ECHO_N@,$ECHO_N,;t t
17872 s,@ECHO_T@,$ECHO_T,;t t
17873 s,@LIBS@,$LIBS,;t t
17874 s,@multi_basedir@,$multi_basedir,;t t
17875 s,@build@,$build,;t t
17876 s,@build_cpu@,$build_cpu,;t t
17877 s,@build_vendor@,$build_vendor,;t t
17878 s,@build_os@,$build_os,;t t
17879 s,@host@,$host,;t t
17880 s,@host_cpu@,$host_cpu,;t t
17881 s,@host_vendor@,$host_vendor,;t t
17882 s,@host_os@,$host_os,;t t
17883 s,@target@,$target,;t t
17884 s,@target_cpu@,$target_cpu,;t t
17885 s,@target_vendor@,$target_vendor,;t t
17886 s,@target_os@,$target_os,;t t
17887 s,@target_noncanonical@,$target_noncanonical,;t t
17888 s,@mkinstalldirs@,$mkinstalldirs,;t t
17889 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17890 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17891 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17892 s,@CYGPATH_W@,$CYGPATH_W,;t t
17893 s,@PACKAGE@,$PACKAGE,;t t
17894 s,@VERSION@,$VERSION,;t t
17895 s,@ACLOCAL@,$ACLOCAL,;t t
17896 s,@AUTOCONF@,$AUTOCONF,;t t
17897 s,@AUTOMAKE@,$AUTOMAKE,;t t
17898 s,@AUTOHEADER@,$AUTOHEADER,;t t
17899 s,@MAKEINFO@,$MAKEINFO,;t t
17900 s,@install_sh@,$install_sh,;t t
17901 s,@STRIP@,$STRIP,;t t
17902 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17903 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17904 s,@mkdir_p@,$mkdir_p,;t t
17906 s,@SET_MAKE@,$SET_MAKE,;t t
17907 s,@am__leading_dot@,$am__leading_dot,;t t
17908 s,@AMTAR@,$AMTAR,;t t
17909 s,@am__tar@,$am__tar,;t t
17910 s,@am__untar@,$am__untar,;t t
17912 s,@ac_ct_CC@,$ac_ct_CC,;t t
17913 s,@EXEEXT@,$EXEEXT,;t t
17914 s,@OBJEXT@,$OBJEXT,;t t
17915 s,@DEPDIR@,$DEPDIR,;t t
17916 s,@am__include@,$am__include,;t t
17917 s,@am__quote@,$am__quote,;t t
17918 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17919 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17920 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17921 s,@CCDEPMODE@,$CCDEPMODE,;t t
17922 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17923 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17925 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17926 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17927 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17928 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17929 s,@CFLAGS@,$CFLAGS,;t t
17930 s,@CXXFLAGS@,$CXXFLAGS,;t t
17931 s,@CCAS@,$CCAS,;t t
17932 s,@CCASFLAGS@,$CCASFLAGS,;t t
17934 s,@ac_ct_AS@,$ac_ct_AS,;t t
17936 s,@ac_ct_AR@,$ac_ct_AR,;t t
17937 s,@RANLIB@,$RANLIB,;t t
17938 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17939 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17940 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17941 s,@MAINT@,$MAINT,;t t
17942 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17943 s,@LIBTOOL@,$LIBTOOL,;t t
17945 s,@EGREP@,$EGREP,;t t
17946 s,@FGREP@,$FGREP,;t t
17947 s,@GREP@,$GREP,;t t
17949 s,@DUMPBIN@,$DUMPBIN,;t t
17950 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17952 s,@LN_S@,$LN_S,;t t
17953 s,@OBJDUMP@,$OBJDUMP,;t t
17954 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
17955 s,@lt_ECHO@,$lt_ECHO,;t t
17956 s,@DSYMUTIL@,$DSYMUTIL,;t t
17957 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
17958 s,@NMEDIT@,$NMEDIT,;t t
17959 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
17960 s,@LIPO@,$LIPO,;t t
17961 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
17962 s,@OTOOL@,$OTOOL,;t t
17963 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
17964 s,@OTOOL64@,$OTOOL64,;t t
17965 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
17967 s,@CPPFLAGS@,$CPPFLAGS,;t t
17968 s,@LDFLAGS@,$LDFLAGS,;t t
17969 s,@CXXCPP@,$CXXCPP,;t t
17970 s,@THREADLIBS@,$THREADLIBS,;t t
17971 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17972 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17973 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17974 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17975 s,@target_all@,$target_all,;t t
17976 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17977 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17978 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17979 s,@addobjs@,$addobjs,;t t
17980 s,@addincludes@,$addincludes,;t t
17981 s,@addlibs@,$addlibs,;t t
17982 s,@addtests@,$addtests,;t t
17983 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17984 s,@toolexecdir@,$toolexecdir,;t t
17985 s,@toolexeclibdir@,$toolexeclibdir,;t t
17986 s,@LIBOBJS@,$LIBOBJS,;t t
17987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17992 cat >>$CONFIG_STATUS <<\_ACEOF
17993 # Split the substitutions into bite-sized pieces for seds with
17994 # small command number limits, like on Digital OSF/1 and HP-UX.
17995 ac_max_sed_lines=48
17996 ac_sed_frag=1 # Number of current file.
17997 ac_beg=1 # First line for current file.
17998 ac_end=$ac_max_sed_lines # Line after last line for current file.
18001 while $ac_more_lines; do
18002 if test $ac_beg -gt 1; then
18003 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18005 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18007 if test ! -s $tmp/subs.frag; then
18008 ac_more_lines=false
18010 # The purpose of the label and of the branching condition is to
18011 # speed up the sed processing (if there are no `@' at all, there
18012 # is no need to browse any of the substitutions).
18013 # These are the two extra sed commands mentioned above.
18015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18016 if test -z "$ac_sed_cmds"; then
18017 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18019 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18021 ac_sed_frag=`expr $ac_sed_frag + 1`
18023 ac_end=`expr $ac_end + $ac_max_sed_lines`
18026 if test -z "$ac_sed_cmds"; then
18029 fi # test -n "$CONFIG_FILES"
18032 cat >>$CONFIG_STATUS <<\_ACEOF
18033 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18036 - | *:- | *:-:* ) # input from stdin
18038 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18039 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18040 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18041 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18042 * ) ac_file_in=$ac_file.in ;;
18045 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18048 X"$ac_file" : 'X\(//\)[^/]' \| \
18049 X"$ac_file" : 'X\(//\)$' \| \
18050 X"$ac_file" : 'X\(/\)' \| \
18051 . : '\(.\)' 2>/dev/null ||
18053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18055 /^X\(\/\/\)$/{ s//\1/; q; }
18056 /^X\(\/\).*/{ s//\1/; q; }
18058 { if $as_mkdir_p; then
18063 while test ! -d "$as_dir"; do
18064 as_dirs="$as_dir $as_dirs"
18065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18067 X"$as_dir" : 'X\(//\)[^/]' \| \
18068 X"$as_dir" : 'X\(//\)$' \| \
18069 X"$as_dir" : 'X\(/\)' \| \
18070 . : '\(.\)' 2>/dev/null ||
18072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18074 /^X\(\/\/\)$/{ s//\1/; q; }
18075 /^X\(\/\).*/{ s//\1/; q; }
18078 test ! -n "$as_dirs" || mkdir $as_dirs
18079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18080 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18081 { (exit 1); exit 1; }; }; }
18085 if test "$ac_dir" != .; then
18086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18087 # A "../" for each directory in $ac_dir_suffix.
18088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18090 ac_dir_suffix= ac_top_builddir=
18094 .) # No --srcdir option. We are building in place.
18096 if test -z "$ac_top_builddir"; then
18099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18101 [\\/]* | ?:[\\/]* ) # Absolute path.
18102 ac_srcdir=$srcdir$ac_dir_suffix;
18103 ac_top_srcdir=$srcdir ;;
18104 *) # Relative path.
18105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18109 # Do not use `cd foo && pwd` to compute absolute paths, because
18110 # the directories may not exist.
18112 .) ac_abs_builddir="$ac_dir";;
18115 .) ac_abs_builddir=`pwd`;;
18116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18120 case $ac_abs_builddir in
18121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18123 case ${ac_top_builddir}. in
18124 .) ac_abs_top_builddir=$ac_abs_builddir;;
18125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18129 case $ac_abs_builddir in
18130 .) ac_abs_srcdir=$ac_srcdir;;
18133 .) ac_abs_srcdir=$ac_abs_builddir;;
18134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18138 case $ac_abs_builddir in
18139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18141 case $ac_top_srcdir in
18142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18151 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18154 if test x"$ac_file" != x-; then
18155 { echo "$as_me:$LINENO: creating $ac_file" >&5
18156 echo "$as_me: creating $ac_file" >&6;}
18159 # Let's still pretend it is `configure' which instantiates (i.e., don't
18160 # use $as_me), people would be surprised to read:
18161 # /* config.h. Generated by config.status. */
18162 if test x"$ac_file" = x-; then
18165 configure_input="$ac_file. "
18167 configure_input=$configure_input"Generated from `echo $ac_file_in |
18168 sed 's,.*/,,'` by configure."
18170 # First look for the input files in the build tree, otherwise in the
18172 ac_file_inputs=`IFS=:
18173 for f in $ac_file_in; do
18175 -) echo $tmp/stdin ;;
18177 # Absolute (can't be DOS-style, as IFS=:)
18178 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18179 echo "$as_me: error: cannot find input file: $f" >&2;}
18180 { (exit 1); exit 1; }; }
18183 if test -f "$f"; then
18186 elif test -f "$srcdir/$f"; then
18191 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18192 echo "$as_me: error: cannot find input file: $f" >&2;}
18193 { (exit 1); exit 1; }; }
18196 done` || { (exit 1); exit 1; }
18198 cat >>$CONFIG_STATUS <<_ACEOF
18202 cat >>$CONFIG_STATUS <<\_ACEOF
18204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18205 s,@configure_input@,$configure_input,;t t
18206 s,@srcdir@,$ac_srcdir,;t t
18207 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18208 s,@top_srcdir@,$ac_top_srcdir,;t t
18209 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18210 s,@builddir@,$ac_builddir,;t t
18211 s,@abs_builddir@,$ac_abs_builddir,;t t
18212 s,@top_builddir@,$ac_top_builddir,;t t
18213 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18214 s,@INSTALL@,$ac_INSTALL,;t t
18215 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18217 if test x"$ac_file" != x-; then
18218 mv $tmp/out $ac_file
18226 cat >>$CONFIG_STATUS <<\_ACEOF
18229 # CONFIG_HEADER section.
18232 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18233 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18235 # ac_d sets the value in "#define NAME VALUE" lines.
18236 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18237 ac_dB='[ ].*$,\1#\2'
18240 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18241 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18242 ac_uB='$,\1#\2define\3'
18246 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18247 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18249 - | *:- | *:-:* ) # input from stdin
18251 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18253 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18254 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18255 * ) ac_file_in=$ac_file.in ;;
18258 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18259 echo "$as_me: creating $ac_file" >&6;}
18261 # First look for the input files in the build tree, otherwise in the
18263 ac_file_inputs=`IFS=:
18264 for f in $ac_file_in; do
18266 -) echo $tmp/stdin ;;
18268 # Absolute (can't be DOS-style, as IFS=:)
18269 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18270 echo "$as_me: error: cannot find input file: $f" >&2;}
18271 { (exit 1); exit 1; }; }
18272 # Do quote $f, to prevent DOS paths from being IFS'd.
18275 if test -f "$f"; then
18278 elif test -f "$srcdir/$f"; then
18283 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18284 echo "$as_me: error: cannot find input file: $f" >&2;}
18285 { (exit 1); exit 1; }; }
18288 done` || { (exit 1); exit 1; }
18289 # Remove the trailing spaces.
18290 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18294 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18295 # `conftest.undefs', that substitutes the proper values into
18296 # config.h.in to produce config.h. The first handles `#define'
18297 # templates, and the second `#undef' templates.
18298 # And first: Protect against being on the right side of a sed subst in
18299 # config.status. Protect against being in an unquoted here document
18300 # in config.status.
18301 rm -f conftest.defines conftest.undefs
18302 # Using a here document instead of a string reduces the quoting nightmare.
18303 # Putting comments in sed scripts is not portable.
18305 # `end' is used to avoid that the second main sed command (meant for
18306 # 0-ary CPP macros) applies to n-ary macro definitions.
18307 # See the Autoconf documentation for `clear'.
18308 cat >confdef2sed.sed <<\_ACEOF
18313 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18315 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18318 # If some macros were called several times there might be several times
18319 # the same #defines, which is useless. Nevertheless, we may not want to
18320 # sort them, since we want the *last* AC-DEFINE to be honored.
18321 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18322 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18323 rm -f confdef2sed.sed
18325 # This sed command replaces #undef with comments. This is necessary, for
18326 # example, in the case of _POSIX_SOURCE, which is predefined and required
18327 # on some systems where configure will not decide to define it.
18328 cat >>conftest.undefs <<\_ACEOF
18329 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18332 # Break up conftest.defines because some shells have a limit on the size
18333 # of here documents, and old seds have small limits too (100 cmds).
18334 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18335 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18336 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18337 echo ' :' >>$CONFIG_STATUS
18338 rm -f conftest.tail
18339 while grep . conftest.defines >/dev/null
18341 # Write a limited-size here document to $tmp/defines.sed.
18342 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18343 # Speed up: don't consider the non `#define' lines.
18344 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18345 # Work around the forget-to-reset-the-flag bug.
18346 echo 't clr' >>$CONFIG_STATUS
18347 echo ': clr' >>$CONFIG_STATUS
18348 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18350 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18352 mv $tmp/out $tmp/in
18354 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18355 rm -f conftest.defines
18356 mv conftest.tail conftest.defines
18358 rm -f conftest.defines
18359 echo ' fi # grep' >>$CONFIG_STATUS
18360 echo >>$CONFIG_STATUS
18362 # Break up conftest.undefs because some shells have a limit on the size
18363 # of here documents, and old seds have small limits too (100 cmds).
18364 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18365 rm -f conftest.tail
18366 while grep . conftest.undefs >/dev/null
18368 # Write a limited-size here document to $tmp/undefs.sed.
18369 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18370 # Speed up: don't consider the non `#undef'
18371 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18372 # Work around the forget-to-reset-the-flag bug.
18373 echo 't clr' >>$CONFIG_STATUS
18374 echo ': clr' >>$CONFIG_STATUS
18375 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18377 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18379 mv $tmp/out $tmp/in
18381 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18382 rm -f conftest.undefs
18383 mv conftest.tail conftest.undefs
18385 rm -f conftest.undefs
18387 cat >>$CONFIG_STATUS <<\_ACEOF
18388 # Let's still pretend it is `configure' which instantiates (i.e., don't
18389 # use $as_me), people would be surprised to read:
18390 # /* config.h. Generated by config.status. */
18391 if test x"$ac_file" = x-; then
18392 echo "/* Generated by configure. */" >$tmp/config.h
18394 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18396 cat $tmp/in >>$tmp/config.h
18398 if test x"$ac_file" != x-; then
18399 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18400 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18401 echo "$as_me: $ac_file is unchanged" >&6;}
18403 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18404 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405 X"$ac_file" : 'X\(//\)[^/]' \| \
18406 X"$ac_file" : 'X\(//\)$' \| \
18407 X"$ac_file" : 'X\(/\)' \| \
18408 . : '\(.\)' 2>/dev/null ||
18410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18412 /^X\(\/\/\)$/{ s//\1/; q; }
18413 /^X\(\/\).*/{ s//\1/; q; }
18415 { if $as_mkdir_p; then
18420 while test ! -d "$as_dir"; do
18421 as_dirs="$as_dir $as_dirs"
18422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18424 X"$as_dir" : 'X\(//\)[^/]' \| \
18425 X"$as_dir" : 'X\(//\)$' \| \
18426 X"$as_dir" : 'X\(/\)' \| \
18427 . : '\(.\)' 2>/dev/null ||
18429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18431 /^X\(\/\/\)$/{ s//\1/; q; }
18432 /^X\(\/\).*/{ s//\1/; q; }
18435 test ! -n "$as_dirs" || mkdir $as_dirs
18436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18438 { (exit 1); exit 1; }; }; }
18441 mv $tmp/config.h $ac_file
18445 rm -f $tmp/config.h
18447 # Compute $ac_file's index in $config_headers.
18449 for _am_header in $config_headers :; do
18450 case $_am_header in
18451 $ac_file | $ac_file:* )
18454 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18457 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18458 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459 X$ac_file : 'X\(//\)[^/]' \| \
18460 X$ac_file : 'X\(//\)$' \| \
18461 X$ac_file : 'X\(/\)' \| \
18462 . : '\(.\)' 2>/dev/null ||
18464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466 /^X\(\/\/\)$/{ s//\1/; q; }
18467 /^X\(\/\).*/{ s//\1/; q; }
18468 s/.*/./; q'`/stamp-h$_am_stamp_count
18471 cat >>$CONFIG_STATUS <<\_ACEOF
18474 # CONFIG_COMMANDS section.
18476 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18477 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18478 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18479 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18480 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18481 X"$ac_dest" : 'X\(//\)[^/]' \| \
18482 X"$ac_dest" : 'X\(//\)$' \| \
18483 X"$ac_dest" : 'X\(/\)' \| \
18484 . : '\(.\)' 2>/dev/null ||
18486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18488 /^X\(\/\/\)$/{ s//\1/; q; }
18489 /^X\(\/\).*/{ s//\1/; q; }
18491 { if $as_mkdir_p; then
18496 while test ! -d "$as_dir"; do
18497 as_dirs="$as_dir $as_dirs"
18498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18499 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18500 X"$as_dir" : 'X\(//\)[^/]' \| \
18501 X"$as_dir" : 'X\(//\)$' \| \
18502 X"$as_dir" : 'X\(/\)' \| \
18503 . : '\(.\)' 2>/dev/null ||
18505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18507 /^X\(\/\/\)$/{ s//\1/; q; }
18508 /^X\(\/\).*/{ s//\1/; q; }
18511 test ! -n "$as_dirs" || mkdir $as_dirs
18512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18513 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18514 { (exit 1); exit 1; }; }; }
18518 if test "$ac_dir" != .; then
18519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18520 # A "../" for each directory in $ac_dir_suffix.
18521 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18523 ac_dir_suffix= ac_top_builddir=
18527 .) # No --srcdir option. We are building in place.
18529 if test -z "$ac_top_builddir"; then
18532 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18534 [\\/]* | ?:[\\/]* ) # Absolute path.
18535 ac_srcdir=$srcdir$ac_dir_suffix;
18536 ac_top_srcdir=$srcdir ;;
18537 *) # Relative path.
18538 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18539 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18542 # Do not use `cd foo && pwd` to compute absolute paths, because
18543 # the directories may not exist.
18545 .) ac_abs_builddir="$ac_dir";;
18548 .) ac_abs_builddir=`pwd`;;
18549 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18550 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18553 case $ac_abs_builddir in
18554 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18556 case ${ac_top_builddir}. in
18557 .) ac_abs_top_builddir=$ac_abs_builddir;;
18558 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18559 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18562 case $ac_abs_builddir in
18563 .) ac_abs_srcdir=$ac_srcdir;;
18566 .) ac_abs_srcdir=$ac_abs_builddir;;
18567 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18568 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18571 case $ac_abs_builddir in
18572 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18574 case $ac_top_srcdir in
18575 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18576 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18577 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18582 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18583 echo "$as_me: executing $ac_dest commands" >&6;}
18586 # Only add multilib support code if we just rebuilt the top-level
18588 case " $CONFIG_FILES " in
18590 ac_file=Makefile . ${multi_basedir}/config-ml.in
18593 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18594 # Strip MF so we end up with the name of the file.
18595 mf=`echo "$mf" | sed -e 's/:.*$//'`
18596 # Check whether this is an Automake generated Makefile or not.
18597 # We used to match only the files named `Makefile.in', but
18598 # some people rename them; so instead we look at the file content.
18599 # Grep'ing the first line is not enough: some people post-process
18600 # each Makefile.in and add a new line on top of each file to say so.
18601 # So let's grep whole file.
18602 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18603 dirpart=`(dirname "$mf") 2>/dev/null ||
18604 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605 X"$mf" : 'X\(//\)[^/]' \| \
18606 X"$mf" : 'X\(//\)$' \| \
18607 X"$mf" : 'X\(/\)' \| \
18608 . : '\(.\)' 2>/dev/null ||
18610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18612 /^X\(\/\/\)$/{ s//\1/; q; }
18613 /^X\(\/\).*/{ s//\1/; q; }
18618 # Extract the definition of DEPDIR, am__include, and am__quote
18619 # from the Makefile without running `make'.
18620 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18621 test -z "$DEPDIR" && continue
18622 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18623 test -z "am__include" && continue
18624 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18625 # When using ansi2knr, U may be empty or an underscore; expand it
18626 U=`sed -n 's/^U = //p' < "$mf"`
18627 # Find all dependency output files, they are included files with
18628 # $(DEPDIR) in their names. We invoke sed twice because it is the
18629 # simplest approach to changing $(DEPDIR) to its actual value in the
18631 for file in `sed -n "
18632 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18633 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18634 # Make sure the directory exists.
18635 test -f "$dirpart/$file" && continue
18636 fdir=`(dirname "$file") 2>/dev/null ||
18637 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18638 X"$file" : 'X\(//\)[^/]' \| \
18639 X"$file" : 'X\(//\)$' \| \
18640 X"$file" : 'X\(/\)' \| \
18641 . : '\(.\)' 2>/dev/null ||
18643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18645 /^X\(\/\/\)$/{ s//\1/; q; }
18646 /^X\(\/\).*/{ s//\1/; q; }
18648 { if $as_mkdir_p; then
18649 mkdir -p $dirpart/$fdir
18651 as_dir=$dirpart/$fdir
18653 while test ! -d "$as_dir"; do
18654 as_dirs="$as_dir $as_dirs"
18655 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18657 X"$as_dir" : 'X\(//\)[^/]' \| \
18658 X"$as_dir" : 'X\(//\)$' \| \
18659 X"$as_dir" : 'X\(/\)' \| \
18660 . : '\(.\)' 2>/dev/null ||
18662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18664 /^X\(\/\/\)$/{ s//\1/; q; }
18665 /^X\(\/\).*/{ s//\1/; q; }
18668 test ! -n "$as_dirs" || mkdir $as_dirs
18669 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18670 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18671 { (exit 1); exit 1; }; }; }
18673 # echo "creating $dirpart/$file"
18674 echo '# dummy' > "$dirpart/$file"
18680 # See if we are running on zsh, and set the options which allow our
18681 # commands through without removal of \ escapes.
18682 if test -n "${ZSH_VERSION+set}" ; then
18683 setopt NO_GLOB_SUBST
18686 cfgfile="${ofile}T"
18687 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18690 cat <<_LT_EOF >> "$cfgfile"
18693 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18694 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18695 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18696 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18698 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18699 # 2006, 2007, 2008 Free Software Foundation, Inc.
18700 # Written by Gordon Matzigkeit, 1996
18702 # This file is part of GNU Libtool.
18704 # GNU Libtool is free software; you can redistribute it and/or
18705 # modify it under the terms of the GNU General Public License as
18706 # published by the Free Software Foundation; either version 2 of
18707 # the License, or (at your option) any later version.
18709 # As a special exception to the GNU General Public License,
18710 # if you distribute this file as part of a program or library that
18711 # is built using GNU Libtool, you may include this file under the
18712 # same distribution terms that you use for the rest of that program.
18714 # GNU Libtool is distributed in the hope that it will be useful,
18715 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18716 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18717 # GNU General Public License for more details.
18719 # You should have received a copy of the GNU General Public License
18720 # along with GNU Libtool; see the file COPYING. If not, a copy
18721 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18722 # obtained by writing to the Free Software Foundation, Inc.,
18723 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18726 # The names of the tagged configurations supported by this script.
18727 available_tags="CXX "
18729 # ### BEGIN LIBTOOL CONFIG
18731 # Which release of libtool.m4 was used?
18732 macro_version=$macro_version
18733 macro_revision=$macro_revision
18735 # Whether or not to build shared libraries.
18736 build_libtool_libs=$enable_shared
18738 # Whether or not to build static libraries.
18739 build_old_libs=$enable_static
18741 # What type of objects to build.
18744 # Whether or not to optimize for fast installation.
18745 fast_install=$enable_fast_install
18748 host_alias=$host_alias
18752 # The build system.
18753 build_alias=$build_alias
18757 # A sed program that does not truncate output.
18760 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18761 Xsed="\$SED -e 1s/^X//"
18763 # A grep program that handles long lines.
18769 # A literal string matcher.
18772 # A BSD- or MS-compatible name lister.
18775 # Whether we need soft or hard links.
18778 # What is the maximum length of a command?
18779 max_cmd_len=$max_cmd_len
18781 # Object file suffix (normally "o").
18784 # Executable file suffix (normally "").
18787 # whether the shell understands "unset".
18790 # turn spaces into newlines.
18793 # turn newlines into spaces.
18796 # How to create reloadable object files.
18797 reload_flag=$lt_reload_flag
18798 reload_cmds=$lt_reload_cmds
18800 # An object symbol dumper.
18801 OBJDUMP=$lt_OBJDUMP
18803 # Method to check whether dependent libraries are shared objects.
18804 deplibs_check_method=$lt_deplibs_check_method
18806 # Command to use when deplibs_check_method == "file_magic".
18807 file_magic_cmd=$lt_file_magic_cmd
18811 AR_FLAGS=$lt_AR_FLAGS
18813 # A symbol stripping program.
18816 # Commands used to install an old-style archive.
18818 old_postinstall_cmds=$lt_old_postinstall_cmds
18819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18824 # LTCC compiler flags.
18825 LTCFLAGS=$lt_CFLAGS
18827 # Take the output of nm and produce a listing of raw symbols and C names.
18828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18830 # Transform the output of nm in a proper C declaration.
18831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18833 # Transform the output of nm in a C name address pair.
18834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18836 # Transform the output of nm in a C name address pair when lib prefix is needed.
18837 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18839 # The name of the directory that contains temporary libtool files.
18842 # Shell to use when invoking shell scripts.
18845 # An echo program that does not interpret backslashes.
18848 # Used to examine libraries when file_magic_cmd begins with "file".
18849 MAGIC_CMD=$MAGIC_CMD
18851 # Must we lock files when doing compilation?
18852 need_locks=$lt_need_locks
18854 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18855 DSYMUTIL=$lt_DSYMUTIL
18857 # Tool to change global to local symbols on Mac OS X.
18860 # Tool to manipulate fat objects and archives on Mac OS X.
18863 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18866 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18867 OTOOL64=$lt_OTOOL64
18869 # Old archive suffix (normally "a").
18872 # Shared library suffix (normally ".so").
18873 shrext_cmds=$lt_shrext_cmds
18875 # The commands to extract the exported symbol list from a shared archive.
18876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18878 # Variables whose values should be saved in libtool wrapper scripts and
18879 # restored at link time.
18880 variables_saved_for_relink=$lt_variables_saved_for_relink
18882 # Do we need the "lib" prefix for modules?
18883 need_lib_prefix=$need_lib_prefix
18885 # Do we need a version for libraries?
18886 need_version=$need_version
18888 # Library versioning type.
18889 version_type=$version_type
18891 # Shared library runtime path variable.
18892 runpath_var=$runpath_var
18894 # Shared library path variable.
18895 shlibpath_var=$shlibpath_var
18897 # Is shlibpath searched before the hard-coded library search path?
18898 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18900 # Format of library name prefix.
18901 libname_spec=$lt_libname_spec
18903 # List of archive names. First name is the real one, the rest are links.
18904 # The last name is the one that the linker finds with -lNAME
18905 library_names_spec=$lt_library_names_spec
18907 # The coded name of the library, if different from the real name.
18908 soname_spec=$lt_soname_spec
18910 # Command to use after installation of a shared archive.
18911 postinstall_cmds=$lt_postinstall_cmds
18913 # Command to use after uninstallation of a shared archive.
18914 postuninstall_cmds=$lt_postuninstall_cmds
18916 # Commands used to finish a libtool library installation in a directory.
18917 finish_cmds=$lt_finish_cmds
18919 # As "finish_cmds", except a single script fragment to be evaled but
18921 finish_eval=$lt_finish_eval
18923 # Whether we should hardcode library paths into libraries.
18924 hardcode_into_libs=$hardcode_into_libs
18926 # Compile-time system search path for libraries.
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18929 # Run-time system search path for libraries.
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18932 # Whether dlopen is supported.
18933 dlopen_support=$enable_dlopen
18935 # Whether dlopen of programs is supported.
18936 dlopen_self=$enable_dlopen_self
18938 # Whether dlopen of statically linked programs is supported.
18939 dlopen_self_static=$enable_dlopen_self_static
18941 # Commands to strip libraries.
18942 old_striplib=$lt_old_striplib
18943 striplib=$lt_striplib
18946 # The linker used to build libraries.
18949 # Commands used to build an old-style archive.
18950 old_archive_cmds=$lt_old_archive_cmds
18952 # A language specific compiler.
18955 # Is the compiler the GNU compiler?
18958 # Compiler flag to turn off builtin functions.
18959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18961 # How to pass a linker flag through the compiler.
18962 wl=$lt_lt_prog_compiler_wl
18964 # Additional compiler flags for building library objects.
18965 pic_flag=$lt_lt_prog_compiler_pic
18967 # Compiler flag to prevent dynamic linking.
18968 link_static_flag=$lt_lt_prog_compiler_static
18970 # Does compiler simultaneously support -c and -o options?
18971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc
18976 # Whether or not to disallow shared libs when runtime libs are static.
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18985 # Whether the compiler copes with passing no objects directly.
18986 compiler_needs_object=$lt_compiler_needs_object
18988 # Create an old-style archive from a shared archive.
18989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18991 # Create a temporary old-style archive to link instead of a shared archive.
18992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18994 # Commands used to build a shared archive.
18995 archive_cmds=$lt_archive_cmds
18996 archive_expsym_cmds=$lt_archive_expsym_cmds
18998 # Commands used to build a loadable module if different from building
18999 # a shared archive.
19000 module_cmds=$lt_module_cmds
19001 module_expsym_cmds=$lt_module_expsym_cmds
19003 # Whether we are building with GNU ld or not.
19004 with_gnu_ld=$lt_with_gnu_ld
19006 # Flag that allows shared libraries with undefined symbols to be built.
19007 allow_undefined_flag=$lt_allow_undefined_flag
19009 # Flag that enforces no undefined symbols.
19010 no_undefined_flag=$lt_no_undefined_flag
19012 # Flag to hardcode \$libdir into a binary during linking.
19013 # This must work even if \$libdir does not exist
19014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19016 # If ld is used when linking, flag to hardcode \$libdir into a binary
19017 # during linking. This must work even if \$libdir does not exist.
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19020 # Whether we need a single "-rpath" flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19023 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19024 # DIR into the resulting binary.
19025 hardcode_direct=$hardcode_direct
19027 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19028 # DIR into the resulting binary and the resulting library dependency is
19029 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19030 # library is relocated.
19031 hardcode_direct_absolute=$hardcode_direct_absolute
19033 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19034 # into the resulting binary.
19035 hardcode_minus_L=$hardcode_minus_L
19037 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19038 # into the resulting binary.
19039 hardcode_shlibpath_var=$hardcode_shlibpath_var
19041 # Set to "yes" if building a shared library automatically hardcodes DIR
19042 # into the library and all subsequent libraries and executables linked
19044 hardcode_automatic=$hardcode_automatic
19046 # Set to yes if linker adds runtime paths of dependent libraries
19047 # to runtime path list.
19048 inherit_rpath=$inherit_rpath
19050 # Whether libtool must link a program against all its dependency libraries.
19051 link_all_deplibs=$link_all_deplibs
19053 # Fix the shell variable \$srcfile for the compiler.
19054 fix_srcfile_path=$lt_fix_srcfile_path
19056 # Set to "yes" if exported symbols are required.
19057 always_export_symbols=$always_export_symbols
19059 # The commands to list exported symbols.
19060 export_symbols_cmds=$lt_export_symbols_cmds
19062 # Symbols that should not be listed in the preloaded symbols.
19063 exclude_expsyms=$lt_exclude_expsyms
19065 # Symbols that must always be exported.
19066 include_expsyms=$lt_include_expsyms
19068 # Commands necessary for linking programs (against libraries) with templates.
19069 prelink_cmds=$lt_prelink_cmds
19071 # Specify filename containing input files.
19072 file_list_spec=$lt_file_list_spec
19074 # How to hardcode a shared library path into an executable.
19075 hardcode_action=$hardcode_action
19077 # The directories searched by this compiler when creating a shared library.
19078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19080 # Dependencies to place before and after the objects being linked to
19081 # create a shared library.
19082 predep_objects=$lt_predep_objects
19083 postdep_objects=$lt_postdep_objects
19084 predeps=$lt_predeps
19085 postdeps=$lt_postdeps
19087 # The library search path used internally by the compiler when linking
19088 # a shared library.
19089 compiler_lib_search_path=$lt_compiler_lib_search_path
19091 # ### END LIBTOOL CONFIG
19097 cat <<\_LT_EOF >> "$cfgfile"
19098 # AIX sometimes has problems with the GCC collect2 program. For some
19099 # reason, if we set the COLLECT_NAMES environment variable, the problems
19100 # vanish in a puff of smoke.
19101 if test "X${COLLECT_NAMES+set}" != Xset; then
19103 export COLLECT_NAMES
19110 ltmain="$ac_aux_dir/ltmain.sh"
19113 # We use sed instead of cat because bash on DJGPP gets confused if
19114 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19115 # text mode, it properly converts lines to CR/LF. This bash problem
19116 # is reportedly fixed, but why not run on old versions too?
19117 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19118 || (rm -f "$cfgfile"; exit 1)
19122 cat << \_LT_EOF >> "$cfgfile"
19124 # func_dirname file append nondir_replacement
19125 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19126 # otherwise set result to NONDIR_REPLACEMENT.
19130 */*) func_dirname_result="${1%/*}${2}" ;;
19131 * ) func_dirname_result="${3}" ;;
19135 # func_basename file
19138 func_basename_result="${1##*/}"
19141 # func_dirname_and_basename file append nondir_replacement
19142 # perform func_basename and func_dirname in a single function
19144 # dirname: Compute the dirname of FILE. If nonempty,
19145 # add APPEND to the result, otherwise set result
19146 # to NONDIR_REPLACEMENT.
19147 # value returned in "$func_dirname_result"
19148 # basename: Compute filename of FILE.
19149 # value retuned in "$func_basename_result"
19150 # Implementation must be kept synchronized with func_dirname
19151 # and func_basename. For efficiency, we do not delegate to
19152 # those functions but instead duplicate the functionality here.
19153 func_dirname_and_basename ()
19156 */*) func_dirname_result="${1%/*}${2}" ;;
19157 * ) func_dirname_result="${3}" ;;
19159 func_basename_result="${1##*/}"
19162 # func_stripname prefix suffix name
19163 # strip PREFIX and SUFFIX off of NAME.
19164 # PREFIX and SUFFIX must not contain globbing or regex special
19165 # characters, hashes, percent signs, but SUFFIX may contain a leading
19166 # dot (in which case that matches only a dot).
19169 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19170 # positional parameters, so assign one to ordinary parameter first.
19171 func_stripname_result=${3}
19172 func_stripname_result=${func_stripname_result#"${1}"}
19173 func_stripname_result=${func_stripname_result%"${2}"}
19179 func_opt_split_opt=${1%%=*}
19180 func_opt_split_arg=${1#*=}
19187 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19188 *) func_lo2o_result=${1} ;;
19192 # func_xform libobj-or-source
19195 func_xform_result=${1%.*}.lo
19198 # func_arith arithmetic-term...
19201 func_arith_result=$(( $* ))
19205 # STRING may not start with a hyphen.
19208 func_len_result=${#1}
19213 *) # Bourne compatible functions.
19214 cat << \_LT_EOF >> "$cfgfile"
19216 # func_dirname file append nondir_replacement
19217 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19218 # otherwise set result to NONDIR_REPLACEMENT.
19221 # Extract subdirectory from the argument.
19222 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19223 if test "X$func_dirname_result" = "X${1}"; then
19224 func_dirname_result="${3}"
19226 func_dirname_result="$func_dirname_result${2}"
19230 # func_basename file
19233 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19237 # func_stripname prefix suffix name
19238 # strip PREFIX and SUFFIX off of NAME.
19239 # PREFIX and SUFFIX must not contain globbing or regex special
19240 # characters, hashes, percent signs, but SUFFIX may contain a leading
19241 # dot (in which case that matches only a dot).
19242 # func_strip_suffix prefix name
19246 .*) func_stripname_result=`$ECHO "X${3}" \
19247 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19248 *) func_stripname_result=`$ECHO "X${3}" \
19249 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19254 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19255 my_sed_long_arg='1s/^-[^=]*=//'
19260 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19261 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19267 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19270 # func_xform libobj-or-source
19273 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19276 # func_arith arithmetic-term...
19279 func_arith_result=`expr "$@"`
19283 # STRING may not start with a hyphen.
19286 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19292 case $lt_shell_append in
19294 cat << \_LT_EOF >> "$cfgfile"
19296 # func_append var value
19297 # Append VALUE to the end of shell variable VAR.
19305 cat << \_LT_EOF >> "$cfgfile"
19307 # func_append var value
19308 # Append VALUE to the end of shell variable VAR.
19319 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19320 || (rm -f "$cfgfile"; exit 1)
19322 mv -f "$cfgfile" "$ofile" ||
19323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19327 cat <<_LT_EOF >> "$ofile"
19329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19331 # The linker used to build libraries.
19334 # Commands used to build an old-style archive.
19335 old_archive_cmds=$lt_old_archive_cmds_CXX
19337 # A language specific compiler.
19338 CC=$lt_compiler_CXX
19340 # Is the compiler the GNU compiler?
19343 # Compiler flag to turn off builtin functions.
19344 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19346 # How to pass a linker flag through the compiler.
19347 wl=$lt_lt_prog_compiler_wl_CXX
19349 # Additional compiler flags for building library objects.
19350 pic_flag=$lt_lt_prog_compiler_pic_CXX
19352 # Compiler flag to prevent dynamic linking.
19353 link_static_flag=$lt_lt_prog_compiler_static_CXX
19355 # Does compiler simultaneously support -c and -o options?
19356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19358 # Whether or not to add -lc for building shared libraries.
19359 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19361 # Whether or not to disallow shared libs when runtime libs are static.
19362 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19364 # Compiler flag to allow reflexive dlopens.
19365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19367 # Compiler flag to generate shared objects directly from archives.
19368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19370 # Whether the compiler copes with passing no objects directly.
19371 compiler_needs_object=$lt_compiler_needs_object_CXX
19373 # Create an old-style archive from a shared archive.
19374 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19376 # Create a temporary old-style archive to link instead of a shared archive.
19377 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19379 # Commands used to build a shared archive.
19380 archive_cmds=$lt_archive_cmds_CXX
19381 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19383 # Commands used to build a loadable module if different from building
19384 # a shared archive.
19385 module_cmds=$lt_module_cmds_CXX
19386 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19388 # Whether we are building with GNU ld or not.
19389 with_gnu_ld=$lt_with_gnu_ld_CXX
19391 # Flag that allows shared libraries with undefined symbols to be built.
19392 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19394 # Flag that enforces no undefined symbols.
19395 no_undefined_flag=$lt_no_undefined_flag_CXX
19397 # Flag to hardcode \$libdir into a binary during linking.
19398 # This must work even if \$libdir does not exist
19399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19401 # If ld is used when linking, flag to hardcode \$libdir into a binary
19402 # during linking. This must work even if \$libdir does not exist.
19403 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19405 # Whether we need a single "-rpath" flag with a separated argument.
19406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19408 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19409 # DIR into the resulting binary.
19410 hardcode_direct=$hardcode_direct_CXX
19412 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19413 # DIR into the resulting binary and the resulting library dependency is
19414 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19415 # library is relocated.
19416 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19419 # into the resulting binary.
19420 hardcode_minus_L=$hardcode_minus_L_CXX
19422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19423 # into the resulting binary.
19424 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19426 # Set to "yes" if building a shared library automatically hardcodes DIR
19427 # into the library and all subsequent libraries and executables linked
19429 hardcode_automatic=$hardcode_automatic_CXX
19431 # Set to yes if linker adds runtime paths of dependent libraries
19432 # to runtime path list.
19433 inherit_rpath=$inherit_rpath_CXX
19435 # Whether libtool must link a program against all its dependency libraries.
19436 link_all_deplibs=$link_all_deplibs_CXX
19438 # Fix the shell variable \$srcfile for the compiler.
19439 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19441 # Set to "yes" if exported symbols are required.
19442 always_export_symbols=$always_export_symbols_CXX
19444 # The commands to list exported symbols.
19445 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19447 # Symbols that should not be listed in the preloaded symbols.
19448 exclude_expsyms=$lt_exclude_expsyms_CXX
19450 # Symbols that must always be exported.
19451 include_expsyms=$lt_include_expsyms_CXX
19453 # Commands necessary for linking programs (against libraries) with templates.
19454 prelink_cmds=$lt_prelink_cmds_CXX
19456 # Specify filename containing input files.
19457 file_list_spec=$lt_file_list_spec_CXX
19459 # How to hardcode a shared library path into an executable.
19460 hardcode_action=$hardcode_action_CXX
19462 # The directories searched by this compiler when creating a shared library.
19463 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19465 # Dependencies to place before and after the objects being linked to
19466 # create a shared library.
19467 predep_objects=$lt_predep_objects_CXX
19468 postdep_objects=$lt_postdep_objects_CXX
19469 predeps=$lt_predeps_CXX
19470 postdeps=$lt_postdeps_CXX
19472 # The library search path used internally by the compiler when linking
19473 # a shared library.
19474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19476 # ### END LIBTOOL TAG CONFIG: CXX
19484 cat >>$CONFIG_STATUS <<\_ACEOF
19486 { (exit 0); exit 0; }
19488 chmod +x $CONFIG_STATUS
19489 ac_clean_files=$ac_clean_files_save
19492 # configure is writing to config.log, and then calls config.status.
19493 # config.status does its own redirection, appending to config.log.
19494 # Unfortunately, on DOS this fails, as config.log is still kept open
19495 # by configure, so config.status won't be able to write to it; its
19496 # output is simply discarded. So we exec the FD to /dev/null,
19497 # effectively closing config.log, so it can be properly (re)opened and
19498 # appended to by config.status. When coming back to configure, we
19499 # need to make the FD available again.
19500 if test "$no_create" != yes; then
19502 ac_config_status_args=
19503 test "$silent" = yes &&
19504 ac_config_status_args="$ac_config_status_args --quiet"
19506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19509 # would make configure fail if this is the last instruction.
19510 $ac_cs_success || { (exit 1); exit 1; }