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 lt_ECHO 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'
464 # Initialize some variables set by options.
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
476 program_transform_name=s,x,x,
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
507 eval "$ac_prev=\$ac_option"
512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514 # Accept the important Cygnus configure options, so we can diagnose typos.
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 -build | --build | --buil | --bui | --bu)
524 ac_prev=build_alias ;;
525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526 build_alias=$ac_optarg ;;
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533 cache_file=$ac_optarg ;;
536 cache_file=config.cache ;;
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 datadir=$ac_optarg ;;
544 -disable-* | --disable-*)
545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546 # Reject names that are not valid shell variable names.
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
553 -enable-* | --enable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 eval "enable_$ac_feature='$ac_optarg'" ;;
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
573 exec_prefix=$ac_optarg ;;
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
579 -help | --help | --hel | --he | -h)
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
586 -host | --host | --hos | --ho)
587 ac_prev=host_alias ;;
588 -host=* | --host=* | --hos=* | --ho=*)
589 host_alias=$ac_optarg ;;
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
596 includedir=$ac_optarg ;;
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601 infodir=$ac_optarg ;;
603 -libdir | --libdir | --libdi | --libd)
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
613 libexecdir=$ac_optarg ;;
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622 localstatedir=$ac_optarg ;;
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 # Obsolete; use --without-fp.
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634 | --no-cr | --no-c | -n)
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648 oldincludedir=$ac_optarg ;;
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660 program_prefix=$ac_optarg ;;
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667 program_suffix=$ac_optarg ;;
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
684 program_transform_name=$ac_optarg ;;
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 sbindir=$ac_optarg ;;
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 sharedstatedir=$ac_optarg ;;
707 -site | --site | --sit)
709 -site=* | --site=* | --sit=*)
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722 sysconfdir=$ac_optarg ;;
724 -target | --target | --targe | --targ | --tar | --ta | --t)
725 ac_prev=target_alias ;;
726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727 target_alias=$ac_optarg ;;
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 -version | --version | --versio | --versi | --vers | -V)
736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737 # Reject names that are not valid shell variable names.
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 eval "with_$ac_package='$ac_optarg'" ;;
748 -without-* | --without-*)
749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750 # Reject names that are not valid shell variable names.
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
758 # Obsolete; use --with-x.
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766 x_includes=$ac_optarg ;;
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773 x_libraries=$ac_optarg ;;
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 if test -n "$ac_prev"; then
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
810 eval ac_val=$`echo $ac_var`
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
822 eval ac_val=$`echo $ac_var`
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851 test "$silent" = yes && exec 6>/dev/null
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
871 if test ! -r $srcdir/$ac_unique_file; then
875 ac_srcdir_defaulted=no
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CXXCPP_set=${CXXCPP+set}
923 ac_env_CXXCPP_value=$CXXCPP
924 ac_cv_env_CXXCPP_set=${CXXCPP+set}
925 ac_cv_env_CXXCPP_value=$CXXCPP
928 # Report the --help message.
930 if test "$ac_init_help" = "long"; then
931 # Omit some internal or obsolete options to make the list less imposing.
932 # This message is too long to be a string in the A/UX 3.1 sh.
934 \`configure' configures this package to adapt to many kinds of systems.
936 Usage: $0 [OPTION]... [VAR=VALUE]...
938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
939 VAR=VALUE. See below for descriptions of some of the useful variables.
941 Defaults for the options are specified in brackets.
944 -h, --help display this help and exit
945 --help=short display options specific to this package
946 --help=recursive display the short help of all the included packages
947 -V, --version display version information and exit
948 -q, --quiet, --silent do not print \`checking...' messages
949 --cache-file=FILE cache test results in FILE [disabled]
950 -C, --config-cache alias for \`--cache-file=config.cache'
951 -n, --no-create do not create output files
952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
957 Installation directories:
958 --prefix=PREFIX install architecture-independent files in PREFIX
960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
963 By default, \`make install' will install all the files in
964 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
965 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966 for instance \`--prefix=\$HOME'.
968 For better control, use the options below.
970 Fine tuning of the installation directories:
971 --bindir=DIR user executables [EPREFIX/bin]
972 --sbindir=DIR system admin executables [EPREFIX/sbin]
973 --libexecdir=DIR program executables [EPREFIX/libexec]
974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
978 --libdir=DIR object code libraries [EPREFIX/lib]
979 --includedir=DIR C header files [PREFIX/include]
980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
988 --program-prefix=PREFIX prepend PREFIX to installed program names
989 --program-suffix=SUFFIX append SUFFIX to installed program names
990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
999 if test -n "$ac_init_help"; then
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-multilib build many library versions (default)
1007 --disable-dependency-tracking speeds up one-time build
1008 --enable-dependency-tracking do not reject slow dependency extractors
1009 --enable-maintainer-mode enable make rules and dependencies not useful
1010 (and sometimes confusing) to the casual installer
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
1017 --disable-libtool-lock avoid locking (might break parallel builds)
1018 --enable-parallel-mark parallelize marking and free list construction
1019 --enable-gc-debug include full support for pointer backtracing etc.
1022 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024 --with-pic try to use only PIC/non-PIC objects [default=use
1026 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1027 --with-target-subdir=SUBDIR
1028 configuring with a cross compiler
1029 --with-cross-host=HOST configuring with a cross compiler
1030 --with-ecos enable runtime eCos target support
1032 Some influential environment variables:
1033 CC C compiler command
1034 CFLAGS C compiler flags
1035 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1036 nonstandard directory <lib dir>
1037 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1038 headers in a nonstandard directory <include dir>
1039 CXX C++ compiler command
1040 CXXFLAGS C++ compiler flags
1042 CXXCPP C++ preprocessor
1044 Use these variables to override the choices made by `configure' or to help
1045 it to find libraries and programs with nonstandard names/locations.
1050 if test "$ac_init_help" = "recursive"; then
1051 # If there are subdirs, report their specific --help.
1053 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054 test -d $ac_dir || continue
1057 if test "$ac_dir" != .; then
1058 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059 # A "../" for each directory in $ac_dir_suffix.
1060 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062 ac_dir_suffix= ac_top_builddir=
1066 .) # No --srcdir option. We are building in place.
1068 if test -z "$ac_top_builddir"; then
1071 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073 [\\/]* | ?:[\\/]* ) # Absolute path.
1074 ac_srcdir=$srcdir$ac_dir_suffix;
1075 ac_top_srcdir=$srcdir ;;
1077 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081 # Do not use `cd foo && pwd` to compute absolute paths, because
1082 # the directories may not exist.
1084 .) ac_abs_builddir="$ac_dir";;
1087 .) ac_abs_builddir=`pwd`;;
1088 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1089 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1092 case $ac_abs_builddir in
1093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1095 case ${ac_top_builddir}. in
1096 .) ac_abs_top_builddir=$ac_abs_builddir;;
1097 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101 case $ac_abs_builddir in
1102 .) ac_abs_srcdir=$ac_srcdir;;
1105 .) ac_abs_srcdir=$ac_abs_builddir;;
1106 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1113 case $ac_top_srcdir in
1114 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121 # Check for guested configure; otherwise get Cygnus style configure.
1122 if test -f $ac_srcdir/configure.gnu; then
1124 $SHELL $ac_srcdir/configure.gnu --help=recursive
1125 elif test -f $ac_srcdir/configure; then
1127 $SHELL $ac_srcdir/configure --help=recursive
1128 elif test -f $ac_srcdir/configure.ac ||
1129 test -f $ac_srcdir/configure.in; then
1131 $ac_configure --help
1133 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 test -n "$ac_init_help" && exit 0
1140 if $ac_init_version; then
1143 Copyright (C) 2003 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1154 It was created by $as_me, which was
1155 generated by GNU Autoconf 2.59. Invocation command line was
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189 test -z "$as_dir" && as_dir=.
1190 echo "PATH: $as_dir"
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1214 ac_must_keep_next=false
1220 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1224 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231 if test $ac_must_keep_next = true; then
1232 ac_must_keep_next=false # Got value, back to normal.
1235 *=* | --config-cache | -C | -disable-* | --disable-* \
1236 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238 | -with-* | --with-* | -without-* | --without-* | --x)
1239 case "$ac_configure_args0 " in
1240 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243 -* ) ac_must_keep_next=true ;;
1246 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247 # Get rid of the leading space.
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log. We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262 # Save into config.log some information that might help in debugging.
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1272 # The following way of writing the cache mishandles newlines in values,
1275 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1295 for ac_var in $ac_subst_vars
1297 eval ac_val=$`echo $ac_var`
1298 echo "$ac_var='"'"'$ac_val'"'"'"
1302 if test -n "$ac_subst_files"; then
1309 for ac_var in $ac_subst_files
1311 eval ac_val=$`echo $ac_var`
1312 echo "$ac_var='"'"'$ac_val'"'"'"
1317 if test -s confdefs.h; then
1324 sed "/^$/d" confdefs.h | sort
1327 test "$ac_signal" != 0 &&
1328 echo "$as_me: caught signal $ac_signal"
1329 echo "$as_me: exit $exit_status"
1331 rm -f core *.core &&
1332 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335 for ac_signal in 1 2 13 15; do
1336 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345 # Predefined preprocessor variables.
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375 if test "x$prefix" != xNONE; then
1376 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381 for ac_site_file in $CONFIG_SITE; do
1382 if test -r "$ac_site_file"; then
1383 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385 sed 's/^/| /' "$ac_site_file" >&5
1390 if test -r "$cache_file"; then
1391 # Some versions of bash will fail to source /dev/null (special
1392 # files actually), so we avoid doing that.
1393 if test -f "$cache_file"; then
1394 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1397 [\\/]* | ?:[\\/]* ) . $cache_file;;
1398 *) . ./$cache_file;;
1402 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1407 # Check that the precious variables saved in the cache have kept the same
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413 eval ac_new_set=\$ac_env_${ac_var}_set
1414 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415 eval ac_new_val="\$ac_env_${ac_var}_value"
1416 case $ac_old_set,$ac_new_set in
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1422 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424 ac_cache_corrupted=: ;;
1427 if test "x$ac_old_val" != "x$ac_new_val"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431 echo "$as_me: former value: $ac_old_val" >&2;}
1432 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433 echo "$as_me: current value: $ac_new_val" >&2;}
1434 ac_cache_corrupted=:
1437 # Pass precious variables to config.status.
1438 if test "$ac_new_set" = set; then
1440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442 *) ac_arg=$ac_var=$ac_new_val ;;
1444 case " $ac_configure_args " in
1445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450 if $ac_cache_corrupted; then
1451 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455 { (exit 1); exit 1; }; }
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 # This works around the fact that libtool configuration may change LD
1484 # for this particular configuration, but some shells, instead of
1485 # keeping the changes in LD private, export them just because LD is
1487 ORIGINAL_LD_FOR_MULTILIBS=$LD
1489 # Default to --enable-multilib
1490 # Check whether --enable-multilib or --disable-multilib was given.
1491 if test "${enable_multilib+set}" = set; then
1492 enableval="$enable_multilib"
1493 case "$enableval" in
1494 yes) multilib=yes ;;
1496 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1497 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1498 { (exit 1); exit 1; }; } ;;
1504 # We may get other options which we leave undocumented:
1505 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1506 # See config-ml.in if you want the gory details.
1508 if test "$srcdir" = "."; then
1509 if test "$with_target_subdir" != "."; then
1510 multi_basedir="$srcdir/$with_multisrctop../.."
1512 multi_basedir="$srcdir/$with_multisrctop.."
1515 multi_basedir="$srcdir/.."
1519 # Even if the default multilib is not a cross compilation,
1520 # it may be that some of the other multilibs are.
1521 if test $cross_compiling = no && test $multilib = yes \
1522 && test "x${with_multisubdir}" != x ; then
1523 cross_compiling=maybe
1526 ac_config_commands="$ac_config_commands default-1"
1530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1535 elif test -f $ac_dir/install.sh; then
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1539 elif test -f $ac_dir/shtool; then
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1545 if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1591 ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1635 program_prefix=${target_alias}-
1637 # Get the 'noncanonical' system names.
1638 case ${build_alias} in
1639 "") build_noncanonical=${build} ;;
1640 *) build_noncanonical=${build_alias} ;;
1643 case ${host_alias} in
1644 "") host_noncanonical=${build_noncanonical} ;;
1645 *) host_noncanonical=${host_alias} ;;
1648 case ${target_alias} in
1649 "") target_noncanonical=${host_noncanonical} ;;
1650 *) target_noncanonical=${target_alias} ;;
1656 # This works around an automake problem.
1657 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1660 am__api_version="1.9"
1661 # Find a good install program. We prefer a C program (faster),
1662 # so one script is as good as another. But avoid the broken or
1663 # incompatible versions:
1664 # SysV /etc/install, /usr/sbin/install
1665 # SunOS /usr/etc/install
1666 # IRIX /sbin/install
1668 # AmigaOS /C/install, which installs bootblocks on floppy discs
1669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1672 # OS/2's system install, which has a completely different semantic
1673 # ./install, which can be erroneously created by make from ./install.sh.
1674 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1676 if test -z "$INSTALL"; then
1677 if test "${ac_cv_path_install+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 # Account for people who put trailing slashes in PATH elements.
1687 ./ | .// | /cC/* | \
1688 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1689 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1692 # OSF1 and SCO ODT 3.0 have their own names for install.
1693 # Don't use installbsd from OSF since it installs stuff as root
1695 for ac_prog in ginstall scoinst install; do
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1698 if test $ac_prog = install &&
1699 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1700 # AIX install. It has an incompatible calling convention.
1702 elif test $ac_prog = install &&
1703 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1704 # program-specific install script used by HP pwplus--don't use.
1707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1719 if test "${ac_cv_path_install+set}" = set; then
1720 INSTALL=$ac_cv_path_install
1722 # As a last resort, use the slow shell script. We don't cache a
1723 # path for INSTALL within a source directory, because that will
1724 # break other packages using the cache if that directory is
1725 # removed, or if the path is relative.
1726 INSTALL=$ac_install_sh
1729 echo "$as_me:$LINENO: result: $INSTALL" >&5
1730 echo "${ECHO_T}$INSTALL" >&6
1732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1733 # It thinks the first close brace ends the variable substitution.
1734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1740 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1741 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1744 echo timestamp > conftest.file
1745 # Do `set' in a subshell so we don't clobber the current shell's
1746 # arguments. Must try -L first in case configure is actually a
1747 # symlink; some systems play weird games with the mod time of symlinks
1748 # (eg FreeBSD returns the mod time of the symlink's containing
1751 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1752 if test "$*" = "X"; then
1754 set X `ls -t $srcdir/configure conftest.file`
1757 if test "$*" != "X $srcdir/configure conftest.file" \
1758 && test "$*" != "X conftest.file $srcdir/configure"; then
1760 # If neither matched, then we have a broken ls. This can happen
1761 # if, for instance, CONFIG_SHELL is bash and it inherits a
1762 # broken ls alias from the environment. This has actually
1763 # happened. Such a system could not be considered "sane".
1764 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1765 alias in your environment" >&5
1766 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1767 alias in your environment" >&2;}
1768 { (exit 1); exit 1; }; }
1771 test "$2" = conftest.file
1777 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1778 Check your system clock" >&5
1779 echo "$as_me: error: newly created file is older than distributed files!
1780 Check your system clock" >&2;}
1781 { (exit 1); exit 1; }; }
1783 echo "$as_me:$LINENO: result: yes" >&5
1784 echo "${ECHO_T}yes" >&6
1785 test "$program_prefix" != NONE &&
1786 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1787 # Use a double $ so make ignores it.
1788 test "$program_suffix" != NONE &&
1789 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1790 # Double any \ or $. echo might interpret backslashes.
1791 # By default was `s,x,x', remove it if useless.
1792 cat <<\_ACEOF >conftest.sed
1793 s/[\\$]/&&/g;s/;s,x,x,$//
1795 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1798 # expand $ac_aux_dir to an absolute path
1799 am_aux_dir=`cd $ac_aux_dir && pwd`
1801 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1802 # Use eval to expand $SHELL
1803 if eval "$MISSING --run true"; then
1804 am_missing_run="$MISSING --run "
1807 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1808 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1811 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1812 # We used to keeping the `.' as first argument, in order to
1813 # allow $(mkdir_p) to be used without argument. As in
1814 # $(mkdir_p) $(somedir)
1815 # where $(somedir) is conditionally defined. However this is wrong
1817 # 1. if the package is installed by a user who cannot write `.'
1818 # make install will fail,
1819 # 2. the above comment should most certainly read
1820 # $(mkdir_p) $(DESTDIR)$(somedir)
1821 # so it does not work when $(somedir) is undefined and
1822 # $(DESTDIR) is not.
1823 # To support the latter case, we have to write
1824 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1825 # so the `.' trick is pointless.
1826 mkdir_p='mkdir -p --'
1828 # On NextStep and OpenStep, the `mkdir' command does not
1829 # recognize any option. It will interpret all options as
1830 # directories to create, and then abort because `.' already
1832 for d in ./-p ./--version;
1834 test -d $d && rmdir $d
1836 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1837 if test -f "$ac_aux_dir/mkinstalldirs"; then
1838 mkdir_p='$(mkinstalldirs)'
1840 mkdir_p='$(install_sh) -d'
1844 for ac_prog in gawk mawk nawk awk
1846 # Extract the first word of "$ac_prog", so it can be a program name with args.
1847 set dummy $ac_prog; ac_word=$2
1848 echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850 if test "${ac_cv_prog_AWK+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 if test -n "$AWK"; then
1854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_AWK="$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 if test -n "$AWK"; then
1874 echo "$as_me:$LINENO: result: $AWK" >&5
1875 echo "${ECHO_T}$AWK" >&6
1877 echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1881 test -n "$AWK" && break
1884 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1885 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1886 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1887 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 cat >conftest.make <<\_ACEOF
1892 @echo 'ac_maketemp="$(MAKE)"'
1894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1895 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1896 if test -n "$ac_maketemp"; then
1897 eval ac_cv_prog_make_${ac_make}_set=yes
1899 eval ac_cv_prog_make_${ac_make}_set=no
1903 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1904 echo "$as_me:$LINENO: result: yes" >&5
1905 echo "${ECHO_T}yes" >&6
1908 echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 SET_MAKE="MAKE=${MAKE-make}"
1913 rm -rf .tst 2>/dev/null
1914 mkdir .tst 2>/dev/null
1915 if test -d .tst; then
1920 rmdir .tst 2>/dev/null
1922 # test to see if srcdir already configured
1923 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1924 test -f $srcdir/config.status; then
1925 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1926 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1927 { (exit 1); exit 1; }; }
1930 # test whether we have cygpath
1931 if test -z "$CYGPATH_W"; then
1932 if (cygpath --version) >/dev/null 2>/dev/null; then
1933 CYGPATH_W='cygpath -w'
1940 # Define the identity of the package.
1945 # Some tools Automake needs.
1947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1961 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1963 # Installed binaries are usually stripped using `strip' when the user
1964 # run `make install-strip'. However `strip' might not be the right
1965 # tool to use in cross-compilation environments, therefore Automake
1966 # will honor the `STRIP' environment variable to overrule this program.
1967 if test "$cross_compiling" != no; then
1968 if test -n "$ac_tool_prefix"; then
1969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}strip; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_STRIP+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$STRIP"; then
1977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 STRIP=$ac_cv_prog_STRIP
1996 if test -n "$STRIP"; then
1997 echo "$as_me:$LINENO: result: $STRIP" >&5
1998 echo "${ECHO_T}$STRIP" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$ac_cv_prog_STRIP"; then
2007 # Extract the first word of "strip", so it can be a program name with args.
2008 set dummy strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$ac_ct_STRIP"; then
2015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_STRIP="strip"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2035 if test -n "$ac_ct_STRIP"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2037 echo "${ECHO_T}$ac_ct_STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2045 STRIP="$ac_cv_prog_STRIP"
2049 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2051 # We need awk for the "check" target. The system "awk" is bad on
2053 # Always define AMTAR for backward compatibility.
2055 AMTAR=${AMTAR-"${am_missing_run}tar"}
2057 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2064 # The autoconf 2.5x version of the no-executables hack.
2067 # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
2068 # the wrong, non-multilib-adjusted value will be used in multilibs.
2069 # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
2074 ac_cpp='$CPP $CPPFLAGS'
2075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2078 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2080 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2115 if test -z "$ac_cv_prog_CC"; then
2117 # Extract the first word of "gcc", so it can be a program name with args.
2118 set dummy gcc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 if test -n "$ac_ct_CC"; then
2125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134 ac_cv_prog_ac_ct_CC="gcc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6
2148 echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2157 if test -z "$CC"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2160 set dummy ${ac_tool_prefix}cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test -n "$CC"; then
2167 ac_cv_prog_CC="$CC" # Let the user override the test.
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 test -z "$as_dir" && as_dir=.
2174 for ac_exec_ext in '' $ac_executable_extensions; do
2175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2176 ac_cv_prog_CC="${ac_tool_prefix}cc"
2177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 if test -n "$CC"; then
2187 echo "$as_me:$LINENO: result: $CC" >&5
2188 echo "${ECHO_T}$CC" >&6
2190 echo "$as_me:$LINENO: result: no" >&5
2191 echo "${ECHO_T}no" >&6
2195 if test -z "$ac_cv_prog_CC"; then
2197 # Extract the first word of "cc", so it can be a program name with args.
2198 set dummy cc; ac_word=$2
2199 echo "$as_me:$LINENO: checking for $ac_word" >&5
2200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2201 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 if test -n "$ac_ct_CC"; then
2205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 for ac_exec_ext in '' $ac_executable_extensions; do
2213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2214 ac_cv_prog_ac_ct_CC="cc"
2215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6
2228 echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2238 if test -z "$CC"; then
2239 # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258 ac_prog_rejected=yes
2262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 if test $ac_prog_rejected = yes; then
2269 # We found a bogon in the path, so make sure we never use it.
2270 set dummy $ac_cv_prog_CC
2272 if test $# != 0; then
2273 # We chose a different compiler from the bogus one.
2274 # However, it has the same basename, so the bogon will be chosen
2275 # first if we set CC to just the basename; use the full file name.
2277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2283 if test -n "$CC"; then
2284 echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6
2287 echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6
2292 if test -z "$CC"; then
2293 if test -n "$ac_tool_prefix"; then
2296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2298 echo "$as_me:$LINENO: checking for $ac_word" >&5
2299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2300 if test "${ac_cv_prog_CC+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 if test -n "$CC"; then
2304 ac_cv_prog_CC="$CC" # Let the user override the test.
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 for ac_exec_ext in '' $ac_executable_extensions; do
2312 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 if test -n "$CC"; then
2324 echo "$as_me:$LINENO: result: $CC" >&5
2325 echo "${ECHO_T}$CC" >&6
2327 echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6
2331 test -n "$CC" && break
2334 if test -z "$CC"; then
2338 # Extract the first word of "$ac_prog", so it can be a program name with args.
2339 set dummy $ac_prog; ac_word=$2
2340 echo "$as_me:$LINENO: checking for $ac_word" >&5
2341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2342 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test -n "$ac_ct_CC"; then
2346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2355 ac_cv_prog_ac_ct_CC="$ac_prog"
2356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2373 test -n "$ac_ct_CC" && break
2382 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&5
2384 echo "$as_me: error: no acceptable C compiler found in \$PATH
2385 See \`config.log' for more details." >&2;}
2386 { (exit 1); exit 1; }; }
2388 # Provide some information about the compiler.
2389 echo "$as_me:$LINENO:" \
2390 "checking for C compiler version" >&5
2391 ac_compiler=`set X $ac_compile; echo $2`
2392 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2393 (eval $ac_compiler --version </dev/null >&5) 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }
2397 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2398 (eval $ac_compiler -v </dev/null >&5) 2>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }
2402 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2403 (eval $ac_compiler -V </dev/null >&5) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }
2408 cat >conftest.$ac_ext <<_ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h. */
2424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2425 (eval $ac_link) 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; then
2434 if test x$gcc_no_link = xyes; then
2435 # Setting cross_compile will disable run tests; it will
2436 # also disable AC_CHECK_FILE but that's generally
2437 # correct if we can't link.
2441 cat >conftest.$ac_ext <<_ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2461 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2465 (eval $ac_link_default) 2>&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; then
2469 # Find the output, starting from the most likely. This scheme is
2470 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2473 # Be careful to initialize this variable, since it used to be cached.
2474 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2476 # b.out is created by i960 compilers.
2477 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479 test -f "$ac_file" || continue
2481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2484 # This is the source file.
2487 # We found the default executable, but exeext='' is most
2491 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492 # FIXME: I believe we export ac_cv_exeext for Libtool,
2493 # but it would be cool to find out if it's true. Does anybody
2494 # maintain Libtool? --akim.
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: C compiler cannot create executables
2508 See \`config.log' for more details." >&2;}
2509 { (exit 77); exit 77; }; }
2512 ac_exeext=$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6
2516 # Check the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2519 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2520 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2521 # If not cross compiling, check that we can run a simple program.
2522 if test "$cross_compiling" != yes; then
2523 if { ac_try='./$ac_file'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 if test "$cross_compiling" = maybe; then
2534 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&5
2537 echo "$as_me: error: cannot run C compiled programs.
2538 If you meant to cross compile, use \`--host'.
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2544 echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6
2547 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2548 ac_clean_files=$ac_clean_files_save
2549 # Check the compiler produces executables we can run. If not, either
2550 # the compiler is broken, or we cross compile.
2551 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2552 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2553 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2554 echo "${ECHO_T}$cross_compiling" >&6
2556 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2557 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2559 (eval $ac_link) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2567 for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2585 rm -f conftest$ac_cv_exeext
2586 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2587 echo "${ECHO_T}$ac_cv_exeext" >&6
2589 rm -f conftest.$ac_ext
2590 EXEEXT=$ac_cv_exeext
2593 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2595 if test "${ac_cv_objext+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 cat >conftest.$ac_ext <<_ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.o conftest.obj
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; then
2619 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2630 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2633 See \`config.log' for more details." >&2;}
2634 { (exit 1); exit 1; }; }
2637 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2639 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2640 echo "${ECHO_T}$ac_cv_objext" >&6
2641 OBJEXT=$ac_cv_objext
2643 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2644 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2645 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2670 grep -v '^ *+' conftest.er1 >conftest.err
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2705 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2706 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2707 if test "${ac_cv_prog_cc_g+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag"
2735 || test ! -s conftest.err'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2758 if test "$ac_test_CFLAGS" = set; then
2759 CFLAGS=$ac_save_CFLAGS
2760 elif test $ac_cv_prog_cc_g = yes; then
2761 if test "$GCC" = yes; then
2767 if test "$GCC" = yes; then
2773 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2774 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2775 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 ac_cv_prog_cc_stdc=no
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2788 #include <sys/types.h>
2789 #include <sys/stat.h>
2790 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2791 struct buf { int x; };
2792 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2793 static char *e (p, i)
2799 static char *f (char * (*g) (char **, int), char **p, ...)
2804 s = g (p, va_arg (v,int));
2809 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2810 function prototypes and stuff, but not '\xHH' hex character constants.
2811 These don't provoke an error unfortunately, instead are silently treated
2812 as 'x'. The following induces an error, until -std1 is added to get
2813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2814 array size at least. It's necessary to write '\x00'==0 to get something
2815 that's true only with -std1. */
2816 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2818 int test (int i, double x);
2819 struct s1 {int (*f) (int a);};
2820 struct s2 {int (*f) (double a);};
2821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2827 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2832 # Don't try gcc -ansi; that turns off useful extensions and
2833 # breaks some systems' header files.
2834 # AIX -qlanglvl=ansi
2835 # Ultrix and OSF/1 -std1
2836 # HP-UX 10.20 and later -Ae
2837 # HP-UX older versions -Aa -D_HPUX_SOURCE
2838 # SVR4 -Xc -D__EXTENSIONS__
2839 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2841 CC="$ac_save_CC $ac_arg"
2842 rm -f conftest.$ac_objext
2843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2844 (eval $ac_compile) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
2851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_prog_cc_stdc=$ac_arg
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2871 rm -f conftest.err conftest.$ac_objext
2873 rm -f conftest.$ac_ext conftest.$ac_objext
2878 case "x$ac_cv_prog_cc_stdc" in
2880 echo "$as_me:$LINENO: result: none needed" >&5
2881 echo "${ECHO_T}none needed" >&6 ;;
2883 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2884 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2885 CC="$CC $ac_cv_prog_cc_stdc" ;;
2888 # Some people use a C++ compiler to compile C. Since we use `exit',
2889 # in C++ we need to declare it. In case someone uses the same compiler
2890 # for both compiling C and C++ we need to have the C++ compiler decide
2891 # the declaration of exit, since it's the most demanding environment.
2892 cat >conftest.$ac_ext <<_ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 for ac_declaration in \
2921 'extern "C" void std::exit (int) throw (); using std::exit;' \
2922 'extern "C" void std::exit (int); using std::exit;' \
2923 'extern "C" void exit (int) throw ();' \
2924 'extern "C" void exit (int);' \
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945 (eval $ac_compile) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } &&
2952 { ac_try='test -z "$ac_c_werror_flag"
2953 || test ! -s conftest.err'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; }; then
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2973 cat >conftest.$ac_ext <<_ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2992 grep -v '^ *+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_c_werror_flag"
2998 || test ! -s conftest.err'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.$ac_ext >&5
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3019 if test -n "$ac_declaration"; then
3020 echo '#ifdef __cplusplus' >>confdefs.h
3021 echo $ac_declaration >>confdefs.h
3022 echo '#endif' >>confdefs.h
3026 echo "$as_me: failed program was:" >&5
3027 sed 's/^/| /' conftest.$ac_ext >&5
3030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 DEPDIR="${am__leading_dot}deps"
3038 ac_config_commands="$ac_config_commands depfiles"
3041 am_make=${MAKE-make}
3042 cat > confinc << 'END'
3047 # If we don't find an include directive, just comment out the code.
3048 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3049 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3053 # First try GNU make style include.
3054 echo "include confinc" > confmf
3055 # We grep out `Entering directory' and `Leaving directory'
3056 # messages which can occur if `w' ends up in MAKEFLAGS.
3057 # In particular we don't look at `^make:' because GNU make might
3058 # be invoked under some other name (usually "gmake"), in which
3059 # case it prints its new name instead of `make'.
3060 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3065 # Now try BSD make style include.
3066 if test "$am__include" = "#"; then
3067 echo '.include "confinc"' > confmf
3068 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3069 am__include=.include
3076 echo "$as_me:$LINENO: result: $_am_result" >&5
3077 echo "${ECHO_T}$_am_result" >&6
3078 rm -f confinc confmf
3080 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3081 if test "${enable_dependency_tracking+set}" = set; then
3082 enableval="$enable_dependency_tracking"
3085 if test "x$enable_dependency_tracking" != xno; then
3086 am_depcomp="$ac_aux_dir/depcomp"
3091 if test "x$enable_dependency_tracking" != xno; then
3102 depcc="$CC" am_compiler_list=
3104 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3105 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3106 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3110 # We make a subdir and do the tests there. Otherwise we can end up
3111 # making bogus files that we don't know about and never remove. For
3112 # instance it was reported that on HP-UX the gcc test will end up
3113 # making a dummy file named `D' -- because `-MD' means `put the output
3116 # Copy depcomp to subdir because otherwise we won't find it if we're
3117 # using a relative directory.
3118 cp "$am_depcomp" conftest.dir
3120 # We will build objects and dependencies in a subdirectory because
3121 # it helps to detect inapplicable dependency modes. For instance
3122 # both Tru64's cc and ICC support -MD to output dependencies as a
3123 # side effect of compilation, but ICC will put the dependencies in
3124 # the current directory while Tru64 will put them in the object
3128 am_cv_CC_dependencies_compiler_type=none
3129 if test "$am_compiler_list" = ""; then
3130 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3132 for depmode in $am_compiler_list; do
3133 # Setup a source with many dependencies, because some compilers
3134 # like to wrap large dependency lists on column 80 (with \), and
3135 # we should not choose a depcomp mode which is confused by this.
3137 # We need to recreate these files for each test, as the compiler may
3138 # overwrite some of them when testing with obscure command lines.
3139 # This happens at least with the AIX C compiler.
3141 for i in 1 2 3 4 5 6; do
3142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3144 # Solaris 8's {/usr,}/bin/sh.
3145 touch sub/conftst$i.h
3147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3151 # after this tag, mechanisms are not by side-effect, so they'll
3152 # only be used when explicitly requested
3153 if test "x$enable_dependency_tracking" = xyes; then
3161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3162 # mode. It turns out that the SunPro C++ compiler does not properly
3163 # handle `-M -o', and we need to detect this.
3164 if depmode=$depmode \
3165 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3167 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3168 >/dev/null 2>conftest.err &&
3169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3170 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3172 # icc doesn't choke on unknown options, it will just issue warnings
3173 # or remarks (even with -Werror). So we grep stderr for any message
3174 # that says an option was ignored or not supported.
3175 # When given -MP, icc 7.0 and 7.1 complain thusly:
3176 # icc: Command line warning: ignoring option '-M'; no argument required
3177 # The diagnosis changed in icc 8.0:
3178 # icc: Command line remark: option '-MP' not supported
3179 if (grep 'ignoring option' conftest.err ||
3180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3181 am_cv_CC_dependencies_compiler_type=$depmode
3190 am_cv_CC_dependencies_compiler_type=none
3194 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3195 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3201 test "x$enable_dependency_tracking" != xno \
3202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3204 am__fastdepCC_FALSE='#'
3206 am__fastdepCC_TRUE='#'
3207 am__fastdepCC_FALSE=
3212 ac_cpp='$CXXCPP $CPPFLAGS'
3213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3221 echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3223 if test "${ac_cv_prog_CXX+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 if test -n "$CXX"; then
3227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 if test -n "$CXX"; then
3247 echo "$as_me:$LINENO: result: $CXX" >&5
3248 echo "${ECHO_T}$CXX" >&6
3250 echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3254 test -n "$CXX" && break
3257 if test -z "$CXX"; then
3259 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3261 # Extract the first word of "$ac_prog", so it can be a program name with args.
3262 set dummy $ac_prog; ac_word=$2
3263 echo "$as_me:$LINENO: checking for $ac_word" >&5
3264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 if test -n "$ac_ct_CXX"; then
3269 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 ac_cv_prog_ac_ct_CXX="$ac_prog"
3279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3288 if test -n "$ac_ct_CXX"; then
3289 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3290 echo "${ECHO_T}$ac_ct_CXX" >&6
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3296 test -n "$ac_ct_CXX" && break
3298 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3304 # Provide some information about the compiler.
3305 echo "$as_me:$LINENO:" \
3306 "checking for C++ compiler version" >&5
3307 ac_compiler=`set X $ac_compile; echo $2`
3308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3309 (eval $ac_compiler --version </dev/null >&5) 2>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }
3313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3314 (eval $ac_compiler -v </dev/null >&5) 2>&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }
3318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3319 (eval $ac_compiler -V </dev/null >&5) 2>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }
3324 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3326 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>conftest.er1
3351 grep -v '^ *+' conftest.er1 >conftest.err
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } &&
3356 { ac_try='test -z "$ac_cxx_werror_flag"
3357 || test ! -s conftest.err'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }; }; then
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3380 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3381 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3382 GXX=`test $ac_compiler_gnu = yes && echo yes`
3383 ac_test_CXXFLAGS=${CXXFLAGS+set}
3384 ac_save_CXXFLAGS=$CXXFLAGS
3386 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3387 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3388 if test "${ac_cv_prog_cxx_g+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_cxx_werror_flag"
3416 || test ! -s conftest.err'
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 ac_cv_prog_cxx_g=yes
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3438 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3439 if test "$ac_test_CXXFLAGS" = set; then
3440 CXXFLAGS=$ac_save_CXXFLAGS
3441 elif test $ac_cv_prog_cxx_g = yes; then
3442 if test "$GXX" = yes; then
3448 if test "$GXX" = yes; then
3454 for ac_declaration in \
3456 'extern "C" void std::exit (int) throw (); using std::exit;' \
3457 'extern "C" void std::exit (int); using std::exit;' \
3458 'extern "C" void exit (int) throw ();' \
3459 'extern "C" void exit (int);' \
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3478 rm -f conftest.$ac_objext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480 (eval $ac_compile) 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } &&
3487 { ac_try='test -z "$ac_cxx_werror_flag"
3488 || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_cxx_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3554 if test -n "$ac_declaration"; then
3555 echo '#ifdef __cplusplus' >>confdefs.h
3556 echo $ac_declaration >>confdefs.h
3557 echo '#endif' >>confdefs.h
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566 depcc="$CXX" am_compiler_list=
3568 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3569 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3570 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574 # We make a subdir and do the tests there. Otherwise we can end up
3575 # making bogus files that we don't know about and never remove. For
3576 # instance it was reported that on HP-UX the gcc test will end up
3577 # making a dummy file named `D' -- because `-MD' means `put the output
3580 # Copy depcomp to subdir because otherwise we won't find it if we're
3581 # using a relative directory.
3582 cp "$am_depcomp" conftest.dir
3584 # We will build objects and dependencies in a subdirectory because
3585 # it helps to detect inapplicable dependency modes. For instance
3586 # both Tru64's cc and ICC support -MD to output dependencies as a
3587 # side effect of compilation, but ICC will put the dependencies in
3588 # the current directory while Tru64 will put them in the object
3592 am_cv_CXX_dependencies_compiler_type=none
3593 if test "$am_compiler_list" = ""; then
3594 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596 for depmode in $am_compiler_list; do
3597 # Setup a source with many dependencies, because some compilers
3598 # like to wrap large dependency lists on column 80 (with \), and
3599 # we should not choose a depcomp mode which is confused by this.
3601 # We need to recreate these files for each test, as the compiler may
3602 # overwrite some of them when testing with obscure command lines.
3603 # This happens at least with the AIX C compiler.
3605 for i in 1 2 3 4 5 6; do
3606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3607 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3608 # Solaris 8's {/usr,}/bin/sh.
3609 touch sub/conftst$i.h
3611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3615 # after this tag, mechanisms are not by side-effect, so they'll
3616 # only be used when explicitly requested
3617 if test "x$enable_dependency_tracking" = xyes; then
3625 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626 # mode. It turns out that the SunPro C++ compiler does not properly
3627 # handle `-M -o', and we need to detect this.
3628 if depmode=$depmode \
3629 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3630 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3631 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3632 >/dev/null 2>conftest.err &&
3633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3634 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3636 # icc doesn't choke on unknown options, it will just issue warnings
3637 # or remarks (even with -Werror). So we grep stderr for any message
3638 # that says an option was ignored or not supported.
3639 # When given -MP, icc 7.0 and 7.1 complain thusly:
3640 # icc: Command line warning: ignoring option '-M'; no argument required
3641 # The diagnosis changed in icc 8.0:
3642 # icc: Command line remark: option '-MP' not supported
3643 if (grep 'ignoring option' conftest.err ||
3644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3645 am_cv_CXX_dependencies_compiler_type=$depmode
3654 am_cv_CXX_dependencies_compiler_type=none
3658 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3659 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3660 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3665 test "x$enable_dependency_tracking" != xno \
3666 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3667 am__fastdepCXX_TRUE=
3668 am__fastdepCXX_FALSE='#'
3670 am__fastdepCXX_TRUE='#'
3671 am__fastdepCXX_FALSE=
3677 if test "x$CC" != xcc; then
3678 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3679 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3681 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3682 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3684 set dummy $CC; ac_cc=`echo $2 |
3685 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3686 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3692 cat confdefs.h >>conftest.$ac_ext
3693 cat >>conftest.$ac_ext <<_ACEOF
3694 /* end confdefs.h. */
3704 # Make sure it works both with $CC and with simple cc.
3705 # We do the test twice because some compilers refuse to overwrite an
3706 # existing .o file with -o, though they will create one.
3707 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3708 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
3713 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); };
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3720 if test "x$CC" != xcc; then
3721 # Test first that cc exists at all.
3722 if { ac_try='cc -c conftest.$ac_ext >&5'
3723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3729 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); } &&
3734 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); };
3743 # cc exists but doesn't like -o.
3744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3749 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3754 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3758 echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3761 cat >>confdefs.h <<\_ACEOF
3762 #define NO_MINUS_C_MINUS_O 1
3767 # FIXME: we rely on the cache variable name because
3768 # there is no other way.
3770 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3771 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3772 # Losing compiler, so override with the script.
3773 # FIXME: It is wrong to rewrite CC.
3774 # But if we don't then we get into trouble of one sort or another.
3775 # A longer-term fix would be to have automake use am__CC in this case,
3776 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3777 CC="$am_aux_dir/compile $CC"
3784 # Newer automakes demand CCAS and CCASFLAGS.
3786 : ${CCASFLAGS='$(CFLAGS)'}
3790 if test -n "$ac_tool_prefix"; then
3791 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}as; ac_word=$2
3793 echo "$as_me:$LINENO: checking for $ac_word" >&5
3794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795 if test "${ac_cv_prog_AS+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 if test -n "$AS"; then
3799 ac_cv_prog_AS="$AS" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_AS="${ac_tool_prefix}as"
3809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$AS"; then
3819 echo "$as_me:$LINENO: result: $AS" >&5
3820 echo "${ECHO_T}$AS" >&6
3822 echo "$as_me:$LINENO: result: no" >&5
3823 echo "${ECHO_T}no" >&6
3827 if test -z "$ac_cv_prog_AS"; then
3829 # Extract the first word of "as", so it can be a program name with args.
3830 set dummy as; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 if test -n "$ac_ct_AS"; then
3837 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_ac_ct_AS="as"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3856 if test -n "$ac_ct_AS"; then
3857 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3858 echo "${ECHO_T}$ac_ct_AS" >&6
3860 echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}ar; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_prog_AR+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 if test -n "$AR"; then
3878 ac_cv_prog_AR="$AR" # Let the user override the test.
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_AR="${ac_tool_prefix}ar"
3888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 if test -n "$AR"; then
3898 echo "$as_me:$LINENO: result: $AR" >&5
3899 echo "${ECHO_T}$AR" >&6
3901 echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3906 if test -z "$ac_cv_prog_AR"; then
3908 # Extract the first word of "ar", so it can be a program name with args.
3909 set dummy ar; ac_word=$2
3910 echo "$as_me:$LINENO: checking for $ac_word" >&5
3911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3912 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 if test -n "$ac_ct_AR"; then
3916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_ac_ct_AR="ar"
3926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3935 if test -n "$ac_ct_AR"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3937 echo "${ECHO_T}$ac_ct_AR" >&6
3939 echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$RANLIB"; then
3957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 RANLIB=$ac_cv_prog_RANLIB
3976 if test -n "$RANLIB"; then
3977 echo "$as_me:$LINENO: result: $RANLIB" >&5
3978 echo "${ECHO_T}$RANLIB" >&6
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3985 if test -z "$ac_cv_prog_RANLIB"; then
3986 ac_ct_RANLIB=$RANLIB
3987 # Extract the first word of "ranlib", so it can be a program name with args.
3988 set dummy ranlib; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 if test -n "$ac_ct_RANLIB"; then
3995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_RANLIB="ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4015 if test -n "$ac_ct_RANLIB"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4017 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 RANLIB=$ac_ct_RANLIB
4025 RANLIB="$ac_cv_prog_RANLIB"
4029 # Find a good install program. We prefer a C program (faster),
4030 # so one script is as good as another. But avoid the broken or
4031 # incompatible versions:
4032 # SysV /etc/install, /usr/sbin/install
4033 # SunOS /usr/etc/install
4034 # IRIX /sbin/install
4036 # AmigaOS /C/install, which installs bootblocks on floppy discs
4037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4040 # OS/2's system install, which has a completely different semantic
4041 # ./install, which can be erroneously created by make from ./install.sh.
4042 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4044 if test -z "$INSTALL"; then
4045 if test "${ac_cv_path_install+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 # Account for people who put trailing slashes in PATH elements.
4055 ./ | .// | /cC/* | \
4056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4060 # OSF1 and SCO ODT 3.0 have their own names for install.
4061 # Don't use installbsd from OSF since it installs stuff as root
4063 for ac_prog in ginstall scoinst install; do
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4066 if test $ac_prog = install &&
4067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4068 # AIX install. It has an incompatible calling convention.
4070 elif test $ac_prog = install &&
4071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4072 # program-specific install script used by HP pwplus--don't use.
4075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4087 if test "${ac_cv_path_install+set}" = set; then
4088 INSTALL=$ac_cv_path_install
4090 # As a last resort, use the slow shell script. We don't cache a
4091 # path for INSTALL within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the path is relative.
4094 INSTALL=$ac_install_sh
4097 echo "$as_me:$LINENO: result: $INSTALL" >&5
4098 echo "${ECHO_T}$INSTALL" >&6
4100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4101 # It thinks the first close brace ends the variable substitution.
4102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4109 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4110 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4111 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4112 if test "${enable_maintainer_mode+set}" = set; then
4113 enableval="$enable_maintainer_mode"
4114 USE_MAINTAINER_MODE=$enableval
4116 USE_MAINTAINER_MODE=no
4118 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4119 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4122 if test $USE_MAINTAINER_MODE = yes; then
4123 MAINTAINER_MODE_TRUE=
4124 MAINTAINER_MODE_FALSE='#'
4126 MAINTAINER_MODE_TRUE='#'
4127 MAINTAINER_MODE_FALSE=
4130 MAINT=$MAINTAINER_MODE_TRUE
4134 . ${srcdir}/configure.host
4136 case ${gc_basedir} in
4137 /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
4138 *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
4141 gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
4144 gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
4149 GC_CFLAGS=${gc_cflags}
4154 macro_version='2.1a'
4155 macro_revision='1.2435'
4168 ltmain="$ac_aux_dir/ltmain.sh"
4178 # Check whether --enable-shared or --disable-shared was given.
4179 if test "${enable_shared+set}" = set; then
4180 enableval="$enable_shared"
4181 p=${PACKAGE-default}
4183 yes) enable_shared=yes ;;
4184 no) enable_shared=no ;;
4187 # Look at the argument we got. We use all the common list separators.
4188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4189 for pkg in $enableval; do
4191 if test "X$pkg" = "X$p"; then
4209 # Check whether --enable-static or --disable-static was given.
4210 if test "${enable_static+set}" = set; then
4211 enableval="$enable_static"
4212 p=${PACKAGE-default}
4214 yes) enable_static=yes ;;
4215 no) enable_static=no ;;
4218 # Look at the argument we got. We use all the common list separators.
4219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4220 for pkg in $enableval; do
4222 if test "X$pkg" = "X$p"; then
4241 # Check whether --with-pic or --without-pic was given.
4242 if test "${with_pic+set}" = set; then
4249 test -z "$pic_mode" && pic_mode=default
4257 # Check whether --enable-fast-install or --disable-fast-install was given.
4258 if test "${enable_fast_install+set}" = set; then
4259 enableval="$enable_fast_install"
4260 p=${PACKAGE-default}
4262 yes) enable_fast_install=yes ;;
4263 no) enable_fast_install=no ;;
4265 enable_fast_install=no
4266 # Look at the argument we got. We use all the common list separators.
4267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268 for pkg in $enableval; do
4270 if test "X$pkg" = "X$p"; then
4271 enable_fast_install=yes
4278 enable_fast_install=yes
4288 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4289 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4290 if test "${lt_cv_path_SED+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 # Loop through the user's path and test for sed and gsed.
4294 # Then use that list of sed's as ones to test for truncation.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for lt_ac_prog in sed gsed; do
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4303 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4311 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4312 # along with /bin/sed that truncates output.
4313 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4314 test ! -f $lt_ac_sed && continue
4315 cat /dev/null > conftest.in
4317 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4318 # Check for GNU sed and select it if it is found.
4319 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4320 lt_cv_path_SED=$lt_ac_sed
4324 cat conftest.in conftest.in >conftest.tmp
4325 mv conftest.tmp conftest.in
4326 cp conftest.in conftest.nl
4328 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4329 cmp -s conftest.out conftest.nl || break
4330 # 10000 chars as input seems more than enough
4331 test $lt_ac_count -gt 10 && break
4332 lt_ac_count=`expr $lt_ac_count + 1`
4333 if test $lt_ac_count -gt $lt_ac_max; then
4334 lt_ac_max=$lt_ac_count
4335 lt_cv_path_SED=$lt_ac_sed
4344 echo "$as_me:$LINENO: result: $SED" >&5
4345 echo "${ECHO_T}$SED" >&6
4347 test -z "$SED" && SED=sed
4348 Xsed="$SED -e 1s/^X//"
4360 echo "$as_me:$LINENO: checking for egrep" >&5
4361 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4362 if test "${ac_cv_prog_egrep+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4366 then ac_cv_prog_egrep='grep -E'
4367 else ac_cv_prog_egrep='egrep'
4370 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4371 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4372 EGREP=$ac_cv_prog_egrep
4375 echo "$as_me:$LINENO: checking for fgrep" >&5
4376 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4377 if test "${ac_cv_prog_fgrep+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4381 then ac_cv_prog_fgrep='grep -F'
4382 else ac_cv_prog_fgrep='fgrep'
4385 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4386 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4387 FGREP=$ac_cv_prog_fgrep
4390 test -z "$GREP" && GREP=grep
4410 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4411 if test "${with_gnu_ld+set}" = set; then
4412 withval="$with_gnu_ld"
4413 test "$withval" = no || with_gnu_ld=yes
4418 if test "$GCC" = yes; then
4419 # Check if gcc -print-prog-name=ld gives a path.
4420 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4421 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4424 # gcc leaves a trailing carriage return which upsets mingw
4425 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4427 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4430 # Accept absolute paths.
4432 re_direlt='/[^/][^/]*/\.\./'
4433 # Canonicalize the pathname of ld
4434 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4435 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4436 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4438 test -z "$LD" && LD="$ac_prog"
4441 # If it fails, then pretend we aren't using GCC.
4445 # If it is relative, then search for the first ld in PATH.
4449 elif test "$with_gnu_ld" = yes; then
4450 echo "$as_me:$LINENO: checking for GNU ld" >&5
4451 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4453 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4454 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4456 if test "${lt_cv_path_LD+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if test -z "$LD"; then
4460 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4461 for ac_dir in $PATH; do
4463 test -z "$ac_dir" && ac_dir=.
4464 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4465 lt_cv_path_LD="$ac_dir/$ac_prog"
4466 # Check to see if the program is GNU ld. I'd rather use --version,
4467 # but apparently some variants of GNU ld only accept -v.
4468 # Break only if it was the GNU/non-GNU ld that we prefer.
4469 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4470 *GNU* | *'with BFD'*)
4471 test "$with_gnu_ld" != no && break
4474 test "$with_gnu_ld" != yes && break
4481 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4486 if test -n "$LD"; then
4487 echo "$as_me:$LINENO: result: $LD" >&5
4488 echo "${ECHO_T}$LD" >&6
4490 echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6
4493 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4494 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4495 { (exit 1); exit 1; }; }
4496 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4497 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4498 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4502 case `$LD -v 2>&1 </dev/null` in
4503 *GNU* | *'with BFD'*)
4504 lt_cv_prog_gnu_ld=yes
4507 lt_cv_prog_gnu_ld=no
4511 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4512 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4513 with_gnu_ld=$lt_cv_prog_gnu_ld
4524 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4525 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4526 if test "${lt_cv_path_NM+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$NM"; then
4530 # Let the user override the test.
4533 lt_nm_to_check="${ac_tool_prefix}nm"
4534 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4535 lt_nm_to_check="$lt_nm_to_check nm"
4537 for lt_tmp_nm in $lt_nm_to_check; do
4538 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4539 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4541 test -z "$ac_dir" && ac_dir=.
4542 tmp_nm="$ac_dir/$lt_tmp_nm"
4543 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4544 # Check to see if the nm accepts a BSD-compat flag.
4545 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4546 # nm: unknown option "B" ignored
4547 # Tru64's nm complains that /dev/null is an invalid object file
4548 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4549 */dev/null* | *'Invalid file or object type'*)
4550 lt_cv_path_NM="$tmp_nm -B"
4554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4556 lt_cv_path_NM="$tmp_nm -p"
4560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561 continue # so that we can try to find one that supports BSD flags
4570 : ${lt_cv_path_NM=no}
4573 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4574 echo "${ECHO_T}$lt_cv_path_NM" >&6
4575 if test "$lt_cv_path_NM" != "no"; then
4578 # Didn't find any BSD compatible name lister, look for dumpbin.
4579 if test -n "$ac_tool_prefix"; then
4580 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4584 echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4586 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 if test -n "$DUMPBIN"; then
4590 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 DUMPBIN=$ac_cv_prog_DUMPBIN
4609 if test -n "$DUMPBIN"; then
4610 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4611 echo "${ECHO_T}$DUMPBIN" >&6
4613 echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6
4617 test -n "$DUMPBIN" && break
4620 if test -z "$DUMPBIN"; then
4621 ac_ct_DUMPBIN=$DUMPBIN
4622 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4628 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if test -n "$ac_ct_DUMPBIN"; then
4632 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4651 if test -n "$ac_ct_DUMPBIN"; then
4652 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4653 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4655 echo "$as_me:$LINENO: result: no" >&5
4656 echo "${ECHO_T}no" >&6
4659 test -n "$ac_ct_DUMPBIN" && break
4661 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4663 DUMPBIN=$ac_ct_DUMPBIN
4667 if test "$DUMPBIN" != ":"; then
4671 test -z "$NM" && NM=nm
4678 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4679 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4680 if test "${lt_cv_nm_interface+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 lt_cv_nm_interface="BSD nm"
4684 echo "int some_variable = 0;" > conftest.$ac_ext
4685 (eval echo "\"\$as_me:4685: $ac_compile\"" >&5)
4686 (eval "$ac_compile" 2>conftest.err)
4687 cat conftest.err >&5
4688 (eval echo "\"\$as_me:4688: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4690 cat conftest.err >&5
4691 (eval echo "\"\$as_me:4691: output\"" >&5)
4692 cat conftest.out >&5
4693 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4694 lt_cv_nm_interface="MS dumpbin"
4698 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4699 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4701 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4702 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4704 if test "$LN_S" = "ln -s"; then
4705 echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6
4708 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4709 echo "${ECHO_T}no, using $LN_S" >&6
4712 # find the maximum length of command line arguments
4713 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4714 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4715 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 # On DJGPP, this test can blow up pretty badly due to problems in libc
4724 # (any single argument exceeding 2000 bytes causes a buffer overrun
4725 # during glob expansion). Even if it were fixed, the result of this
4726 # check would be larger than it should be.
4727 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4731 # Under GNU Hurd, this test is not required because there is
4732 # no limit to the length of command line arguments.
4733 # Libtool will interpret -1 as no limit whatsoever
4734 lt_cv_sys_max_cmd_len=-1;
4738 # On Win9x/ME, this test blows up -- it succeeds, but takes
4739 # about 5 minutes as the teststring grows exponentially.
4740 # Worse, since 9x/ME are not pre-emptively multitasking,
4741 # you end up with a "frozen" computer, even though with patience
4742 # the test eventually succeeds (with a max line length of 256k).
4743 # Instead, let's just punt: use the minimum linelength reported by
4744 # all of the supported platforms: 8192 (on NT/2K/XP).
4745 lt_cv_sys_max_cmd_len=8192;
4749 # On AmigaOS with pdksh, this test takes hours, literally.
4750 # So we just punt and use a minimum line length of 8192.
4751 lt_cv_sys_max_cmd_len=8192;
4754 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4755 # This has been around since 386BSD, at least. Likely further.
4756 if test -x /sbin/sysctl; then
4757 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4758 elif test -x /usr/sbin/sysctl; then
4759 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4761 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4763 # And add a safety zone
4764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4769 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4770 lt_cv_sys_max_cmd_len=196608
4774 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4775 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4776 # nice to cause kernel panics so lets avoid the loop below.
4777 # First set a reasonable default.
4778 lt_cv_sys_max_cmd_len=16384
4780 if test -x /sbin/sysconfig; then
4781 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4782 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4787 lt_cv_sys_max_cmd_len=102400
4789 sysv5* | sco5v6* | sysv4.2uw2*)
4790 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4791 if test -n "$kargmax"; then
4792 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4794 lt_cv_sys_max_cmd_len=32768
4798 # Make teststring a little bigger before we do anything with it.
4799 # a 1K string should be a reasonable start.
4800 for i in 1 2 3 4 5 6 7 8 ; do
4801 teststring=$teststring$teststring
4803 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4804 # If test is not a shell built-in, we'll probably end up computing a
4805 # maximum length that is only half of the actual maximum length, but
4807 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4808 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4809 test $i != 17 # 1/2 MB should be enough
4812 teststring=$teststring$teststring
4814 # Only check the string length outside the loop.
4815 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4817 # Add a significant safety factor because C++ compilers can tack on massive
4818 # amounts of additional arguments before passing them to the linker.
4819 # It appears as though 1/2 is a usable value.
4820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4826 if test -n $lt_cv_sys_max_cmd_len ; then
4827 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4828 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4830 echo "$as_me:$LINENO: result: none" >&5
4831 echo "${ECHO_T}none" >&6
4833 max_cmd_len=$lt_cv_sys_max_cmd_len
4845 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4846 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4847 # Try some XSI features
4850 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4851 = c,a/b,, ) >/dev/null 2>&1 \
4853 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4854 echo "${ECHO_T}$xsi_shell" >&6
4857 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4858 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4860 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4862 && lt_shell_append=yes
4863 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4864 echo "${ECHO_T}$lt_shell_append" >&6
4867 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4877 # test EBCDIC or ASCII
4878 case `echo X|tr X '\101'` in
4879 A) # ASCII based system
4880 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4881 lt_SP2NL='tr \040 \012'
4882 lt_NL2SP='tr \015\012 \040\040'
4884 *) # EBCDIC based system
4885 lt_SP2NL='tr \100 \n'
4886 lt_NL2SP='tr \r\n \100\100'
4898 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4899 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4900 if test "${lt_cv_ld_reload_flag+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 lt_cv_ld_reload_flag='-r'
4905 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4906 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4907 reload_flag=$lt_cv_ld_reload_flag
4908 case $reload_flag in
4910 *) reload_flag=" $reload_flag" ;;
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4915 if test "$GCC" = yes; then
4916 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4932 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4933 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4934 if test "${lt_cv_deplibs_check_method+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 lt_cv_file_magic_cmd='$MAGIC_CMD'
4938 lt_cv_file_magic_test_file=
4939 lt_cv_deplibs_check_method='unknown'
4940 # Need to set the preceding variable on all platforms that support
4941 # interlibrary dependencies.
4942 # 'none' -- dependencies not supported.
4943 # `unknown' -- same as none, but documents that we really don't know.
4944 # 'pass_all' -- all dependencies passed with no checks.
4945 # 'test_compile' -- check by making test program.
4946 # 'file_magic [[regex]]' -- check by looking for files in library path
4947 # which responds to the $file_magic_cmd with a given extended regex.
4948 # If you have `file' or equivalent on your system and you're not sure
4949 # whether `pass_all' will *always* work, you probably want this one.
4953 lt_cv_deplibs_check_method=pass_all
4957 lt_cv_deplibs_check_method=pass_all
4961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4962 lt_cv_file_magic_cmd='/usr/bin/file -L'
4963 lt_cv_file_magic_test_file=/shlib/libc.so
4967 # func_win32_libid is a shell function defined in ltmain.sh
4968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4969 lt_cv_file_magic_cmd='func_win32_libid'
4973 # Base MSYS/MinGW do not provide the 'file' command needed by
4974 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4975 # unless we find 'file', for example because we are cross-compiling.
4976 if ( file / ) >/dev/null 2>&1; then
4977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4978 lt_cv_file_magic_cmd='func_win32_libid'
4980 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4981 lt_cv_file_magic_cmd='$OBJDUMP -f'
4985 darwin* | rhapsody*)
4986 lt_cv_deplibs_check_method=pass_all
4989 freebsd* | dragonfly*)
4990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4993 # Not sure whether the presence of OpenBSD here was a mistake.
4994 # Let's accept both of them until this is cleared up.
4995 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4996 lt_cv_file_magic_cmd=/usr/bin/file
4997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5001 lt_cv_deplibs_check_method=pass_all
5006 lt_cv_deplibs_check_method=pass_all
5009 hpux10.20* | hpux11*)
5010 lt_cv_file_magic_cmd=/usr/bin/file
5013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5014 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5017 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]'
5018 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5022 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5028 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5032 irix5* | irix6* | nonstopux*)
5034 *-32|*"-32 ") libmagic=32-bit;;
5035 *-n32|*"-n32 ") libmagic=N32;;
5036 *-64|*"-64 ") libmagic=64-bit;;
5037 *) libmagic=never-match;;
5039 lt_cv_deplibs_check_method=pass_all
5042 # This must be Linux ELF.
5043 linux* | k*bsd*-gnu)
5044 lt_cv_deplibs_check_method=pass_all
5048 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5057 lt_cv_file_magic_cmd=/usr/bin/file
5058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5062 lt_cv_deplibs_check_method=pass_all
5066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5073 osf3* | osf4* | osf5*)
5074 lt_cv_deplibs_check_method=pass_all
5078 lt_cv_deplibs_check_method=pass_all
5082 lt_cv_deplibs_check_method=pass_all
5085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5086 lt_cv_deplibs_check_method=pass_all
5090 case $host_vendor in
5092 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]'
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5096 lt_cv_deplibs_check_method=pass_all
5099 lt_cv_file_magic_cmd='/bin/file'
5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5103 lt_cv_file_magic_cmd='/bin/file'
5104 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5105 lt_cv_file_magic_test_file=/lib/libc.so
5108 lt_cv_deplibs_check_method=pass_all
5111 lt_cv_deplibs_check_method=pass_all
5117 lt_cv_deplibs_check_method=pass_all
5122 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5123 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5124 file_magic_cmd=$lt_cv_file_magic_cmd
5125 deplibs_check_method=$lt_cv_deplibs_check_method
5126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}ar; ac_word=$2
5142 echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5144 if test "${ac_cv_prog_AR+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 if test -n "$AR"; then
5148 ac_cv_prog_AR="$AR" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_AR="${ac_tool_prefix}ar"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 if test -n "$AR"; then
5168 echo "$as_me:$LINENO: result: $AR" >&5
5169 echo "${ECHO_T}$AR" >&6
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5176 if test -z "$ac_cv_prog_AR"; then
5178 # Extract the first word of "ar", so it can be a program name with args.
5179 set dummy ar; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 if test -n "$ac_ct_AR"; then
5186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_prog_ac_ct_AR="ar"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5205 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5206 if test -n "$ac_ct_AR"; then
5207 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5208 echo "${ECHO_T}$ac_ct_AR" >&6
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5219 test -z "$AR" && AR=ar
5220 test -z "$AR_FLAGS" && AR_FLAGS=cru
5232 if test -n "$ac_tool_prefix"; then
5233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5234 set dummy ${ac_tool_prefix}strip; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_STRIP+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 if test -n "$STRIP"; then
5241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 STRIP=$ac_cv_prog_STRIP
5260 if test -n "$STRIP"; then
5261 echo "$as_me:$LINENO: result: $STRIP" >&5
5262 echo "${ECHO_T}$STRIP" >&6
5264 echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5269 if test -z "$ac_cv_prog_STRIP"; then
5271 # Extract the first word of "strip", so it can be a program name with args.
5272 set dummy strip; ac_word=$2
5273 echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 if test -n "$ac_ct_STRIP"; then
5279 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5288 ac_cv_prog_ac_ct_STRIP="strip"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5298 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5299 if test -n "$ac_ct_STRIP"; then
5300 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5301 echo "${ECHO_T}$ac_ct_STRIP" >&6
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5309 STRIP="$ac_cv_prog_STRIP"
5312 test -z "$STRIP" && STRIP=:
5319 if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5322 echo "$as_me:$LINENO: checking for $ac_word" >&5
5323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5324 if test "${ac_cv_prog_RANLIB+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 if test -n "$RANLIB"; then
5328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 RANLIB=$ac_cv_prog_RANLIB
5347 if test -n "$RANLIB"; then
5348 echo "$as_me:$LINENO: result: $RANLIB" >&5
5349 echo "${ECHO_T}$RANLIB" >&6
5351 echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6
5356 if test -z "$ac_cv_prog_RANLIB"; then
5357 ac_ct_RANLIB=$RANLIB
5358 # Extract the first word of "ranlib", so it can be a program name with args.
5359 set dummy ranlib; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 if test -n "$ac_ct_RANLIB"; then
5366 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir=.
5373 for ac_exec_ext in '' $ac_executable_extensions; do
5374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_ac_ct_RANLIB="ranlib"
5376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5385 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5386 if test -n "$ac_ct_RANLIB"; then
5387 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5388 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5394 RANLIB=$ac_ct_RANLIB
5396 RANLIB="$ac_cv_prog_RANLIB"
5399 test -z "$RANLIB" && RANLIB=:
5406 # Determine commands to create old-style static archives.
5407 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5408 old_postinstall_cmds='chmod 644 $oldlib'
5409 old_postuninstall_cmds=
5411 if test -n "$RANLIB"; then
5414 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5417 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5420 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5456 # If no C compiler was specified, use CC.
5459 # If no C compiler flags were specified, use CFLAGS.
5460 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5462 # Allow CC to be a program name with arguments.
5466 # Check for command to grab the raw symbol name followed by C symbol from nm.
5467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 # These are sane defaults that work on at least a few old systems.
5474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5476 # Character class describing NM global symbol codes.
5477 symcode='[BCDEGRST]'
5479 # Regexp to match symbols that can be accessed directly from C.
5480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5482 # Define system-specific variables.
5487 cygwin* | mingw* | pw32*)
5488 symcode='[ABCDGISTW]'
5491 if test "$host_cpu" = ia64; then
5492 symcode='[ABCDEGRST]'
5496 symcode='[BCDEGRST]'
5499 symcode='[BCDEGQRST]'
5510 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5518 # If we're using GNU nm, then use its standard symbol codes.
5519 case `$NM -V 2>&1` in
5520 *GNU* | *'with BFD'*)
5521 symcode='[ABCDGIRSTW]' ;;
5524 # Transform an extracted symbol line into a proper C declaration.
5525 # Some systems (esp. on ia64) link data and code symbols differently,
5526 # so use this general approach.
5527 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529 # Transform an extracted symbol line into symbol name and symbol address
5530 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5532 # Handle CRLF in mingw tool chain
5536 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5540 # Try without a prefix underscore, then with it.
5541 for ac_symprfx in "" "_"; do
5543 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5544 symxfrm="\\1 $ac_symprfx\\2 \\2"
5546 # Write the raw and C identifiers.
5547 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5548 # Fake it for dumpbin and say T for any non-static function
5549 # and D for any global variable.
5550 # Also find C++ and __fastcall symbols from MSVC++,
5551 # which start with @ or ?.
5552 lt_cv_sys_global_symbol_pipe="$AWK '"\
5553 " {last_section=section; section=\$ 3};"\
5554 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5555 " \$ 0!~/External *\|/{next};"\
5556 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5557 " {if(hide[section]) next};"\
5558 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5559 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5560 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5561 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5562 " ' prfx=^$ac_symprfx"
5564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5567 # Check to see that the pipe works correctly.
5571 cat > conftest.$ac_ext <<_LT_EOF
5576 void nm_test_func(void);
5577 void nm_test_func(void){}
5581 int main(){nm_test_var='a';nm_test_func();return(0);}
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; then
5589 # Now try to grab the symbols.
5591 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5592 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && test -s "$nlist"; then
5596 # Try sorting and uniquifying the output.
5597 if sort "$nlist" | uniq > "$nlist"T; then
5598 mv -f "$nlist"T "$nlist"
5603 # Make sure that we snagged all the symbols we need.
5604 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5605 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5606 cat <<_LT_EOF > conftest.$ac_ext
5612 # Now generate the symbol file.
5613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5615 cat <<_LT_EOF >> conftest.$ac_ext
5617 /* The mapping between symbol names and symbols. */
5622 lt__PROGRAM__LTX_preloaded_symbols[] =
5624 { "@PROGRAM@", (void *) 0 },
5626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5627 cat <<\_LT_EOF >> conftest.$ac_ext
5631 /* This works around a problem in FreeBSD linker */
5632 #ifdef FREEBSD_WORKAROUND
5633 static const void *lt_preloaded_setup() {
5634 return lt__PROGRAM__LTX_preloaded_symbols;
5642 # Now try linking the two files.
5643 mv conftest.$ac_objext conftstm.$ac_objext
5644 lt_save_LIBS="$LIBS"
5645 lt_save_CFLAGS="$CFLAGS"
5646 LIBS="conftstm.$ac_objext"
5647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5649 (eval $ac_link) 2>&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5655 LIBS="$lt_save_LIBS"
5656 CFLAGS="$lt_save_CFLAGS"
5658 echo "cannot find nm_test_func in $nlist" >&5
5661 echo "cannot find nm_test_var in $nlist" >&5
5664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5667 echo "$progname: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 rm -f conftest* conftst*
5672 # Do not use the global_symbol_pipe unless it works.
5673 if test "$pipe_works" = yes; then
5676 lt_cv_sys_global_symbol_pipe=
5682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5683 lt_cv_sys_global_symbol_to_cdecl=
5685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5686 echo "$as_me:$LINENO: result: failed" >&5
5687 echo "${ECHO_T}failed" >&6
5689 echo "$as_me:$LINENO: result: ok" >&5
5690 echo "${ECHO_T}ok" >&6
5710 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5711 if test "${enable_libtool_lock+set}" = set; then
5712 enableval="$enable_libtool_lock"
5715 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5717 # Some flags need to be propagated to the compiler or linker for good
5721 # Find out which ABI we are using.
5722 echo 'int i;' > conftest.$ac_ext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; then
5728 case `/usr/bin/file conftest.$ac_objext` in
5740 # Find out which ABI we are using.
5741 echo '#line 5741 "configure"' > conftest.$ac_ext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 (eval $ac_compile) 2>&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; then
5747 if test "$lt_cv_prog_gnu_ld" = yes; then
5748 case `/usr/bin/file conftest.$ac_objext` in
5750 LD="${LD-ld} -melf32bsmip"
5753 LD="${LD-ld} -melf32bmipn32"
5756 LD="${LD-ld} -melf64bmip"
5760 case `/usr/bin/file conftest.$ac_objext` in
5776 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5777 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5778 # Find out which ABI we are using.
5779 echo 'int i;' > conftest.$ac_ext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; then
5785 case `/usr/bin/file conftest.o` in
5788 x86_64-*kfreebsd*-gnu)
5789 LD="${LD-ld} -m elf_i386_fbsd"
5792 LD="${LD-ld} -m elf_i386"
5794 ppc64-*linux*|powerpc64-*linux*)
5795 LD="${LD-ld} -m elf32ppclinux"
5798 LD="${LD-ld} -m elf_s390"
5801 LD="${LD-ld} -m elf32_sparc"
5807 x86_64-*kfreebsd*-gnu)
5808 LD="${LD-ld} -m elf_x86_64_fbsd"
5811 LD="${LD-ld} -m elf_x86_64"
5813 ppc*-*linux*|powerpc*-*linux*)
5814 LD="${LD-ld} -m elf64ppc"
5816 s390*-*linux*|s390*-*tpf*)
5817 LD="${LD-ld} -m elf64_s390"
5820 LD="${LD-ld} -m elf64_sparc"
5830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831 SAVE_CFLAGS="$CFLAGS"
5832 CFLAGS="$CFLAGS -belf"
5833 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5835 if test "${lt_cv_cc_needs_belf+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 ac_cpp='$CPP $CPPFLAGS'
5840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5844 if test x$gcc_no_link = xyes; then
5845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5847 { (exit 1); exit 1; }; }
5849 cat >conftest.$ac_ext <<_ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 lt_cv_cc_needs_belf=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 lt_cv_cc_needs_belf=no
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5896 ac_cpp='$CPP $CPPFLAGS'
5897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5903 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5904 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5906 CFLAGS="$SAVE_CFLAGS"
5910 # Find out which ABI we are using.
5911 echo 'int i;' > conftest.$ac_ext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; then
5917 case `/usr/bin/file conftest.o` in
5919 case $lt_cv_prog_gnu_ld in
5920 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5921 *) LD="${LD-ld} -64" ;;
5930 need_locks="$enable_libtool_lock"
5933 ac_cpp='$CPP $CPPFLAGS'
5934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5939 # On Suns, sometimes $CPP names a directory.
5940 if test -n "$CPP" && test -d "$CPP"; then
5943 if test -z "$CPP"; then
5944 if test "${ac_cv_prog_CPP+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 # Double quotes because CPP needs to be expanded
5948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5951 for ac_c_preproc_warn_flag in '' yes
5953 # Use a header file that comes with gcc, so configuring glibc
5954 # with a fresh cross-compiler works.
5955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5956 # <limits.h> exists even on freestanding compilers.
5957 # On the NeXT, cc -E runs the code through the compiler's parser,
5958 # not just through cpp. "Syntax error" is here to catch this case.
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5966 # include <limits.h>
5968 # include <assert.h>
5972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null; then
5980 if test -s conftest.err; then
5981 ac_cpp_err=$ac_c_preproc_warn_flag
5982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5989 if test -z "$ac_cpp_err"; then
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 # Broken: fails on valid input.
5998 rm -f conftest.err conftest.$ac_ext
6000 # OK, works on sane cases. Now check whether non-existent headers
6001 # can be detected and how.
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <ac_nonexistent.h>
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_c_preproc_warn_flag
6020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 if test -z "$ac_cpp_err"; then
6028 # Broken: success on invalid input.
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 # Passes both tests.
6038 rm -f conftest.err conftest.$ac_ext
6041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6042 rm -f conftest.err conftest.$ac_ext
6043 if $ac_preproc_ok; then
6055 echo "$as_me:$LINENO: result: $CPP" >&5
6056 echo "${ECHO_T}$CPP" >&6
6058 for ac_c_preproc_warn_flag in '' yes
6060 # Use a header file that comes with gcc, so configuring glibc
6061 # with a fresh cross-compiler works.
6062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063 # <limits.h> exists even on freestanding compilers.
6064 # On the NeXT, cc -E runs the code through the compiler's parser,
6065 # not just through cpp. "Syntax error" is here to catch this case.
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 # include <limits.h>
6075 # include <assert.h>
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null; then
6087 if test -s conftest.err; then
6088 ac_cpp_err=$ac_c_preproc_warn_flag
6089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6096 if test -z "$ac_cpp_err"; then
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6102 # Broken: fails on valid input.
6105 rm -f conftest.err conftest.$ac_ext
6107 # OK, works on sane cases. Now check whether non-existent headers
6108 # can be detected and how.
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #include <ac_nonexistent.h>
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null; then
6125 if test -s conftest.err; then
6126 ac_cpp_err=$ac_c_preproc_warn_flag
6127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134 if test -z "$ac_cpp_err"; then
6135 # Broken: success on invalid input.
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 # Passes both tests.
6145 rm -f conftest.err conftest.$ac_ext
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then
6153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6154 See \`config.log' for more details." >&5
6155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6156 See \`config.log' for more details." >&2;}
6157 { (exit 1); exit 1; }; }
6161 ac_cpp='$CPP $CPPFLAGS'
6162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6168 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6169 if test "${ac_cv_header_stdc+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 cat >conftest.$ac_ext <<_ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193 (eval $ac_compile) 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -z "$ac_c_werror_flag"
6201 || test ! -s conftest.err'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; } &&
6207 { ac_try='test -s conftest.$ac_objext'
6208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 ac_cv_header_stdc=yes
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.$ac_ext >&5
6218 ac_cv_header_stdc=no
6220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6222 if test $ac_cv_header_stdc = yes; then
6223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6224 cat >conftest.$ac_ext <<_ACEOF
6227 cat confdefs.h >>conftest.$ac_ext
6228 cat >>conftest.$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234 $EGREP "memchr" >/dev/null 2>&1; then
6237 ac_cv_header_stdc=no
6243 if test $ac_cv_header_stdc = yes; then
6244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6255 $EGREP "free" >/dev/null 2>&1; then
6258 ac_cv_header_stdc=no
6264 if test $ac_cv_header_stdc = yes; then
6265 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6266 if test "$cross_compiling" = yes; then
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 #if ((' ' & 0x0FF) == 0x020)
6277 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6278 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6280 # define ISLOWER(c) \
6281 (('a' <= (c) && (c) <= 'i') \
6282 || ('j' <= (c) && (c) <= 'r') \
6283 || ('s' <= (c) && (c) <= 'z'))
6284 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6287 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6292 for (i = 0; i < 256; i++)
6293 if (XOR (islower (i), ISLOWER (i))
6294 || toupper (i) != TOUPPER (i))
6299 rm -f conftest$ac_exeext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6301 (eval $ac_link) 2>&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
6312 echo "$as_me: program exited with status $ac_status" >&5
6313 echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_cv_header_stdc=no
6319 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6323 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6324 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6325 if test $ac_cv_header_stdc = yes; then
6327 cat >>confdefs.h <<\_ACEOF
6328 #define STDC_HEADERS 1
6333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6343 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6344 inttypes.h stdint.h unistd.h
6346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6347 echo "$as_me:$LINENO: checking for $ac_header" >&5
6348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 $ac_includes_default
6360 #include <$ac_header>
6362 rm -f conftest.$ac_objext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6364 (eval $ac_compile) 2>conftest.er1
6366 grep -v '^ *+' conftest.er1 >conftest.err
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag"
6372 || test ! -s conftest.err'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 eval "$as_ac_Header=yes"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6389 eval "$as_ac_Header=no"
6391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6396 cat >>confdefs.h <<_ACEOF
6397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 for ac_header in dlfcn.h
6408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 echo "$as_me:$LINENO: checking for $ac_header" >&5
6410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 cat >conftest.$ac_ext <<_ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h. */
6420 $ac_includes_default
6422 #include <$ac_header>
6424 rm -f conftest.$ac_objext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426 (eval $ac_compile) 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -z "$ac_c_werror_flag"
6434 || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 eval "$as_ac_Header=yes"
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 eval "$as_ac_Header=no"
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6458 cat >>confdefs.h <<_ACEOF
6459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6469 ac_cpp='$CXXCPP $CPPFLAGS'
6470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6478 echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 if test "${ac_cv_prog_CXX+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 if test -n "$CXX"; then
6484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 if test -n "$CXX"; then
6504 echo "$as_me:$LINENO: result: $CXX" >&5
6505 echo "${ECHO_T}$CXX" >&6
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6511 test -n "$CXX" && break
6514 if test -z "$CXX"; then
6516 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6518 # Extract the first word of "$ac_prog", so it can be a program name with args.
6519 set dummy $ac_prog; ac_word=$2
6520 echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6522 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 if test -n "$ac_ct_CXX"; then
6526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_CXX="$ac_prog"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6545 if test -n "$ac_ct_CXX"; then
6546 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6547 echo "${ECHO_T}$ac_ct_CXX" >&6
6549 echo "$as_me:$LINENO: result: no" >&5
6550 echo "${ECHO_T}no" >&6
6553 test -n "$ac_ct_CXX" && break
6555 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6561 # Provide some information about the compiler.
6562 echo "$as_me:$LINENO:" \
6563 "checking for C++ compiler version" >&5
6564 ac_compiler=`set X $ac_compile; echo $2`
6565 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6566 (eval $ac_compiler --version </dev/null >&5) 2>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); }
6570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6571 (eval $ac_compiler -v </dev/null >&5) 2>&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }
6575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6576 (eval $ac_compiler -V </dev/null >&5) 2>&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }
6581 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6582 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6583 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606 (eval $ac_compile) 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -z "$ac_cxx_werror_flag"
6614 || test ! -s conftest.err'
6615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; } &&
6620 { ac_try='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6637 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6638 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6639 GXX=`test $ac_compiler_gnu = yes && echo yes`
6640 ac_test_CXXFLAGS=${CXXFLAGS+set}
6641 ac_save_CXXFLAGS=$CXXFLAGS
6643 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6644 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6645 if test "${ac_cv_prog_cxx_g+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6663 rm -f conftest.$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -z "$ac_cxx_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 ac_cv_prog_cxx_g=yes
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6694 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6695 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6696 if test "$ac_test_CXXFLAGS" = set; then
6697 CXXFLAGS=$ac_save_CXXFLAGS
6698 elif test $ac_cv_prog_cxx_g = yes; then
6699 if test "$GXX" = yes; then
6705 if test "$GXX" = yes; then
6711 for ac_declaration in \
6713 'extern "C" void std::exit (int) throw (); using std::exit;' \
6714 'extern "C" void std::exit (int); using std::exit;' \
6715 'extern "C" void exit (int) throw ();' \
6716 'extern "C" void exit (int);' \
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6735 rm -f conftest.$ac_objext
6736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6737 (eval $ac_compile) 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_cxx_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6780 rm -f conftest.$ac_objext
6781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6782 (eval $ac_compile) 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -z "$ac_cxx_werror_flag"
6790 || test ! -s conftest.err'
6791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); }; } &&
6796 { ac_try='test -s conftest.$ac_objext'
6797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); }; }; then
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6811 if test -n "$ac_declaration"; then
6812 echo '#ifdef __cplusplus' >>confdefs.h
6813 echo $ac_declaration >>confdefs.h
6814 echo '#endif' >>confdefs.h
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6823 depcc="$CXX" am_compiler_list=
6825 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6826 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6827 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6831 # We make a subdir and do the tests there. Otherwise we can end up
6832 # making bogus files that we don't know about and never remove. For
6833 # instance it was reported that on HP-UX the gcc test will end up
6834 # making a dummy file named `D' -- because `-MD' means `put the output
6837 # Copy depcomp to subdir because otherwise we won't find it if we're
6838 # using a relative directory.
6839 cp "$am_depcomp" conftest.dir
6841 # We will build objects and dependencies in a subdirectory because
6842 # it helps to detect inapplicable dependency modes. For instance
6843 # both Tru64's cc and ICC support -MD to output dependencies as a
6844 # side effect of compilation, but ICC will put the dependencies in
6845 # the current directory while Tru64 will put them in the object
6849 am_cv_CXX_dependencies_compiler_type=none
6850 if test "$am_compiler_list" = ""; then
6851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6853 for depmode in $am_compiler_list; do
6854 # Setup a source with many dependencies, because some compilers
6855 # like to wrap large dependency lists on column 80 (with \), and
6856 # we should not choose a depcomp mode which is confused by this.
6858 # We need to recreate these files for each test, as the compiler may
6859 # overwrite some of them when testing with obscure command lines.
6860 # This happens at least with the AIX C compiler.
6862 for i in 1 2 3 4 5 6; do
6863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6865 # Solaris 8's {/usr,}/bin/sh.
6866 touch sub/conftst$i.h
6868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6872 # after this tag, mechanisms are not by side-effect, so they'll
6873 # only be used when explicitly requested
6874 if test "x$enable_dependency_tracking" = xyes; then
6882 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6883 # mode. It turns out that the SunPro C++ compiler does not properly
6884 # handle `-M -o', and we need to detect this.
6885 if depmode=$depmode \
6886 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6887 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6888 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6889 >/dev/null 2>conftest.err &&
6890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6891 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6893 # icc doesn't choke on unknown options, it will just issue warnings
6894 # or remarks (even with -Werror). So we grep stderr for any message
6895 # that says an option was ignored or not supported.
6896 # When given -MP, icc 7.0 and 7.1 complain thusly:
6897 # icc: Command line warning: ignoring option '-M'; no argument required
6898 # The diagnosis changed in icc 8.0:
6899 # icc: Command line remark: option '-MP' not supported
6900 if (grep 'ignoring option' conftest.err ||
6901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6902 am_cv_CXX_dependencies_compiler_type=$depmode
6911 am_cv_CXX_dependencies_compiler_type=none
6915 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6916 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6917 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6922 test "x$enable_dependency_tracking" != xno \
6923 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6924 am__fastdepCXX_TRUE=
6925 am__fastdepCXX_FALSE='#'
6927 am__fastdepCXX_TRUE='#'
6928 am__fastdepCXX_FALSE=
6932 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6933 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6934 (test "X$CXX" != "Xg++"))) ; then
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6941 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6942 if test -z "$CXXCPP"; then
6943 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 # Double quotes because CXXCPP needs to be expanded
6947 for CXXCPP in "$CXX -E" "/lib/cpp"
6950 for ac_cxx_preproc_warn_flag in '' yes
6952 # Use a header file that comes with gcc, so configuring glibc
6953 # with a fresh cross-compiler works.
6954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955 # <limits.h> exists even on freestanding compilers.
6956 # On the NeXT, cc -E runs the code through the compiler's parser,
6957 # not just through cpp. "Syntax error" is here to catch this case.
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6965 # include <limits.h>
6967 # include <assert.h>
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null; then
6979 if test -s conftest.err; then
6980 ac_cpp_err=$ac_cxx_preproc_warn_flag
6981 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6988 if test -z "$ac_cpp_err"; then
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 # Broken: fails on valid input.
6997 rm -f conftest.err conftest.$ac_ext
6999 # OK, works on sane cases. Now check whether non-existent headers
7000 # can be detected and how.
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <ac_nonexistent.h>
7009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7012 grep -v '^ *+' conftest.er1 >conftest.err
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null; then
7017 if test -s conftest.err; then
7018 ac_cpp_err=$ac_cxx_preproc_warn_flag
7019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7026 if test -z "$ac_cpp_err"; then
7027 # Broken: success on invalid input.
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Passes both tests.
7037 rm -f conftest.err conftest.$ac_ext
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok; then
7047 ac_cv_prog_CXXCPP=$CXXCPP
7050 CXXCPP=$ac_cv_prog_CXXCPP
7052 ac_cv_prog_CXXCPP=$CXXCPP
7054 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7055 echo "${ECHO_T}$CXXCPP" >&6
7057 for ac_cxx_preproc_warn_flag in '' yes
7059 # Use a header file that comes with gcc, so configuring glibc
7060 # with a fresh cross-compiler works.
7061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062 # <limits.h> exists even on freestanding compilers.
7063 # On the NeXT, cc -E runs the code through the compiler's parser,
7064 # not just through cpp. "Syntax error" is here to catch this case.
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7072 # include <limits.h>
7074 # include <assert.h>
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev/null; then
7086 if test -s conftest.err; then
7087 ac_cpp_err=$ac_cxx_preproc_warn_flag
7088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7095 if test -z "$ac_cpp_err"; then
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7101 # Broken: fails on valid input.
7104 rm -f conftest.err conftest.$ac_ext
7106 # OK, works on sane cases. Now check whether non-existent headers
7107 # can be detected and how.
7108 cat >conftest.$ac_ext <<_ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <ac_nonexistent.h>
7116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7119 grep -v '^ *+' conftest.er1 >conftest.err
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } >/dev/null; then
7124 if test -s conftest.err; then
7125 ac_cpp_err=$ac_cxx_preproc_warn_flag
7126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7133 if test -z "$ac_cpp_err"; then
7134 # Broken: success on invalid input.
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 # Passes both tests.
7144 rm -f conftest.err conftest.$ac_ext
7147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7148 rm -f conftest.err conftest.$ac_ext
7149 if $ac_preproc_ok; then
7152 _lt_caught_CXX_error=yes
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7162 _lt_caught_CXX_error=yes
7169 # This can be used to rebuild libtool when needed
7170 LIBTOOL_DEPS="$ltmain"
7172 # Always use our own libtool.
7173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7199 test -z "$LN_S" && LN_S="ln -s"
7214 if test -n "${ZSH_VERSION+set}" ; then
7215 setopt NO_GLOB_SUBST
7218 echo "$as_me:$LINENO: checking for objdir" >&5
7219 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7220 if test "${lt_cv_objdir+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 rm -f .libs 2>/dev/null
7224 mkdir .libs 2>/dev/null
7225 if test -d .libs; then
7228 # MS-DOS does not allow filenames that begin with a dot.
7231 rmdir .libs 2>/dev/null
7233 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7234 echo "${ECHO_T}$lt_cv_objdir" >&6
7235 objdir=$lt_cv_objdir
7241 cat >>confdefs.h <<_ACEOF
7242 #define LT_OBJDIR "$lt_cv_objdir/"
7263 # AIX sometimes has problems with the GCC collect2 program. For some
7264 # reason, if we set the COLLECT_NAMES environment variable, the problems
7265 # vanish in a puff of smoke.
7266 if test "X${COLLECT_NAMES+set}" != Xset; then
7268 export COLLECT_NAMES
7273 # Sed substitution that helps us do robust quoting. It backslashifies
7274 # metacharacters that are still active within double-quoted strings.
7275 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7277 # Same as above, but do not quote variable references.
7278 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7280 # Sed substitution to delay expansion of an escaped shell variable in a
7281 # double_quote_subst'ed string.
7282 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7284 # Sed substitution to delay expansion of an escaped single quote.
7285 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7287 # Sed substitution to avoid accidental globbing in evaled expressions
7288 no_glob_subst='s/\*/\\\*/g'
7292 can_build_shared=yes
7294 # All known linkers require a `.a' archive for static linking (except MSVC,
7295 # which needs '.lib').
7298 with_gnu_ld="$lt_cv_prog_gnu_ld"
7301 old_CFLAGS="$CFLAGS"
7303 # Set sane defaults for various variables
7304 test -z "$CC" && CC=cc
7305 test -z "$LTCC" && LTCC=$CC
7306 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7307 test -z "$LD" && LD=ld
7308 test -z "$ac_objext" && ac_objext=o
7310 for cc_temp in $compiler""; do
7312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7318 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7321 # Only perform the check for file, if the check method requires it
7322 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7323 case $deplibs_check_method in
7325 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7326 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7327 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7328 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7336 lt_save_MAGIC_CMD="$MAGIC_CMD"
7337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339 for ac_dir in $ac_dummy; do
7341 test -z "$ac_dir" && ac_dir=.
7342 if test -f $ac_dir/${ac_tool_prefix}file; then
7343 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7344 if test -n "$file_magic_test_file"; then
7345 case $deplibs_check_method in
7347 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350 $EGREP "$file_magic_regex" > /dev/null; then
7355 *** Warning: the command libtool uses to detect shared libraries,
7356 *** $file_magic_cmd, produces output that libtool cannot recognize.
7357 *** The result is that libtool may fail to recognize shared libraries
7358 *** as such. This will affect the creation of libtool libraries that
7359 *** depend on shared libraries, but programs linked with such libtool
7360 *** libraries will work regardless of this problem. Nevertheless, you
7361 *** may want to report the problem to your system manager and/or to
7362 *** bug-libtool@gnu.org
7372 MAGIC_CMD="$lt_save_MAGIC_CMD"
7377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378 if test -n "$MAGIC_CMD"; then
7379 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380 echo "${ECHO_T}$MAGIC_CMD" >&6
7382 echo "$as_me:$LINENO: result: no" >&5
7383 echo "${ECHO_T}no" >&6
7390 if test -z "$lt_cv_path_MAGIC_CMD"; then
7391 if test -n "$ac_tool_prefix"; then
7392 echo "$as_me:$LINENO: checking for file" >&5
7393 echo $ECHO_N "checking for file... $ECHO_C" >&6
7394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7402 lt_save_MAGIC_CMD="$MAGIC_CMD"
7403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7404 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7405 for ac_dir in $ac_dummy; do
7407 test -z "$ac_dir" && ac_dir=.
7408 if test -f $ac_dir/file; then
7409 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7410 if test -n "$file_magic_test_file"; then
7411 case $deplibs_check_method in
7413 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7414 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7415 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7416 $EGREP "$file_magic_regex" > /dev/null; then
7421 *** Warning: the command libtool uses to detect shared libraries,
7422 *** $file_magic_cmd, produces output that libtool cannot recognize.
7423 *** The result is that libtool may fail to recognize shared libraries
7424 *** as such. This will affect the creation of libtool libraries that
7425 *** depend on shared libraries, but programs linked with such libtool
7426 *** libraries will work regardless of this problem. Nevertheless, you
7427 *** may want to report the problem to your system manager and/or to
7428 *** bug-libtool@gnu.org
7438 MAGIC_CMD="$lt_save_MAGIC_CMD"
7443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444 if test -n "$MAGIC_CMD"; then
7445 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7446 echo "${ECHO_T}$MAGIC_CMD" >&6
7448 echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7462 # Use C for the default configuration in the libtool script
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7472 # Source file extension for C test sources.
7475 # Object file extension for compiled C test sources.
7479 # Code to be used in simple compile tests
7480 lt_simple_compile_test_code="int some_variable = 0;"
7482 # Code to be used in simple link tests
7483 lt_simple_link_test_code='int main(){return(0);}'
7491 # If no C compiler was specified, use CC.
7494 # If no C compiler flags were specified, use CFLAGS.
7495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7497 # Allow CC to be a program name with arguments.
7500 # Save the default compiler, since it gets overwritten when the other
7501 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7502 compiler_DEFAULT=$CC
7504 # save warnings/boilerplate of simple test code
7505 ac_outfile=conftest.$ac_objext
7506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7508 _lt_compiler_boilerplate=`cat conftest.err`
7511 ac_outfile=conftest.$ac_objext
7512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514 _lt_linker_boilerplate=`cat conftest.err`
7519 ## There is no encapsulation within the following macros, do not change
7520 ## the running order or otherwise move them around unless you know exactly
7521 ## what you are doing...
7522 if test -n "$compiler"; then
7524 lt_prog_compiler_no_builtin_flag=
7526 if test "$GCC" = yes; then
7527 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7529 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 lt_cv_prog_compiler_rtti_exceptions=no
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7537 lt_compiler_flag="-fno-rtti -fno-exceptions"
7538 # Insert the option either (1) after the last *FLAGS variable, or
7539 # (2) before a word containing "conftest.", or (3) at the end.
7540 # Note that $ac_compile itself does not contain backslashes and begins
7541 # with a dollar sign (not a hyphen), so the echo should work correctly.
7542 # The option is referenced via a variable to avoid confusing sed.
7543 lt_compile=`echo "$ac_compile" | $SED \
7544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7546 -e 's:$: $lt_compiler_flag:'`
7547 (eval echo "\"\$as_me:7547: $lt_compile\"" >&5)
7548 (eval "$lt_compile" 2>conftest.err)
7550 cat conftest.err >&5
7551 echo "$as_me:7551: \$? = $ac_status" >&5
7552 if (exit $ac_status) && test -s "$ac_outfile"; then
7553 # The compiler can only warn and ignore the option if not recognized
7554 # So say no if there are warnings other than the usual output.
7555 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7558 lt_cv_prog_compiler_rtti_exceptions=yes
7564 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7568 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7580 lt_prog_compiler_wl=
7581 lt_prog_compiler_pic=
7582 lt_prog_compiler_static=
7584 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7585 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7587 if test "$GCC" = yes; then
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_static='-static'
7593 # All AIX code is PIC.
7594 if test "$host_cpu" = ia64; then
7595 # AIX 5 now supports IA64 processor
7596 lt_prog_compiler_static='-Bstatic'
7601 if test "$host_cpu" = m68k; then
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7610 # PIC is the default for these OSes.
7613 mingw* | cygwin* | pw32* | os2*)
7614 # This hack is so that the source file can tell whether it is being
7615 # built for inclusion in a dll (and should export symbols for example).
7616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7617 # (--disable-auto-import) libraries
7618 lt_prog_compiler_pic='-DDLL_EXPORT'
7621 darwin* | rhapsody*)
7622 # PIC is the default on this platform
7623 # Common symbols not allowed in MH_DYLIB files
7624 lt_prog_compiler_pic='-fno-common'
7628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7635 lt_prog_compiler_pic='-fPIC'
7641 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7642 # Instead, we relocate shared libraries at runtime.
7646 # Just because we use GCC doesn't mean we suddenly get shared libraries
7647 # on systems that don't support them.
7648 lt_prog_compiler_can_build_shared=no
7653 # QNX uses GNU C++, but need to define -shared option too, otherwise
7655 lt_prog_compiler_pic='-fPIC -shared'
7659 if test -d /usr/nec; then
7660 lt_prog_compiler_pic=-Kconform_pic
7665 lt_prog_compiler_pic='-fPIC'
7669 # PORTME Check for flag to pass linker flags through the system compiler.
7672 lt_prog_compiler_wl='-Wl,'
7673 if test "$host_cpu" = ia64; then
7674 # AIX 5 now supports IA64 processor
7675 lt_prog_compiler_static='-Bstatic'
7677 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7681 # PIC is the default on this platform
7682 # Common symbols not allowed in MH_DYLIB files
7683 case $cc_basename in
7685 lt_prog_compiler_pic='-qnocommon'
7686 lt_prog_compiler_wl='-Wl,'
7691 mingw* | cygwin* | pw32* | os2*)
7692 # This hack is so that the source file can tell whether it is being
7693 # built for inclusion in a dll (and should export symbols for example).
7694 lt_prog_compiler_pic='-DDLL_EXPORT'
7697 hpux9* | hpux10* | hpux11*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7706 lt_prog_compiler_pic='+Z'
7709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710 lt_prog_compiler_static='${wl}-a ${wl}archive'
7713 irix5* | irix6* | nonstopux*)
7714 lt_prog_compiler_wl='-Wl,'
7715 # PIC (with -KPIC) is the default.
7716 lt_prog_compiler_static='-non_shared'
7719 linux* | k*bsd*-gnu)
7720 case $cc_basename in
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-KPIC'
7724 lt_prog_compiler_static='-static'
7726 pgcc* | pgf77* | pgf90* | pgf95*)
7727 # Portland Group compilers (*not* the Pentium gcc compiler,
7728 # which looks to be a dead project)
7729 lt_prog_compiler_wl='-Wl,'
7730 lt_prog_compiler_pic='-fpic'
7731 lt_prog_compiler_static='-Bstatic'
7734 lt_prog_compiler_wl='-Wl,'
7735 # All Alpha code is PIC.
7736 lt_prog_compiler_static='-non_shared'
7739 case `$CC -V 2>&1 | sed 5q` in
7742 lt_prog_compiler_pic='-KPIC'
7743 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7747 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748 lt_prog_compiler_pic='-KPIC'
7749 lt_prog_compiler_static='-Bstatic'
7750 lt_prog_compiler_wl=''
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7763 # QNX uses GNU C++, but need to define -shared option too, otherwise
7765 lt_prog_compiler_pic='-fPIC -shared'
7768 osf3* | osf4* | osf5*)
7769 lt_prog_compiler_wl='-Wl,'
7770 # All OSF/1 code is PIC.
7771 lt_prog_compiler_static='-non_shared'
7775 lt_prog_compiler_static='-non_shared'
7779 lt_prog_compiler_pic='-KPIC'
7780 lt_prog_compiler_static='-Bstatic'
7781 case $cc_basename in
7783 lt_prog_compiler_wl='-Qoption ld ';;
7785 lt_prog_compiler_wl='-Wl,';;
7790 lt_prog_compiler_wl='-Qoption ld '
7791 lt_prog_compiler_pic='-PIC'
7792 lt_prog_compiler_static='-Bstatic'
7795 sysv4 | sysv4.2uw2* | sysv4.3*)
7796 lt_prog_compiler_wl='-Wl,'
7797 lt_prog_compiler_pic='-KPIC'
7798 lt_prog_compiler_static='-Bstatic'
7802 if test -d /usr/nec ;then
7803 lt_prog_compiler_pic='-Kconform_pic'
7804 lt_prog_compiler_static='-Bstatic'
7808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7809 lt_prog_compiler_wl='-Wl,'
7810 lt_prog_compiler_pic='-KPIC'
7811 lt_prog_compiler_static='-Bstatic'
7815 lt_prog_compiler_wl='-Wl,'
7816 lt_prog_compiler_can_build_shared=no
7820 lt_prog_compiler_pic='-pic'
7821 lt_prog_compiler_static='-Bstatic'
7825 lt_prog_compiler_can_build_shared=no
7831 # For platforms which do not support PIC, -DPIC is meaningless:
7833 lt_prog_compiler_pic=
7836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7839 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7840 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7848 # Check to make sure the PIC flag actually works.
7850 if test -n "$lt_prog_compiler_pic"; then
7851 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7852 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7853 if test "${lt_prog_compiler_pic_works+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 lt_prog_compiler_pic_works=no
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7859 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7860 # Insert the option either (1) after the last *FLAGS variable, or
7861 # (2) before a word containing "conftest.", or (3) at the end.
7862 # Note that $ac_compile itself does not contain backslashes and begins
7863 # with a dollar sign (not a hyphen), so the echo should work correctly.
7864 # The option is referenced via a variable to avoid confusing sed.
7865 lt_compile=`echo "$ac_compile" | $SED \
7866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7868 -e 's:$: $lt_compiler_flag:'`
7869 (eval echo "\"\$as_me:7869: $lt_compile\"" >&5)
7870 (eval "$lt_compile" 2>conftest.err)
7872 cat conftest.err >&5
7873 echo "$as_me:7873: \$? = $ac_status" >&5
7874 if (exit $ac_status) && test -s "$ac_outfile"; then
7875 # The compiler can only warn and ignore the option if not recognized
7876 # So say no if there are warnings other than the usual output.
7877 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7880 lt_prog_compiler_pic_works=yes
7886 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7887 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7889 if test x"$lt_prog_compiler_pic_works" = xyes; then
7890 case $lt_prog_compiler_pic in
7892 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7895 lt_prog_compiler_pic=
7896 lt_prog_compiler_can_build_shared=no
7907 # Check to make sure the static flag actually works.
7909 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7910 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7911 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7912 if test "${lt_prog_compiler_static_works+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 lt_prog_compiler_static_works=no
7916 save_LDFLAGS="$LDFLAGS"
7917 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7918 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7919 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7920 # The linker can only warn and ignore the option if not recognized
7921 # So say no if there are warnings
7922 if test -s conftest.err; then
7923 # Append any errors to the config.log.
7924 cat conftest.err 1>&5
7925 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927 if diff conftest.exp conftest.er2 >/dev/null; then
7928 lt_prog_compiler_static_works=yes
7931 lt_prog_compiler_static_works=yes
7935 LDFLAGS="$save_LDFLAGS"
7938 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7939 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7941 if test x"$lt_prog_compiler_static_works" = xyes; then
7944 lt_prog_compiler_static=
7953 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7954 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7955 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 lt_cv_prog_compiler_c_o=no
7959 $RM -r conftest 2>/dev/null
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7965 lt_compiler_flag="-o out/conftest2.$ac_objext"
7966 # Insert the option either (1) after the last *FLAGS variable, or
7967 # (2) before a word containing "conftest.", or (3) at the end.
7968 # Note that $ac_compile itself does not contain backslashes and begins
7969 # with a dollar sign (not a hyphen), so the echo should work correctly.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>out/conftest.err)
7977 cat out/conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7981 # The compiler can only warn and ignore the option if not recognized
7982 # So say no if there are warnings
7983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7986 lt_cv_prog_compiler_c_o=yes
7991 # SGI C++ compiler will create directory out/ii_files/ for
7992 # template instantiation
7993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7994 $RM out/* && rmdir out
8000 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8001 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8010 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 lt_cv_prog_compiler_c_o=no
8014 $RM -r conftest 2>/dev/null
8018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8020 lt_compiler_flag="-o out/conftest2.$ac_objext"
8021 # Insert the option either (1) after the last *FLAGS variable, or
8022 # (2) before a word containing "conftest.", or (3) at the end.
8023 # Note that $ac_compile itself does not contain backslashes and begins
8024 # with a dollar sign (not a hyphen), so the echo should work correctly.
8025 lt_compile=`echo "$ac_compile" | $SED \
8026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8028 -e 's:$: $lt_compiler_flag:'`
8029 (eval echo "\"\$as_me:8029: $lt_compile\"" >&5)
8030 (eval "$lt_compile" 2>out/conftest.err)
8032 cat out/conftest.err >&5
8033 echo "$as_me:8033: \$? = $ac_status" >&5
8034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8036 # The compiler can only warn and ignore the option if not recognized
8037 # So say no if there are warnings
8038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8041 lt_cv_prog_compiler_c_o=yes
8046 # SGI C++ compiler will create directory out/ii_files/ for
8047 # template instantiation
8048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8049 $RM out/* && rmdir out
8055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8061 hard_links="nottested"
8062 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8063 # do not overwrite the value of need_locks provided by the user
8064 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8065 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8068 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8070 ln conftest.a conftest.b 2>&5 || hard_links=no
8071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8072 echo "$as_me:$LINENO: result: $hard_links" >&5
8073 echo "${ECHO_T}$hard_links" >&6
8074 if test "$hard_links" = no; then
8075 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8076 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8092 allow_undefined_flag=
8093 always_export_symbols=no
8095 archive_expsym_cmds=
8096 compiler_needs_object=no
8097 enable_shared_with_static_runtimes=no
8098 export_dynamic_flag_spec=
8099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100 hardcode_automatic=no
8102 hardcode_direct_absolute=no
8103 hardcode_libdir_flag_spec=
8104 hardcode_libdir_flag_spec_ld=
8105 hardcode_libdir_separator=
8107 hardcode_shlibpath_var=unsupported
8109 link_all_deplibs=unknown
8112 old_archive_from_new_cmds=
8113 old_archive_from_expsyms_cmds=
8114 thread_safe_flag_spec=
8115 whole_archive_flag_spec=
8116 # include_expsyms should be a list of space-separated symbols to be *always*
8117 # included in the symbol list
8119 # exclude_expsyms can be an extended regexp of symbols to exclude
8120 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8121 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8122 # as well as any symbol that contains `d'.
8123 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8124 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8125 # platforms (ab)use it in PIC code, but their linkers get confused if
8126 # the symbol is explicitly referenced. Since portable code cannot
8127 # rely on this symbol name, it's probably fine to never include it in
8128 # preloaded symbol tables.
8129 extract_expsyms_cmds=
8132 cygwin* | mingw* | pw32*)
8133 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8134 # When not using gcc, we currently assume that we are using
8135 # Microsoft Visual C++.
8136 if test "$GCC" != yes; then
8141 # we just hope/assume this is gcc and not c89 (= MSVC++)
8150 if test "$with_gnu_ld" = yes; then
8151 # If archive_cmds runs LD, not CC, wlarc should be empty
8154 # Set some defaults for GNU ld with shared library support. These
8155 # are reset later if shared libraries are not supported. Putting them
8156 # here allows them to be overridden if necessary.
8157 runpath_var=LD_RUN_PATH
8158 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8159 export_dynamic_flag_spec='${wl}--export-dynamic'
8160 # ancient GNU ld didn't support --whole-archive et. al.
8161 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8162 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8164 whole_archive_flag_spec=
8166 supports_anon_versioning=no
8167 case `$LD -v 2>&1` in
8168 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8169 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8170 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8171 *\ 2.11.*) ;; # other 2.11 versions
8172 *) supports_anon_versioning=yes ;;
8175 # See if GNU ld supports shared libraries.
8177 aix3* | aix4* | aix5*)
8178 # On AIX/PPC, the GNU linker is very broken
8179 if test "$host_cpu" != ia64; then
8183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8184 *** to be unable to reliably create shared libraries on AIX.
8185 *** Therefore, libtool is disabling shared libraries support. If you
8186 *** really care for shared libraries, you may want to modify your PATH
8187 *** so that a non-GNU linker is found, and then restart.
8194 if test "$host_cpu" = m68k; then
8195 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)'
8196 hardcode_libdir_flag_spec='-L$libdir'
8197 hardcode_minus_L=yes
8200 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8201 # that the semantics of dynamic libraries on AmigaOS, at least up
8202 # to version 4, is to share data among multiple programs linked
8203 # with the same dynamic library. Since this doesn't match the
8204 # behavior of shared libraries on other platforms, we can't use
8210 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8211 allow_undefined_flag=unsupported
8212 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8213 # support --undefined. This deserves some investigation. FIXME
8214 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8220 cygwin* | mingw* | pw32*)
8221 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8222 # as there is no search path for DLLs.
8223 hardcode_libdir_flag_spec='-L$libdir'
8224 allow_undefined_flag=unsupported
8225 always_export_symbols=no
8226 enable_shared_with_static_runtimes=yes
8227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8229 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8231 # If the export-symbols file already is a .def file (1st line
8232 # is EXPORTS), use it as is; otherwise, prepend...
8233 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8234 cp $export_symbols $output_objdir/$soname.def;
8236 echo EXPORTS > $output_objdir/$soname.def;
8237 cat $export_symbols >> $output_objdir/$soname.def;
8239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8247 hardcode_shlibpath_var=no
8248 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8249 export_dynamic_flag_spec='${wl}-E'
8250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8251 # Instead, shared libraries are loaded at an image base (0x10000000 by
8252 # default) and relocated if they conflict, which is a slow very memory
8253 # consuming and fragmenting process. To avoid this, we pick a random,
8254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8257 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'
8260 gnu* | linux* | tpf* | k*bsd*-gnu)
8262 if test "$host_os" = linux-dietlibc; then
8263 case $cc_basename in
8264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8268 && test "$tmp_diet" = no
8271 case $cc_basename,$host_cpu in
8272 pgcc*) # Portland Group C compiler
8273 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'
8274 tmp_addflag=' $pic_flag'
8276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8277 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'
8278 tmp_addflag=' $pic_flag -Mnomain' ;;
8279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8280 tmp_addflag=' -i_dynamic' ;;
8281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8282 tmp_addflag=' -i_dynamic -nofor_main' ;;
8283 ifc* | ifort*) # Intel Fortran compiler
8284 tmp_addflag=' -nofor_main' ;;
8286 case `$CC -V 2>&1 | sed 5q` in
8287 *Sun\ C*) # Sun C 5.9
8288 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'
8289 compiler_needs_object=yes
8290 tmp_sharedflag='-G' ;;
8291 *Sun\ F*) # Sun Fortran 8.3
8292 tmp_sharedflag='-G' ;;
8294 tmp_sharedflag='-shared' ;;
8296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 if test "x$supports_anon_versioning" = xyes; then
8299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8301 echo "local: *; };" >> $output_objdir/$libname.ver~
8302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8325 *** create shared libraries on Solaris systems. Therefore, libtool
8326 *** is disabling shared libraries support. We urge you to upgrade GNU
8327 *** binutils to release 2.9.1 or newer. Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8341 case `$LD -v 2>&1` in
8342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8347 *** reliably create shared libraries on SCO systems. Therefore, libtool
8348 *** is disabling shared libraries support. We urge you to upgrade GNU
8349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8350 *** your PATH or compiler configuration so that the native linker is
8351 *** used, and then restart.
8356 # For security reasons, it is highly recommended that you always
8357 # use absolute paths for naming shared libraries, and exclude the
8358 # DT_RUNPATH tag from executables and libraries. But doing so
8359 # requires that you compile everything twice, which is a pain.
8360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_shlibpath_var=no
8379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388 if test "$ld_shlibs" = no; then
8390 hardcode_libdir_flag_spec=
8391 export_dynamic_flag_spec=
8392 whole_archive_flag_spec=
8395 # PORTME fill in a description of your system's linker (not GNU ld)
8398 allow_undefined_flag=unsupported
8399 always_export_symbols=yes
8400 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'
8401 # Note: this linker hardcodes the directories in LIBPATH if there
8402 # are no directories specified by -L.
8403 hardcode_minus_L=yes
8404 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8405 # Neither direct hardcoding nor static linking is supported with a
8407 hardcode_direct=unsupported
8412 if test "$host_cpu" = ia64; then
8413 # On IA64, the linker does run time linking by default, so we don't
8414 # have to do anything special.
8415 aix_use_runtimelinking=no
8416 exp_sym_flag='-Bexport'
8419 # If we're using GNU nm, then we don't want the "-C" option.
8420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8421 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8422 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'
8424 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'
8426 aix_use_runtimelinking=no
8428 # Test if we are trying to use run time linking or normal
8429 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8430 # need to do runtime linking.
8431 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8432 for ld_flag in $LDFLAGS; do
8433 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8434 aix_use_runtimelinking=yes
8441 exp_sym_flag='-bexport'
8442 no_entry_flag='-bnoentry'
8445 # When large executables or shared objects are built, AIX ld can
8446 # have problems creating the table of contents. If linking a library
8447 # or program results in "error TOC overflow" add -mminimal-toc to
8448 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8449 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8453 hardcode_direct_absolute=yes
8454 hardcode_libdir_separator=':'
8455 link_all_deplibs=yes
8456 file_list_spec='${wl}-f,'
8458 if test "$GCC" = yes; then
8459 case $host_os in aix4.[012]|aix4.[012].*)
8460 # We only want to do this on AIX 4.2 and lower, the check
8461 # below for broken collect2 doesn't work under 4.3+
8462 collect2name=`${CC} -print-prog-name=collect2`
8463 if test -f "$collect2name" &&
8464 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8466 # We have reworked collect2
8469 # We have old collect2
8470 hardcode_direct=unsupported
8471 # It fails to find uninstalled libraries when the uninstalled
8472 # path is not listed in the libpath. Setting hardcode_minus_L
8473 # to unsupported forces relinking
8474 hardcode_minus_L=yes
8475 hardcode_libdir_flag_spec='-L$libdir'
8476 hardcode_libdir_separator=
8480 shared_flag='-shared'
8481 if test "$aix_use_runtimelinking" = yes; then
8482 shared_flag="$shared_flag "'${wl}-G'
8486 if test "$host_cpu" = ia64; then
8487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8488 # chokes on -Wl,-G. The following line is correct:
8491 if test "$aix_use_runtimelinking" = yes; then
8492 shared_flag='${wl}-G'
8494 shared_flag='${wl}-bM:SRE'
8499 # It seems that -bexpall does not export symbols beginning with
8500 # underscore (_), so it is better to generate a list of symbols to export.
8501 always_export_symbols=yes
8502 if test "$aix_use_runtimelinking" = yes; then
8503 # Warning - without using the other runtime loading flags (-brtl),
8504 # -berok will link without error, but may produce a broken library.
8505 allow_undefined_flag='-berok'
8506 # Determine the default libpath from the value encoded in an
8508 if test x$gcc_no_link = xyes; then
8509 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8511 { (exit 1); exit 1; }; }
8513 cat >conftest.$ac_ext <<_ACEOF
8516 cat confdefs.h >>conftest.$ac_ext
8517 cat >>conftest.$ac_ext <<_ACEOF
8518 /* end confdefs.h. */
8528 rm -f conftest.$ac_objext conftest$ac_exeext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530 (eval $ac_link) 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8551 lt_aix_libpath_sed='
8552 /Import File Strings/,/^$/ {
8558 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8559 # Check for a 64-bit object if we didn't find anything.
8560 if test -z "$aix_libpath"; then
8561 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8568 rm -f conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8572 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8573 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"
8575 if test "$host_cpu" = ia64; then
8576 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8577 allow_undefined_flag="-z nodefs"
8578 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"
8580 # Determine the default libpath from the value encoded in an
8582 if test x$gcc_no_link = xyes; then
8583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8585 { (exit 1); exit 1; }; }
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8602 rm -f conftest.$ac_objext conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604 (eval $ac_link) 2>conftest.er1
8606 grep -v '^ *+' conftest.er1 >conftest.err
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } &&
8611 { ac_try='test -z "$ac_c_werror_flag"
8612 || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8625 lt_aix_libpath_sed='
8626 /Import File Strings/,/^$/ {
8632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8633 # Check for a 64-bit object if we didn't find anything.
8634 if test -z "$aix_libpath"; then
8635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8642 rm -f conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
8644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8647 # Warning - without using the other run time loading flags,
8648 # -berok will link without error, but may produce a broken library.
8649 no_undefined_flag=' ${wl}-bernotok'
8650 allow_undefined_flag=' ${wl}-berok'
8651 # Exported symbols can be pulled into shared objects from archives
8652 whole_archive_flag_spec='$convenience'
8653 archive_cmds_need_lc=yes
8654 # This is similar to how AIX traditionally builds its shared libraries.
8655 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'
8661 if test "$host_cpu" = m68k; then
8662 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)'
8663 hardcode_libdir_flag_spec='-L$libdir'
8664 hardcode_minus_L=yes
8666 # see comment about different semantics on the GNU ld section
8671 export_dynamic_flag_spec=-rdynamic
8674 cygwin* | mingw* | pw32*)
8675 # When not using gcc, we currently assume that we are using
8676 # Microsoft Visual C++.
8677 # hardcode_libdir_flag_spec is actually meaningless, as there is
8678 # no search path for DLLs.
8679 hardcode_libdir_flag_spec=' '
8680 allow_undefined_flag=unsupported
8681 # Tell ltmain to make .lib files, not .a files.
8683 # Tell ltmain to make .dll files, not .so files.
8685 # FIXME: Setting linknames here is a bad hack.
8686 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8687 # The linker will automatically build a .lib file if we build a DLL.
8688 old_archive_from_new_cmds='true'
8689 # FIXME: Should let the user specify the lib program.
8690 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8691 fix_srcfile_path='`cygpath -w "$srcfile"`'
8692 enable_shared_with_static_runtimes=yes
8695 darwin* | rhapsody*)
8697 rhapsody* | darwin1.[012])
8698 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8701 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8703 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8706 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8711 archive_cmds_need_lc=no
8713 hardcode_automatic=yes
8714 hardcode_shlibpath_var=unsupported
8715 whole_archive_flag_spec=''
8716 link_all_deplibs=yes
8717 if test "$GCC" = yes ; then
8718 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 lt_cv_apple_cc_single_mod=no
8722 if test -z "${LT_MULTI_MODULE}"; then
8723 # By default we will add the -single_module flag. You can override
8724 # by either setting the environment variable LT_MULTI_MODULE
8725 # non-empty at configure time, or by adding -multi-module to the
8727 echo "int foo(void){return 1;}" > conftest.c
8728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib ${wl}-single_module conftest.c
8730 if test -f libconftest.dylib; then
8731 lt_cv_apple_cc_single_mod=yes
8732 rm libconftest.dylib
8738 output_verbose_link_cmd=echo
8739 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8740 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8741 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8743 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8744 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8746 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8747 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8749 case $cc_basename in
8751 output_verbose_link_cmd=echo
8752 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8753 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8754 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8755 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8756 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_libdir_flag_spec='-L$libdir'
8768 hardcode_shlibpath_var=no
8775 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8776 # support. Future versions do this automatically, but an explicit c++rt0.o
8777 # does not break anything, and helps significantly (at the cost of a little
8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8781 hardcode_libdir_flag_spec='-R$libdir'
8783 hardcode_shlibpath_var=no
8786 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_minus_L=yes
8791 hardcode_shlibpath_var=no
8794 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8795 freebsd* | dragonfly*)
8796 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8797 hardcode_libdir_flag_spec='-R$libdir'
8799 hardcode_shlibpath_var=no
8803 if test "$GCC" = yes; then
8804 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'
8806 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'
8808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8809 hardcode_libdir_separator=:
8812 # hardcode_minus_L: Not really in the search PATH,
8813 # but as the default location of the library.
8814 hardcode_minus_L=yes
8815 export_dynamic_flag_spec='${wl}-E'
8819 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8820 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8824 if test "$with_gnu_ld" = no; then
8825 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8826 hardcode_libdir_flag_spec_ld='+b $libdir'
8827 hardcode_libdir_separator=:
8829 hardcode_direct_absolute=yes
8830 export_dynamic_flag_spec='${wl}-E'
8831 # hardcode_minus_L: Not really in the search PATH,
8832 # but as the default location of the library.
8833 hardcode_minus_L=yes
8838 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8841 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8863 if test "$with_gnu_ld" = no; then
8864 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8865 hardcode_libdir_separator=:
8870 hardcode_shlibpath_var=no
8874 hardcode_direct_absolute=yes
8875 export_dynamic_flag_spec='${wl}-E'
8877 # hardcode_minus_L: Not really in the search PATH,
8878 # but as the default location of the library.
8879 hardcode_minus_L=yes
8885 irix5* | irix6* | nonstopux*)
8886 if test "$GCC" = yes; then
8887 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'
8888 # Try to use the -exported_symbol ld option, if it does not
8889 # work, assume that -exports_file does not work either and
8890 # implicitly export all symbols.
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8893 if test x$gcc_no_link = xyes; then
8894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8896 { (exit 1); exit 1; }; }
8898 cat >conftest.$ac_ext <<_ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag"
8911 || test ! -s conftest.err'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; } &&
8917 { ac_try='test -s conftest$ac_exeext'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; }; then
8923 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'
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8930 rm -f conftest.err conftest.$ac_objext \
8931 conftest$ac_exeext conftest.$ac_ext
8932 LDFLAGS="$save_LDFLAGS"
8934 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'
8935 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'
8937 archive_cmds_need_lc='no'
8938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8939 hardcode_libdir_separator=:
8941 link_all_deplibs=yes
8945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8948 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8950 hardcode_libdir_flag_spec='-R$libdir'
8952 hardcode_shlibpath_var=no
8956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8959 hardcode_libdir_separator=:
8960 hardcode_shlibpath_var=no
8968 hardcode_shlibpath_var=no
8969 hardcode_direct_absolute=yes
8970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8972 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8974 export_dynamic_flag_spec='${wl}-E'
8977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979 hardcode_libdir_flag_spec='-R$libdir'
8982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8983 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8990 hardcode_libdir_flag_spec='-L$libdir'
8991 hardcode_minus_L=yes
8992 allow_undefined_flag=unsupported
8993 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'
8994 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8998 if test "$GCC" = yes; then
8999 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000 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'
9002 allow_undefined_flag=' -expect_unresolved \*'
9003 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'
9005 archive_cmds_need_lc='no'
9006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007 hardcode_libdir_separator=:
9010 osf4* | osf5*) # as osf3* with the addition of -msym flag
9011 if test "$GCC" = yes; then
9012 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9013 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'
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9016 allow_undefined_flag=' -expect_unresolved \*'
9017 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'
9018 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~
9019 $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'
9021 # Both c and cxx compiler support -rpath directly
9022 hardcode_libdir_flag_spec='-rpath $libdir'
9024 archive_cmds_need_lc='no'
9025 hardcode_libdir_separator=:
9029 no_undefined_flag=' -z defs'
9030 if test "$GCC" = yes; then
9032 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9034 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9036 case `$CC -V 2>&1` in
9039 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9041 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9045 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9047 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9051 hardcode_libdir_flag_spec='-R$libdir'
9052 hardcode_shlibpath_var=no
9054 solaris2.[0-5] | solaris2.[0-5].*) ;;
9056 # The compiler driver will combine and reorder linker options,
9057 # but understands `-z linker_flag'. GCC discards it without `$wl',
9058 # but is careful enough not to reorder.
9059 # Supported since Solaris 2.6 (maybe 2.5.1?)
9060 if test "$GCC" = yes; then
9061 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9067 link_all_deplibs=yes
9071 if test "x$host_vendor" = xsequent; then
9072 # Use $CC to link under sequent, because it throws in some extra .o
9073 # files that make .init and .fini sections work.
9074 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9078 hardcode_libdir_flag_spec='-L$libdir'
9080 hardcode_minus_L=yes
9081 hardcode_shlibpath_var=no
9085 case $host_vendor in
9087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes # is this really true???
9091 ## LD is ld it makes a PLAMLIB
9092 ## CC just makes a GrossModule.
9093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9094 reload_cmds='$CC -r -o $output$reload_objs'
9098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9102 runpath_var='LD_RUN_PATH'
9103 hardcode_shlibpath_var=no
9107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_shlibpath_var=no
9109 export_dynamic_flag_spec='-Bexport'
9113 if test -d /usr/nec; then
9114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115 hardcode_shlibpath_var=no
9116 runpath_var=LD_RUN_PATH
9117 hardcode_runpath_var=yes
9122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9123 no_undefined_flag='${wl}-z,text'
9124 archive_cmds_need_lc=no
9125 hardcode_shlibpath_var=no
9126 runpath_var='LD_RUN_PATH'
9128 if test "$GCC" = yes; then
9129 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9132 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 sysv5* | sco3.2v5* | sco5v6*)
9138 # Note: We can NOT use -z defs as we might desire, because we do not
9139 # link with -lc, and that would cause any symbols used from libc to
9140 # always be unresolved, which means just about no library would
9141 # ever link correctly. If we're not using GNU ld we use -z text
9142 # though, which does catch some bad symbols but isn't as heavy-handed
9144 no_undefined_flag='${wl}-z,text'
9145 allow_undefined_flag='${wl}-z,nodefs'
9146 archive_cmds_need_lc=no
9147 hardcode_shlibpath_var=no
9148 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9149 hardcode_libdir_separator=':'
9150 link_all_deplibs=yes
9151 export_dynamic_flag_spec='${wl}-Bexport'
9152 runpath_var='LD_RUN_PATH'
9154 if test "$GCC" = yes; then
9155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9156 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9159 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_shlibpath_var=no
9174 if test x$host_vendor = xsni; then
9176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9177 export_dynamic_flag_spec='${wl}-Blargedynsym'
9183 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9184 echo "${ECHO_T}$ld_shlibs" >&6
9185 test "$ld_shlibs" = no && can_build_shared=no
9187 with_gnu_ld=$with_gnu_ld
9204 # Do we need to explicitly link libc?
9206 case "x$archive_cmds_need_lc" in
9208 # Assume -lc should be added
9209 archive_cmds_need_lc=yes
9211 if test "$enable_shared" = yes && test "$GCC" = yes; then
9212 case $archive_cmds in
9214 # FIXME: we may have to deal with multi-command sequences.
9217 # Test whether the compiler implicitly links with -lc since on some
9218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9219 # to ld, don't add -lc before -lgcc.
9220 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9221 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9226 (eval $ac_compile) 2>&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } 2>conftest.err; then
9232 libobjs=conftest.$ac_objext
9234 wl=$lt_prog_compiler_wl
9235 pic_flag=$lt_prog_compiler_pic
9241 lt_save_allow_undefined_flag=$allow_undefined_flag
9242 allow_undefined_flag=
9243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9244 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }
9249 archive_cmds_need_lc=no
9251 archive_cmds_need_lc=yes
9253 allow_undefined_flag=$lt_save_allow_undefined_flag
9255 cat conftest.err 1>&5
9258 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9259 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9422 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9423 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9425 if test "$withGCC" = yes; then
9427 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9428 *) lt_awk_arg="/^libraries:/" ;;
9430 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9431 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9432 # if the path contains ";" then we assume it to be the separator
9433 # otherwise default to the standard path separator (i.e. ":") - it is
9434 # assumed that no part of a normal pathname contains ";" but that should
9435 # okay in the real world where ";" in dirpaths is itself problematic.
9436 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9440 # Ok, now we have the path, separated by spaces, we can step through it
9441 # and add multilib dir if necessary.
9442 lt_tmp_lt_search_path_spec=
9443 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9444 for lt_sys_path in $lt_search_path_spec; do
9445 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9446 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9448 test -d "$lt_sys_path" && \
9449 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9452 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9453 BEGIN {RS=" "; FS="/|\n";} {
9456 for (lt_i = NF; lt_i > 0; lt_i--) {
9457 if ($lt_i != "" && $lt_i != ".") {
9458 if ($lt_i == "..") {
9461 if (lt_count == 0) {
9462 lt_foo="/" $lt_i lt_foo;
9469 if (lt_foo != "") { lt_freq[lt_foo]++; }
9470 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9472 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9477 libname_spec='lib$name'
9485 shlibpath_overrides_runpath=unknown
9487 dynamic_linker="$host_os ld.so"
9488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9489 need_lib_prefix=unknown
9490 hardcode_into_libs=no
9492 # when you set need_version to no, make sure it does not cause -set_version
9493 # flags to be left without arguments
9494 need_version=unknown
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9500 shlibpath_var=LIBPATH
9502 # AIX 3 has no versioning support, so we append a major version to the name.
9503 soname_spec='${libname}${release}${shared_ext}$major'
9510 hardcode_into_libs=yes
9511 if test "$host_cpu" = ia64; then
9512 # AIX 5 supports IA64
9513 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9514 shlibpath_var=LD_LIBRARY_PATH
9516 # With GCC up to 2.95.x, collect2 would create an import file
9517 # for dependence libraries. The import file would start with
9518 # the line `#! .'. This would cause the generated library to
9519 # depend on `.', always an invalid library. This was fixed in
9520 # development snapshots of GCC prior to 3.0.
9522 aix4 | aix4.[01] | aix4.[01].*)
9523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9525 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9532 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9533 # soname into executable. Probably we can add versioning support to
9534 # collect2, so additional links can be useful in future.
9535 if test "$aix_use_runtimelinking" = yes; then
9536 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9537 # instead of lib<name>.a to let people know that these are not
9538 # typical AIX shared libraries.
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 # We preserve .a as extension for shared libraries through AIX4.2
9542 # and later when we are not doing run time linking.
9543 library_names_spec='${libname}${release}.a $libname.a'
9544 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LIBPATH
9551 if test "$host_cpu" = m68k; then
9552 library_names_spec='$libname.ixlibrary $libname.a'
9553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9554 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'
9561 library_names_spec='${libname}${shared_ext}'
9562 dynamic_linker="$host_os ld.so"
9563 shlibpath_var=LIBRARY_PATH
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9574 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9575 # the default ld.so.conf also contains /usr/contrib/lib and
9576 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9577 # libtool to hard-code these into programs
9580 cygwin* | mingw* | pw32*)
9581 version_type=windows
9586 case $withGCC,$host_os in
9587 yes,cygwin* | yes,mingw* | yes,pw32*)
9588 library_names_spec='$libname.dll.a'
9589 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9590 postinstall_cmds='base_file=`basename \${file}`~
9591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9592 dldir=$destdir/`dirname \$dlpath`~
9593 test -d \$dldir || mkdir -p \$dldir~
9594 $install_prog $dir/$dlname \$dldir/$dlname~
9595 chmod a+x \$dldir/$dlname~
9596 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9597 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9600 dlpath=$dir/\$dldll~
9602 shlibpath_overrides_runpath=yes
9606 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9608 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9611 # MinGW DLLs use traditional 'lib' prefix
9612 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9613 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9614 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9615 # It is most probably a Windows format PATH printed by
9616 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9617 # path with ; separators, and with drive letters. We can handle the
9618 # drive letters (cygwin fileutils understands them), so leave them,
9619 # especially as we might pass files found there to a mingw objdump,
9620 # which wouldn't understand a cygwinified path. Ahh.
9621 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9627 # pw32 DLLs use 'pw' prefix rather than 'lib'
9628 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9634 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9637 dynamic_linker='Win32 ld.exe'
9638 # FIXME: first we should search . and the directory the executable is in
9642 darwin* | rhapsody*)
9643 dynamic_linker="$host_os dyld"
9647 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9648 soname_spec='${libname}${release}${major}$shared_ext'
9649 shlibpath_overrides_runpath=yes
9650 shlibpath_var=DYLD_LIBRARY_PATH
9651 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9653 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9654 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9670 freebsd* | dragonfly*)
9671 # DragonFly does not have aout. When/if they implement a new
9672 # versioning mechanism, adjust this.
9673 if test -x /usr/bin/objformat; then
9674 objformat=`/usr/bin/objformat`
9677 freebsd[123]*) objformat=aout ;;
9681 version_type=freebsd-$objformat
9682 case $version_type in
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9693 shlibpath_var=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath=yes
9698 freebsd3.[01]* | freebsdelf3.[01]*)
9699 shlibpath_overrides_runpath=yes
9700 hardcode_into_libs=yes
9702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9707 *) # from 4.6 on, and DragonFly
9708 shlibpath_overrides_runpath=yes
9709 hardcode_into_libs=yes
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9719 soname_spec='${libname}${release}${shared_ext}$major'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 hardcode_into_libs=yes
9724 hpux9* | hpux10* | hpux11*)
9725 # Give a soname corresponding to the major version so that dld.sl refuses to
9726 # link against other versions.
9733 hardcode_into_libs=yes
9734 dynamic_linker="$host_os dld.so"
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 if test "X$HPUX_IA64_MODE" = X32; then
9740 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9742 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9748 hardcode_into_libs=yes
9749 dynamic_linker="$host_os dld.sl"
9750 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9751 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9759 dynamic_linker="$host_os dld.sl"
9760 shlibpath_var=SHLIB_PATH
9761 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9766 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9767 postinstall_cmds='chmod 555 $lib'
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 shlibpath_overrides_runpath=no
9779 hardcode_into_libs=yes
9782 irix5* | irix6* | nonstopux*)
9784 nonstopux*) version_type=nonstopux ;;
9786 if test "$lt_cv_prog_gnu_ld" = yes; then
9794 soname_spec='${libname}${release}${shared_ext}$major'
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9797 irix5* | nonstopux*)
9801 case $LD in # libtool.m4 will add one of these switches to LD
9802 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9803 libsuff= shlibsuff= libmagic=32-bit;;
9804 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9805 libsuff=32 shlibsuff=N32 libmagic=N32;;
9806 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9807 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9808 *) libsuff= shlibsuff= libmagic=never-match;;
9812 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9813 shlibpath_overrides_runpath=no
9814 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9815 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9816 hardcode_into_libs=yes
9819 # No shared lib support for Linux oldld, aout, or coff.
9820 linux*oldld* | linux*aout* | linux*coff*)
9824 # This must be Linux ELF.
9825 linux* | k*bsd*-gnu)
9829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=no
9834 # Some binutils ld are patched to set DT_RUNPATH
9835 save_LDFLAGS=$LDFLAGS
9837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9839 if test x$gcc_no_link = xyes; then
9840 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9842 { (exit 1); exit 1; }; }
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9882 shlibpath_overrides_runpath=yes
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9890 rm -f conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LDFLAGS=$save_LDFLAGS
9895 # This implies no fast_install, which is unacceptable.
9896 # Some rework will be needed to allow for fast_install
9897 # before this can be enabled.
9898 hardcode_into_libs=yes
9900 # Append ld.so.conf contents to the search path
9901 if test -f /etc/ld.so.conf; then
9902 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9906 # We used to test for /lib/ld.so.1 and disable shared libraries on
9907 # powerpc, because MkLinux only supported shared libraries with the
9908 # GNU dynamic linker. Since this was broken with cross compilers,
9909 # most powerpc-linux boxes support dynamic linking these days and
9910 # people can always --disable-shared, the test was removed, and we
9911 # assume the GNU/Linux dynamic linker is in use.
9912 dynamic_linker='GNU/Linux ld.so'
9919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9922 dynamic_linker='NetBSD (a.out) ld.so'
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 dynamic_linker='NetBSD ld.elf_so'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 shlibpath_overrides_runpath=yes
9930 hardcode_into_libs=yes
9935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 shlibpath_var=LD_LIBRARY_PATH
9937 shlibpath_overrides_runpath=yes
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 shlibpath_overrides_runpath=no
9948 hardcode_into_libs=yes
9949 dynamic_linker='ldqnx.so'
9954 sys_lib_dlsearch_path_spec="/usr/lib"
9956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9959 *) need_version=no ;;
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9966 openbsd2.[89] | openbsd2.[89].*)
9967 shlibpath_overrides_runpath=no
9970 shlibpath_overrides_runpath=yes
9974 shlibpath_overrides_runpath=yes
9979 libname_spec='$name'
9982 library_names_spec='$libname${shared_ext} $libname.a'
9983 dynamic_linker='OS/2 ld.exe'
9984 shlibpath_var=LIBPATH
9987 osf3* | osf4* | osf5*)
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007 soname_spec='${libname}${release}${shared_ext}$major'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 shlibpath_overrides_runpath=yes
10010 hardcode_into_libs=yes
10011 # ldd complains unless libraries are executable
10012 postinstall_cmds='chmod +x $lib'
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10019 shlibpath_var=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath=yes
10021 if test "$with_gnu_ld" = yes; then
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 case $host_vendor in
10034 shlibpath_overrides_runpath=no
10036 runpath_var=LD_RUN_PATH
10044 shlibpath_overrides_runpath=no
10045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10051 if test -d /usr/nec ;then
10053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10054 soname_spec='$libname${shared_ext}.$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10060 version_type=freebsd-elf
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10066 shlibpath_overrides_runpath=yes
10067 hardcode_into_libs=yes
10068 if test "$with_gnu_ld" = yes; then
10069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10078 sys_lib_dlsearch_path_spec='/usr/lib'
10082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10086 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=no
10089 hardcode_into_libs=yes
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LD_LIBRARY_PATH
10103 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10104 echo "${ECHO_T}$dynamic_linker" >&6
10105 test "$dynamic_linker" = no && can_build_shared=no
10107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10108 if test "$GCC" = yes; then
10109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10198 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10199 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10201 if test -n "$hardcode_libdir_flag_spec" ||
10202 test -n "$runpath_var" ||
10203 test "X$hardcode_automatic" = "Xyes" ; then
10205 # We can hardcode non-existent directories.
10206 if test "$hardcode_direct" != no &&
10207 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10208 # have to relink, otherwise we might link with an installed library
10209 # when we should be linking with a yet-to-be-installed one
10210 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10211 test "$hardcode_minus_L" != no; then
10212 # Linking always hardcodes the temporary library directory.
10213 hardcode_action=relink
10215 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10216 hardcode_action=immediate
10219 # We cannot hardcode anything, or else we can only hardcode existing
10221 hardcode_action=unsupported
10223 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10224 echo "${ECHO_T}$hardcode_action" >&6
10226 if test "$hardcode_action" = relink ||
10227 test "$inherit_rpath" = yes; then
10228 # Fast installation is not supported
10229 enable_fast_install=no
10230 elif test "$shlibpath_overrides_runpath" = yes ||
10231 test "$enable_shared" = no; then
10232 # Fast installation is not necessary
10233 enable_fast_install=needless
10241 if test "x$enable_dlopen" != xyes; then
10242 enable_dlopen=unknown
10243 enable_dlopen_self=unknown
10244 enable_dlopen_self_static=unknown
10251 lt_cv_dlopen="load_add_on"
10253 lt_cv_dlopen_self=yes
10257 lt_cv_dlopen="LoadLibrary"
10262 lt_cv_dlopen="dlopen"
10267 # if libdl is installed we need to link against it
10268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10269 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 ac_check_lib_save_LIBS=$LIBS
10275 if test x$gcc_no_link = xyes; then
10276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10278 { (exit 1); exit 1; }; }
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10287 /* Override any gcc2 internal prototype to avoid an error. */
10291 /* We use char because int might match the return type of a gcc2
10292 builtin and then its argument prototype would still apply. */
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_lib_dl_dlopen=yes
10326 echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_dl_dlopen=no
10331 rm -f conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
10333 LIBS=$ac_check_lib_save_LIBS
10335 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10336 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10337 if test $ac_cv_lib_dl_dlopen = yes; then
10338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10341 lt_cv_dlopen="dyld"
10343 lt_cv_dlopen_self=yes
10350 echo "$as_me:$LINENO: checking for shl_load" >&5
10351 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10352 if test "${ac_cv_func_shl_load+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 if test x$gcc_no_link = xyes; then
10356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10358 { (exit 1); exit 1; }; }
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10368 #define shl_load innocuous_shl_load
10370 /* System header to define __stub macros and hopefully few prototypes,
10371 which can conflict with char shl_load (); below.
10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373 <limits.h> exists even on freestanding compilers. */
10376 # include <limits.h>
10378 # include <assert.h>
10383 /* Override any gcc2 internal prototype to avoid an error. */
10388 /* We use char because int might match the return type of a gcc2
10389 builtin and then its argument prototype would still apply. */
10391 /* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
10394 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10397 char (*f) () = shl_load;
10406 return f != shl_load;
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413 (eval $ac_link) 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } &&
10420 { ac_try='test -z "$ac_c_werror_flag"
10421 || test ! -s conftest.err'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_func_shl_load=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10438 ac_cv_func_shl_load=no
10440 rm -f conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10445 if test $ac_cv_func_shl_load = yes; then
10446 lt_cv_dlopen="shl_load"
10448 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 ac_check_lib_save_LIBS=$LIBS
10455 if test x$gcc_no_link = xyes; then
10456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10458 { (exit 1); exit 1; }; }
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10467 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_cv_lib_dld_shl_load=yes
10506 echo "$as_me: failed program was:" >&5
10507 sed 's/^/| /' conftest.$ac_ext >&5
10509 ac_cv_lib_dld_shl_load=no
10511 rm -f conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10517 if test $ac_cv_lib_dld_shl_load = yes; then
10518 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10520 echo "$as_me:$LINENO: checking for dlopen" >&5
10521 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10522 if test "${ac_cv_func_dlopen+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 if test x$gcc_no_link = xyes; then
10526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10528 { (exit 1); exit 1; }; }
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10538 #define dlopen innocuous_dlopen
10540 /* System header to define __stub macros and hopefully few prototypes,
10541 which can conflict with char dlopen (); below.
10542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10543 <limits.h> exists even on freestanding compilers. */
10546 # include <limits.h>
10548 # include <assert.h>
10553 /* Override any gcc2 internal prototype to avoid an error. */
10558 /* We use char because int might match the return type of a gcc2
10559 builtin and then its argument prototype would still apply. */
10561 /* The GNU C library defines this for functions which it implements
10562 to always fail with ENOSYS. Some functions are actually named
10563 something starting with __ and the normal name is an alias. */
10564 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10567 char (*f) () = dlopen;
10576 return f != dlopen;
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583 (eval $ac_link) 2>conftest.er1
10585 grep -v '^ *+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } &&
10590 { ac_try='test -z "$ac_c_werror_flag"
10591 || test ! -s conftest.err'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; } &&
10597 { ac_try='test -s conftest$ac_exeext'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_cv_func_dlopen=yes
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_cv_func_dlopen=no
10610 rm -f conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10613 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10615 if test $ac_cv_func_dlopen = yes; then
10616 lt_cv_dlopen="dlopen"
10618 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10619 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 ac_check_lib_save_LIBS=$LIBS
10625 if test x$gcc_no_link = xyes; then
10626 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10627 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10628 { (exit 1); exit 1; }; }
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10637 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654 (eval $ac_link) 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } &&
10661 { ac_try='test -z "$ac_c_werror_flag"
10662 || test ! -s conftest.err'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; } &&
10668 { ac_try='test -s conftest$ac_exeext'
10669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670 (eval $ac_try) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10674 ac_cv_lib_dl_dlopen=yes
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ac_cv_lib_dl_dlopen=no
10681 rm -f conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10687 if test $ac_cv_lib_dl_dlopen = yes; then
10688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10690 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lsvld $LIBS"
10697 if test x$gcc_no_link = xyes; then
10698 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10700 { (exit 1); exit 1; }; }
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10709 /* Override any gcc2 internal prototype to avoid an error. */
10713 /* We use char because int might match the return type of a gcc2
10714 builtin and then its argument prototype would still apply. */
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10726 (eval $ac_link) 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
10733 { ac_try='test -z "$ac_c_werror_flag"
10734 || test ! -s conftest.err'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_svld_dlopen=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_svld_dlopen=no
10753 rm -f conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 LIBS=$ac_check_lib_save_LIBS
10757 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10758 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10759 if test $ac_cv_lib_svld_dlopen = yes; then
10760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10762 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10763 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10764 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 ac_check_lib_save_LIBS=$LIBS
10769 if test x$gcc_no_link = xyes; then
10770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10772 { (exit 1); exit 1; }; }
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10781 /* Override any gcc2 internal prototype to avoid an error. */
10785 /* We use char because int might match the return type of a gcc2
10786 builtin and then its argument prototype would still apply. */
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10798 (eval $ac_link) 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest$ac_exeext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_lib_dld_dld_link=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_lib_dld_dld_link=no
10825 rm -f conftest.err conftest.$ac_objext \
10826 conftest$ac_exeext conftest.$ac_ext
10827 LIBS=$ac_check_lib_save_LIBS
10829 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10830 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10831 if test $ac_cv_lib_dld_dld_link = yes; then
10832 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10853 if test "x$lt_cv_dlopen" != xno; then
10859 case $lt_cv_dlopen in
10861 save_CPPFLAGS="$CPPFLAGS"
10862 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10864 save_LDFLAGS="$LDFLAGS"
10865 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10868 LIBS="$lt_cv_dlopen_libs $LIBS"
10870 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10871 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10872 if test "${lt_cv_dlopen_self+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 if test "$cross_compiling" = yes; then :
10876 lt_cv_dlopen_self=cross
10878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10879 lt_status=$lt_dlunknown
10880 cat > conftest.$ac_ext <<_LT_EOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10891 # define LT_DLGLOBAL RTLD_GLOBAL
10894 # define LT_DLGLOBAL DL_GLOBAL
10896 # define LT_DLGLOBAL 0
10900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10901 find out it does not work in some platform. */
10902 #ifndef LT_DLLAZY_OR_NOW
10904 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10907 # define LT_DLLAZY_OR_NOW DL_LAZY
10910 # define LT_DLLAZY_OR_NOW RTLD_NOW
10913 # define LT_DLLAZY_OR_NOW DL_NOW
10915 # define LT_DLLAZY_OR_NOW 0
10923 extern "C" void exit (int);
10926 void fnord() { int i=42;}
10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930 int status = $lt_dlunknown;
10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10935 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10936 /* dlclose (self); */
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>&5
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10949 (./conftest; exit; ) >&5 2>/dev/null
10951 case x$lt_status in
10952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10957 # compilation failed
10958 lt_cv_dlopen_self=no
10965 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10966 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10968 if test "x$lt_cv_dlopen_self" = xyes; then
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10970 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10971 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10972 if test "${lt_cv_dlopen_self_static+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self_static=cross
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10991 # define LT_DLGLOBAL RTLD_GLOBAL
10994 # define LT_DLGLOBAL DL_GLOBAL
10996 # define LT_DLGLOBAL 0
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11007 # define LT_DLLAZY_OR_NOW DL_LAZY
11010 # define LT_DLLAZY_OR_NOW RTLD_NOW
11013 # define LT_DLLAZY_OR_NOW DL_NOW
11015 # define LT_DLLAZY_OR_NOW 0
11023 extern "C" void exit (int);
11026 void fnord() { int i=42;}
11029 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11030 int status = $lt_dlunknown;
11034 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11035 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11036 /* dlclose (self); */
11044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11049 (./conftest; exit; ) >&5 2>/dev/null
11051 case x$lt_status in
11052 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11053 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11054 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11057 # compilation failed
11058 lt_cv_dlopen_self_static=no
11065 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11066 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11069 CPPFLAGS="$save_CPPFLAGS"
11070 LDFLAGS="$save_LDFLAGS"
11075 case $lt_cv_dlopen_self in
11076 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11077 *) enable_dlopen_self=unknown ;;
11080 case $lt_cv_dlopen_self_static in
11081 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11082 *) enable_dlopen_self_static=unknown ;;
11104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11106 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11109 echo "$as_me:$LINENO: result: yes" >&5
11110 echo "${ECHO_T}yes" >&6
11112 # FIXME - insert some real tests, host_os isn't really good enough
11115 if test -n "$STRIP" ; then
11116 striplib="$STRIP -x"
11117 old_striplib="$STRIP -S"
11118 echo "$as_me:$LINENO: result: yes" >&5
11119 echo "${ECHO_T}yes" >&6
11121 echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6
11126 echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11143 # Report which library types will actually be built
11144 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11145 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11146 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11147 echo "${ECHO_T}$can_build_shared" >&6
11149 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11150 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11151 test "$can_build_shared" = "no" && enable_shared=no
11153 # On AIX, shared libraries and static libraries use the same namespace, and
11154 # are all built from PIC.
11157 test "$enable_shared" = yes && enable_static=no
11158 if test -n "$RANLIB"; then
11159 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11160 postinstall_cmds='$RANLIB $lib'
11165 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11166 test "$enable_shared" = yes && enable_static=no
11170 echo "$as_me:$LINENO: result: $enable_shared" >&5
11171 echo "${ECHO_T}$enable_shared" >&6
11173 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11174 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11175 # Make sure either enable_shared or enable_static is yes.
11176 test "$enable_shared" = yes || enable_static=yes
11177 echo "$as_me:$LINENO: result: $enable_static" >&5
11178 echo "${ECHO_T}$enable_static" >&6
11185 ac_cpp='$CPP $CPPFLAGS'
11186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11194 ac_cpp='$CXXCPP $CPPFLAGS'
11195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11199 archive_cmds_need_lc_CXX=no
11200 allow_undefined_flag_CXX=
11201 always_export_symbols_CXX=no
11202 archive_expsym_cmds_CXX=
11203 compiler_needs_object_CXX=no
11204 export_dynamic_flag_spec_CXX=
11205 hardcode_direct_CXX=no
11206 hardcode_direct_absolute_CXX=no
11207 hardcode_libdir_flag_spec_CXX=
11208 hardcode_libdir_flag_spec_ld_CXX=
11209 hardcode_libdir_separator_CXX=
11210 hardcode_minus_L_CXX=no
11211 hardcode_shlibpath_var_CXX=unsupported
11212 hardcode_automatic_CXX=no
11213 inherit_rpath_CXX=no
11215 module_expsym_cmds_CXX=
11216 link_all_deplibs_CXX=unknown
11217 old_archive_cmds_CXX=$old_archive_cmds
11218 no_undefined_flag_CXX=
11219 whole_archive_flag_spec_CXX=
11220 enable_shared_with_static_runtimes_CXX=no
11222 # Source file extension for C++ test sources.
11225 # Object file extension for compiled C++ test sources.
11229 # No sense in running all these tests if we already determined that
11230 # the CXX compiler isn't working. Some variables (like enable_shared)
11231 # are currently assumed to apply to all compilers on this platform,
11232 # and will be corrupted by setting them based on a non-working compiler.
11233 if test "$_lt_caught_CXX_error" != yes; then
11234 # Code to be used in simple compile tests
11235 lt_simple_compile_test_code="int some_variable = 0;"
11237 # Code to be used in simple link tests
11238 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11240 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11247 # If no C compiler was specified, use CC.
11250 # If no C compiler flags were specified, use CFLAGS.
11251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11253 # Allow CC to be a program name with arguments.
11257 # save warnings/boilerplate of simple test code
11258 ac_outfile=conftest.$ac_objext
11259 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11261 _lt_compiler_boilerplate=`cat conftest.err`
11264 ac_outfile=conftest.$ac_objext
11265 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11267 _lt_linker_boilerplate=`cat conftest.err`
11271 # Allow CC to be a program name with arguments.
11276 lt_save_with_gnu_ld=$with_gnu_ld
11277 lt_save_path_LD=$lt_cv_path_LD
11278 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11279 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11281 $as_unset lt_cv_prog_gnu_ld
11283 if test -n "${lt_cv_path_LDCXX+set}"; then
11284 lt_cv_path_LD=$lt_cv_path_LDCXX
11286 $as_unset lt_cv_path_LD
11288 test -z "${LDCXX+set}" || LD=$LDCXX
11292 for cc_temp in $compiler""; do
11294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11300 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11303 if test -n "$compiler"; then
11304 # We don't want -fno-exception when compiling C++ code, so set the
11305 # no_builtin_flag separately
11306 if test "$GXX" = yes; then
11307 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11309 lt_prog_compiler_no_builtin_flag_CXX=
11312 if test "$GXX" = yes; then
11313 # Set up default GNU C++ configuration
11317 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11318 if test "${with_gnu_ld+set}" = set; then
11319 withval="$with_gnu_ld"
11320 test "$withval" = no || with_gnu_ld=yes
11325 if test "$GCC" = yes; then
11326 # Check if gcc -print-prog-name=ld gives a path.
11327 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11328 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11331 # gcc leaves a trailing carriage return which upsets mingw
11332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11337 # Accept absolute paths.
11339 re_direlt='/[^/][^/]*/\.\./'
11340 # Canonicalize the pathname of ld
11341 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11342 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11343 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11345 test -z "$LD" && LD="$ac_prog"
11348 # If it fails, then pretend we aren't using GCC.
11352 # If it is relative, then search for the first ld in PATH.
11353 with_gnu_ld=unknown
11356 elif test "$with_gnu_ld" = yes; then
11357 echo "$as_me:$LINENO: checking for GNU ld" >&5
11358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11360 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11363 if test "${lt_cv_path_LD+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 if test -z "$LD"; then
11367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11368 for ac_dir in $PATH; do
11370 test -z "$ac_dir" && ac_dir=.
11371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11372 lt_cv_path_LD="$ac_dir/$ac_prog"
11373 # Check to see if the program is GNU ld. I'd rather use --version,
11374 # but apparently some variants of GNU ld only accept -v.
11375 # Break only if it was the GNU/non-GNU ld that we prefer.
11376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11377 *GNU* | *'with BFD'*)
11378 test "$with_gnu_ld" != no && break
11381 test "$with_gnu_ld" != yes && break
11388 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11392 LD="$lt_cv_path_LD"
11393 if test -n "$LD"; then
11394 echo "$as_me:$LINENO: result: $LD" >&5
11395 echo "${ECHO_T}$LD" >&6
11397 echo "$as_me:$LINENO: result: no" >&5
11398 echo "${ECHO_T}no" >&6
11400 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11401 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11402 { (exit 1); exit 1; }; }
11403 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11404 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11405 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11409 case `$LD -v 2>&1 </dev/null` in
11410 *GNU* | *'with BFD'*)
11411 lt_cv_prog_gnu_ld=yes
11414 lt_cv_prog_gnu_ld=no
11418 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11419 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11420 with_gnu_ld=$lt_cv_prog_gnu_ld
11428 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11429 # archiving commands below assume that GNU ld is being used.
11430 if test "$with_gnu_ld" = yes; then
11431 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432 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'
11434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11435 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11437 # If archive_cmds runs LD, not CC, wlarc should be empty
11438 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11439 # investigate it a little bit more. (MM)
11442 # ancient GNU ld didn't support --whole-archive et. al.
11443 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11444 $GREP 'no-whole-archive' > /dev/null; then
11445 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11447 whole_archive_flag_spec_CXX=
11453 # A generic and very simple default shared library creation
11454 # command for GNU C++ for the case where it uses the native
11455 # linker, instead of GNU ld. If possible, this setting should
11456 # overridden to take advantage of the native linker features on
11457 # the platform it is being used on.
11458 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11461 # Commands to make compiler produce verbose output that lists
11462 # what "hidden" libraries, object files and flags are used when
11463 # linking a shared library.
11464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11472 # PORTME: fill in a description of your system's C++ link characteristics
11473 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11474 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11478 # FIXME: insert proper C++ library support
11482 if test "$host_cpu" = ia64; then
11483 # On IA64, the linker does run time linking by default, so we don't
11484 # have to do anything special.
11485 aix_use_runtimelinking=no
11486 exp_sym_flag='-Bexport'
11489 aix_use_runtimelinking=no
11491 # Test if we are trying to use run time linking or normal
11492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11493 # need to do runtime linking.
11494 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11495 for ld_flag in $LDFLAGS; do
11498 aix_use_runtimelinking=yes
11506 exp_sym_flag='-bexport'
11507 no_entry_flag='-bnoentry'
11510 # When large executables or shared objects are built, AIX ld can
11511 # have problems creating the table of contents. If linking a library
11512 # or program results in "error TOC overflow" add -mminimal-toc to
11513 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11514 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11516 archive_cmds_CXX=''
11517 hardcode_direct_CXX=yes
11518 hardcode_direct_absolute_CXX=yes
11519 hardcode_libdir_separator_CXX=':'
11520 link_all_deplibs_CXX=yes
11521 file_list_spec_CXX='${wl}-f,'
11523 if test "$GXX" = yes; then
11524 case $host_os in aix4.[012]|aix4.[012].*)
11525 # We only want to do this on AIX 4.2 and lower, the check
11526 # below for broken collect2 doesn't work under 4.3+
11527 collect2name=`${CC} -print-prog-name=collect2`
11528 if test -f "$collect2name" &&
11529 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11531 # We have reworked collect2
11534 # We have old collect2
11535 hardcode_direct_CXX=unsupported
11536 # It fails to find uninstalled libraries when the uninstalled
11537 # path is not listed in the libpath. Setting hardcode_minus_L
11538 # to unsupported forces relinking
11539 hardcode_minus_L_CXX=yes
11540 hardcode_libdir_flag_spec_CXX='-L$libdir'
11541 hardcode_libdir_separator_CXX=
11544 shared_flag='-shared'
11545 if test "$aix_use_runtimelinking" = yes; then
11546 shared_flag="$shared_flag "'${wl}-G'
11550 if test "$host_cpu" = ia64; then
11551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11552 # chokes on -Wl,-G. The following line is correct:
11555 if test "$aix_use_runtimelinking" = yes; then
11556 shared_flag='${wl}-G'
11558 shared_flag='${wl}-bM:SRE'
11563 # It seems that -bexpall does not export symbols beginning with
11564 # underscore (_), so it is better to generate a list of symbols to
11566 always_export_symbols_CXX=yes
11567 if test "$aix_use_runtimelinking" = yes; then
11568 # Warning - without using the other runtime loading flags (-brtl),
11569 # -berok will link without error, but may produce a broken library.
11570 allow_undefined_flag_CXX='-berok'
11571 # Determine the default libpath from the value encoded in an empty
11573 if test x$gcc_no_link = xyes; then
11574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11576 { (exit 1); exit 1; }; }
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_cxx_werror_flag"
11603 || test ! -s conftest.err'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11616 lt_aix_libpath_sed='
11617 /Import File Strings/,/^$/ {
11623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11624 # Check for a 64-bit object if we didn't find anything.
11625 if test -z "$aix_libpath"; then
11626 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11633 rm -f conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11637 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11639 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"
11641 if test "$host_cpu" = ia64; then
11642 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11643 allow_undefined_flag_CXX="-z nodefs"
11644 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"
11646 # Determine the default libpath from the value encoded in an
11647 # empty executable.
11648 if test x$gcc_no_link = xyes; then
11649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11651 { (exit 1); exit 1; }; }
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11668 rm -f conftest.$ac_objext conftest$ac_exeext
11669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -z "$ac_cxx_werror_flag"
11678 || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11691 lt_aix_libpath_sed='
11692 /Import File Strings/,/^$/ {
11698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11699 # Check for a 64-bit object if we didn't find anything.
11700 if test -z "$aix_libpath"; then
11701 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11708 rm -f conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11712 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11713 # Warning - without using the other run time loading flags,
11714 # -berok will link without error, but may produce a broken library.
11715 no_undefined_flag_CXX=' ${wl}-bernotok'
11716 allow_undefined_flag_CXX=' ${wl}-berok'
11717 # Exported symbols can be pulled into shared objects from archives
11718 whole_archive_flag_spec_CXX='$convenience'
11719 archive_cmds_need_lc_CXX=yes
11720 # This is similar to how AIX traditionally builds its shared
11722 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'
11728 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11729 allow_undefined_flag_CXX=unsupported
11730 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11731 # support --undefined. This deserves some investigation. FIXME
11732 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11739 case $cc_basename in
11741 # FIXME: insert proper C++ library support
11747 cygwin* | mingw* | pw32*)
11748 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11749 # as there is no search path for DLLs.
11750 hardcode_libdir_flag_spec_CXX='-L$libdir'
11751 allow_undefined_flag_CXX=unsupported
11752 always_export_symbols_CXX=no
11753 enable_shared_with_static_runtimes_CXX=yes
11755 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11756 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'
11757 # If the export-symbols file already is a .def file (1st line
11758 # is EXPORTS), use it as is; otherwise, prepend...
11759 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11760 cp $export_symbols $output_objdir/$soname.def;
11762 echo EXPORTS > $output_objdir/$soname.def;
11763 cat $export_symbols >> $output_objdir/$soname.def;
11765 $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'
11770 darwin* | rhapsody*)
11772 rhapsody* | darwin1.[012])
11773 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11776 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11778 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11781 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11786 archive_cmds_need_lc_CXX=no
11787 hardcode_direct_CXX=no
11788 hardcode_automatic_CXX=yes
11789 hardcode_shlibpath_var_CXX=unsupported
11790 whole_archive_flag_spec_CXX=''
11791 link_all_deplibs_CXX=yes
11793 if test "$GXX" = yes ; then
11794 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 lt_cv_apple_cc_single_mod=no
11798 if test -z "${LT_MULTI_MODULE}"; then
11799 # By default we will add the -single_module flag. You can override
11800 # by either setting the environment variable LT_MULTI_MODULE
11801 # non-empty at configure time, or by adding -multi-module to the
11803 echo "int foo(void){return 1;}" > conftest.c
11804 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11805 -dynamiclib ${wl}-single_module conftest.c
11806 if test -f libconftest.dylib; then
11807 lt_cv_apple_cc_single_mod=yes
11808 rm libconftest.dylib
11810 rm conftest.$ac_ext
11814 output_verbose_link_cmd=echo
11815 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11816 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11817 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11819 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'
11820 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11822 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11823 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11825 case $cc_basename in
11827 output_verbose_link_cmd=echo
11828 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11829 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11830 # Don't fix this by using the ld -exported_symbols_list flag,
11831 # it doesn't exist in older darwin lds
11832 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11833 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11843 case $cc_basename in
11845 # FIXME: insert proper C++ library support
11849 # Green Hills C++ Compiler
11850 # FIXME: insert proper C++ library support
11854 # FIXME: insert proper C++ library support
11861 # C++ shared libraries reported to be fairly broken before
11867 archive_cmds_need_lc_CXX=no
11870 freebsd* | dragonfly*)
11871 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11880 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11881 hardcode_libdir_separator_CXX=:
11882 export_dynamic_flag_spec_CXX='${wl}-E'
11883 hardcode_direct_CXX=yes
11884 hardcode_minus_L_CXX=yes # Not in the search PATH,
11885 # but as the default
11886 # location of the library.
11888 case $cc_basename in
11890 # FIXME: insert proper C++ library support
11894 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'
11895 # Commands to make compiler produce verbose output that lists
11896 # what "hidden" libraries, object files and flags are used when
11897 # linking a shared library.
11899 # There doesn't appear to be a way to prevent this compiler from
11900 # explicitly linking system object files so we need to strip them
11901 # from the output so that they don't get included in the library
11903 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'
11906 if test "$GXX" = yes; then
11907 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'
11909 # FIXME: insert proper C++ library support
11917 if test $with_gnu_ld = no; then
11918 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11919 hardcode_libdir_separator_CXX=:
11925 export_dynamic_flag_spec_CXX='${wl}-E'
11931 hardcode_direct_CXX=no
11932 hardcode_shlibpath_var_CXX=no
11935 hardcode_direct_CXX=yes
11936 hardcode_direct_absolute_CXX=yes
11937 hardcode_minus_L_CXX=yes # Not in the search PATH,
11938 # but as the default
11939 # location of the library.
11943 case $cc_basename in
11945 # FIXME: insert proper C++ library support
11951 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11960 # Commands to make compiler produce verbose output that lists
11961 # what "hidden" libraries, object files and flags are used when
11962 # linking a shared library.
11964 # There doesn't appear to be a way to prevent this compiler from
11965 # explicitly linking system object files so we need to strip them
11966 # from the output so that they don't get included in the library
11968 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'
11971 if test "$GXX" = yes; then
11972 if test $with_gnu_ld = no; then
11975 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11978 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11981 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'
11986 # FIXME: insert proper C++ library support
11994 hardcode_direct_CXX=no
11995 hardcode_shlibpath_var_CXX=no
11996 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11997 export_dynamic_flag_spec_CXX='${wl}-E'
11998 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11999 # Instead, shared libraries are loaded at an image base (0x10000000 by
12000 # default) and relocated if they conflict, which is a slow very memory
12001 # consuming and fragmenting process. To avoid this, we pick a random,
12002 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12003 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12004 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'
12005 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'
12008 case $cc_basename in
12011 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'
12013 # Archives containing C++ object files must be created using
12014 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12015 # necessary to make sure instantiated templates are included
12017 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12020 if test "$GXX" = yes; then
12021 if test "$with_gnu_ld" = no; then
12022 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'
12024 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'
12027 link_all_deplibs_CXX=yes
12030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031 hardcode_libdir_separator_CXX=:
12032 inherit_rpath_CXX=yes
12035 linux* | k*bsd*-gnu)
12036 case $cc_basename in
12038 # Kuck and Associates, Inc. (KAI) C++ Compiler
12040 # KCC will only create a shared library if the output file
12041 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042 # to its proper name (with version) after linking.
12043 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'
12044 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'
12045 # Commands to make compiler produce verbose output that lists
12046 # what "hidden" libraries, object files and flags are used when
12047 # linking a shared library.
12049 # There doesn't appear to be a way to prevent this compiler from
12050 # explicitly linking system object files so we need to strip them
12051 # from the output so that they don't get included in the library
12053 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'
12055 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12058 # Archives containing C++ object files must be created using
12059 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12065 # version 8.0 and above of icpc choke on multiply defined symbols
12066 # if we add $predep_objects and $postdep_objects, however 7.1 and
12067 # earlier do not add the objects themselves.
12068 case `$CC -V 2>&1` in
12070 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071 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'
12073 *) # Version 8.0 or newer
12076 ia64*) tmp_idyn=' -i_dynamic';;
12078 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079 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'
12082 archive_cmds_need_lc_CXX=no
12083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12088 # Portland Group C++ compiler
12091 prelink_cmds_CXX='tpldir=Template.dir~
12093 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12094 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12095 old_archive_cmds_CXX='tpldir=Template.dir~
12097 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12098 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12100 archive_cmds_CXX='tpldir=Template.dir~
12102 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12103 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12104 archive_expsym_cmds_CXX='tpldir=Template.dir~
12106 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12107 $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'
12109 *) # Version 6 will use weak symbols
12110 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12111 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'
12115 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12116 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12117 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'
12121 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12122 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'
12124 runpath_var=LD_RUN_PATH
12125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12126 hardcode_libdir_separator_CXX=:
12128 # Commands to make compiler produce verbose output that lists
12129 # what "hidden" libraries, object files and flags are used when
12130 # linking a shared library.
12132 # There doesn't appear to be a way to prevent this compiler from
12133 # explicitly linking system object files so we need to strip them
12134 # from the output so that they don't get included in the library
12136 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'
12139 case `$CC -V 2>&1 | sed 5q` in
12142 no_undefined_flag_CXX=' -zdefs'
12143 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12144 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'
12145 hardcode_libdir_flag_spec_CXX='-R$libdir'
12146 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'
12147 compiler_needs_object_CXX=yes
12149 # Not sure whether something based on
12150 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12152 output_verbose_link_cmd='echo'
12154 # Archives containing C++ object files must be created using
12155 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12156 # necessary to make sure instantiated templates are included
12158 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12166 # FIXME: insert proper C++ library support
12171 # FIXME: insert proper C++ library support
12176 case $cc_basename in
12178 # FIXME: insert proper C++ library support
12182 # FIXME: insert proper C++ library support
12189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12190 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12192 hardcode_libdir_flag_spec_CXX='-R$libdir'
12193 hardcode_direct_CXX=yes
12194 hardcode_shlibpath_var_CXX=no
12196 # Workaround some broken pre-1.5 toolchains
12197 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12205 # C++ shared libraries are fairly broken
12210 hardcode_direct_CXX=yes
12211 hardcode_shlibpath_var_CXX=no
12212 hardcode_direct_absolute_CXX=yes
12213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12216 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12217 export_dynamic_flag_spec_CXX='${wl}-E'
12218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12220 output_verbose_link_cmd=echo
12223 osf3* | osf4* | osf5*)
12224 case $cc_basename in
12226 # Kuck and Associates, Inc. (KAI) C++ Compiler
12228 # KCC will only create a shared library if the output file
12229 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12230 # to its proper name (with version) after linking.
12231 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'
12233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12234 hardcode_libdir_separator_CXX=:
12236 # Archives containing C++ object files must be created using
12237 # the KAI C++ compiler.
12239 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12240 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12244 # Rational C++ 2.4.1
12245 # FIXME: insert proper C++ library support
12251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12252 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'
12253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12256 allow_undefined_flag_CXX=' -expect_unresolved \*'
12257 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'
12258 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12259 echo "-hidden">> $lib.exp~
12260 $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~
12262 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12266 hardcode_libdir_separator_CXX=:
12268 # Commands to make compiler produce verbose output that lists
12269 # what "hidden" libraries, object files and flags are used when
12270 # linking a shared library.
12272 # There doesn't appear to be a way to prevent this compiler from
12273 # explicitly linking system object files so we need to strip them
12274 # from the output so that they don't get included in the library
12276 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'
12279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12283 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'
12286 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'
12290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12291 hardcode_libdir_separator_CXX=:
12293 # Commands to make compiler produce verbose output that lists
12294 # what "hidden" libraries, object files and flags are used when
12295 # linking a shared library.
12296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12299 # FIXME: insert proper C++ library support
12307 # FIXME: insert proper C++ library support
12312 case $cc_basename in
12315 # FIXME: insert proper C++ library support
12320 # FIXME: insert proper C++ library support
12324 # FIXME: insert proper C++ library support
12331 case $cc_basename in
12333 # Sun C++ 4.2, 5.x and Centerline C++
12334 archive_cmds_need_lc_CXX=yes
12335 no_undefined_flag_CXX=' -zdefs'
12336 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12337 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12338 $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'
12340 hardcode_libdir_flag_spec_CXX='-R$libdir'
12341 hardcode_shlibpath_var_CXX=no
12343 solaris2.[0-5] | solaris2.[0-5].*) ;;
12345 # The compiler driver will combine and reorder linker options,
12346 # but understands `-z linker_flag'.
12347 # Supported since Solaris 2.6 (maybe 2.5.1?)
12348 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12351 link_all_deplibs_CXX=yes
12353 output_verbose_link_cmd='echo'
12355 # Archives containing C++ object files must be created using
12356 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12357 # necessary to make sure instantiated templates are included
12359 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12362 # Green Hills C++ Compiler
12363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12365 # The C++ compiler must be used to create the archive.
12366 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12369 # GNU C++ compiler with Solaris linker
12370 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12371 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12372 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12373 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12374 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12375 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12377 # Commands to make compiler produce verbose output that lists
12378 # what "hidden" libraries, object files and flags are used when
12379 # linking a shared library.
12380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12382 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12384 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12385 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12386 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12388 # Commands to make compiler produce verbose output that lists
12389 # what "hidden" libraries, object files and flags are used when
12390 # linking a shared library.
12391 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12394 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12396 solaris2.[0-5] | solaris2.[0-5].*) ;;
12398 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12407 no_undefined_flag_CXX='${wl}-z,text'
12408 archive_cmds_need_lc_CXX=no
12409 hardcode_shlibpath_var_CXX=no
12410 runpath_var='LD_RUN_PATH'
12412 case $cc_basename in
12414 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12415 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12419 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 sysv5* | sco3.2v5* | sco5v6*)
12425 # Note: We can NOT use -z defs as we might desire, because we do not
12426 # link with -lc, and that would cause any symbols used from libc to
12427 # always be unresolved, which means just about no library would
12428 # ever link correctly. If we're not using GNU ld we use -z text
12429 # though, which does catch some bad symbols but isn't as heavy-handed
12431 no_undefined_flag_CXX='${wl}-z,text'
12432 allow_undefined_flag_CXX='${wl}-z,nodefs'
12433 archive_cmds_need_lc_CXX=no
12434 hardcode_shlibpath_var_CXX=no
12435 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12436 hardcode_libdir_separator_CXX=':'
12437 link_all_deplibs_CXX=yes
12438 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12439 runpath_var='LD_RUN_PATH'
12441 case $cc_basename in
12443 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12444 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12447 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12454 case $cc_basename in
12456 # NonStop-UX NCC 3.20
12457 # FIXME: insert proper C++ library support
12461 # FIXME: insert proper C++ library support
12468 # FIXME: insert proper C++ library support
12473 # FIXME: insert proper C++ library support
12478 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12479 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12480 test "$ld_shlibs_CXX" = no && can_build_shared=no
12486 ## There is no encapsulation within the following macros, do not change
12487 ## the running order or otherwise move them around unless you know exactly
12488 ## what you are doing...
12489 # Dependencies to place before and after the object being linked:
12490 predep_objects_CXX=
12491 postdep_objects_CXX=
12494 compiler_lib_search_path_CXX=
12496 cat > conftest.$ac_ext <<_LT_EOF
12500 Foo (void) { a = 0; }
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507 (eval $ac_compile) 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; then
12511 # Parse the compiler output and extract the necessary
12512 # objects, libraries and library flags.
12514 # Sentinel used to keep track of whether or not we are before
12515 # the conftest object file.
12516 pre_test_object_deps_done=no
12518 # The `*' in the case matches for architectures that use `case' in
12519 # $output_verbose_cmd can trigger glob expansion during the loop
12520 # eval without this substitution.
12521 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12523 for p in `eval $output_verbose_link_cmd`; do
12527 # Some compilers place space between "-{L,R}" and the path.
12528 # Remove the space.
12529 if test $p = "-L" ||
12530 test $p = "-R"; then
12537 if test "$pre_test_object_deps_done" = no; then
12540 # Internal compiler library paths should come after those
12541 # provided the user. The postdeps already come after the
12542 # user supplied libs so there is no need to process them.
12543 if test -z "$compiler_lib_search_path_CXX"; then
12544 compiler_lib_search_path_CXX="${prev}${p}"
12546 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12549 # The "-l" case would never come before the object being
12550 # linked, so don't bother handling this case.
12553 if test -z "$postdeps_CXX"; then
12554 postdeps_CXX="${prev}${p}"
12556 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12562 # This assumes that the test object file only shows up
12563 # once in the compiler output.
12564 if test "$p" = "conftest.$objext"; then
12565 pre_test_object_deps_done=yes
12569 if test "$pre_test_object_deps_done" = no; then
12570 if test -z "$predep_objects_CXX"; then
12571 predep_objects_CXX="$p"
12573 predep_objects_CXX="$predep_objects_CXX $p"
12576 if test -z "$postdep_objects_CXX"; then
12577 postdep_objects_CXX="$p"
12579 postdep_objects_CXX="$postdep_objects_CXX $p"
12584 *) ;; # Ignore the rest.
12592 echo "libtool.m4: error: problem compiling CXX test program"
12595 $RM -f confest.$objext
12597 # PORTME: override above test on systems where it is broken
12600 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12601 # hack all around it, let's just trust "g++" to DTRT.
12602 predep_objects_CXX=
12603 postdep_objects_CXX=
12608 case `$CC -V 2>&1 | sed 5q` in
12612 # The more standards-conforming stlport4 library is
12613 # incompatible with the Cstd library. Avoid specifying
12614 # it if it's in CXXFLAGS. Ignore libCrun as
12615 # -library=stlport4 depends on it.
12616 case " $CXX $CXXFLAGS " in
12617 *" -library=stlport4 "*)
12618 solaris_use_stlport4=yes
12622 if test "$solaris_use_stlport4" != yes; then
12623 postdeps_CXX='-library=Cstd -library=Crun'
12630 case $cc_basename in
12632 # The more standards-conforming stlport4 library is
12633 # incompatible with the Cstd library. Avoid specifying
12634 # it if it's in CXXFLAGS. Ignore libCrun as
12635 # -library=stlport4 depends on it.
12636 case " $CXX $CXXFLAGS " in
12637 *" -library=stlport4 "*)
12638 solaris_use_stlport4=yes
12642 # Adding this requires a known-good setup of shared libraries for
12643 # Sun compiler versions before 5.6, else PIC objects from an old
12644 # archive will be linked into the output, leading to subtle bugs.
12645 if test "$solaris_use_stlport4" != yes; then
12646 postdeps_CXX='-library=Cstd -library=Crun'
12654 case " $postdeps_CXX " in
12655 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12683 lt_prog_compiler_wl_CXX=
12684 lt_prog_compiler_pic_CXX=
12685 lt_prog_compiler_static_CXX=
12687 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12690 # C++ specific cases for pic, static, wl, etc.
12691 if test "$GXX" = yes; then
12692 lt_prog_compiler_wl_CXX='-Wl,'
12693 lt_prog_compiler_static_CXX='-static'
12697 # All AIX code is PIC.
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static_CXX='-Bstatic'
12704 if test "$host_cpu" = m68k; then
12705 # FIXME: we need at least 68020 code to build shared libraries, but
12706 # adding the `-m68020' flag to GCC prevents building anything better,
12708 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712 # PIC is the default for these OSes.
12714 mingw* | cygwin* | os2* | pw32*)
12715 # This hack is so that the source file can tell whether it is being
12716 # built for inclusion in a dll (and should export symbols for example).
12717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12718 # (--disable-auto-import) libraries
12719 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12721 darwin* | rhapsody*)
12722 # PIC is the default on this platform
12723 # Common symbols not allowed in MH_DYLIB files
12724 lt_prog_compiler_pic_CXX='-fno-common'
12727 # DJGPP does not support shared libraries at all
12728 lt_prog_compiler_pic_CXX=
12731 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12732 # Instead, we relocate shared libraries at runtime.
12735 if test -d /usr/nec; then
12736 lt_prog_compiler_pic_CXX=-Kconform_pic
12740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12741 # not for PA HP-UX.
12746 lt_prog_compiler_pic_CXX='-fPIC'
12751 # QNX uses GNU C++, but need to define -shared option too, otherwise
12752 # it will coredump.
12753 lt_prog_compiler_pic_CXX='-fPIC -shared'
12756 lt_prog_compiler_pic_CXX='-fPIC'
12762 # All AIX code is PIC.
12763 if test "$host_cpu" = ia64; then
12764 # AIX 5 now supports IA64 processor
12765 lt_prog_compiler_static_CXX='-Bstatic'
12767 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12771 case $cc_basename in
12773 # Green Hills C++ Compiler
12774 # _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"
12779 # PIC is the default on this platform
12780 # Common symbols not allowed in MH_DYLIB files
12781 case $cc_basename in
12783 lt_prog_compiler_pic_CXX='-qnocommon'
12784 lt_prog_compiler_wl_CXX='-Wl,'
12789 case $cc_basename in
12791 lt_prog_compiler_pic_CXX='-KPIC'
12794 # Green Hills C++ Compiler
12795 lt_prog_compiler_pic_CXX='-pic'
12801 freebsd* | dragonfly*)
12802 # FreeBSD uses GNU C++
12804 hpux9* | hpux10* | hpux11*)
12805 case $cc_basename in
12807 lt_prog_compiler_wl_CXX='-Wl,'
12808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12809 if test "$host_cpu" != ia64; then
12810 lt_prog_compiler_pic_CXX='+Z'
12814 lt_prog_compiler_wl_CXX='-Wl,'
12815 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12821 lt_prog_compiler_pic_CXX='+Z'
12830 # This is c89, which is MS Visual C++ (no shared libs)
12831 # Anyone wants to do a port?
12833 irix5* | irix6* | nonstopux*)
12834 case $cc_basename in
12836 lt_prog_compiler_wl_CXX='-Wl,'
12837 lt_prog_compiler_static_CXX='-non_shared'
12838 # CC pic flag -KPIC is the default.
12844 linux* | k*bsd*-gnu)
12845 case $cc_basename in
12848 lt_prog_compiler_wl_CXX='--backend -Wl,'
12849 lt_prog_compiler_pic_CXX='-fPIC'
12853 lt_prog_compiler_wl_CXX='-Wl,'
12854 lt_prog_compiler_pic_CXX='-KPIC'
12855 lt_prog_compiler_static_CXX='-static'
12858 # Portland Group C++ compiler
12859 lt_prog_compiler_wl_CXX='-Wl,'
12860 lt_prog_compiler_pic_CXX='-fpic'
12861 lt_prog_compiler_static_CXX='-Bstatic'
12865 # Make sure the PIC flag is empty. It appears that all Alpha
12866 # Linux and Compaq Tru64 Unix objects are PIC.
12867 lt_prog_compiler_pic_CXX=
12868 lt_prog_compiler_static_CXX='-non_shared'
12871 case `$CC -V 2>&1 | sed 5q` in
12874 lt_prog_compiler_pic_CXX='-KPIC'
12875 lt_prog_compiler_static_CXX='-Bstatic'
12876 lt_prog_compiler_wl_CXX='-Qoption ld '
12887 case $cc_basename in
12889 lt_prog_compiler_pic_CXX='-W c,exportall'
12898 # QNX uses GNU C++, but need to define -shared option too, otherwise
12899 # it will coredump.
12900 lt_prog_compiler_pic_CXX='-fPIC -shared'
12902 osf3* | osf4* | osf5*)
12903 case $cc_basename in
12905 lt_prog_compiler_wl_CXX='--backend -Wl,'
12908 # Rational C++ 2.4.1
12909 lt_prog_compiler_pic_CXX='-pic'
12912 # Digital/Compaq C++
12913 lt_prog_compiler_wl_CXX='-Wl,'
12914 # Make sure the PIC flag is empty. It appears that all Alpha
12915 # Linux and Compaq Tru64 Unix objects are PIC.
12916 lt_prog_compiler_pic_CXX=
12917 lt_prog_compiler_static_CXX='-non_shared'
12926 case $cc_basename in
12928 # Sun C++ 4.2, 5.x and Centerline C++
12929 lt_prog_compiler_pic_CXX='-KPIC'
12930 lt_prog_compiler_static_CXX='-Bstatic'
12931 lt_prog_compiler_wl_CXX='-Qoption ld '
12934 # Green Hills C++ Compiler
12935 lt_prog_compiler_pic_CXX='-PIC'
12942 case $cc_basename in
12945 lt_prog_compiler_pic_CXX='-pic'
12946 lt_prog_compiler_static_CXX='-Bstatic'
12950 lt_prog_compiler_pic_CXX='-pic'
12956 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12957 case $cc_basename in
12959 lt_prog_compiler_wl_CXX='-Wl,'
12960 lt_prog_compiler_pic_CXX='-KPIC'
12961 lt_prog_compiler_static_CXX='-Bstatic'
12966 case $cc_basename in
12968 # NonStop-UX NCC 3.20
12969 lt_prog_compiler_pic_CXX='-KPIC'
12978 lt_prog_compiler_can_build_shared_CXX=no
12984 # For platforms which do not support PIC, -DPIC is meaningless:
12986 lt_prog_compiler_pic_CXX=
12989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12992 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12993 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12998 # Check to make sure the PIC flag actually works.
13000 if test -n "$lt_prog_compiler_pic_CXX"; then
13001 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13002 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13003 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 lt_prog_compiler_pic_works_CXX=no
13007 ac_outfile=conftest.$ac_objext
13008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13009 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13010 # Insert the option either (1) after the last *FLAGS variable, or
13011 # (2) before a word containing "conftest.", or (3) at the end.
13012 # Note that $ac_compile itself does not contain backslashes and begins
13013 # with a dollar sign (not a hyphen), so the echo should work correctly.
13014 # The option is referenced via a variable to avoid confusing sed.
13015 lt_compile=`echo "$ac_compile" | $SED \
13016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13018 -e 's:$: $lt_compiler_flag:'`
13019 (eval echo "\"\$as_me:13019: $lt_compile\"" >&5)
13020 (eval "$lt_compile" 2>conftest.err)
13022 cat conftest.err >&5
13023 echo "$as_me:13023: \$? = $ac_status" >&5
13024 if (exit $ac_status) && test -s "$ac_outfile"; then
13025 # The compiler can only warn and ignore the option if not recognized
13026 # So say no if there are warnings other than the usual output.
13027 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13030 lt_prog_compiler_pic_works_CXX=yes
13036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13040 case $lt_prog_compiler_pic_CXX in
13042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13045 lt_prog_compiler_pic_CXX=
13046 lt_prog_compiler_can_build_shared_CXX=no
13054 # Check to make sure the static flag actually works.
13056 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13057 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13058 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13059 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13060 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 lt_prog_compiler_static_works_CXX=no
13063 save_LDFLAGS="$LDFLAGS"
13064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13065 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13067 # The linker can only warn and ignore the option if not recognized
13068 # So say no if there are warnings
13069 if test -s conftest.err; then
13070 # Append any errors to the config.log.
13071 cat conftest.err 1>&5
13072 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13074 if diff conftest.exp conftest.er2 >/dev/null; then
13075 lt_prog_compiler_static_works_CXX=yes
13078 lt_prog_compiler_static_works_CXX=yes
13082 LDFLAGS="$save_LDFLAGS"
13085 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13086 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13088 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13091 lt_prog_compiler_static_CXX=
13097 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13098 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13102 lt_cv_prog_compiler_c_o_CXX=no
13103 $RM -r conftest 2>/dev/null
13107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13109 lt_compiler_flag="-o out/conftest2.$ac_objext"
13110 # Insert the option either (1) after the last *FLAGS variable, or
13111 # (2) before a word containing "conftest.", or (3) at the end.
13112 # Note that $ac_compile itself does not contain backslashes and begins
13113 # with a dollar sign (not a hyphen), so the echo should work correctly.
13114 lt_compile=`echo "$ac_compile" | $SED \
13115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13117 -e 's:$: $lt_compiler_flag:'`
13118 (eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
13119 (eval "$lt_compile" 2>out/conftest.err)
13121 cat out/conftest.err >&5
13122 echo "$as_me:13122: \$? = $ac_status" >&5
13123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13125 # The compiler can only warn and ignore the option if not recognized
13126 # So say no if there are warnings
13127 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13130 lt_cv_prog_compiler_c_o_CXX=yes
13135 # SGI C++ compiler will create directory out/ii_files/ for
13136 # template instantiation
13137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13138 $RM out/* && rmdir out
13144 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13145 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13150 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13151 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
13154 lt_cv_prog_compiler_c_o_CXX=no
13155 $RM -r conftest 2>/dev/null
13159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13161 lt_compiler_flag="-o out/conftest2.$ac_objext"
13162 # Insert the option either (1) after the last *FLAGS variable, or
13163 # (2) before a word containing "conftest.", or (3) at the end.
13164 # Note that $ac_compile itself does not contain backslashes and begins
13165 # with a dollar sign (not a hyphen), so the echo should work correctly.
13166 lt_compile=`echo "$ac_compile" | $SED \
13167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13169 -e 's:$: $lt_compiler_flag:'`
13170 (eval echo "\"\$as_me:13170: $lt_compile\"" >&5)
13171 (eval "$lt_compile" 2>out/conftest.err)
13173 cat out/conftest.err >&5
13174 echo "$as_me:13174: \$? = $ac_status" >&5
13175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13177 # The compiler can only warn and ignore the option if not recognized
13178 # So say no if there are warnings
13179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13182 lt_cv_prog_compiler_c_o_CXX=yes
13187 # SGI C++ compiler will create directory out/ii_files/ for
13188 # template instantiation
13189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13190 $RM out/* && rmdir out
13196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13202 hard_links="nottested"
13203 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13204 # do not overwrite the value of need_locks provided by the user
13205 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13206 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13211 ln conftest.a conftest.b 2>&5 || hard_links=no
13212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13213 echo "$as_me:$LINENO: result: $hard_links" >&5
13214 echo "${ECHO_T}$hard_links" >&6
13215 if test "$hard_links" = no; then
13216 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13217 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13226 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13232 # If we're using GNU nm, then we don't want the "-C" option.
13233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13234 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13235 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'
13237 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'
13241 export_symbols_cmds_CXX="$ltdll_cmds"
13244 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'
13247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13251 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13252 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13253 test "$ld_shlibs_CXX" = no && can_build_shared=no
13255 with_gnu_ld_CXX=$with_gnu_ld
13263 # Do we need to explicitly link libc?
13265 case "x$archive_cmds_need_lc_CXX" in
13267 # Assume -lc should be added
13268 archive_cmds_need_lc_CXX=yes
13270 if test "$enable_shared" = yes && test "$GCC" = yes; then
13271 case $archive_cmds_CXX in
13273 # FIXME: we may have to deal with multi-command sequences.
13276 # Test whether the compiler implicitly links with -lc since on some
13277 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13278 # to ld, don't add -lc before -lgcc.
13279 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13280 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } 2>conftest.err; then
13291 libobjs=conftest.$ac_objext
13293 wl=$lt_prog_compiler_wl_CXX
13294 pic_flag=$lt_prog_compiler_pic_CXX
13300 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13301 allow_undefined_flag_CXX=
13302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13303 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }
13308 archive_cmds_need_lc_CXX=no
13310 archive_cmds_need_lc_CXX=yes
13312 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13314 cat conftest.err 1>&5
13317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13318 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13388 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13389 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13391 library_names_spec=
13392 libname_spec='lib$name'
13396 postuninstall_cmds=
13400 shlibpath_overrides_runpath=unknown
13402 dynamic_linker="$host_os ld.so"
13403 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13404 need_lib_prefix=unknown
13405 hardcode_into_libs=no
13407 # when you set need_version to no, make sure it does not cause -set_version
13408 # flags to be left without arguments
13409 need_version=unknown
13414 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13415 shlibpath_var=LIBPATH
13417 # AIX 3 has no versioning support, so we append a major version to the name.
13418 soname_spec='${libname}${release}${shared_ext}$major'
13425 hardcode_into_libs=yes
13426 if test "$host_cpu" = ia64; then
13427 # AIX 5 supports IA64
13428 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13429 shlibpath_var=LD_LIBRARY_PATH
13431 # With GCC up to 2.95.x, collect2 would create an import file
13432 # for dependence libraries. The import file would start with
13433 # the line `#! .'. This would cause the generated library to
13434 # depend on `.', always an invalid library. This was fixed in
13435 # development snapshots of GCC prior to 3.0.
13437 aix4 | aix4.[01] | aix4.[01].*)
13438 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13440 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13443 can_build_shared=no
13447 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13448 # soname into executable. Probably we can add versioning support to
13449 # collect2, so additional links can be useful in future.
13450 if test "$aix_use_runtimelinking" = yes; then
13451 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13452 # instead of lib<name>.a to let people know that these are not
13453 # typical AIX shared libraries.
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13456 # We preserve .a as extension for shared libraries through AIX4.2
13457 # and later when we are not doing run time linking.
13458 library_names_spec='${libname}${release}.a $libname.a'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13461 shlibpath_var=LIBPATH
13466 if test "$host_cpu" = m68k; then
13467 library_names_spec='$libname.ixlibrary $libname.a'
13468 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13469 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'
13476 library_names_spec='${libname}${shared_ext}'
13477 dynamic_linker="$host_os ld.so"
13478 shlibpath_var=LIBRARY_PATH
13484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485 soname_spec='${libname}${release}${shared_ext}$major'
13486 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13487 shlibpath_var=LD_LIBRARY_PATH
13488 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13489 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13490 # the default ld.so.conf also contains /usr/contrib/lib and
13491 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13492 # libtool to hard-code these into programs
13495 cygwin* | mingw* | pw32*)
13496 version_type=windows
13501 case $withGCC,$host_os in
13502 yes,cygwin* | yes,mingw* | yes,pw32*)
13503 library_names_spec='$libname.dll.a'
13504 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13505 postinstall_cmds='base_file=`basename \${file}`~
13506 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13507 dldir=$destdir/`dirname \$dlpath`~
13508 test -d \$dldir || mkdir -p \$dldir~
13509 $install_prog $dir/$dlname \$dldir/$dlname~
13510 chmod a+x \$dldir/$dlname~
13511 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13512 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13515 dlpath=$dir/\$dldll~
13517 shlibpath_overrides_runpath=yes
13521 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13522 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13523 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13526 # MinGW DLLs use traditional 'lib' prefix
13527 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13528 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13529 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13530 # It is most probably a Windows format PATH printed by
13531 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13532 # path with ; separators, and with drive letters. We can handle the
13533 # drive letters (cygwin fileutils understands them), so leave them,
13534 # especially as we might pass files found there to a mingw objdump,
13535 # which wouldn't understand a cygwinified path. Ahh.
13536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13538 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13542 # pw32 DLLs use 'pw' prefix rather than 'lib'
13543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13549 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13552 dynamic_linker='Win32 ld.exe'
13553 # FIXME: first we should search . and the directory the executable is in
13557 darwin* | rhapsody*)
13558 dynamic_linker="$host_os dyld"
13559 version_type=darwin
13562 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13563 soname_spec='${libname}${release}${major}$shared_ext'
13564 shlibpath_overrides_runpath=yes
13565 shlibpath_var=DYLD_LIBRARY_PATH
13566 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13576 soname_spec='${libname}${release}${shared_ext}$major'
13577 shlibpath_var=LD_LIBRARY_PATH
13584 freebsd* | dragonfly*)
13585 # DragonFly does not have aout. When/if they implement a new
13586 # versioning mechanism, adjust this.
13587 if test -x /usr/bin/objformat; then
13588 objformat=`/usr/bin/objformat`
13591 freebsd[123]*) objformat=aout ;;
13592 *) objformat=elf ;;
13595 version_type=freebsd-$objformat
13596 case $version_type in
13598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13607 shlibpath_var=LD_LIBRARY_PATH
13610 shlibpath_overrides_runpath=yes
13612 freebsd3.[01]* | freebsdelf3.[01]*)
13613 shlibpath_overrides_runpath=yes
13614 hardcode_into_libs=yes
13616 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13617 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13618 shlibpath_overrides_runpath=no
13619 hardcode_into_libs=yes
13621 *) # from 4.6 on, and DragonFly
13622 shlibpath_overrides_runpath=yes
13623 hardcode_into_libs=yes
13632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13633 soname_spec='${libname}${release}${shared_ext}$major'
13634 shlibpath_var=LD_LIBRARY_PATH
13635 hardcode_into_libs=yes
13638 hpux9* | hpux10* | hpux11*)
13639 # Give a soname corresponding to the major version so that dld.sl refuses to
13640 # link against other versions.
13647 hardcode_into_libs=yes
13648 dynamic_linker="$host_os dld.so"
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 if test "X$HPUX_IA64_MODE" = X32; then
13654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13662 hardcode_into_libs=yes
13663 dynamic_linker="$host_os dld.sl"
13664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13673 dynamic_linker="$host_os dld.sl"
13674 shlibpath_var=SHLIB_PATH
13675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13680 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13681 postinstall_cmds='chmod 555 $lib'
13688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13689 soname_spec='${libname}${release}${shared_ext}$major'
13690 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13691 shlibpath_var=LD_LIBRARY_PATH
13692 shlibpath_overrides_runpath=no
13693 hardcode_into_libs=yes
13696 irix5* | irix6* | nonstopux*)
13698 nonstopux*) version_type=nonstopux ;;
13700 if test "$lt_cv_prog_gnu_ld" = yes; then
13708 soname_spec='${libname}${release}${shared_ext}$major'
13709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13711 irix5* | nonstopux*)
13712 libsuff= shlibsuff=
13715 case $LD in # libtool.m4 will add one of these switches to LD
13716 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13717 libsuff= shlibsuff= libmagic=32-bit;;
13718 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13719 libsuff=32 shlibsuff=N32 libmagic=N32;;
13720 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13721 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13722 *) libsuff= shlibsuff= libmagic=never-match;;
13726 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13727 shlibpath_overrides_runpath=no
13728 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13729 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13730 hardcode_into_libs=yes
13733 # No shared lib support for Linux oldld, aout, or coff.
13734 linux*oldld* | linux*aout* | linux*coff*)
13738 # This must be Linux ELF.
13739 linux* | k*bsd*-gnu)
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 soname_spec='${libname}${release}${shared_ext}$major'
13745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13746 shlibpath_var=LD_LIBRARY_PATH
13747 shlibpath_overrides_runpath=no
13748 # Some binutils ld are patched to set DT_RUNPATH
13749 save_LDFLAGS=$LDFLAGS
13750 save_libdir=$libdir
13751 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13752 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13753 if test x$gcc_no_link = xyes; then
13754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13756 { (exit 1); exit 1; }; }
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_cxx_werror_flag"
13783 || test ! -s conftest.err'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13791 (eval $ac_try) 2>&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); }; }; then
13795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13796 shlibpath_overrides_runpath=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13804 rm -f conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LDFLAGS=$save_LDFLAGS
13807 libdir=$save_libdir
13809 # This implies no fast_install, which is unacceptable.
13810 # Some rework will be needed to allow for fast_install
13811 # before this can be enabled.
13812 hardcode_into_libs=yes
13814 # Append ld.so.conf contents to the search path
13815 if test -f /etc/ld.so.conf; then
13816 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13817 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13820 # We used to test for /lib/ld.so.1 and disable shared libraries on
13821 # powerpc, because MkLinux only supported shared libraries with the
13822 # GNU dynamic linker. Since this was broken with cross compilers,
13823 # most powerpc-linux boxes support dynamic linking these days and
13824 # people can always --disable-shared, the test was removed, and we
13825 # assume the GNU/Linux dynamic linker is in use.
13826 dynamic_linker='GNU/Linux ld.so'
13833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13836 dynamic_linker='NetBSD (a.out) ld.so'
13838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13839 soname_spec='${libname}${release}${shared_ext}$major'
13840 dynamic_linker='NetBSD ld.elf_so'
13842 shlibpath_var=LD_LIBRARY_PATH
13843 shlibpath_overrides_runpath=yes
13844 hardcode_into_libs=yes
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850 shlibpath_var=LD_LIBRARY_PATH
13851 shlibpath_overrides_runpath=yes
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 shlibpath_var=LD_LIBRARY_PATH
13861 shlibpath_overrides_runpath=no
13862 hardcode_into_libs=yes
13863 dynamic_linker='ldqnx.so'
13868 sys_lib_dlsearch_path_spec="/usr/lib"
13870 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13872 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13873 *) need_version=no ;;
13875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13877 shlibpath_var=LD_LIBRARY_PATH
13878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13880 openbsd2.[89] | openbsd2.[89].*)
13881 shlibpath_overrides_runpath=no
13884 shlibpath_overrides_runpath=yes
13888 shlibpath_overrides_runpath=yes
13893 libname_spec='$name'
13896 library_names_spec='$libname${shared_ext} $libname.a'
13897 dynamic_linker='OS/2 ld.exe'
13898 shlibpath_var=LIBPATH
13901 osf3* | osf4* | osf5*)
13905 soname_spec='${libname}${release}${shared_ext}$major'
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 shlibpath_var=LD_LIBRARY_PATH
13923 shlibpath_overrides_runpath=yes
13924 hardcode_into_libs=yes
13925 # ldd complains unless libraries are executable
13926 postinstall_cmds='chmod +x $lib'
13931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13932 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13933 shlibpath_var=LD_LIBRARY_PATH
13934 shlibpath_overrides_runpath=yes
13935 if test "$with_gnu_ld" = yes; then
13943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944 soname_spec='${libname}${release}${shared_ext}$major'
13945 shlibpath_var=LD_LIBRARY_PATH
13946 case $host_vendor in
13948 shlibpath_overrides_runpath=no
13950 runpath_var=LD_RUN_PATH
13958 shlibpath_overrides_runpath=no
13959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13965 if test -d /usr/nec ;then
13967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13968 soname_spec='$libname${shared_ext}.$major'
13969 shlibpath_var=LD_LIBRARY_PATH
13973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13974 version_type=freebsd-elf
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13982 if test "$with_gnu_ld" = yes; then
13983 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13988 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13992 sys_lib_dlsearch_path_spec='/usr/lib'
13996 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14000 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 shlibpath_var=LD_LIBRARY_PATH
14002 shlibpath_overrides_runpath=no
14003 hardcode_into_libs=yes
14008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14009 soname_spec='${libname}${release}${shared_ext}$major'
14010 shlibpath_var=LD_LIBRARY_PATH
14017 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14018 echo "${ECHO_T}$dynamic_linker" >&6
14019 test "$dynamic_linker" = no && can_build_shared=no
14021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14022 if test "$GCC" = yes; then
14023 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14061 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14062 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14063 hardcode_action_CXX=
14064 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14065 test -n "$runpath_var_CXX" ||
14066 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14068 # We can hardcode non-existent directories.
14069 if test "$hardcode_direct_CXX" != no &&
14070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14071 # have to relink, otherwise we might link with an installed library
14072 # when we should be linking with a yet-to-be-installed one
14073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14074 test "$hardcode_minus_L_CXX" != no; then
14075 # Linking always hardcodes the temporary library directory.
14076 hardcode_action_CXX=relink
14078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14079 hardcode_action_CXX=immediate
14082 # We cannot hardcode anything, or else we can only hardcode existing
14084 hardcode_action_CXX=unsupported
14086 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14087 echo "${ECHO_T}$hardcode_action_CXX" >&6
14089 if test "$hardcode_action_CXX" = relink ||
14090 test "$inherit_rpath_CXX" = yes; then
14091 # Fast installation is not supported
14092 enable_fast_install=no
14093 elif test "$shlibpath_overrides_runpath" = yes ||
14094 test "$enable_shared" = no; then
14095 # Fast installation is not necessary
14096 enable_fast_install=needless
14105 fi # test -n "$compiler"
14111 with_gnu_ld=$lt_save_with_gnu_ld
14112 lt_cv_path_LDCXX=$lt_cv_path_LD
14113 lt_cv_path_LD=$lt_save_path_LD
14114 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14115 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14116 fi # test "$_lt_caught_CXX_error" != yes
14119 ac_cpp='$CPP $CPPFLAGS'
14120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14136 ac_config_commands="$ac_config_commands libtool"
14141 # Only expand once:
14146 # Check whether --with-target-subdir or --without-target-subdir was given.
14147 if test "${with_target_subdir+set}" = set; then
14148 withval="$with_target_subdir"
14152 # Check whether --with-cross-host or --without-cross-host was given.
14153 if test "${with_cross_host+set}" = set; then
14154 withval="$with_cross_host"
14158 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14159 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14160 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
14161 if test -z "$THREADS"; then
14164 echo "$as_me:$LINENO: result: $THREADS" >&5
14165 echo "${ECHO_T}$THREADS" >&6
14167 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
14168 if test "${enable_parallel_mark+set}" = set; then
14169 enableval="$enable_parallel_mark"
14171 no | none | single)
14172 { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
14173 echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
14174 { (exit 1); exit 1; }; }
14180 AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
14183 no | none | single)
14186 posix | posix95 | pthreads)
14188 THREADLIBS=-lpthread
14190 x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
14192 cat >>confdefs.h <<\_ACEOF
14193 #define GC_LINUX_THREADS 1
14197 cat >>confdefs.h <<\_ACEOF
14198 #define _REENTRANT 1
14201 if test "${enable_parallel_mark}" = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define PARALLEL_MARK 1
14209 cat >>confdefs.h <<\_ACEOF
14210 #define THREAD_LOCAL_ALLOC 1
14215 cat >>confdefs.h <<\_ACEOF
14216 #define GC_LINUX_THREADS 1
14219 cat >>confdefs.h <<\_ACEOF
14220 #define _REENTRANT 1
14226 cat >>confdefs.h <<\_ACEOF
14227 #define GC_AIX_THREADS 1
14230 cat >>confdefs.h <<\_ACEOF
14231 #define _REENTRANT 1
14236 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14237 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14239 cat >>confdefs.h <<\_ACEOF
14240 #define GC_HPUX_THREADS 1
14244 cat >>confdefs.h <<\_ACEOF
14245 #define _POSIX_C_SOURCE 199506L
14248 if test "${enable_parallel_mark}" = yes; then
14249 cat >>confdefs.h <<\_ACEOF
14250 #define PARALLEL_MARK 1
14254 cat >>confdefs.h <<\_ACEOF
14255 #define THREAD_LOCAL_ALLOC 1
14258 THREADLIBS="-lpthread -lrt"
14259 # HPUX needs REENTRANT for the _r calls.
14261 cat >>confdefs.h <<\_ACEOF
14262 #define _REENTRANT 1
14267 { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
14268 echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
14271 cat >>confdefs.h <<\_ACEOF
14272 #define GC_FREEBSD_THREADS 1
14275 INCLUDES="$INCLUDES -pthread"
14276 THREADDLLIBS=-pthread
14277 cat >>confdefs.h <<\_ACEOF
14278 #define _REENTRANT 1
14281 if test "${enable_parallel_mark}" = yes; then
14282 cat >>confdefs.h <<\_ACEOF
14283 #define PARALLEL_MARK 1
14287 cat >>confdefs.h <<\_ACEOF
14288 #define THREAD_LOCAL_ALLOC 1
14292 cat >>confdefs.h <<\_ACEOF
14293 #define USE_COMPILER_TLS 1
14298 { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
14299 echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
14301 cat >>confdefs.h <<\_ACEOF
14302 #define GC_FREEBSD_THREADS 1
14305 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14306 THREADLIBS=-pthread
14310 cat >>confdefs.h <<\_ACEOF
14311 #define GC_SOLARIS_THREADS 1
14315 cat >>confdefs.h <<\_ACEOF
14316 #define GC_SOLARIS_PTHREADS 1
14322 cat >>confdefs.h <<\_ACEOF
14323 #define GC_IRIX_THREADS 1
14329 cat >>confdefs.h <<\_ACEOF
14330 #define GC_WIN32_THREADS 1
14336 cat >>confdefs.h <<\_ACEOF
14337 #define GC_DARWIN_THREADS 1
14340 cat >>confdefs.h <<\_ACEOF
14341 #define THREAD_LOCAL_ALLOC 1
14344 if test "${enable_parallel_mark}" = yes; then
14345 cat >>confdefs.h <<\_ACEOF
14346 #define PARALLEL_MARK 1
14353 cat >>confdefs.h <<\_ACEOF
14354 #define GC_OSF1_THREADS 1
14357 if test "${enable_parallel_mark}" = yes; then
14358 cat >>confdefs.h <<\_ACEOF
14359 #define PARALLEL_MARK 1
14362 cat >>confdefs.h <<\_ACEOF
14363 #define THREAD_LOCAL_ALLOC 1
14366 # May want to enable it in other cases, too.
14367 # Measurements havent yet been done.
14369 AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
14370 THREADLIBS="-lpthread -lrt"
14375 cat >>confdefs.h <<\_ACEOF
14376 #define GC_WIN32_THREADS 1
14382 echo "$as_me:$LINENO: result: $THREADLIBS" >&5
14383 echo "${ECHO_T}$THREADLIBS" >&6
14384 # Use pthread GCC switch
14385 THREADLIBS=-pthread
14386 if test "${enable_parallel_mark}" = yes; then
14387 cat >>confdefs.h <<\_ACEOF
14388 #define PARALLEL_MARK 1
14392 cat >>confdefs.h <<\_ACEOF
14393 #define THREAD_LOCAL_ALLOC 1
14397 cat >>confdefs.h <<\_ACEOF
14398 #define GC_DGUX386_THREADS 1
14402 cat >>confdefs.h <<\_ACEOF
14403 #define DGUX_THREADS 1
14406 # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
14407 AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
14411 THREADLIBS=-lpthread
14412 cat >>confdefs.h <<\_ACEOF
14413 #define GC_AIX_THREADS 1
14416 cat >>confdefs.h <<\_ACEOF
14417 #define _REENTRANT 1
14421 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
14422 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
14423 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
14424 { (exit 1); exit 1; }; }
14427 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
14428 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
14429 { (exit 1); exit 1; }; }
14436 powerpc_darwin=true
14441 if test x$powerpc_darwin = xtrue; then
14442 POWERPC_DARWIN_TRUE=
14443 POWERPC_DARWIN_FALSE='#'
14445 POWERPC_DARWIN_TRUE='#'
14446 POWERPC_DARWIN_FALSE=
14450 # Darwin needs a few extra special tests to deal with variation in the
14453 powerpc*-*-darwin*)
14454 echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
14455 echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6
14456 if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 cat >conftest.$ac_ext <<_ACEOF
14462 cat confdefs.h >>conftest.$ac_ext
14463 cat >>conftest.$ac_ext <<_ACEOF
14464 /* end confdefs.h. */
14465 #include <mach/thread_status.h>
14470 static ppc_thread_state_t ac_aggr;
14477 rm -f conftest.$ac_objext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14479 (eval $ac_compile) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_member_ppc_thread_state_t_r0=yes
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 #include <mach/thread_status.h>
14515 static ppc_thread_state_t ac_aggr;
14516 if (sizeof ac_aggr.r0)
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524 (eval $ac_compile) 2>conftest.er1
14526 grep -v '^ *+' conftest.er1 >conftest.err
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag"
14532 || test ! -s conftest.err'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; } &&
14538 { ac_try='test -s conftest.$ac_objext'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_member_ppc_thread_state_t_r0=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_cv_member_ppc_thread_state_t_r0=no
14551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14555 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
14556 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6
14557 if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define HAS_PPC_THREAD_STATE_R0 1
14565 echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
14566 echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6
14567 if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 #include <mach/thread_status.h>
14581 static ppc_thread_state_t ac_aggr;
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14592 grep -v '^ *+' conftest.er1 >conftest.err
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_member_ppc_thread_state_t___r0=yes
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <mach/thread_status.h>
14626 static ppc_thread_state_t ac_aggr;
14627 if (sizeof ac_aggr.__r0)
14633 rm -f conftest.$ac_objext
14634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635 (eval $ac_compile) 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -z "$ac_c_werror_flag"
14643 || test ! -s conftest.err'
14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645 (eval $ac_try) 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest.$ac_objext'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_cv_member_ppc_thread_state_t___r0=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 ac_cv_member_ppc_thread_state_t___r0=no
14662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14666 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
14667 echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6
14668 if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
14670 cat >>confdefs.h <<\_ACEOF
14671 #define HAS_PPC_THREAD_STATE___R0 1
14676 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
14677 echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6
14678 if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 cat >conftest.$ac_ext <<_ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 #include <mach/thread_status.h>
14692 static ppc_thread_state64_t ac_aggr;
14699 rm -f conftest.$ac_objext
14700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14701 (eval $ac_compile) 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag"
14709 || test ! -s conftest.err'
14710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14711 (eval $ac_try) 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
14716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); }; }; then
14721 ac_cv_member_ppc_thread_state64_t_r0=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 #include <mach/thread_status.h>
14737 static ppc_thread_state64_t ac_aggr;
14738 if (sizeof ac_aggr.r0)
14744 rm -f conftest.$ac_objext
14745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14746 (eval $ac_compile) 2>conftest.er1
14748 grep -v '^ *+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -z "$ac_c_werror_flag"
14754 || test ! -s conftest.err'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } &&
14760 { ac_try='test -s conftest.$ac_objext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_member_ppc_thread_state64_t_r0=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_cv_member_ppc_thread_state64_t_r0=no
14773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
14778 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6
14779 if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
14781 cat >>confdefs.h <<\_ACEOF
14782 #define HAS_PPC_THREAD_STATE64_R0 1
14787 echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
14788 echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6
14789 if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 cat >conftest.$ac_ext <<_ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <mach/thread_status.h>
14803 static ppc_thread_state64_t ac_aggr;
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -z "$ac_c_werror_flag"
14820 || test ! -s conftest.err'
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_member_ppc_thread_state64_t___r0=yes
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14837 cat >conftest.$ac_ext <<_ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14843 #include <mach/thread_status.h>
14848 static ppc_thread_state64_t ac_aggr;
14849 if (sizeof ac_aggr.__r0)
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857 (eval $ac_compile) 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } &&
14864 { ac_try='test -z "$ac_c_werror_flag"
14865 || test ! -s conftest.err'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_member_ppc_thread_state64_t___r0=yes
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_cv_member_ppc_thread_state64_t___r0=no
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14888 echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
14889 echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6
14890 if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAS_PPC_THREAD_STATE64___R0 1
14900 echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
14901 echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6
14902 if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <sys/cdefs.h>
14912 #include <mach/thread_status.h>
14917 static x86_thread_state32_t ac_aggr;
14924 rm -f conftest.$ac_objext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14926 (eval $ac_compile) 2>conftest.er1
14928 grep -v '^ *+' conftest.er1 >conftest.err
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag"
14934 || test ! -s conftest.err'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; } &&
14940 { ac_try='test -s conftest.$ac_objext'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; }; then
14946 ac_cv_member_x86_thread_state32_t_eax=yes
14948 echo "$as_me: failed program was:" >&5
14949 sed 's/^/| /' conftest.$ac_ext >&5
14951 cat >conftest.$ac_ext <<_ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h. */
14957 #include <sys/cdefs.h>
14958 #include <mach/thread_status.h>
14963 static x86_thread_state32_t ac_aggr;
14964 if (sizeof ac_aggr.eax)
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_member_x86_thread_state32_t_eax=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_member_x86_thread_state32_t_eax=no
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
15004 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6
15005 if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAS_X86_THREAD_STATE32_EAX 1
15013 echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
15014 echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6
15015 if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <sys/cdefs.h>
15025 #include <mach/thread_status.h>
15030 static x86_thread_state32_t ac_aggr;
15037 rm -f conftest.$ac_objext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15039 (eval $ac_compile) 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } &&
15046 { ac_try='test -z "$ac_c_werror_flag"
15047 || test ! -s conftest.err'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; } &&
15053 { ac_try='test -s conftest.$ac_objext'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }; then
15059 ac_cv_member_x86_thread_state32_t___eax=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <sys/cdefs.h>
15071 #include <mach/thread_status.h>
15076 static x86_thread_state32_t ac_aggr;
15077 if (sizeof ac_aggr.__eax)
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -z "$ac_c_werror_flag"
15093 || test ! -s conftest.err'
15094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_member_x86_thread_state32_t___eax=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_member_x86_thread_state32_t___eax=no
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15116 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
15117 echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6
15118 if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAS_X86_THREAD_STATE32___EAX 1
15128 echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
15129 echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6
15130 if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15139 #include <sys/cdefs.h>
15140 #include <mach/thread_status.h>
15145 static x86_thread_state64_t ac_aggr;
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15174 ac_cv_member_x86_thread_state64_t_rax=yes
15176 echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 #include <sys/cdefs.h>
15186 #include <mach/thread_status.h>
15191 static x86_thread_state64_t ac_aggr;
15192 if (sizeof ac_aggr.rax)
15198 rm -f conftest.$ac_objext
15199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200 (eval $ac_compile) 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -z "$ac_c_werror_flag"
15208 || test ! -s conftest.err'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; } &&
15214 { ac_try='test -s conftest.$ac_objext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_member_x86_thread_state64_t_rax=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_cv_member_x86_thread_state64_t_rax=no
15227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15231 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
15232 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6
15233 if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAS_X86_THREAD_STATE64_RAX 1
15241 echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
15242 echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6
15243 if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <sys/cdefs.h>
15253 #include <mach/thread_status.h>
15258 static x86_thread_state64_t ac_aggr;
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15269 grep -v '^ *+' conftest.er1 >conftest.err
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_cv_member_x86_thread_state64_t___rax=yes
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 #include <sys/cdefs.h>
15299 #include <mach/thread_status.h>
15304 static x86_thread_state64_t ac_aggr;
15305 if (sizeof ac_aggr.__rax)
15311 rm -f conftest.$ac_objext
15312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15313 (eval $ac_compile) 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
15320 { ac_try='test -z "$ac_c_werror_flag"
15321 || test ! -s conftest.err'
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); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_member_x86_thread_state64_t___rax=yes
15335 echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15338 ac_cv_member_x86_thread_state64_t___rax=no
15340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15344 echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
15345 echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6
15346 if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
15348 cat >>confdefs.h <<\_ACEOF
15349 #define HAS_X86_THREAD_STATE64___RAX 1
15358 # We never want libdl on darwin. It is a fake libdl that just ends up making
15359 # dyld calls anyway
15363 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15364 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15365 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 ac_check_lib_save_LIBS=$LIBS
15370 if test x$gcc_no_link = xyes; then
15371 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15372 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15373 { (exit 1); exit 1; }; }
15375 cat >conftest.$ac_ext <<_ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15382 /* Override any gcc2 internal prototype to avoid an error. */
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15399 (eval $ac_link) 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag"
15407 || test ! -s conftest.err'
15408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_lib_dl_dlopen=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_lib_dl_dlopen=no
15426 rm -f conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428 LIBS=$ac_check_lib_save_LIBS
15430 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15431 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15432 if test $ac_cv_lib_dl_dlopen = yes; then
15433 EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
15439 # extra LD Flags which are required for targets
15442 extra_ldflags_libgc=-Wl,-single_module
15449 target_all=libgcjgc.la
15454 # Check whether --with-ecos or --without-ecos was given.
15455 if test "${with_ecos+set}" = set; then
15456 withval="$with_ecos"
15457 TARGET_ECOS="$with_ecos"
15465 case "$TARGET_ECOS" in
15470 cat >>confdefs.h <<\_ACEOF
15474 AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
15475 addobjs="$addobjs ecos.lo"
15479 if test "${enable_cplusplus}" = yes; then
15480 addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
15481 addtests="$addtests test_cpp"
15486 if test "${enable_cplusplus}" = yes; then
15488 CPLUSPLUS_FALSE='#'
15499 # Configuration of shared libraries
15501 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15502 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15503 # Check whether --enable-shared or --disable-shared was given.
15504 if test "${enable_shared+set}" = set; then
15505 enableval="$enable_shared"
15506 p=${PACKAGE-default}
15508 yes) enable_shared=yes ;;
15509 no) enable_shared=no ;;
15512 # Look at the argument we got. We use all the common list separators.
15513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15514 for pkg in $enableval; do
15516 if test "X$pkg" = "X$p"; then
15535 echo "$as_me:$LINENO: result: no" >&5
15536 echo "${ECHO_T}no" >&6
15539 echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6
15544 # Checks for pthreads functions
15547 LIBS="$LIBS $THREADLIBS"
15549 for ac_func in pthread_getattr_np
15551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15552 echo "$as_me:$LINENO: checking for $ac_func" >&5
15553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15554 if eval "test \"\${$as_ac_var+set}\" = set"; then
15555 echo $ECHO_N "(cached) $ECHO_C" >&6
15557 if test x$gcc_no_link = xyes; then
15558 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15559 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15560 { (exit 1); exit 1; }; }
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15570 #define $ac_func innocuous_$ac_func
15572 /* System header to define __stub macros and hopefully few prototypes,
15573 which can conflict with char $ac_func (); below.
15574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15575 <limits.h> exists even on freestanding compilers. */
15578 # include <limits.h>
15580 # include <assert.h>
15585 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15593 /* The GNU C library defines this for functions which it implements
15594 to always fail with ENOSYS. Some functions are actually named
15595 something starting with __ and the normal name is an alias. */
15596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15599 char (*f) () = $ac_func;
15608 return f != $ac_func;
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -z "$ac_c_werror_flag"
15623 || test ! -s conftest.err'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; } &&
15629 { ac_try='test -s conftest$ac_exeext'
15630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 eval "$as_ac_var=yes"
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 eval "$as_ac_var=no"
15642 rm -f conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15647 if test `eval echo '${'$as_ac_var'}'` = yes; then
15648 cat >>confdefs.h <<_ACEOF
15649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15657 # Configuration of machine-dependent code
15659 # Set NO_EXECUTE_PERMISSION by default because gcj already uses
15660 # ffi_closure_{alloc,free} which takes care of allocating trampolines
15661 # in executable memory.
15663 echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
15664 echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6
15668 machdep="alpha_mach_dep.lo"
15669 if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
15670 { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
15671 echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
15675 machdep="alpha_mach_dep.lo"
15677 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
15679 cat >>confdefs.h <<\_ACEOF
15680 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
15685 machdep="mips_ultrix_mach_dep.lo"
15687 cat >>confdefs.h <<\_ACEOF
15688 #define STACKBASE __stackbase
15692 cat >>confdefs.h <<\_ACEOF
15693 #define DATASTART_IS_ETEXT 1
15698 machdep="mips_ultrix_mach-dep.lo"
15700 mips-nec-sysv*|mips-unknown-sysv*)
15705 machdep="mips_sgi_mach_dep.lo"
15708 machdep="sparc_netbsd_mach_dep.lo"
15710 sparc-sun-solaris2.3)
15711 machdep="sparc_mach_dep.lo"
15713 cat >>confdefs.h <<\_ACEOF
15714 #define SUNOS53_SHARED_LIB 1
15718 sparc*-sun-solaris2.*)
15719 machdep="sparc_mach_dep.lo"
15722 machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
15726 cat >>confdefs.h <<\_ACEOF
15727 #define NO_EXECUTE_PERMISSION 1
15730 if test x"$machdep" = x; then
15731 echo "$as_me:$LINENO: result: $machdep" >&5
15732 echo "${ECHO_T}$machdep" >&6
15733 machdep="mach_dep.lo"
15735 addobjs="$addobjs $machdep"
15742 # Check for AViiON Machines running DGUX
15744 echo "$as_me:$LINENO: checking if host is AViiON running DGUX" >&5
15745 echo $ECHO_N "checking if host is AViiON running DGUX... $ECHO_C" >&6
15747 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15748 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15749 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15754 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15756 # Is the header compilable?
15757 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
15758 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 $ac_includes_default
15766 #include <sys/dg_sys_info.h>
15768 rm -f conftest.$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770 (eval $ac_compile) 2>conftest.er1
15772 grep -v '^ *+' conftest.er1 >conftest.err
15774 cat conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
15777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest.$ac_objext'
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790 ac_header_compiler=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_compiler=no
15797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15799 echo "${ECHO_T}$ac_header_compiler" >&6
15801 # Is the header present?
15802 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
15803 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15810 #include <sys/dg_sys_info.h>
15812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15815 grep -v '^ *+' conftest.er1 >conftest.err
15817 cat conftest.err >&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev/null; then
15820 if test -s conftest.err; then
15821 ac_cpp_err=$ac_c_preproc_warn_flag
15822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15829 if test -z "$ac_cpp_err"; then
15830 ac_header_preproc=yes
15832 echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15835 ac_header_preproc=no
15837 rm -f conftest.err conftest.$ac_ext
15838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15839 echo "${ECHO_T}$ac_header_preproc" >&6
15841 # So? What about this header?
15842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15844 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
15845 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
15847 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
15848 ac_header_preproc=yes
15851 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
15852 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
15854 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
15856 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
15857 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
15858 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
15859 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
15860 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
15861 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
15862 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
15865 ## ------------------------------------------ ##
15866 ## Report this to the AC_PACKAGE_NAME lists. ##
15867 ## ------------------------------------------ ##
15870 sed "s/^/$as_me: WARNING: /" >&2
15873 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
15874 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
15875 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
15880 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
15881 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
15884 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
15890 echo "$as_me:$LINENO: result: $ac_is_dgux" >&5
15891 echo "${ECHO_T}$ac_is_dgux" >&6
15892 ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
15893 if test $ac_is_dgux = yes; then
15894 if test "$enable_full_debug" = "yes"; then
15895 CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15896 CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15898 CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15899 CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
15905 echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5
15906 echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6
15909 if test "$GCC" = yes; then
15910 echo "$as_me:$LINENO: result: yes" >&5
15911 echo "${ECHO_T}yes" >&6
15913 for i in $CFLAGS; do
15918 new_CFLAGS="$new_CFLAGS $i"
15922 CFLAGS="$new_CFLAGS"
15924 echo "$as_me:$LINENO: result: no" >&5
15925 echo "${ECHO_T}no" >&6
15928 *) echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6 ;;
15932 MY_CFLAGS="$CFLAGS"
15936 cat >>confdefs.h <<\_ACEOF
15941 cat >>confdefs.h <<\_ACEOF
15942 #define NO_SIGNALS 1
15946 cat >>confdefs.h <<\_ACEOF
15947 #define ALL_INTERIOR_POINTERS 1
15952 cat >>confdefs.h <<\_ACEOF
15953 #define JAVA_FINALIZATION 1
15957 cat >>confdefs.h <<\_ACEOF
15958 #define GC_GCJ_SUPPORT 1
15962 cat >>confdefs.h <<\_ACEOF
15963 #define ATOMIC_UNCOLLECTABLE 1
15967 # Check whether --enable-gc-debug or --disable-gc-debug was given.
15968 if test "${enable_gc_debug+set}" = set; then
15969 enableval="$enable_gc_debug"
15970 if test "$enable_gc_debug" = "yes"; then
15971 { echo "$as_me:$LINENO: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
15972 echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
15974 cat >>confdefs.h <<\_ACEOF
15975 #define KEEP_BACK_PTRS 1
15979 cat >>confdefs.h <<\_ACEOF
15980 #define DBG_HDRS_ALL 1
15986 cat >>confdefs.h <<\_ACEOF
15987 #define MAKE_BACK_GRAPH 1
15991 x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
15992 cat >>confdefs.h <<\_ACEOF
15993 #define MAKE_BACK_GRAPH 1
15996 { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
15997 echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
15999 cat >>confdefs.h <<\_ACEOF
16000 #define SAVE_CALL_COUNT 8
16005 cat >>confdefs.h <<\_ACEOF
16006 #define MAKE_BACK_GRAPH 1
16014 if test "${gc_use_mmap}" = "yes"; then
16016 cat >>confdefs.h <<\_ACEOF
16022 if test -n "$with_cross_host" &&
16023 test x"$with_cross_host" != x"no"; then
16024 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16025 toolexeclibdir='$(toolexecdir)/lib'
16027 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16028 toolexeclibdir='$(libdir)'
16030 multi_os_directory=`$CC -print-multi-os-directory`
16031 case $multi_os_directory in
16032 .) ;; # Avoid trailing /.
16033 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16038 if test "${multilib}" = "yes"; then
16039 multilib_arg="--enable-multilib"
16044 ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
16047 ac_config_files="$ac_config_files Makefile include/Makefile"
16049 cat >confcache <<\_ACEOF
16050 # This file is a shell script that caches the results of configure
16051 # tests run on this system so they can be shared between configure
16052 # scripts and configure runs, see configure's option --config-cache.
16053 # It is not useful on other systems. If it contains results you don't
16054 # want to keep, you may remove or edit it.
16056 # config.status only pays attention to the cache file if you give it
16057 # the --recheck option to rerun configure.
16059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16061 # following values.
16065 # The following way of writing the cache mishandles newlines in values,
16066 # but we know of no workaround that is simple, portable, and efficient.
16067 # So, don't put newlines in cache variables' values.
16068 # Ultrix sh set writes to stderr and can't be redirected directly,
16069 # and sets the high bit in the cache file unless we assign to the vars.
16072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16074 # `set' does not quote correctly, so add quotes (double-quote
16075 # substitution turns \\\\ into \\, and sed turns \\ into \).
16078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16081 # `set' quotes correctly as required by POSIX, so do not add quotes.
16083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16092 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16094 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16095 if test -w $cache_file; then
16096 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16097 cat confcache >$cache_file
16099 echo "not updating unwritable cache $cache_file"
16104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16105 # Let make expand exec_prefix.
16106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16110 # trailing colons and then remove the whole line if VPATH becomes empty
16111 # (actually we leave an empty line to preserve line numbers).
16112 if test "x$srcdir" = x.; then
16113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16114 s/:*\$(srcdir):*/:/;
16115 s/:*\${srcdir}:*/:/;
16117 s/^\([^=]*=[ ]*\):*/\1/;
16123 DEFS=-DHAVE_CONFIG_H
16127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16128 # 1. Remove the extension, and $U if already installed.
16129 ac_i=`echo "$ac_i" |
16130 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16132 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16133 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16135 LIBOBJS=$ac_libobjs
16137 LTLIBOBJS=$ac_ltlibobjs
16140 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16141 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16142 Usually this means the macro was only invoked conditionally." >&5
16143 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16144 Usually this means the macro was only invoked conditionally." >&2;}
16145 { (exit 1); exit 1; }; }
16147 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16148 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16149 Usually this means the macro was only invoked conditionally." >&5
16150 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16151 Usually this means the macro was only invoked conditionally." >&2;}
16152 { (exit 1); exit 1; }; }
16154 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16155 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16156 Usually this means the macro was only invoked conditionally." >&5
16157 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16158 Usually this means the macro was only invoked conditionally." >&2;}
16159 { (exit 1); exit 1; }; }
16161 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16162 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16163 Usually this means the macro was only invoked conditionally." >&5
16164 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16165 Usually this means the macro was only invoked conditionally." >&2;}
16166 { (exit 1); exit 1; }; }
16168 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16169 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16170 Usually this means the macro was only invoked conditionally." >&5
16171 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16172 Usually this means the macro was only invoked conditionally." >&2;}
16173 { (exit 1); exit 1; }; }
16175 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16176 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
16177 Usually this means the macro was only invoked conditionally." >&5
16178 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
16179 Usually this means the macro was only invoked conditionally." >&2;}
16180 { (exit 1); exit 1; }; }
16182 if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16183 { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined.
16184 Usually this means the macro was only invoked conditionally." >&5
16185 echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined.
16186 Usually this means the macro was only invoked conditionally." >&2;}
16187 { (exit 1); exit 1; }; }
16190 : ${CONFIG_STATUS=./config.status}
16191 ac_clean_files_save=$ac_clean_files
16192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16193 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16194 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16195 cat >$CONFIG_STATUS <<_ACEOF
16197 # Generated by $as_me.
16198 # Run this file to recreate the current configuration.
16199 # Compiler output produced by configure, useful for debugging
16200 # configure, is in config.log if it exists.
16203 ac_cs_recheck=false
16205 SHELL=\${CONFIG_SHELL-$SHELL}
16208 cat >>$CONFIG_STATUS <<\_ACEOF
16209 ## --------------------- ##
16210 ## M4sh Initialization. ##
16211 ## --------------------- ##
16213 # Be Bourne compatible
16214 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16217 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16218 # is contrary to our usage. Disable this feature.
16219 alias -g '${1+"$@"}'='"$@"'
16220 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16223 DUALCASE=1; export DUALCASE # for MKS sh
16225 # Support unset when possible.
16226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16233 # Work around bugs in pre-3.0 UWIN ksh.
16234 $as_unset ENV MAIL MAILPATH
16241 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16242 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16243 LC_TELEPHONE LC_TIME
16245 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16246 eval $as_var=C; export $as_var
16252 # Required to use basename.
16253 if expr a : '\(a\)' >/dev/null 2>&1; then
16259 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16260 as_basename=basename
16266 # Name of the executable.
16267 as_me=`$as_basename "$0" ||
16268 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16269 X"$0" : 'X\(//\)$' \| \
16270 X"$0" : 'X\(/\)$' \| \
16271 . : '\(.\)' 2>/dev/null ||
16273 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16274 /^X\/\(\/\/\)$/{ s//\1/; q; }
16275 /^X\/\(\/\).*/{ s//\1/; q; }
16279 # PATH needs CR, and LINENO needs CR and PATH.
16280 # Avoid depending upon Character Ranges.
16281 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16282 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16283 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16284 as_cr_digits='0123456789'
16285 as_cr_alnum=$as_cr_Letters$as_cr_digits
16287 # The user is always right.
16288 if test "${PATH_SEPARATOR+set}" != set; then
16289 echo "#! /bin/sh" >conf$$.sh
16290 echo "exit 0" >>conf$$.sh
16292 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16301 as_lineno_1=$LINENO
16302 as_lineno_2=$LINENO
16303 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16304 test "x$as_lineno_1" != "x$as_lineno_2" &&
16305 test "x$as_lineno_3" = "x$as_lineno_2" || {
16306 # Find who we are. Look in the path if we contain no path at all
16309 *[\\/]* ) as_myself=$0 ;;
16310 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16314 test -z "$as_dir" && as_dir=.
16315 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16320 # We did not find ourselves, most probably we were run as `sh COMMAND'
16321 # in which case we are not to be found in the path.
16322 if test "x$as_myself" = x; then
16325 if test ! -f "$as_myself"; then
16326 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16327 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16328 { (exit 1); exit 1; }; }
16330 case $CONFIG_SHELL in
16332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16333 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16336 test -z "$as_dir" && as_dir=.
16337 for as_base in sh bash ksh sh5; do
16340 if ("$as_dir/$as_base" -c '
16341 as_lineno_1=$LINENO
16342 as_lineno_2=$LINENO
16343 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16344 test "x$as_lineno_1" != "x$as_lineno_2" &&
16345 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16346 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16347 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16348 CONFIG_SHELL=$as_dir/$as_base
16349 export CONFIG_SHELL
16350 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16358 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16359 # uniformly replaced by the line number. The first 'sed' inserts a
16360 # line-number line before each line; the second 'sed' does the real
16361 # work. The second script uses 'N' to pair each line-number line
16362 # with the numbered line, and appends trailing '-' during
16363 # substitution so that $LINENO is not a special case at line end.
16364 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16365 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16366 sed '=' <$as_myself |
16371 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16374 s,^['$as_cr_digits']*\n,,
16375 ' >$as_me.lineno &&
16376 chmod +x $as_me.lineno ||
16377 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16378 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16379 { (exit 1); exit 1; }; }
16381 # Don't try to exec as it changes $[0], causing all sort of problems
16382 # (the dirname of $[0] is not the place where we might find the
16383 # original and so on. Autoconf is especially sensible to this).
16385 # Exit status is that of the last command.
16390 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16391 *c*,-n*) ECHO_N= ECHO_C='
16393 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16394 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16397 if expr a : '\(a\)' >/dev/null 2>&1; then
16403 rm -f conf$$ conf$$.exe conf$$.file
16405 if ln -s conf$$.file conf$$ 2>/dev/null; then
16406 # We could just check for DJGPP; but this test a) works b) is more generic
16407 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16408 if test -f conf$$.exe; then
16409 # Don't use ln at all; we don't have any links
16414 elif ln conf$$.file conf$$ 2>/dev/null; then
16419 rm -f conf$$ conf$$.exe conf$$.file
16421 if mkdir -p . 2>/dev/null; then
16424 test -d ./-p && rmdir ./-p
16428 as_executable_p="test -f"
16430 # Sed expression to map a string onto a valid CPP name.
16431 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16433 # Sed expression to map a string onto a valid variable name.
16434 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16438 # We need space, tab and new line, in precisely that order.
16448 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16449 # report actual input values of CONFIG_FILES etc. instead of their
16450 # values after options handling. Logging --version etc. is OK.
16454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16455 ## Running $as_me. ##
16460 This file was extended by $as_me, which was
16461 generated by GNU Autoconf 2.59. Invocation command line was
16463 CONFIG_FILES = $CONFIG_FILES
16464 CONFIG_HEADERS = $CONFIG_HEADERS
16465 CONFIG_LINKS = $CONFIG_LINKS
16466 CONFIG_COMMANDS = $CONFIG_COMMANDS
16470 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16474 # Files that config.status was made for.
16475 if test -n "$ac_config_files"; then
16476 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16479 if test -n "$ac_config_headers"; then
16480 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16483 if test -n "$ac_config_links"; then
16484 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16487 if test -n "$ac_config_commands"; then
16488 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16491 cat >>$CONFIG_STATUS <<\_ACEOF
16494 \`$as_me' instantiates files from templates according to the
16495 current configuration.
16497 Usage: $0 [OPTIONS] [FILE]...
16499 -h, --help print this help, then exit
16500 -V, --version print version number, then exit
16501 -q, --quiet do not print progress messages
16502 -d, --debug don't remove temporary files
16503 --recheck update $as_me by reconfiguring in the same conditions
16504 --file=FILE[:TEMPLATE]
16505 instantiate the configuration file FILE
16506 --header=FILE[:TEMPLATE]
16507 instantiate the configuration header FILE
16509 Configuration files:
16512 Configuration headers:
16515 Configuration commands:
16518 Report bugs to <bug-autoconf@gnu.org>."
16521 cat >>$CONFIG_STATUS <<_ACEOF
16524 configured by $0, generated by GNU Autoconf 2.59,
16525 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16527 Copyright (C) 2003 Free Software Foundation, Inc.
16528 This config.status script is free software; the Free Software Foundation
16529 gives unlimited permission to copy, distribute and modify it."
16534 cat >>$CONFIG_STATUS <<\_ACEOF
16535 # If no file are specified by the user, then we need to provide default
16536 # value. By we need to know if files were specified by the user.
16542 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16543 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16551 *) # This is not an option, so the user has probably given explicit
16554 ac_need_defaults=false;;
16558 # Handling of the options.
16560 cat >>$CONFIG_STATUS <<\_ACEOF
16561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16563 --version | --vers* | -V )
16564 echo "$ac_cs_version"; exit 0 ;;
16566 # Conflict between --help and --header
16567 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16568 Try \`$0 --help' for more information." >&5
16569 echo "$as_me: error: ambiguous option: $1
16570 Try \`$0 --help' for more information." >&2;}
16571 { (exit 1); exit 1; }; };;
16572 --help | --hel | -h )
16573 echo "$ac_cs_usage"; exit 0 ;;
16574 --debug | --d* | -d )
16576 --file | --fil | --fi | --f )
16578 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16579 ac_need_defaults=false;;
16580 --header | --heade | --head | --hea )
16582 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16583 ac_need_defaults=false;;
16584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16588 # This is an error.
16589 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16590 Try \`$0 --help' for more information." >&5
16591 echo "$as_me: error: unrecognized option: $1
16592 Try \`$0 --help' for more information." >&2;}
16593 { (exit 1); exit 1; }; } ;;
16595 *) ac_config_targets="$ac_config_targets $1" ;;
16601 ac_configure_extra_args=
16603 if $ac_cs_silent; then
16605 ac_configure_extra_args="$ac_configure_extra_args --silent"
16609 cat >>$CONFIG_STATUS <<_ACEOF
16610 if \$ac_cs_recheck; then
16611 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16612 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16617 cat >>$CONFIG_STATUS <<_ACEOF
16619 # INIT-COMMANDS section.
16626 with_multisubdir="$with_multisubdir"
16627 with_multisrctop="$with_multisrctop"
16628 with_target_subdir="$with_target_subdir"
16629 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16630 multi_basedir="$multi_basedir"
16631 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16633 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16636 # The HP-UX ksh and POSIX shell print the target directory to stdout
16637 # if CDPATH is set.
16638 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16640 sed_quote_subst='$sed_quote_subst'
16641 double_quote_subst='$double_quote_subst'
16642 delay_variable_subst='$delay_variable_subst'
16643 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16644 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16645 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16646 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16647 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16648 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16649 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16650 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16651 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16652 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16653 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16654 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16655 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16656 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16657 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16658 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16659 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16660 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16661 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16662 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16663 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16664 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16665 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16666 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16667 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16668 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16669 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16670 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16671 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16672 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16673 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16674 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16675 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16676 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16677 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16678 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16679 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16680 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16681 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16682 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16683 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16684 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16685 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16686 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"`'
16687 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16688 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16689 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16690 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16691 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16692 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16693 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16694 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16695 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16696 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16697 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16698 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16699 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16700 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16701 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16702 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16703 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16704 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16705 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16706 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16707 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16708 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16709 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16710 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16711 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16712 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16713 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16714 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16715 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16716 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16717 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16718 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16719 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16720 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16721 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16722 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16723 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16724 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16725 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16726 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16727 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16728 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16729 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16730 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16731 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16732 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16733 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16734 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16735 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16736 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16737 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16738 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16739 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16740 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16741 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16742 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16743 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16744 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16745 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16746 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16747 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16748 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16749 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16750 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16751 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16752 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16753 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16754 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16755 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16756 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16757 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16758 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16759 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16760 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16761 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16762 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16763 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16764 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16765 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16766 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16767 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16768 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16769 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16770 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16771 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16772 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16773 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16774 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16775 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16776 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16777 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16778 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16779 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16780 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16781 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16782 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16783 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16784 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16785 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16786 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16787 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16788 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16789 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16790 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16791 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16792 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16793 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16794 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16795 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16796 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16797 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16798 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16799 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16800 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16801 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16802 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16803 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16804 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16807 LTCFLAGS='$LTCFLAGS'
16808 compiler='$compiler_DEFAULT'
16810 # Quote evaled strings.
16821 deplibs_check_method \
16830 lt_cv_sys_global_symbol_pipe \
16831 lt_cv_sys_global_symbol_to_cdecl \
16832 lt_cv_sys_global_symbol_to_c_name_address \
16835 lt_prog_compiler_no_builtin_flag \
16836 lt_prog_compiler_wl \
16837 lt_prog_compiler_pic \
16838 lt_prog_compiler_static \
16839 lt_cv_prog_compiler_c_o \
16842 export_dynamic_flag_spec \
16843 whole_archive_flag_spec \
16844 compiler_needs_object \
16846 allow_undefined_flag \
16847 no_undefined_flag \
16848 hardcode_libdir_flag_spec \
16849 hardcode_libdir_flag_spec_ld \
16850 hardcode_libdir_separator \
16855 variables_saved_for_relink \
16857 library_names_spec \
16866 compiler_lib_search_path \
16869 lt_prog_compiler_no_builtin_flag_CXX \
16870 lt_prog_compiler_wl_CXX \
16871 lt_prog_compiler_pic_CXX \
16872 lt_prog_compiler_static_CXX \
16873 lt_cv_prog_compiler_c_o_CXX \
16874 export_dynamic_flag_spec_CXX \
16875 whole_archive_flag_spec_CXX \
16876 compiler_needs_object_CXX \
16878 allow_undefined_flag_CXX \
16879 no_undefined_flag_CXX \
16880 hardcode_libdir_flag_spec_CXX \
16881 hardcode_libdir_flag_spec_ld_CXX \
16882 hardcode_libdir_separator_CXX \
16883 fix_srcfile_path_CXX \
16884 exclude_expsyms_CXX \
16885 include_expsyms_CXX \
16886 file_list_spec_CXX \
16887 predep_objects_CXX \
16888 postdep_objects_CXX \
16891 compiler_lib_search_path_CXX; do
16892 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16893 *[\\\\\\\`\\"\\\$]*)
16894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16902 # Double-quote double-evaled strings.
16903 for var in reload_cmds \
16904 old_postinstall_cmds \
16905 old_postuninstall_cmds \
16907 extract_expsyms_cmds \
16908 old_archive_from_new_cmds \
16909 old_archive_from_expsyms_cmds \
16911 archive_expsym_cmds \
16913 module_expsym_cmds \
16914 export_symbols_cmds \
16917 postuninstall_cmds \
16919 sys_lib_search_path_spec \
16920 sys_lib_dlsearch_path_spec \
16921 old_archive_cmds_CXX \
16922 old_archive_from_new_cmds_CXX \
16923 old_archive_from_expsyms_cmds_CXX \
16925 archive_expsym_cmds_CXX \
16927 module_expsym_cmds_CXX \
16928 export_symbols_cmds_CXX \
16929 prelink_cmds_CXX; do
16930 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16931 *[\\\\\\\`\\"\\\$]*)
16932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16940 # Fix-up fallback echo if it was mangled by the above quoting rules.
16942 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16946 ac_aux_dir='$ac_aux_dir'
16947 xsi_shell='$xsi_shell'
16948 lt_shell_append='$lt_shell_append'
16950 # See if we are running on zsh, and set the options which allow our
16951 # commands through without removal of \ escapes INIT.
16952 if test -n "\${ZSH_VERSION+set}" ; then
16953 setopt NO_GLOB_SUBST
16959 TIMESTAMP='$TIMESTAMP'
16972 cat >>$CONFIG_STATUS <<\_ACEOF
16973 for ac_config_target in $ac_config_targets
16975 case "$ac_config_target" in
16976 # Handling of arguments.
16977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16978 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16979 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16980 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16981 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16982 "include/gc_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
16983 "include/gc_ext_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
16984 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16986 { (exit 1); exit 1; }; };;
16990 # If the user did not use the arguments to specify the items to instantiate,
16991 # then the envvar interface is used. Set only those that are not.
16992 # We use the long form for the default assignment because of an extremely
16993 # bizarre bug on SunOS 4.1.3.
16994 if $ac_need_defaults; then
16995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17000 # Have a temporary directory for convenience. Make it in the build tree
17001 # simply because there is no reason to put it here, and in addition,
17002 # creating and moving files from /tmp can sometimes cause problems.
17003 # Create a temporary directory, and hook for its removal unless debugging.
17006 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17007 trap '{ (exit 1); exit 1; }' 1 2 13 15
17010 # Create a (secure) tmp directory for tmp files.
17013 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17014 test -n "$tmp" && test -d "$tmp"
17017 tmp=./confstat$$-$RANDOM
17018 (umask 077 && mkdir $tmp)
17021 echo "$me: cannot create a temporary directory in ." >&2
17022 { (exit 1); exit 1; }
17027 cat >>$CONFIG_STATUS <<_ACEOF
17030 # CONFIG_FILES section.
17033 # No need to generate the scripts if there are no CONFIG_FILES.
17034 # This happens for instance when ./config.status config.h
17035 if test -n "\$CONFIG_FILES"; then
17036 # Protect against being on the right side of a sed subst in config.status.
17037 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17038 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17039 s,@SHELL@,$SHELL,;t t
17040 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17041 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17042 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17043 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17044 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17045 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17046 s,@exec_prefix@,$exec_prefix,;t t
17047 s,@prefix@,$prefix,;t t
17048 s,@program_transform_name@,$program_transform_name,;t t
17049 s,@bindir@,$bindir,;t t
17050 s,@sbindir@,$sbindir,;t t
17051 s,@libexecdir@,$libexecdir,;t t
17052 s,@datadir@,$datadir,;t t
17053 s,@sysconfdir@,$sysconfdir,;t t
17054 s,@sharedstatedir@,$sharedstatedir,;t t
17055 s,@localstatedir@,$localstatedir,;t t
17056 s,@libdir@,$libdir,;t t
17057 s,@includedir@,$includedir,;t t
17058 s,@oldincludedir@,$oldincludedir,;t t
17059 s,@infodir@,$infodir,;t t
17060 s,@mandir@,$mandir,;t t
17061 s,@build_alias@,$build_alias,;t t
17062 s,@host_alias@,$host_alias,;t t
17063 s,@target_alias@,$target_alias,;t t
17064 s,@DEFS@,$DEFS,;t t
17065 s,@ECHO_C@,$ECHO_C,;t t
17066 s,@ECHO_N@,$ECHO_N,;t t
17067 s,@ECHO_T@,$ECHO_T,;t t
17068 s,@LIBS@,$LIBS,;t t
17069 s,@multi_basedir@,$multi_basedir,;t t
17070 s,@build@,$build,;t t
17071 s,@build_cpu@,$build_cpu,;t t
17072 s,@build_vendor@,$build_vendor,;t t
17073 s,@build_os@,$build_os,;t t
17074 s,@host@,$host,;t t
17075 s,@host_cpu@,$host_cpu,;t t
17076 s,@host_vendor@,$host_vendor,;t t
17077 s,@host_os@,$host_os,;t t
17078 s,@target@,$target,;t t
17079 s,@target_cpu@,$target_cpu,;t t
17080 s,@target_vendor@,$target_vendor,;t t
17081 s,@target_os@,$target_os,;t t
17082 s,@target_noncanonical@,$target_noncanonical,;t t
17083 s,@mkinstalldirs@,$mkinstalldirs,;t t
17084 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17085 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17086 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17087 s,@CYGPATH_W@,$CYGPATH_W,;t t
17088 s,@PACKAGE@,$PACKAGE,;t t
17089 s,@VERSION@,$VERSION,;t t
17090 s,@ACLOCAL@,$ACLOCAL,;t t
17091 s,@AUTOCONF@,$AUTOCONF,;t t
17092 s,@AUTOMAKE@,$AUTOMAKE,;t t
17093 s,@AUTOHEADER@,$AUTOHEADER,;t t
17094 s,@MAKEINFO@,$MAKEINFO,;t t
17095 s,@install_sh@,$install_sh,;t t
17096 s,@STRIP@,$STRIP,;t t
17097 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17098 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17099 s,@mkdir_p@,$mkdir_p,;t t
17101 s,@SET_MAKE@,$SET_MAKE,;t t
17102 s,@am__leading_dot@,$am__leading_dot,;t t
17103 s,@AMTAR@,$AMTAR,;t t
17104 s,@am__tar@,$am__tar,;t t
17105 s,@am__untar@,$am__untar,;t t
17107 s,@ac_ct_CC@,$ac_ct_CC,;t t
17108 s,@EXEEXT@,$EXEEXT,;t t
17109 s,@OBJEXT@,$OBJEXT,;t t
17110 s,@DEPDIR@,$DEPDIR,;t t
17111 s,@am__include@,$am__include,;t t
17112 s,@am__quote@,$am__quote,;t t
17113 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17114 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17115 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17116 s,@CCDEPMODE@,$CCDEPMODE,;t t
17117 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17118 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17120 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17121 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17122 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17123 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17124 s,@CFLAGS@,$CFLAGS,;t t
17125 s,@CXXFLAGS@,$CXXFLAGS,;t t
17126 s,@CCAS@,$CCAS,;t t
17127 s,@CCASFLAGS@,$CCASFLAGS,;t t
17129 s,@ac_ct_AS@,$ac_ct_AS,;t t
17131 s,@ac_ct_AR@,$ac_ct_AR,;t t
17132 s,@RANLIB@,$RANLIB,;t t
17133 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17134 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17135 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17136 s,@MAINT@,$MAINT,;t t
17137 s,@GC_CFLAGS@,$GC_CFLAGS,;t t
17138 s,@LIBTOOL@,$LIBTOOL,;t t
17140 s,@EGREP@,$EGREP,;t t
17141 s,@FGREP@,$FGREP,;t t
17142 s,@GREP@,$GREP,;t t
17144 s,@DUMPBIN@,$DUMPBIN,;t t
17145 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
17147 s,@LN_S@,$LN_S,;t t
17148 s,@lt_ECHO@,$lt_ECHO,;t t
17150 s,@CPPFLAGS@,$CPPFLAGS,;t t
17151 s,@LDFLAGS@,$LDFLAGS,;t t
17152 s,@CXXCPP@,$CXXCPP,;t t
17153 s,@THREADLIBS@,$THREADLIBS,;t t
17154 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
17155 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
17156 s,@extra_ldflags_libgc@,$extra_ldflags_libgc,;t t
17157 s,@EXTRA_TEST_LIBS@,$EXTRA_TEST_LIBS,;t t
17158 s,@target_all@,$target_all,;t t
17159 s,@CPLUSPLUS_TRUE@,$CPLUSPLUS_TRUE,;t t
17160 s,@CPLUSPLUS_FALSE@,$CPLUSPLUS_FALSE,;t t
17161 s,@AM_CPPFLAGS@,$AM_CPPFLAGS,;t t
17162 s,@addobjs@,$addobjs,;t t
17163 s,@addincludes@,$addincludes,;t t
17164 s,@addlibs@,$addlibs,;t t
17165 s,@addtests@,$addtests,;t t
17166 s,@MY_CFLAGS@,$MY_CFLAGS,;t t
17167 s,@toolexecdir@,$toolexecdir,;t t
17168 s,@toolexeclibdir@,$toolexeclibdir,;t t
17169 s,@LIBOBJS@,$LIBOBJS,;t t
17170 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17175 cat >>$CONFIG_STATUS <<\_ACEOF
17176 # Split the substitutions into bite-sized pieces for seds with
17177 # small command number limits, like on Digital OSF/1 and HP-UX.
17178 ac_max_sed_lines=48
17179 ac_sed_frag=1 # Number of current file.
17180 ac_beg=1 # First line for current file.
17181 ac_end=$ac_max_sed_lines # Line after last line for current file.
17184 while $ac_more_lines; do
17185 if test $ac_beg -gt 1; then
17186 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17188 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17190 if test ! -s $tmp/subs.frag; then
17191 ac_more_lines=false
17193 # The purpose of the label and of the branching condition is to
17194 # speed up the sed processing (if there are no `@' at all, there
17195 # is no need to browse any of the substitutions).
17196 # These are the two extra sed commands mentioned above.
17198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17199 if test -z "$ac_sed_cmds"; then
17200 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17202 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17204 ac_sed_frag=`expr $ac_sed_frag + 1`
17206 ac_end=`expr $ac_end + $ac_max_sed_lines`
17209 if test -z "$ac_sed_cmds"; then
17212 fi # test -n "$CONFIG_FILES"
17215 cat >>$CONFIG_STATUS <<\_ACEOF
17216 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17219 - | *:- | *:-:* ) # input from stdin
17221 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17222 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17223 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17225 * ) ac_file_in=$ac_file.in ;;
17228 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17229 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231 X"$ac_file" : 'X\(//\)[^/]' \| \
17232 X"$ac_file" : 'X\(//\)$' \| \
17233 X"$ac_file" : 'X\(/\)' \| \
17234 . : '\(.\)' 2>/dev/null ||
17236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17238 /^X\(\/\/\)$/{ s//\1/; q; }
17239 /^X\(\/\).*/{ s//\1/; q; }
17241 { if $as_mkdir_p; then
17246 while test ! -d "$as_dir"; do
17247 as_dirs="$as_dir $as_dirs"
17248 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17250 X"$as_dir" : 'X\(//\)[^/]' \| \
17251 X"$as_dir" : 'X\(//\)$' \| \
17252 X"$as_dir" : 'X\(/\)' \| \
17253 . : '\(.\)' 2>/dev/null ||
17255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17257 /^X\(\/\/\)$/{ s//\1/; q; }
17258 /^X\(\/\).*/{ s//\1/; q; }
17261 test ! -n "$as_dirs" || mkdir $as_dirs
17262 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17263 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17264 { (exit 1); exit 1; }; }; }
17268 if test "$ac_dir" != .; then
17269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17270 # A "../" for each directory in $ac_dir_suffix.
17271 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17273 ac_dir_suffix= ac_top_builddir=
17277 .) # No --srcdir option. We are building in place.
17279 if test -z "$ac_top_builddir"; then
17282 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17284 [\\/]* | ?:[\\/]* ) # Absolute path.
17285 ac_srcdir=$srcdir$ac_dir_suffix;
17286 ac_top_srcdir=$srcdir ;;
17287 *) # Relative path.
17288 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17289 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17292 # Do not use `cd foo && pwd` to compute absolute paths, because
17293 # the directories may not exist.
17295 .) ac_abs_builddir="$ac_dir";;
17298 .) ac_abs_builddir=`pwd`;;
17299 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17300 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17303 case $ac_abs_builddir in
17304 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17306 case ${ac_top_builddir}. in
17307 .) ac_abs_top_builddir=$ac_abs_builddir;;
17308 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17309 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17312 case $ac_abs_builddir in
17313 .) ac_abs_srcdir=$ac_srcdir;;
17316 .) ac_abs_srcdir=$ac_abs_builddir;;
17317 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17318 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17321 case $ac_abs_builddir in
17322 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17324 case $ac_top_srcdir in
17325 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17326 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17327 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17333 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17334 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17337 if test x"$ac_file" != x-; then
17338 { echo "$as_me:$LINENO: creating $ac_file" >&5
17339 echo "$as_me: creating $ac_file" >&6;}
17342 # Let's still pretend it is `configure' which instantiates (i.e., don't
17343 # use $as_me), people would be surprised to read:
17344 # /* config.h. Generated by config.status. */
17345 if test x"$ac_file" = x-; then
17348 configure_input="$ac_file. "
17350 configure_input=$configure_input"Generated from `echo $ac_file_in |
17351 sed 's,.*/,,'` by configure."
17353 # First look for the input files in the build tree, otherwise in the
17355 ac_file_inputs=`IFS=:
17356 for f in $ac_file_in; do
17358 -) echo $tmp/stdin ;;
17360 # Absolute (can't be DOS-style, as IFS=:)
17361 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17362 echo "$as_me: error: cannot find input file: $f" >&2;}
17363 { (exit 1); exit 1; }; }
17366 if test -f "$f"; then
17369 elif test -f "$srcdir/$f"; then
17374 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17375 echo "$as_me: error: cannot find input file: $f" >&2;}
17376 { (exit 1); exit 1; }; }
17379 done` || { (exit 1); exit 1; }
17381 cat >>$CONFIG_STATUS <<_ACEOF
17385 cat >>$CONFIG_STATUS <<\_ACEOF
17387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17388 s,@configure_input@,$configure_input,;t t
17389 s,@srcdir@,$ac_srcdir,;t t
17390 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17391 s,@top_srcdir@,$ac_top_srcdir,;t t
17392 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17393 s,@builddir@,$ac_builddir,;t t
17394 s,@abs_builddir@,$ac_abs_builddir,;t t
17395 s,@top_builddir@,$ac_top_builddir,;t t
17396 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17397 s,@INSTALL@,$ac_INSTALL,;t t
17398 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17400 if test x"$ac_file" != x-; then
17401 mv $tmp/out $ac_file
17409 cat >>$CONFIG_STATUS <<\_ACEOF
17412 # CONFIG_HEADER section.
17415 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17416 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17418 # ac_d sets the value in "#define NAME VALUE" lines.
17419 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17420 ac_dB='[ ].*$,\1#\2'
17423 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17424 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17425 ac_uB='$,\1#\2define\3'
17429 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17430 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17432 - | *:- | *:-:* ) # input from stdin
17434 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17436 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17438 * ) ac_file_in=$ac_file.in ;;
17441 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17442 echo "$as_me: creating $ac_file" >&6;}
17444 # First look for the input files in the build tree, otherwise in the
17446 ac_file_inputs=`IFS=:
17447 for f in $ac_file_in; do
17449 -) echo $tmp/stdin ;;
17451 # Absolute (can't be DOS-style, as IFS=:)
17452 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17453 echo "$as_me: error: cannot find input file: $f" >&2;}
17454 { (exit 1); exit 1; }; }
17455 # Do quote $f, to prevent DOS paths from being IFS'd.
17458 if test -f "$f"; then
17461 elif test -f "$srcdir/$f"; then
17466 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17467 echo "$as_me: error: cannot find input file: $f" >&2;}
17468 { (exit 1); exit 1; }; }
17471 done` || { (exit 1); exit 1; }
17472 # Remove the trailing spaces.
17473 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17477 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17478 # `conftest.undefs', that substitutes the proper values into
17479 # config.h.in to produce config.h. The first handles `#define'
17480 # templates, and the second `#undef' templates.
17481 # And first: Protect against being on the right side of a sed subst in
17482 # config.status. Protect against being in an unquoted here document
17483 # in config.status.
17484 rm -f conftest.defines conftest.undefs
17485 # Using a here document instead of a string reduces the quoting nightmare.
17486 # Putting comments in sed scripts is not portable.
17488 # `end' is used to avoid that the second main sed command (meant for
17489 # 0-ary CPP macros) applies to n-ary macro definitions.
17490 # See the Autoconf documentation for `clear'.
17491 cat >confdef2sed.sed <<\_ACEOF
17496 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17498 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17501 # If some macros were called several times there might be several times
17502 # the same #defines, which is useless. Nevertheless, we may not want to
17503 # sort them, since we want the *last* AC-DEFINE to be honored.
17504 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17505 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17506 rm -f confdef2sed.sed
17508 # This sed command replaces #undef with comments. This is necessary, for
17509 # example, in the case of _POSIX_SOURCE, which is predefined and required
17510 # on some systems where configure will not decide to define it.
17511 cat >>conftest.undefs <<\_ACEOF
17512 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17515 # Break up conftest.defines because some shells have a limit on the size
17516 # of here documents, and old seds have small limits too (100 cmds).
17517 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17518 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17519 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17520 echo ' :' >>$CONFIG_STATUS
17521 rm -f conftest.tail
17522 while grep . conftest.defines >/dev/null
17524 # Write a limited-size here document to $tmp/defines.sed.
17525 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17526 # Speed up: don't consider the non `#define' lines.
17527 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17528 # Work around the forget-to-reset-the-flag bug.
17529 echo 't clr' >>$CONFIG_STATUS
17530 echo ': clr' >>$CONFIG_STATUS
17531 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17533 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17535 mv $tmp/out $tmp/in
17537 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17538 rm -f conftest.defines
17539 mv conftest.tail conftest.defines
17541 rm -f conftest.defines
17542 echo ' fi # grep' >>$CONFIG_STATUS
17543 echo >>$CONFIG_STATUS
17545 # Break up conftest.undefs because some shells have a limit on the size
17546 # of here documents, and old seds have small limits too (100 cmds).
17547 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17548 rm -f conftest.tail
17549 while grep . conftest.undefs >/dev/null
17551 # Write a limited-size here document to $tmp/undefs.sed.
17552 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17553 # Speed up: don't consider the non `#undef'
17554 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17555 # Work around the forget-to-reset-the-flag bug.
17556 echo 't clr' >>$CONFIG_STATUS
17557 echo ': clr' >>$CONFIG_STATUS
17558 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17560 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17562 mv $tmp/out $tmp/in
17564 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17565 rm -f conftest.undefs
17566 mv conftest.tail conftest.undefs
17568 rm -f conftest.undefs
17570 cat >>$CONFIG_STATUS <<\_ACEOF
17571 # Let's still pretend it is `configure' which instantiates (i.e., don't
17572 # use $as_me), people would be surprised to read:
17573 # /* config.h. Generated by config.status. */
17574 if test x"$ac_file" = x-; then
17575 echo "/* Generated by configure. */" >$tmp/config.h
17577 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17579 cat $tmp/in >>$tmp/config.h
17581 if test x"$ac_file" != x-; then
17582 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17583 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17584 echo "$as_me: $ac_file is unchanged" >&6;}
17586 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17588 X"$ac_file" : 'X\(//\)[^/]' \| \
17589 X"$ac_file" : 'X\(//\)$' \| \
17590 X"$ac_file" : 'X\(/\)' \| \
17591 . : '\(.\)' 2>/dev/null ||
17593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17595 /^X\(\/\/\)$/{ s//\1/; q; }
17596 /^X\(\/\).*/{ s//\1/; q; }
17598 { if $as_mkdir_p; then
17603 while test ! -d "$as_dir"; do
17604 as_dirs="$as_dir $as_dirs"
17605 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607 X"$as_dir" : 'X\(//\)[^/]' \| \
17608 X"$as_dir" : 'X\(//\)$' \| \
17609 X"$as_dir" : 'X\(/\)' \| \
17610 . : '\(.\)' 2>/dev/null ||
17612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17614 /^X\(\/\/\)$/{ s//\1/; q; }
17615 /^X\(\/\).*/{ s//\1/; q; }
17618 test ! -n "$as_dirs" || mkdir $as_dirs
17619 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17620 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17621 { (exit 1); exit 1; }; }; }
17624 mv $tmp/config.h $ac_file
17628 rm -f $tmp/config.h
17630 # Compute $ac_file's index in $config_headers.
17632 for _am_header in $config_headers :; do
17633 case $_am_header in
17634 $ac_file | $ac_file:* )
17637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17640 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17641 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17642 X$ac_file : 'X\(//\)[^/]' \| \
17643 X$ac_file : 'X\(//\)$' \| \
17644 X$ac_file : 'X\(/\)' \| \
17645 . : '\(.\)' 2>/dev/null ||
17647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17649 /^X\(\/\/\)$/{ s//\1/; q; }
17650 /^X\(\/\).*/{ s//\1/; q; }
17651 s/.*/./; q'`/stamp-h$_am_stamp_count
17654 cat >>$CONFIG_STATUS <<\_ACEOF
17657 # CONFIG_COMMANDS section.
17659 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17660 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17661 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17662 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17663 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17664 X"$ac_dest" : 'X\(//\)[^/]' \| \
17665 X"$ac_dest" : 'X\(//\)$' \| \
17666 X"$ac_dest" : 'X\(/\)' \| \
17667 . : '\(.\)' 2>/dev/null ||
17669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17670 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17671 /^X\(\/\/\)$/{ s//\1/; q; }
17672 /^X\(\/\).*/{ s//\1/; q; }
17674 { if $as_mkdir_p; then
17679 while test ! -d "$as_dir"; do
17680 as_dirs="$as_dir $as_dirs"
17681 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17683 X"$as_dir" : 'X\(//\)[^/]' \| \
17684 X"$as_dir" : 'X\(//\)$' \| \
17685 X"$as_dir" : 'X\(/\)' \| \
17686 . : '\(.\)' 2>/dev/null ||
17688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17690 /^X\(\/\/\)$/{ s//\1/; q; }
17691 /^X\(\/\).*/{ s//\1/; q; }
17694 test ! -n "$as_dirs" || mkdir $as_dirs
17695 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17697 { (exit 1); exit 1; }; }; }
17701 if test "$ac_dir" != .; then
17702 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17703 # A "../" for each directory in $ac_dir_suffix.
17704 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17706 ac_dir_suffix= ac_top_builddir=
17710 .) # No --srcdir option. We are building in place.
17712 if test -z "$ac_top_builddir"; then
17715 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17717 [\\/]* | ?:[\\/]* ) # Absolute path.
17718 ac_srcdir=$srcdir$ac_dir_suffix;
17719 ac_top_srcdir=$srcdir ;;
17720 *) # Relative path.
17721 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17722 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17725 # Do not use `cd foo && pwd` to compute absolute paths, because
17726 # the directories may not exist.
17728 .) ac_abs_builddir="$ac_dir";;
17731 .) ac_abs_builddir=`pwd`;;
17732 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17733 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17736 case $ac_abs_builddir in
17737 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17739 case ${ac_top_builddir}. in
17740 .) ac_abs_top_builddir=$ac_abs_builddir;;
17741 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17742 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17745 case $ac_abs_builddir in
17746 .) ac_abs_srcdir=$ac_srcdir;;
17749 .) ac_abs_srcdir=$ac_abs_builddir;;
17750 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17751 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17754 case $ac_abs_builddir in
17755 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17757 case $ac_top_srcdir in
17758 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17759 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17760 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17765 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17766 echo "$as_me: executing $ac_dest commands" >&6;}
17769 # Only add multilib support code if we just rebuilt the top-level
17771 case " $CONFIG_FILES " in
17773 ac_file=Makefile . ${multi_basedir}/config-ml.in
17776 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17777 # Strip MF so we end up with the name of the file.
17778 mf=`echo "$mf" | sed -e 's/:.*$//'`
17779 # Check whether this is an Automake generated Makefile or not.
17780 # We used to match only the files named `Makefile.in', but
17781 # some people rename them; so instead we look at the file content.
17782 # Grep'ing the first line is not enough: some people post-process
17783 # each Makefile.in and add a new line on top of each file to say so.
17784 # So let's grep whole file.
17785 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17786 dirpart=`(dirname "$mf") 2>/dev/null ||
17787 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17788 X"$mf" : 'X\(//\)[^/]' \| \
17789 X"$mf" : 'X\(//\)$' \| \
17790 X"$mf" : 'X\(/\)' \| \
17791 . : '\(.\)' 2>/dev/null ||
17793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17795 /^X\(\/\/\)$/{ s//\1/; q; }
17796 /^X\(\/\).*/{ s//\1/; q; }
17801 # Extract the definition of DEPDIR, am__include, and am__quote
17802 # from the Makefile without running `make'.
17803 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17804 test -z "$DEPDIR" && continue
17805 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17806 test -z "am__include" && continue
17807 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17808 # When using ansi2knr, U may be empty or an underscore; expand it
17809 U=`sed -n 's/^U = //p' < "$mf"`
17810 # Find all dependency output files, they are included files with
17811 # $(DEPDIR) in their names. We invoke sed twice because it is the
17812 # simplest approach to changing $(DEPDIR) to its actual value in the
17814 for file in `sed -n "
17815 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17816 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17817 # Make sure the directory exists.
17818 test -f "$dirpart/$file" && continue
17819 fdir=`(dirname "$file") 2>/dev/null ||
17820 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17821 X"$file" : 'X\(//\)[^/]' \| \
17822 X"$file" : 'X\(//\)$' \| \
17823 X"$file" : 'X\(/\)' \| \
17824 . : '\(.\)' 2>/dev/null ||
17826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17828 /^X\(\/\/\)$/{ s//\1/; q; }
17829 /^X\(\/\).*/{ s//\1/; q; }
17831 { if $as_mkdir_p; then
17832 mkdir -p $dirpart/$fdir
17834 as_dir=$dirpart/$fdir
17836 while test ! -d "$as_dir"; do
17837 as_dirs="$as_dir $as_dirs"
17838 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17839 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17840 X"$as_dir" : 'X\(//\)[^/]' \| \
17841 X"$as_dir" : 'X\(//\)$' \| \
17842 X"$as_dir" : 'X\(/\)' \| \
17843 . : '\(.\)' 2>/dev/null ||
17845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17846 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17847 /^X\(\/\/\)$/{ s//\1/; q; }
17848 /^X\(\/\).*/{ s//\1/; q; }
17851 test ! -n "$as_dirs" || mkdir $as_dirs
17852 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17853 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17854 { (exit 1); exit 1; }; }; }
17856 # echo "creating $dirpart/$file"
17857 echo '# dummy' > "$dirpart/$file"
17863 # See if we are running on zsh, and set the options which allow our
17864 # commands through without removal of \ escapes.
17865 if test -n "${ZSH_VERSION+set}" ; then
17866 setopt NO_GLOB_SUBST
17869 cfgfile="${ofile}T"
17870 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17873 cat <<_LT_EOF >> "$cfgfile"
17876 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17877 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
17878 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17879 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17881 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17882 # 2006, 2007 Free Software Foundation, Inc.
17884 # This file is part of GNU Libtool:
17885 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17887 # This program is free software; you can redistribute it and/or modify
17888 # it under the terms of the GNU General Public License as published by
17889 # the Free Software Foundation; either version 2 of the License, or
17890 # (at your option) any later version.
17892 # This program is distributed in the hope that it will be useful, but
17893 # WITHOUT ANY WARRANTY; without even the implied warranty of
17894 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17895 # General Public License for more details.
17897 # You should have received a copy of the GNU General Public License
17898 # along with this program; if not, a copy can be downloaded from
17899 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
17900 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17901 # MA 02110-1301, USA.
17903 # As a special exception to the GNU General Public License, if you
17904 # distribute this file as part of a program that contains a
17905 # configuration script generated by Autoconf, you may include it under
17906 # the same distribution terms that you use for the rest of that program.
17909 # The names of the tagged configurations supported by this script.
17910 available_tags="CXX "
17912 # ### BEGIN LIBTOOL CONFIG
17914 # Which release of libtool.m4 was used?
17915 macro_version=$macro_version
17916 macro_revision=$macro_revision
17918 # Whether or not to build shared libraries.
17919 build_libtool_libs=$enable_shared
17921 # Whether or not to build static libraries.
17922 build_old_libs=$enable_static
17924 # What type of objects to build.
17927 # Whether or not to optimize for fast installation.
17928 fast_install=$enable_fast_install
17931 host_alias=$host_alias
17935 # The build system.
17936 build_alias=$build_alias
17940 # A sed program that does not truncate output.
17943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17944 Xsed="\$SED -e 1s/^X//"
17946 # A grep program that handles long lines.
17952 # A literal string matcher.
17955 # A BSD- or MS-compatible name lister.
17958 # Whether we need soft or hard links.
17961 # What is the maximum length of a command?
17962 max_cmd_len=$max_cmd_len
17964 # Object file suffix (normally "o").
17967 # Executable file suffix (normally "").
17970 # whether the shell understands "unset".
17973 # turn spaces into newlines.
17976 # turn newlines into spaces.
17979 # How to create reloadable object files.
17980 reload_flag=$lt_reload_flag
17981 reload_cmds=$lt_reload_cmds
17983 # Method to check whether dependent libraries are shared objects.
17984 deplibs_check_method=$lt_deplibs_check_method
17986 # Command to use when deplibs_check_method == "file_magic".
17987 file_magic_cmd=$lt_file_magic_cmd
17991 AR_FLAGS=$lt_AR_FLAGS
17993 # A symbol stripping program.
17996 # Commands used to install an old-style archive.
17998 old_postinstall_cmds=$lt_old_postinstall_cmds
17999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18004 # LTCC compiler flags.
18005 LTCFLAGS=$lt_CFLAGS
18007 # Take the output of nm and produce a listing of raw symbols and C names.
18008 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18010 # Transform the output of nm in a proper C declaration.
18011 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18013 # Transform the output of nm in a C name address pair.
18014 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18016 # The name of the directory that contains temporary libtool files.
18019 # Shell to use when invoking shell scripts.
18022 # An echo program that does not interpret backslashes.
18025 # Used to examine libraries when file_magic_cmd begins with "file".
18026 MAGIC_CMD=$MAGIC_CMD
18028 # Must we lock files when doing compilation?
18029 need_locks=$lt_need_locks
18031 # Old archive suffix (normally "a").
18034 # Shared library suffix (normally ".so").
18035 shrext_cmds=$lt_shrext_cmds
18037 # The commands to extract the exported symbol list from a shared archive.
18038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18040 # Variables whose values should be saved in libtool wrapper scripts and
18041 # restored at link time.
18042 variables_saved_for_relink=$lt_variables_saved_for_relink
18044 # Do we need the "lib" prefix for modules?
18045 need_lib_prefix=$need_lib_prefix
18047 # Do we need a version for libraries?
18048 need_version=$need_version
18050 # Library versioning type.
18051 version_type=$version_type
18053 # Shared library runtime path variable.
18054 runpath_var=$runpath_var
18056 # Shared library path variable.
18057 shlibpath_var=$shlibpath_var
18059 # Is shlibpath searched before the hard-coded library search path?
18060 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18062 # Format of library name prefix.
18063 libname_spec=$lt_libname_spec
18065 # List of archive names. First name is the real one, the rest are links.
18066 # The last name is the one that the linker finds with -lNAME
18067 library_names_spec=$lt_library_names_spec
18069 # The coded name of the library, if different from the real name.
18070 soname_spec=$lt_soname_spec
18072 # Command to use after installation of a shared archive.
18073 postinstall_cmds=$lt_postinstall_cmds
18075 # Command to use after uninstallation of a shared archive.
18076 postuninstall_cmds=$lt_postuninstall_cmds
18078 # Commands used to finish a libtool library installation in a directory.
18079 finish_cmds=$lt_finish_cmds
18081 # As "finish_cmds", except a single script fragment to be evaled but
18083 finish_eval=$lt_finish_eval
18085 # Whether we should hardcode library paths into libraries.
18086 hardcode_into_libs=$hardcode_into_libs
18088 # Compile-time system search path for libraries.
18089 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18091 # Run-time system search path for libraries.
18092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18094 # Whether dlopen is supported.
18095 dlopen_support=$enable_dlopen
18097 # Whether dlopen of programs is supported.
18098 dlopen_self=$enable_dlopen_self
18100 # Whether dlopen of statically linked programs is supported.
18101 dlopen_self_static=$enable_dlopen_self_static
18103 # Commands to strip libraries.
18104 old_striplib=$lt_old_striplib
18105 striplib=$lt_striplib
18108 # The linker used to build libraries.
18111 # Commands used to build an old-style archive.
18112 old_archive_cmds=$lt_old_archive_cmds
18114 # A language specific compiler.
18117 # Is the compiler the GNU compiler?
18120 # Compiler flag to turn off builtin functions.
18121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18123 # How to pass a linker flag through the compiler.
18124 wl=$lt_lt_prog_compiler_wl
18126 # Additional compiler flags for building library objects.
18127 pic_flag=$lt_lt_prog_compiler_pic
18129 # Compiler flag to prevent dynamic linking.
18130 link_static_flag=$lt_lt_prog_compiler_static
18132 # Does compiler simultaneously support -c and -o options?
18133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18135 # Whether or not to add -lc for building shared libraries.
18136 build_libtool_need_lc=$archive_cmds_need_lc
18138 # Whether or not to disallow shared libs when runtime libs are static.
18139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18141 # Compiler flag to allow reflexive dlopens.
18142 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18144 # Compiler flag to generate shared objects directly from archives.
18145 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18147 # Whether the compiler copes with passing no objects directly.
18148 compiler_needs_object=$lt_compiler_needs_object
18150 # Create an old-style archive from a shared archive.
18151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18153 # Create a temporary old-style archive to link instead of a shared archive.
18154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18156 # Commands used to build a shared archive.
18157 archive_cmds=$lt_archive_cmds
18158 archive_expsym_cmds=$lt_archive_expsym_cmds
18160 # Commands used to build a loadable module if different from building
18161 # a shared archive.
18162 module_cmds=$lt_module_cmds
18163 module_expsym_cmds=$lt_module_expsym_cmds
18165 # Whether we are building with GNU ld or not.
18166 with_gnu_ld=$lt_with_gnu_ld
18168 # Flag that allows shared libraries with undefined symbols to be built.
18169 allow_undefined_flag=$lt_allow_undefined_flag
18171 # Flag that enforces no undefined symbols.
18172 no_undefined_flag=$lt_no_undefined_flag
18174 # Flag to hardcode \$libdir into a binary during linking.
18175 # This must work even if \$libdir does not exist
18176 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18178 # If ld is used when linking, flag to hardcode \$libdir into a binary
18179 # during linking. This must work even if \$libdir does not exist.
18180 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18182 # Whether we need a single "-rpath" flag with a separated argument.
18183 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18185 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18186 # DIR into the resulting binary.
18187 hardcode_direct=$hardcode_direct
18189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18190 # DIR into the resulting binary and the resulting library dependency is
18191 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18192 # library is relocated.
18193 hardcode_direct_absolute=$hardcode_direct_absolute
18195 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18196 # into the resulting binary.
18197 hardcode_minus_L=$hardcode_minus_L
18199 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18200 # into the resulting binary.
18201 hardcode_shlibpath_var=$hardcode_shlibpath_var
18203 # Set to "yes" if building a shared library automatically hardcodes DIR
18204 # into the library and all subsequent libraries and executables linked
18206 hardcode_automatic=$hardcode_automatic
18208 # Set to yes if linker adds runtime paths of dependent libraries
18209 # to runtime path list.
18210 inherit_rpath=$inherit_rpath
18212 # Whether libtool must link a program against all its dependency libraries.
18213 link_all_deplibs=$link_all_deplibs
18215 # Fix the shell variable \$srcfile for the compiler.
18216 fix_srcfile_path=$lt_fix_srcfile_path
18218 # Set to "yes" if exported symbols are required.
18219 always_export_symbols=$always_export_symbols
18221 # The commands to list exported symbols.
18222 export_symbols_cmds=$lt_export_symbols_cmds
18224 # Symbols that should not be listed in the preloaded symbols.
18225 exclude_expsyms=$lt_exclude_expsyms
18227 # Symbols that must always be exported.
18228 include_expsyms=$lt_include_expsyms
18230 # Commands necessary for linking programs (against libraries) with templates.
18231 prelink_cmds=$lt_prelink_cmds
18233 # Specify filename containing input files.
18234 file_list_spec=$lt_file_list_spec
18236 # How to hardcode a shared library path into an executable.
18237 hardcode_action=$hardcode_action
18239 # Dependencies to place before and after the objects being linked to
18240 # create a shared library.
18241 predep_objects=$lt_predep_objects
18242 postdep_objects=$lt_postdep_objects
18243 predeps=$lt_predeps
18244 postdeps=$lt_postdeps
18246 # The library search path used internally by the compiler when linking
18247 # a shared library.
18248 compiler_lib_search_path=$lt_compiler_lib_search_path
18250 # ### END LIBTOOL CONFIG
18256 cat <<\_LT_EOF >> "$cfgfile"
18257 # AIX sometimes has problems with the GCC collect2 program. For some
18258 # reason, if we set the COLLECT_NAMES environment variable, the problems
18259 # vanish in a puff of smoke.
18260 if test "X${COLLECT_NAMES+set}" != Xset; then
18262 export COLLECT_NAMES
18269 ltmain="$ac_aux_dir/ltmain.sh"
18272 # We use sed instead of cat because bash on DJGPP gets confused if
18273 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18274 # text mode, it properly converts lines to CR/LF. This bash problem
18275 # is reportedly fixed, but why not run on old versions too?
18276 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18277 || (rm -f "$cfgfile"; exit 1)
18281 cat << \_LT_EOF >> "$cfgfile"
18282 # func_dirname file append nondir_replacement
18283 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18284 # otherwise set result to NONDIR_REPLACEMENT.
18288 */*) func_dirname_result="${1%/*}${2}" ;;
18289 * ) func_dirname_result="${3}" ;;
18293 # func_basename file
18296 func_basename_result="${1##*/}"
18299 # func_stripname prefix suffix name
18300 # strip PREFIX and SUFFIX off of NAME.
18301 # PREFIX and SUFFIX must not contain globbing or regex special
18302 # characters, hashes, percent signs, but SUFFIX may contain a leading
18303 # dot (in which case that matches only a dot).
18306 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18307 # positional parameters, so assign one to ordinary parameter first.
18308 func_stripname_result=${3}
18309 func_stripname_result=${func_stripname_result#"${1}"}
18310 func_stripname_result=${func_stripname_result%"${2}"}
18316 func_opt_split_opt=${1%%=*}
18317 func_opt_split_arg=${1#*=}
18324 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18325 *) func_lo2o_result=${1} ;;
18330 *) # Bourne compatible functions.
18331 cat << \_LT_EOF >> "$cfgfile"
18332 # func_dirname file append nondir_replacement
18333 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18334 # otherwise set result to NONDIR_REPLACEMENT.
18337 # Extract subdirectory from the argument.
18338 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18339 if test "X$func_dirname_result" = "X${1}"; then
18340 func_dirname_result="${3}"
18342 func_dirname_result="$func_dirname_result${2}"
18346 # func_basename file
18349 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18352 # func_stripname prefix suffix name
18353 # strip PREFIX and SUFFIX off of NAME.
18354 # PREFIX and SUFFIX must not contain globbing or regex special
18355 # characters, hashes, percent signs, but SUFFIX may contain a leading
18356 # dot (in which case that matches only a dot).
18357 # func_strip_suffix prefix name
18361 .*) func_stripname_result=`$ECHO "X${3}" \
18362 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18363 *) func_stripname_result=`$ECHO "X${3}" \
18364 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18369 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18370 my_sed_long_arg='1s/^-[^=]*=//'
18375 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18376 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18382 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18387 case $lt_shell_append in
18389 cat << \_LT_EOF >> "$cfgfile"
18391 # func_append var value
18392 # Append VALUE to the end of shell variable VAR.
18400 cat << \_LT_EOF >> "$cfgfile"
18402 # func_append var value
18403 # Append VALUE to the end of shell variable VAR.
18413 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18414 || (rm -f "$cfgfile"; exit 1)
18416 mv -f "$cfgfile" "$ofile" ||
18417 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18421 cat <<_LT_EOF >> "$ofile"
18423 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18425 # The linker used to build libraries.
18428 # Commands used to build an old-style archive.
18429 old_archive_cmds=$lt_old_archive_cmds_CXX
18431 # A language specific compiler.
18432 CC=$lt_compiler_CXX
18434 # Is the compiler the GNU compiler?
18437 # Compiler flag to turn off builtin functions.
18438 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18440 # How to pass a linker flag through the compiler.
18441 wl=$lt_lt_prog_compiler_wl_CXX
18443 # Additional compiler flags for building library objects.
18444 pic_flag=$lt_lt_prog_compiler_pic_CXX
18446 # Compiler flag to prevent dynamic linking.
18447 link_static_flag=$lt_lt_prog_compiler_static_CXX
18449 # Does compiler simultaneously support -c and -o options?
18450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18452 # Whether or not to add -lc for building shared libraries.
18453 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18455 # Whether or not to disallow shared libs when runtime libs are static.
18456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18458 # Compiler flag to allow reflexive dlopens.
18459 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18461 # Compiler flag to generate shared objects directly from archives.
18462 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18464 # Whether the compiler copes with passing no objects directly.
18465 compiler_needs_object=$lt_compiler_needs_object_CXX
18467 # Create an old-style archive from a shared archive.
18468 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18470 # Create a temporary old-style archive to link instead of a shared archive.
18471 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18473 # Commands used to build a shared archive.
18474 archive_cmds=$lt_archive_cmds_CXX
18475 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18477 # Commands used to build a loadable module if different from building
18478 # a shared archive.
18479 module_cmds=$lt_module_cmds_CXX
18480 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18482 # Whether we are building with GNU ld or not.
18483 with_gnu_ld=$lt_with_gnu_ld_CXX
18485 # Flag that allows shared libraries with undefined symbols to be built.
18486 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18488 # Flag that enforces no undefined symbols.
18489 no_undefined_flag=$lt_no_undefined_flag_CXX
18491 # Flag to hardcode \$libdir into a binary during linking.
18492 # This must work even if \$libdir does not exist
18493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18495 # If ld is used when linking, flag to hardcode \$libdir into a binary
18496 # during linking. This must work even if \$libdir does not exist.
18497 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18499 # Whether we need a single "-rpath" flag with a separated argument.
18500 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18503 # DIR into the resulting binary.
18504 hardcode_direct=$hardcode_direct_CXX
18506 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18507 # DIR into the resulting binary and the resulting library dependency is
18508 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18509 # library is relocated.
18510 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18512 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18513 # into the resulting binary.
18514 hardcode_minus_L=$hardcode_minus_L_CXX
18516 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18517 # into the resulting binary.
18518 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18520 # Set to "yes" if building a shared library automatically hardcodes DIR
18521 # into the library and all subsequent libraries and executables linked
18523 hardcode_automatic=$hardcode_automatic_CXX
18525 # Set to yes if linker adds runtime paths of dependent libraries
18526 # to runtime path list.
18527 inherit_rpath=$inherit_rpath_CXX
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_CXX
18532 # Fix the shell variable \$srcfile for the compiler.
18533 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18535 # Set to "yes" if exported symbols are required.
18536 always_export_symbols=$always_export_symbols_CXX
18538 # The commands to list exported symbols.
18539 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18541 # Symbols that should not be listed in the preloaded symbols.
18542 exclude_expsyms=$lt_exclude_expsyms_CXX
18544 # Symbols that must always be exported.
18545 include_expsyms=$lt_include_expsyms_CXX
18547 # Commands necessary for linking programs (against libraries) with templates.
18548 prelink_cmds=$lt_prelink_cmds_CXX
18550 # Specify filename containing input files.
18551 file_list_spec=$lt_file_list_spec_CXX
18553 # How to hardcode a shared library path into an executable.
18554 hardcode_action=$hardcode_action_CXX
18556 # Dependencies to place before and after the objects being linked to
18557 # create a shared library.
18558 predep_objects=$lt_predep_objects_CXX
18559 postdep_objects=$lt_postdep_objects_CXX
18560 predeps=$lt_predeps_CXX
18561 postdeps=$lt_postdeps_CXX
18563 # The library search path used internally by the compiler when linking
18564 # a shared library.
18565 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18567 # ### END LIBTOOL TAG CONFIG: CXX
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18577 { (exit 0); exit 0; }
18579 chmod +x $CONFIG_STATUS
18580 ac_clean_files=$ac_clean_files_save
18583 # configure is writing to config.log, and then calls config.status.
18584 # config.status does its own redirection, appending to config.log.
18585 # Unfortunately, on DOS this fails, as config.log is still kept open
18586 # by configure, so config.status won't be able to write to it; its
18587 # output is simply discarded. So we exec the FD to /dev/null,
18588 # effectively closing config.log, so it can be properly (re)opened and
18589 # appended to by config.status. When coming back to configure, we
18590 # need to make the FD available again.
18591 if test "$no_create" != yes; then
18593 ac_config_status_args=
18594 test "$silent" = yes &&
18595 ac_config_status_args="$ac_config_status_args --quiet"
18597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18600 # would make configure fail if this is the last instruction.
18601 $ac_cs_success || { (exit 1); exit 1; }