2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
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.
417 PACKAGE_NAME='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
423 ac_unique_file="java/lang/System.java"
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_subdirs_all="$ac_subdirs_all classpath libltdl"
462 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 build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs ANTLR_JAR CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE INSTALL_BINARIES_TRUE INSTALL_BINARIES_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gcjsubdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here python_mod_dir python_mod_dir_expanded MAKE INSTALL_AOT_RPM_TRUE INSTALL_AOT_RPM_FALSE CREATE_JAVA_HOME_TRUE CREATE_JAVA_HOME_FALSE gcc_suffix JAVA_VERSION BUILD_VERSION JVM_ROOT_DIR JVM_JAR_ROOT_DIR JVM_JAR_DIR JRE_DIR SDK_DIR JRE_LNK SDK_LNK SDK_BIN_DIR SDK_LIB_DIR SDK_INCLUDE_DIR JRE_BIN_DIR JRE_LIB_DIR GCJ_BIN_DIR CPU OS LIBDIR LIBOBJS LTLIBOBJS'
466 # Initialize some variables set by options.
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
478 program_transform_name=s,x,x,
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535 cache_file=$ac_optarg ;;
538 cache_file=config.cache ;;
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 datadir=$ac_optarg ;;
546 -disable-* | --disable-*)
547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
555 -enable-* | --enable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 eval "enable_$ac_feature='$ac_optarg'" ;;
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix=$ac_optarg ;;
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
581 -help | --help | --hel | --he | -h)
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
598 includedir=$ac_optarg ;;
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
605 -libdir | --libdir | --libdi | --libd)
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
615 libexecdir=$ac_optarg ;;
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624 localstatedir=$ac_optarg ;;
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 # Obsolete; use --without-fp.
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650 oldincludedir=$ac_optarg ;;
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662 program_prefix=$ac_optarg ;;
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669 program_suffix=$ac_optarg ;;
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
686 program_transform_name=$ac_optarg ;;
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 sbindir=$ac_optarg ;;
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 sharedstatedir=$ac_optarg ;;
709 -site | --site | --sit)
711 -site=* | --site=* | --sit=*)
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724 sysconfdir=$ac_optarg ;;
726 -target | --target | --targe | --targ | --tar | --ta | --t)
727 ac_prev=target_alias ;;
728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729 target_alias=$ac_optarg ;;
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
734 -version | --version | --versio | --versi | --vers | -V)
738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 eval "with_$ac_package='$ac_optarg'" ;;
750 -without-* | --without-*)
751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
760 # Obsolete; use --with-x.
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768 x_includes=$ac_optarg ;;
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775 x_libraries=$ac_optarg ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 if test -n "$ac_prev"; then
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
812 eval ac_val=$`echo $ac_var`
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
824 eval ac_val=$`echo $ac_var`
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853 test "$silent" = yes && exec 6>/dev/null
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
873 if test ! -r $srcdir/$ac_unique_file; then
877 ac_srcdir_defaulted=no
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
930 # Report the --help message.
932 if test "$ac_init_help" = "long"; then
933 # Omit some internal or obsolete options to make the list less imposing.
934 # This message is too long to be a string in the A/UX 3.1 sh.
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
938 Usage: $0 [OPTION]... [VAR=VALUE]...
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE. See below for descriptions of some of the useful variables.
943 Defaults for the options are specified in brackets.
946 -h, --help display this help and exit
947 --help=short display options specific to this package
948 --help=recursive display the short help of all the included packages
949 -V, --version display version information and exit
950 -q, --quiet, --silent do not print \`checking...' messages
951 --cache-file=FILE cache test results in FILE [disabled]
952 -C, --config-cache alias for \`--cache-file=config.cache'
953 -n, --no-create do not create output files
954 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959 Installation directories:
960 --prefix=PREFIX install architecture-independent files in PREFIX
962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
970 For better control, use the options below.
972 Fine tuning of the installation directories:
973 --bindir=DIR user executables [EPREFIX/bin]
974 --sbindir=DIR system admin executables [EPREFIX/sbin]
975 --libexecdir=DIR program executables [EPREFIX/libexec]
976 --datadir=DIR read-only architecture-independent data [PREFIX/share]
977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
980 --libdir=DIR object code libraries [EPREFIX/lib]
981 --includedir=DIR C header files [PREFIX/include]
982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
983 --infodir=DIR info documentation [PREFIX/info]
984 --mandir=DIR man documentation [PREFIX/man]
990 --program-prefix=PREFIX prepend PREFIX to installed program names
991 --program-suffix=SUFFIX append SUFFIX to installed program names
992 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
995 --x-includes=DIR X include files are in DIR
996 --x-libraries=DIR X library files are in DIR
999 --build=BUILD configure for building on BUILD [guessed]
1000 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1001 --target=TARGET configure for building compilers for TARGET [HOST]
1005 if test -n "$ac_init_help"; then
1006 case $ac_init_help in
1007 short | recursive ) echo "Configuration of libjava version-unused:";;
1012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014 --enable-multilib build many library versions (default)
1015 --enable-version-specific-runtime-libs
1016 specify that runtime libraries should be installed
1017 in a compiler-specific directory
1018 --enable-plugin build gcjwebplugin web browser plugin
1019 --enable-gconf-peer compile GConf native peers for util.preferences
1020 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1022 --enable-java-maintainer-mode
1023 allow rebuilding of .class and .h files
1024 --disable-dependency-tracking speeds up one-time build
1025 --enable-dependency-tracking do not reject slow dependency extractors
1026 --enable-maintainer-mode enable make rules and dependencies not useful
1027 (and sometimes confusing) to the casual installer
1028 --enable-libgcj-debug enable runtime debugging code
1029 --enable-java-awt list of AWT peer implementations to be built
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --disable-getenv-properties
1038 don't set system properties from GCJ_PROPERTIES
1039 --enable-hash-synchronization
1040 use global hash table for monitor locks
1041 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1043 --enable-reduced-reflection
1044 enable or disable(default) -freduced-reflection when
1045 building portions of libgcj
1046 --enable-gc-debug include full support for pointer backtracing etc.
1047 --enable-interpreter enable interpreter
1048 --enable-sjlj-exceptions
1049 force use of builtin_setjmp for exceptions
1050 --disable-java-net disable java.net
1051 --disable-jvmpi disable JVMPI support
1052 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1053 --disable-rpath do not hardcode runtime library paths
1054 --enable-tls Use thread-local storage [default=yes]
1055 --enable-aot-compile-rpm
1056 enable installation of aot-compile-rpm [default=no]
1057 --enable-java-home create a standard JDK-style directory layout in the
1058 install tree [default=no]
1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1063 --with-build-libsubdir=DIR Directory where to find libraries for build system
1064 --with-target-subdir=SUBDIR
1065 configure in a subdirectory
1066 --with-cross-host=HOST configure with a cross compiler from HOST
1067 --with-newlib configure with newlib
1068 --with-antlr-jar=file Use ANTLR from the specified jar file
1069 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1072 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1073 --with-ecj-jar=FILE use preinstalled ecj jar
1074 --with-java-home=DIRECTORY
1075 value of java.home system property
1076 --with-win32-nlsapi=ansi or unicows or unicode
1077 native MinGW libgcj Win32 OS API (default is ansi)
1078 --without-libffi don't use libffi
1079 --with-ecos enable runtime eCos target support
1080 --with-system-zlib use installed libz
1081 --with-x use the X Window System
1082 --with-gnu-ld assume the C compiler uses GNU ld default=no
1083 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1084 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1085 --with-python-dir the location to install Python modules. This path
1086 should NOT include the prefix.
1087 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1088 --with-arch-directory the arch directory under jre/lib (defaults to
1090 --with-os-directory the os directory under include (defaults to
1092 --with-origin-name the JPackage origin name of this package (default is
1094 --with-arch-suffix the arch directory suffix (default is the empty
1096 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1097 --with-jvm-jar-dir where to install jars (default is
1098 ${prefix}/lib/jvm-exports)
1100 Some influential environment variables:
1101 CC C compiler command
1102 CFLAGS C compiler flags
1103 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104 nonstandard directory <lib dir>
1105 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106 headers in a nonstandard directory <include dir>
1107 CXX C++ compiler command
1108 CXXFLAGS C++ compiler flags
1110 CXXCPP C++ preprocessor
1112 Use these variables to override the choices made by `configure' or to help
1113 it to find libraries and programs with nonstandard names/locations.
1118 if test "$ac_init_help" = "recursive"; then
1119 # If there are subdirs, report their specific --help.
1121 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1122 test -d $ac_dir || continue
1125 if test "$ac_dir" != .; then
1126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1127 # A "../" for each directory in $ac_dir_suffix.
1128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130 ac_dir_suffix= ac_top_builddir=
1134 .) # No --srcdir option. We are building in place.
1136 if test -z "$ac_top_builddir"; then
1139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141 [\\/]* | ?:[\\/]* ) # Absolute path.
1142 ac_srcdir=$srcdir$ac_dir_suffix;
1143 ac_top_srcdir=$srcdir ;;
1145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1146 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1149 # Do not use `cd foo && pwd` to compute absolute paths, because
1150 # the directories may not exist.
1152 .) ac_abs_builddir="$ac_dir";;
1155 .) ac_abs_builddir=`pwd`;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1157 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1160 case $ac_abs_builddir in
1161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 case ${ac_top_builddir}. in
1164 .) ac_abs_top_builddir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1169 case $ac_abs_builddir in
1170 .) ac_abs_srcdir=$ac_srcdir;;
1173 .) ac_abs_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1178 case $ac_abs_builddir in
1179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 case $ac_top_srcdir in
1182 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189 # Check for guested configure; otherwise get Cygnus style configure.
1190 if test -f $ac_srcdir/configure.gnu; then
1192 $SHELL $ac_srcdir/configure.gnu --help=recursive
1193 elif test -f $ac_srcdir/configure; then
1195 $SHELL $ac_srcdir/configure --help=recursive
1196 elif test -f $ac_srcdir/configure.ac ||
1197 test -f $ac_srcdir/configure.in; then
1199 $ac_configure --help
1201 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207 test -n "$ac_init_help" && exit 0
1208 if $ac_init_version; then
1210 libjava configure version-unused
1211 generated by GNU Autoconf 2.59
1213 Copyright (C) 2003 Free Software Foundation, Inc.
1214 This configure script is free software; the Free Software Foundation
1215 gives unlimited permission to copy, distribute and modify it.
1221 This file contains any messages produced by compilers while
1222 running configure, to aid debugging if configure makes a mistake.
1224 It was created by libjava $as_me version-unused, which was
1225 generated by GNU Autoconf 2.59. Invocation command line was
1236 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1237 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1238 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1239 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1240 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1243 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1245 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1246 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1247 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1248 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1249 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1250 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1251 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 test -z "$as_dir" && as_dir=.
1260 echo "PATH: $as_dir"
1275 # Keep a trace of the command line.
1276 # Strip out --no-create and --no-recursion so they do not pile up.
1277 # Strip out --silent because we don't want to record it for future runs.
1278 # Also quote any args containing shell meta-characters.
1279 # Make two passes to allow for proper duplicate-argument suppression.
1284 ac_must_keep_next=false
1290 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292 | -silent | --silent | --silen | --sile | --sil)
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1301 if test $ac_must_keep_next = true; then
1302 ac_must_keep_next=false # Got value, back to normal.
1305 *=* | --config-cache | -C | -disable-* | --disable-* \
1306 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1307 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1308 | -with-* | --with-* | -without-* | --without-* | --x)
1309 case "$ac_configure_args0 " in
1310 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313 -* ) ac_must_keep_next=true ;;
1316 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1317 # Get rid of the leading space.
1323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326 # When interrupted or exit'd, cleanup temporary files, and complete
1327 # config.log. We remove comments because anyway the quotes in there
1328 # would cause problems or look ugly.
1329 # WARNING: Be sure not to use single quotes in there, as some shells,
1330 # such as our DU 5.0 friend, will then `close' the trap.
1331 trap 'exit_status=$?
1332 # Save into config.log some information that might help in debugging.
1337 ## ---------------- ##
1338 ## Cache variables. ##
1339 ## ---------------- ##
1342 # The following way of writing the cache mishandles newlines in values,
1345 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1360 ## ----------------- ##
1361 ## Output variables. ##
1362 ## ----------------- ##
1365 for ac_var in $ac_subst_vars
1367 eval ac_val=$`echo $ac_var`
1368 echo "$ac_var='"'"'$ac_val'"'"'"
1372 if test -n "$ac_subst_files"; then
1379 for ac_var in $ac_subst_files
1381 eval ac_val=$`echo $ac_var`
1382 echo "$ac_var='"'"'$ac_val'"'"'"
1387 if test -s confdefs.h; then
1394 sed "/^$/d" confdefs.h | sort
1397 test "$ac_signal" != 0 &&
1398 echo "$as_me: caught signal $ac_signal"
1399 echo "$as_me: exit $exit_status"
1401 rm -f core *.core &&
1402 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405 for ac_signal in 1 2 13 15; do
1406 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1411 rm -rf conftest* confdefs.h
1412 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415 # Predefined preprocessor variables.
1417 cat >>confdefs.h <<_ACEOF
1418 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 cat >>confdefs.h <<_ACEOF
1423 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 # Let the site file select an alternate cache file if it wants to.
1443 # Prefer explicitly selected file to automatically selected ones.
1444 if test -z "$CONFIG_SITE"; then
1445 if test "x$prefix" != xNONE; then
1446 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451 for ac_site_file in $CONFIG_SITE; do
1452 if test -r "$ac_site_file"; then
1453 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1454 echo "$as_me: loading site script $ac_site_file" >&6;}
1455 sed 's/^/| /' "$ac_site_file" >&5
1460 if test -r "$cache_file"; then
1461 # Some versions of bash will fail to source /dev/null (special
1462 # files actually), so we avoid doing that.
1463 if test -f "$cache_file"; then
1464 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1465 echo "$as_me: loading cache $cache_file" >&6;}
1467 [\\/]* | ?:[\\/]* ) . $cache_file;;
1468 *) . ./$cache_file;;
1472 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1473 echo "$as_me: creating cache $cache_file" >&6;}
1477 # Check that the precious variables saved in the cache have kept the same
1479 ac_cache_corrupted=false
1480 for ac_var in `(set) 2>&1 |
1481 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1482 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1483 eval ac_new_set=\$ac_env_${ac_var}_set
1484 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1485 eval ac_new_val="\$ac_env_${ac_var}_value"
1486 case $ac_old_set,$ac_new_set in
1488 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1489 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1490 ac_cache_corrupted=: ;;
1492 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1493 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1494 ac_cache_corrupted=: ;;
1497 if test "x$ac_old_val" != "x$ac_new_val"; then
1498 # differences in whitespace do not lead to failure.
1499 ac_old_val_w=`echo x $ac_old_val`
1500 ac_new_val_w=`echo x $ac_new_val`
1501 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1502 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1503 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1504 ac_cache_corrupted=:
1506 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1507 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1508 eval $ac_var=\$ac_old_val
1510 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1511 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1512 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1513 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1516 # Pass precious variables to config.status.
1517 if test "$ac_new_set" = set; then
1519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1520 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1521 *) ac_arg=$ac_var=$ac_new_val ;;
1523 case " $ac_configure_args " in
1524 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1525 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529 if $ac_cache_corrupted; then
1530 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1531 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1532 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536 { (exit 1); exit 1; }; }
1540 ac_cpp='$CPP $CPPFLAGS'
1541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1578 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1579 if test -f $ac_dir/install-sh; then
1581 ac_install_sh="$ac_aux_dir/install-sh -c"
1583 elif test -f $ac_dir/install.sh; then
1585 ac_install_sh="$ac_aux_dir/install.sh -c"
1587 elif test -f $ac_dir/shtool; then
1589 ac_install_sh="$ac_aux_dir/shtool install -c"
1593 if test -z "$ac_aux_dir"; then
1594 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1595 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1596 { (exit 1); exit 1; }; }
1598 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1599 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1600 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1602 # Make sure we can run config.sub.
1603 $ac_config_sub sun4 >/dev/null 2>&1 ||
1604 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1605 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1606 { (exit 1); exit 1; }; }
1608 echo "$as_me:$LINENO: checking build system type" >&5
1609 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1610 if test "${ac_cv_build+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 ac_cv_build_alias=$build_alias
1614 test -z "$ac_cv_build_alias" &&
1615 ac_cv_build_alias=`$ac_config_guess`
1616 test -z "$ac_cv_build_alias" &&
1617 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1618 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1619 { (exit 1); exit 1; }; }
1620 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1621 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1622 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1623 { (exit 1); exit 1; }; }
1626 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1627 echo "${ECHO_T}$ac_cv_build" >&6
1629 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1630 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1631 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634 case ${build_alias} in
1635 "") build_noncanonical=${build} ;;
1636 *) build_noncanonical=${build_alias} ;;
1639 case ${host_alias} in
1640 "") host_noncanonical=${build_noncanonical} ;;
1641 *) host_noncanonical=${host_alias} ;;
1644 case ${target_alias} in
1645 "") target_noncanonical=${host_noncanonical} ;;
1646 *) target_noncanonical=${target_alias} ;;
1650 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1651 # have matching libraries, they should use host libraries: Makefile.tpl
1652 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1653 # However, they still use the build modules, because the corresponding
1654 # host modules (e.g. bison) are only built for the host when bootstrap
1656 # - build_subdir is where we find build modules, and never changes.
1657 # - build_libsubdir is where we find build libraries, and can be overridden.
1659 # Prefix 'build-' so this never conflicts with target_subdir.
1660 build_subdir="build-${build_noncanonical}"
1662 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1663 if test "${with_build_libsubdir+set}" = set; then
1664 withval="$with_build_libsubdir"
1665 build_libsubdir="$withval"
1667 build_libsubdir="$build_subdir"
1669 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1670 if ( test $srcdir = . && test -d gcc ) \
1671 || test -d $srcdir/../host-${host_noncanonical}; then
1672 host_subdir="host-${host_noncanonical}"
1677 target_subdir=${target_noncanonical}
1680 # We use these options to decide which functions to include.
1682 # Check whether --with-target-subdir or --without-target-subdir was given.
1683 if test "${with_target_subdir+set}" = set; then
1684 withval="$with_target_subdir"
1688 # We may get other options which we don't document:
1689 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1691 # Find the rest of the source tree framework.
1692 # Default to --enable-multilib
1693 # Check whether --enable-multilib or --disable-multilib was given.
1694 if test "${enable_multilib+set}" = set; then
1695 enableval="$enable_multilib"
1696 case "$enableval" in
1697 yes) multilib=yes ;;
1699 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1700 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1701 { (exit 1); exit 1; }; } ;;
1707 # We may get other options which we leave undocumented:
1708 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1709 # See config-ml.in if you want the gory details.
1711 if test "$srcdir" = "."; then
1712 if test "$with_target_subdir" != "."; then
1713 multi_basedir="$srcdir/$with_multisrctop../.."
1715 multi_basedir="$srcdir/$with_multisrctop.."
1718 multi_basedir="$srcdir/.."
1722 # Even if the default multilib is not a cross compilation,
1723 # it may be that some of the other multilibs are.
1724 if test $cross_compiling = no && test $multilib = yes \
1725 && test "x${with_multisubdir}" != x ; then
1726 cross_compiling=maybe
1729 ac_config_commands="$ac_config_commands default-1"
1732 echo "$as_me:$LINENO: checking host system type" >&5
1733 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1734 if test "${ac_cv_host+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 ac_cv_host_alias=$host_alias
1738 test -z "$ac_cv_host_alias" &&
1739 ac_cv_host_alias=$ac_cv_build_alias
1740 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1741 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1742 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1743 { (exit 1); exit 1; }; }
1746 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1747 echo "${ECHO_T}$ac_cv_host" >&6
1749 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1750 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1751 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754 echo "$as_me:$LINENO: checking target system type" >&5
1755 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1756 if test "${ac_cv_target+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1759 ac_cv_target_alias=$target_alias
1760 test "x$ac_cv_target_alias" = "x" &&
1761 ac_cv_target_alias=$ac_cv_host_alias
1762 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1763 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1764 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1765 { (exit 1); exit 1; }; }
1768 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1769 echo "${ECHO_T}$ac_cv_target" >&6
1770 target=$ac_cv_target
1771 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1772 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1773 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776 # The aliases save the names the user supplied, while $host etc.
1777 # will get canonicalized.
1778 test -n "$target_alias" &&
1779 test "$program_prefix$program_suffix$program_transform_name" = \
1781 program_prefix=${target_alias}-
1782 case ${build_alias} in
1783 "") build_noncanonical=${build} ;;
1784 *) build_noncanonical=${build_alias} ;;
1787 case ${target_alias} in
1788 "") target_noncanonical=${host_noncanonical} ;;
1789 *) target_noncanonical=${target_alias} ;;
1795 # This works around the fact that libtool configuration may change LD
1796 # for this particular configuration, but some shells, instead of
1797 # keeping the changes in LD private, export them just because LD is
1799 ORIGINAL_LD_FOR_MULTILIBS=$LD
1801 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1802 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1804 if test "$LN_S" = "ln -s"; then
1805 echo "$as_me:$LINENO: result: yes" >&5
1806 echo "${ECHO_T}yes" >&6
1808 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1809 echo "${ECHO_T}no, using $LN_S" >&6
1813 # This works around an automake problem.
1814 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1818 # Check whether --with-cross-host or --without-cross-host was given.
1819 if test "${with_cross_host+set}" = set; then
1820 withval="$with_cross_host"
1825 # Check whether --with-newlib or --without-newlib was given.
1826 if test "${with_newlib+set}" = set; then
1827 withval="$with_newlib"
1831 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1832 if test "${enable_version_specific_runtime_libs+set}" = set; then
1833 enableval="$enable_version_specific_runtime_libs"
1834 case "$enableval" in
1835 yes) version_specific_libs=yes ;;
1836 no) version_specific_libs=no ;;
1837 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1838 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1839 { (exit 1); exit 1; }; };;
1842 version_specific_libs=no
1846 # Check whether --enable-plugin or --disable-plugin was given.
1847 if test "${enable_plugin+set}" = set; then
1848 enableval="$enable_plugin"
1849 case "$enableval" in
1850 yes) plugin_enabled=yes ;;
1851 no) plugin_enabled=no ;;
1852 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1853 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1854 { (exit 1); exit 1; }; };;
1861 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1862 if test "${enable_gconf_peer+set}" = set; then
1863 enableval="$enable_gconf_peer"
1864 case "$enableval" in
1865 yes) gconf_enabled=yes ;;
1866 no) gconf_enabled=no ;;
1867 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1868 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1869 { (exit 1); exit 1; }; };;
1877 # Check whether --with-antlr-jar or --without-antlr-jar was given.
1878 if test "${with_antlr_jar+set}" = set; then
1879 withval="$with_antlr_jar"
1889 echo "$as_me:$LINENO: checking for antlr.jar" >&5
1890 echo $ECHO_N "checking for antlr.jar... $ECHO_C" >&6
1891 if test "x$ANTLR_JAR" = x; then
1892 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
1893 /usr/share/antlr/lib /usr/share/java /usr/lib;
1895 if test -f "$antlr_lib_home/antlr.jar"; then
1896 # FIXME: version check for antlr needed without using a VM
1897 ANTLR_JAR="$antlr_lib_home/antlr.jar"
1901 if test "x$ANTLR_JAR" = x; then
1902 echo "$as_me:$LINENO: result: not found" >&5
1903 echo "${ECHO_T}not found" >&6
1905 echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1906 echo "${ECHO_T}$ANTLR_JAR" >&6
1909 if test -f "${ANTLR_JAR}"; then
1910 echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1911 echo "${ECHO_T}$ANTLR_JAR" >&6
1913 { { echo "$as_me:$LINENO: error: antlr jar file not found: $ANTLR_JAR" >&5
1914 echo "$as_me: error: antlr jar file not found: $ANTLR_JAR" >&2;}
1915 { (exit 1); exit 1; }; }
1920 # Check whether --enable-gjdoc or --disable-gjdoc was given.
1921 if test "${enable_gjdoc+set}" = set; then
1922 enableval="$enable_gjdoc"
1923 case "${enableval}" in
1924 yes) BUILD_GJDOC=yes ;;
1925 no) BUILD_GJDOC=no ;;
1926 *) BUILD_GJDOC=yes ;;
1932 echo "$as_me:$LINENO: checking whether to build gjdoc" >&5
1933 echo $ECHO_N "checking whether to build gjdoc... $ECHO_C" >&6
1934 if test "x$BUILD_GJDOC" = xmaybe; then
1935 if test -f "${ANTLR_JAR}"; then
1937 echo "$as_me:$LINENO: result: yes" >&5
1938 echo "${ECHO_T}yes" >&6
1941 echo "$as_me:$LINENO: result: no, antlr.jar not found" >&5
1942 echo "${ECHO_T}no, antlr.jar not found" >&6
1945 echo "$as_me:$LINENO: result: $BUILD_GJDOC" >&5
1946 echo "${ECHO_T}$BUILD_GJDOC" >&6
1950 if test "x${BUILD_GJDOC}" = xyes; then
1952 CREATE_GJDOC_FALSE='#'
1954 CREATE_GJDOC_TRUE='#'
1959 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1960 if test "${enable_java_maintainer_mode+set}" = set; then
1961 enableval="$enable_java_maintainer_mode"
1966 if test "$enable_java_maintainer_mode" = yes; then
1967 JAVA_MAINTAINER_MODE_TRUE=
1968 JAVA_MAINTAINER_MODE_FALSE='#'
1970 JAVA_MAINTAINER_MODE_TRUE='#'
1971 JAVA_MAINTAINER_MODE_FALSE=
1975 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1978 # (1) We use an abnormal CXX (without library references), so we
1979 # must cache it under a different name.
1980 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1981 # the non-multilib-adjusted value will be used in multilibs.
1982 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1983 # (4) As another side effect, automake doesn't automatically include them
1985 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1986 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1987 # used in later tests. This may not be necessary in libjava; I don't know.
1990 save_CXXFLAGS="$CXXFLAGS"
1991 CXXFLAGS="$CXXFLAGS -fno-builtin"
1993 ac_cpp='$CPP $CPPFLAGS'
1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 if test -n "$ac_tool_prefix"; then
1998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2000 echo "$as_me:$LINENO: checking for $ac_word" >&5
2001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002 if test "${ac_cv_prog_CC+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 if test -n "$CC"; then
2026 echo "$as_me:$LINENO: result: $CC" >&5
2027 echo "${ECHO_T}$CC" >&6
2029 echo "$as_me:$LINENO: result: no" >&5
2030 echo "${ECHO_T}no" >&6
2034 if test -z "$ac_cv_prog_CC"; then
2036 # Extract the first word of "gcc", so it can be a program name with args.
2037 set dummy gcc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$ac_ct_CC"; then
2044 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053 ac_cv_prog_ac_ct_CC="gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6
2067 echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6
2076 if test -z "$CC"; then
2077 if test -n "$ac_tool_prefix"; then
2078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2079 set dummy ${ac_tool_prefix}cc; ac_word=$2
2080 echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2082 if test "${ac_cv_prog_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$CC"; then
2086 ac_cv_prog_CC="$CC" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2095 ac_cv_prog_CC="${ac_tool_prefix}cc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 if test -n "$CC"; then
2106 echo "$as_me:$LINENO: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2109 echo "$as_me:$LINENO: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2114 if test -z "$ac_cv_prog_CC"; then
2116 # Extract the first word of "cc", so it can be a program name with args.
2117 set dummy cc; ac_word=$2
2118 echo "$as_me:$LINENO: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 test -z "$as_dir" && as_dir=.
2131 for ac_exec_ext in '' $ac_executable_extensions; do
2132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133 ac_cv_prog_ac_ct_CC="cc"
2134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143 if test -n "$ac_ct_CC"; then
2144 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145 echo "${ECHO_T}$ac_ct_CC" >&6
2147 echo "$as_me:$LINENO: result: no" >&5
2148 echo "${ECHO_T}no" >&6
2157 if test -z "$CC"; then
2158 # Extract the first word of "cc", so it can be a program name with args.
2159 set dummy cc; ac_word=$2
2160 echo "$as_me:$LINENO: checking for $ac_word" >&5
2161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162 if test "${ac_cv_prog_CC+set}" = set; then
2163 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 if test -n "$CC"; then
2166 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2177 ac_prog_rejected=yes
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187 if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2191 if test $# != 0; then
2192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2202 if test -n "$CC"; then
2203 echo "$as_me:$LINENO: result: $CC" >&5
2204 echo "${ECHO_T}$CC" >&6
2206 echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6
2211 if test -z "$CC"; then
2212 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_prog_CC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242 if test -n "$CC"; then
2243 echo "$as_me:$LINENO: result: $CC" >&5
2244 echo "${ECHO_T}$CC" >&6
2246 echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6
2250 test -n "$CC" && break
2253 if test -z "$CC"; then
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258 set dummy $ac_prog; ac_word=$2
2259 echo "$as_me:$LINENO: checking for $ac_word" >&5
2260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 if test -n "$ac_ct_CC"; then
2265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CC="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2284 if test -n "$ac_ct_CC"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2286 echo "${ECHO_T}$ac_ct_CC" >&6
2288 echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$ac_ct_CC" && break
2301 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2302 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: no acceptable C compiler found in \$PATH
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }; }
2309 # Provide some information about the compiler.
2310 echo "$as_me:$LINENO:" \
2311 "checking for C compiler version" >&5
2312 ac_compiler=`set X $ac_compile; echo $2`
2313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2314 (eval $ac_compiler --version </dev/null >&5) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }
2318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2319 (eval $ac_compiler -v </dev/null >&5) 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }
2323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2324 (eval $ac_compiler -V </dev/null >&5) 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346 (eval $ac_link) 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2355 if test x$gcc_no_link = xyes; then
2356 # Setting cross_compile will disable run tests; it will
2357 # also disable AC_CHECK_FILE but that's generally
2358 # correct if we can't link.
2362 cat >conftest.$ac_ext <<_ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h. */
2377 ac_clean_files_save=$ac_clean_files
2378 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2379 # Try to create an executable without -o first, disregard a.out.
2380 # It will help us diagnose broken compilers, and finding out an intuition
2382 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2383 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2384 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2385 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2386 (eval $ac_link_default) 2>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; then
2390 # Find the output, starting from the most likely. This scheme is
2391 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2394 # Be careful to initialize this variable, since it used to be cached.
2395 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2397 # b.out is created by i960 compilers.
2398 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2400 test -f "$ac_file" || continue
2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2405 # This is the source file.
2408 # We found the default executable, but exeext='' is most
2412 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413 # FIXME: I believe we export ac_cv_exeext for Libtool,
2414 # but it would be cool to find out if it's true. Does anybody
2415 # maintain Libtool? --akim.
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2426 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2427 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2429 See \`config.log' for more details." >&5
2430 echo "$as_me: error: C compiler cannot create executables
2431 See \`config.log' for more details." >&2;}
2432 { (exit 77); exit 77; }; }; }
2435 ac_exeext=$ac_cv_exeext
2436 echo "$as_me:$LINENO: result: $ac_file" >&5
2437 echo "${ECHO_T}$ac_file" >&6
2439 # Check the compiler produces executables we can run. If not, either
2440 # the compiler is broken, or we cross compile.
2441 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2442 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2443 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2444 # If not cross compiling, check that we can run a simple program.
2445 if test "$cross_compiling" != yes; then
2446 if { ac_try='./$ac_file'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 if test "$cross_compiling" = maybe; then
2457 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2458 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2460 If you meant to cross compile, use \`--host'.
2461 See \`config.log' for more details." >&5
2462 echo "$as_me: error: cannot run C compiled programs.
2463 If you meant to cross compile, use \`--host'.
2464 See \`config.log' for more details." >&2;}
2465 { (exit 1); exit 1; }; }; }
2469 echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6
2472 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2473 ac_clean_files=$ac_clean_files_save
2474 # Check the compiler produces executables we can run. If not, either
2475 # the compiler is broken, or we cross compile.
2476 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2477 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2478 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2479 echo "${ECHO_T}$cross_compiling" >&6
2481 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2482 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484 (eval $ac_link) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; then
2488 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2489 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2490 # work properly (i.e., refer to `conftest.exe'), while it won't with
2492 for ac_file in conftest.exe conftest conftest.*; do
2493 test -f "$ac_file" || continue
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2496 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2503 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2504 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }; }
2512 rm -f conftest$ac_cv_exeext
2513 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2514 echo "${ECHO_T}$ac_cv_exeext" >&6
2516 rm -f conftest.$ac_ext
2517 EXEEXT=$ac_cv_exeext
2520 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2521 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2522 if test "${ac_cv_objext+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; then
2546 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2557 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2562 See \`config.log' for more details." >&2;}
2563 { (exit 1); exit 1; }; }; }
2566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2569 echo "${ECHO_T}$ac_cv_objext" >&6
2570 OBJEXT=$ac_cv_objext
2572 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2573 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2574 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2595 rm -f conftest.$ac_objext
2596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2597 (eval $ac_compile) 2>conftest.er1
2599 grep -v '^ *+' conftest.er1 >conftest.err
2601 cat conftest.err >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -z "$ac_c_werror_flag"
2605 || test ! -s conftest.err'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; } &&
2611 { ac_try='test -s conftest.$ac_objext'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; }; then
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2628 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2629 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2630 GCC=`test $ac_compiler_gnu = yes && echo yes`
2631 ac_test_CFLAGS=${CFLAGS+set}
2632 ac_save_CFLAGS=$CFLAGS
2634 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2635 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2636 if test "${ac_cv_prog_cc_g+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2654 rm -f conftest.$ac_objext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656 (eval $ac_compile) 2>conftest.er1
2658 grep -v '^ *+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest.$ac_objext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2686 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2687 if test "$ac_test_CFLAGS" = set; then
2688 CFLAGS=$ac_save_CFLAGS
2689 elif test $ac_cv_prog_cc_g = yes; then
2690 if test "$GCC" = yes; then
2696 if test "$GCC" = yes; then
2702 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 ac_cv_prog_cc_stdc=no
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 #include <sys/types.h>
2718 #include <sys/stat.h>
2719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2720 struct buf { int x; };
2721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2722 static char *e (p, i)
2728 static char *f (char * (*g) (char **, int), char **p, ...)
2733 s = g (p, va_arg (v,int));
2738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2739 function prototypes and stuff, but not '\xHH' hex character constants.
2740 These don't provoke an error unfortunately, instead are silently treated
2741 as 'x'. The following induces an error, until -std1 is added to get
2742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2743 array size at least. It's necessary to write '\x00'==0 to get something
2744 that's true only with -std1. */
2745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747 int test (int i, double x);
2748 struct s1 {int (*f) (int a);};
2749 struct s2 {int (*f) (double a);};
2750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2761 # Don't try gcc -ansi; that turns off useful extensions and
2762 # breaks some systems' header files.
2763 # AIX -qlanglvl=ansi
2764 # Ultrix and OSF/1 -std1
2765 # HP-UX 10.20 and later -Ae
2766 # HP-UX older versions -Aa -D_HPUX_SOURCE
2767 # SVR4 -Xc -D__EXTENSIONS__
2768 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 CC="$ac_save_CC $ac_arg"
2771 rm -f conftest.$ac_objext
2772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773 (eval $ac_compile) 2>conftest.er1
2775 grep -v '^ *+' conftest.er1 >conftest.err
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 { ac_try='test -z "$ac_c_werror_flag"
2781 || test ! -s conftest.err'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; } &&
2787 { ac_try='test -s conftest.$ac_objext'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_cv_prog_cc_stdc=$ac_arg
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f conftest.err conftest.$ac_objext
2802 rm -f conftest.$ac_ext conftest.$ac_objext
2807 case "x$ac_cv_prog_cc_stdc" in
2809 echo "$as_me:$LINENO: result: none needed" >&5
2810 echo "${ECHO_T}none needed" >&6 ;;
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2814 CC="$CC $ac_cv_prog_cc_stdc" ;;
2817 # Some people use a C++ compiler to compile C. Since we use `exit',
2818 # in C++ we need to declare it. In case someone uses the same compiler
2819 # for both compiling C and C++ we need to have the C++ compiler decide
2820 # the declaration of exit, since it's the most demanding environment.
2821 cat >conftest.$ac_ext <<_ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2828 (eval $ac_compile) 2>conftest.er1
2830 grep -v '^ *+' conftest.er1 >conftest.err
2832 cat conftest.err >&5
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); } &&
2835 { ac_try='test -z "$ac_c_werror_flag"
2836 || test ! -s conftest.err'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; } &&
2842 { ac_try='test -s conftest.$ac_objext'
2843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 for ac_declaration in \
2850 'extern "C" void std::exit (int) throw (); using std::exit;' \
2851 'extern "C" void std::exit (int); using std::exit;' \
2852 'extern "C" void exit (int) throw ();' \
2853 'extern "C" void exit (int);' \
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2872 rm -f conftest.$ac_objext
2873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2874 (eval $ac_compile) 2>conftest.er1
2876 grep -v '^ *+' conftest.er1 >conftest.err
2878 cat conftest.err >&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); } &&
2881 { ac_try='test -z "$ac_c_werror_flag"
2882 || test ! -s conftest.err'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; } &&
2888 { ac_try='test -s conftest.$ac_objext'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; }; then
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1 >conftest.err
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948 if test -n "$ac_declaration"; then
2949 echo '#ifdef __cplusplus' >>confdefs.h
2950 echo $ac_declaration >>confdefs.h
2951 echo '#endif' >>confdefs.h
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 ac_cpp='$CXXCPP $CPPFLAGS'
2968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2978 if test "${ac_cv_prog_CXX+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 if test -n "$CXX"; then
2982 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$CXX"; then
3002 echo "$as_me:$LINENO: result: $CXX" >&5
3003 echo "${ECHO_T}$CXX" >&6
3005 echo "$as_me:$LINENO: result: no" >&5
3006 echo "${ECHO_T}no" >&6
3009 test -n "$CXX" && break
3012 if test -z "$CXX"; then
3014 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3016 # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 if test -n "$ac_ct_CXX"; then
3024 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_ac_ct_CXX="$ac_prog"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3043 if test -n "$ac_ct_CXX"; then
3044 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3045 echo "${ECHO_T}$ac_ct_CXX" >&6
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3051 test -n "$ac_ct_CXX" && break
3053 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3059 # Provide some information about the compiler.
3060 echo "$as_me:$LINENO:" \
3061 "checking for C++ compiler version" >&5
3062 ac_compiler=`set X $ac_compile; echo $2`
3063 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3064 (eval $ac_compiler --version </dev/null >&5) 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3069 (eval $ac_compiler -v </dev/null >&5) 2>&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }
3073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3074 (eval $ac_compiler -V </dev/null >&5) 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3079 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3080 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3081 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3102 rm -f conftest.$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_cxx_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3135 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3136 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3137 GXX=`test $ac_compiler_gnu = yes && echo yes`
3138 ac_test_CXXFLAGS=${CXXFLAGS+set}
3139 ac_save_CXXFLAGS=$CXXFLAGS
3141 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3142 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3143 if test "${ac_cv_prog_cxx_g+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3165 grep -v '^ *+' conftest.er1 >conftest.err
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_cxx_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_prog_cxx_g=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3194 if test "$ac_test_CXXFLAGS" = set; then
3195 CXXFLAGS=$ac_save_CXXFLAGS
3196 elif test $ac_cv_prog_cxx_g = yes; then
3197 if test "$GXX" = yes; then
3203 if test "$GXX" = yes; then
3209 for ac_declaration in \
3211 'extern "C" void std::exit (int) throw (); using std::exit;' \
3212 'extern "C" void std::exit (int); using std::exit;' \
3213 'extern "C" void exit (int) throw ();' \
3214 'extern "C" void exit (int);' \
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_cxx_werror_flag"
3243 || test ! -s conftest.err'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; }; then
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280 (eval $ac_compile) 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -z "$ac_cxx_werror_flag"
3288 || test ! -s conftest.err'
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309 if test -n "$ac_declaration"; then
3310 echo '#ifdef __cplusplus' >>confdefs.h
3311 echo $ac_declaration >>confdefs.h
3312 echo '#endif' >>confdefs.h
3316 ac_cpp='$CPP $CPPFLAGS'
3317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321 CXXFLAGS="$save_CXXFLAGS"
3327 am__api_version="1.9"
3328 # Find a good install program. We prefer a C program (faster),
3329 # so one script is as good as another. But avoid the broken or
3330 # incompatible versions:
3331 # SysV /etc/install, /usr/sbin/install
3332 # SunOS /usr/etc/install
3333 # IRIX /sbin/install
3335 # AmigaOS /C/install, which installs bootblocks on floppy discs
3336 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3337 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3338 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3339 # OS/2's system install, which has a completely different semantic
3340 # ./install, which can be erroneously created by make from ./install.sh.
3341 # Reject install programs that cannot install multiple files.
3342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3344 if test -z "$INSTALL"; then
3345 if test "${ac_cv_path_install+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 # Account for people who put trailing slashes in PATH elements.
3355 ./ | .// | /cC/* | \
3356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3357 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3360 # OSF1 and SCO ODT 3.0 have their own names for install.
3361 # Don't use installbsd from OSF since it installs stuff as root
3363 for ac_prog in ginstall scoinst install; do
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3366 if test $ac_prog = install &&
3367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3368 # AIX install. It has an incompatible calling convention.
3370 elif test $ac_prog = install &&
3371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3372 # program-specific install script used by HP pwplus--don't use.
3375 rm -rf conftest.one conftest.two conftest.dir
3376 echo one > conftest.one
3377 echo two > conftest.two
3379 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3380 test -s conftest.one && test -s conftest.two &&
3381 test -s conftest.dir/conftest.one &&
3382 test -s conftest.dir/conftest.two
3384 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3395 rm -rf conftest.one conftest.two conftest.dir
3398 if test "${ac_cv_path_install+set}" = set; then
3399 INSTALL=$ac_cv_path_install
3401 # As a last resort, use the slow shell script. Don't cache a
3402 # value for INSTALL within a source directory, because that will
3403 # break other packages using the cache if that directory is
3404 # removed, or if the value is a relative name.
3405 INSTALL=$ac_install_sh
3408 echo "$as_me:$LINENO: result: $INSTALL" >&5
3409 echo "${ECHO_T}$INSTALL" >&6
3411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3412 # It thinks the first close brace ends the variable substitution.
3413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3423 echo timestamp > conftest.file
3424 # Do `set' in a subshell so we don't clobber the current shell's
3425 # arguments. Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3430 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3431 if test "$*" = "X"; then
3433 set X `ls -t $srcdir/configure conftest.file`
3436 if test "$*" != "X $srcdir/configure conftest.file" \
3437 && test "$*" != "X conftest.file $srcdir/configure"; then
3439 # If neither matched, then we have a broken ls. This can happen
3440 # if, for instance, CONFIG_SHELL is bash and it inherits a
3441 # broken ls alias from the environment. This has actually
3442 # happened. Such a system could not be considered "sane".
3443 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3444 alias in your environment" >&5
3445 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3446 alias in your environment" >&2;}
3447 { (exit 1); exit 1; }; }
3450 test "$2" = conftest.file
3456 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3457 Check your system clock" >&5
3458 echo "$as_me: error: newly created file is older than distributed files!
3459 Check your system clock" >&2;}
3460 { (exit 1); exit 1; }; }
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 test "$program_prefix" != NONE &&
3465 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3466 # Use a double $ so make ignores it.
3467 test "$program_suffix" != NONE &&
3468 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3469 # Double any \ or $. echo might interpret backslashes.
3470 # By default was `s,x,x', remove it if useless.
3471 cat <<\_ACEOF >conftest.sed
3472 s/[\\$]/&&/g;s/;s,x,x,$//
3474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3477 # expand $ac_aux_dir to an absolute path
3478 am_aux_dir=`cd $ac_aux_dir && pwd`
3480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3481 # Use eval to expand $SHELL
3482 if eval "$MISSING --run true"; then
3483 am_missing_run="$MISSING --run "
3486 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3490 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3491 # We used to keeping the `.' as first argument, in order to
3492 # allow $(mkdir_p) to be used without argument. As in
3493 # $(mkdir_p) $(somedir)
3494 # where $(somedir) is conditionally defined. However this is wrong
3496 # 1. if the package is installed by a user who cannot write `.'
3497 # make install will fail,
3498 # 2. the above comment should most certainly read
3499 # $(mkdir_p) $(DESTDIR)$(somedir)
3500 # so it does not work when $(somedir) is undefined and
3501 # $(DESTDIR) is not.
3502 # To support the latter case, we have to write
3503 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3504 # so the `.' trick is pointless.
3505 mkdir_p='mkdir -p --'
3507 # On NextStep and OpenStep, the `mkdir' command does not
3508 # recognize any option. It will interpret all options as
3509 # directories to create, and then abort because `.' already
3511 for d in ./-p ./--version;
3513 test -d $d && rmdir $d
3515 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3516 if test -f "$ac_aux_dir/mkinstalldirs"; then
3517 mkdir_p='$(mkinstalldirs)'
3519 mkdir_p='$(install_sh) -d'
3523 for ac_prog in gawk mawk nawk awk
3525 # Extract the first word of "$ac_prog", so it can be a program name with args.
3526 set dummy $ac_prog; ac_word=$2
3527 echo "$as_me:$LINENO: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_AWK+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if test -n "$AWK"; then
3533 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_AWK="$ac_prog"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 if test -n "$AWK"; then
3553 echo "$as_me:$LINENO: result: $AWK" >&5
3554 echo "${ECHO_T}$AWK" >&6
3556 echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3560 test -n "$AWK" && break
3563 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3564 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3565 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3566 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 cat >conftest.make <<\_ACEOF
3571 @echo 'ac_maketemp="$(MAKE)"'
3573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3574 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3575 if test -n "$ac_maketemp"; then
3576 eval ac_cv_prog_make_${ac_make}_set=yes
3578 eval ac_cv_prog_make_${ac_make}_set=no
3582 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3583 echo "$as_me:$LINENO: result: yes" >&5
3584 echo "${ECHO_T}yes" >&6
3587 echo "$as_me:$LINENO: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3589 SET_MAKE="MAKE=${MAKE-make}"
3592 rm -rf .tst 2>/dev/null
3593 mkdir .tst 2>/dev/null
3594 if test -d .tst; then
3599 rmdir .tst 2>/dev/null
3601 DEPDIR="${am__leading_dot}deps"
3603 ac_config_commands="$ac_config_commands depfiles"
3606 am_make=${MAKE-make}
3607 cat > confinc << 'END'
3612 # If we don't find an include directive, just comment out the code.
3613 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3614 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3618 # First try GNU make style include.
3619 echo "include confinc" > confmf
3620 # We grep out `Entering directory' and `Leaving directory'
3621 # messages which can occur if `w' ends up in MAKEFLAGS.
3622 # In particular we don't look at `^make:' because GNU make might
3623 # be invoked under some other name (usually "gmake"), in which
3624 # case it prints its new name instead of `make'.
3625 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3630 # Now try BSD make style include.
3631 if test "$am__include" = "#"; then
3632 echo '.include "confinc"' > confmf
3633 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3634 am__include=.include
3641 echo "$as_me:$LINENO: result: $_am_result" >&5
3642 echo "${ECHO_T}$_am_result" >&6
3643 rm -f confinc confmf
3645 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3646 if test "${enable_dependency_tracking+set}" = set; then
3647 enableval="$enable_dependency_tracking"
3650 if test "x$enable_dependency_tracking" != xno; then
3651 am_depcomp="$ac_aux_dir/depcomp"
3656 if test "x$enable_dependency_tracking" != xno; then
3666 # test to see if srcdir already configured
3667 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3668 test -f $srcdir/config.status; then
3669 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3670 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3671 { (exit 1); exit 1; }; }
3674 # test whether we have cygpath
3675 if test -z "$CYGPATH_W"; then
3676 if (cygpath --version) >/dev/null 2>/dev/null; then
3677 CYGPATH_W='cygpath -w'
3684 # Define the identity of the package.
3686 VERSION='version-unused'
3689 cat >>confdefs.h <<_ACEOF
3690 #define PACKAGE "$PACKAGE"
3694 cat >>confdefs.h <<_ACEOF
3695 #define VERSION "$VERSION"
3698 # Some tools Automake needs.
3700 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3703 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3706 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3709 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3712 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3714 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3716 # Installed binaries are usually stripped using `strip' when the user
3717 # run `make install-strip'. However `strip' might not be the right
3718 # tool to use in cross-compilation environments, therefore Automake
3719 # will honor the `STRIP' environment variable to overrule this program.
3720 if test "$cross_compiling" != no; then
3721 if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3723 set dummy ${ac_tool_prefix}strip; ac_word=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_STRIP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$STRIP"; then
3730 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 STRIP=$ac_cv_prog_STRIP
3749 if test -n "$STRIP"; then
3750 echo "$as_me:$LINENO: result: $STRIP" >&5
3751 echo "${ECHO_T}$STRIP" >&6
3753 echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6
3758 if test -z "$ac_cv_prog_STRIP"; then
3760 # Extract the first word of "strip", so it can be a program name with args.
3761 set dummy strip; ac_word=$2
3762 echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -n "$ac_ct_STRIP"; then
3768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_ac_ct_STRIP="strip"
3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3788 if test -n "$ac_ct_STRIP"; then
3789 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3790 echo "${ECHO_T}$ac_ct_STRIP" >&6
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3798 STRIP="$ac_cv_prog_STRIP"
3802 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3804 # We need awk for the "check" target. The system "awk" is bad on
3806 # Always define AMTAR for backward compatibility.
3808 AMTAR=${AMTAR-"${am_missing_run}tar"}
3810 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3815 depcc="$CC" am_compiler_list=
3817 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823 # We make a subdir and do the tests there. Otherwise we can end up
3824 # making bogus files that we don't know about and never remove. For
3825 # instance it was reported that on HP-UX the gcc test will end up
3826 # making a dummy file named `D' -- because `-MD' means `put the output
3829 # Copy depcomp to subdir because otherwise we won't find it if we're
3830 # using a relative directory.
3831 cp "$am_depcomp" conftest.dir
3833 # We will build objects and dependencies in a subdirectory because
3834 # it helps to detect inapplicable dependency modes. For instance
3835 # both Tru64's cc and ICC support -MD to output dependencies as a
3836 # side effect of compilation, but ICC will put the dependencies in
3837 # the current directory while Tru64 will put them in the object
3841 am_cv_CC_dependencies_compiler_type=none
3842 if test "$am_compiler_list" = ""; then
3843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845 for depmode in $am_compiler_list; do
3846 # Setup a source with many dependencies, because some compilers
3847 # like to wrap large dependency lists on column 80 (with \), and
3848 # we should not choose a depcomp mode which is confused by this.
3850 # We need to recreate these files for each test, as the compiler may
3851 # overwrite some of them when testing with obscure command lines.
3852 # This happens at least with the AIX C compiler.
3854 for i in 1 2 3 4 5 6; do
3855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3856 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3857 # Solaris 8's {/usr,}/bin/sh.
3858 touch sub/conftst$i.h
3860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864 # after this tag, mechanisms are not by side-effect, so they'll
3865 # only be used when explicitly requested
3866 if test "x$enable_dependency_tracking" = xyes; then
3874 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3875 # mode. It turns out that the SunPro C++ compiler does not properly
3876 # handle `-M -o', and we need to detect this.
3877 if depmode=$depmode \
3878 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3880 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3881 >/dev/null 2>conftest.err &&
3882 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3883 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3884 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3885 # icc doesn't choke on unknown options, it will just issue warnings
3886 # or remarks (even with -Werror). So we grep stderr for any message
3887 # that says an option was ignored or not supported.
3888 # When given -MP, icc 7.0 and 7.1 complain thusly:
3889 # icc: Command line warning: ignoring option '-M'; no argument required
3890 # The diagnosis changed in icc 8.0:
3891 # icc: Command line remark: option '-MP' not supported
3892 if (grep 'ignoring option' conftest.err ||
3893 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3894 am_cv_CC_dependencies_compiler_type=$depmode
3903 am_cv_CC_dependencies_compiler_type=none
3907 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3908 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3909 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3914 test "x$enable_dependency_tracking" != xno \
3915 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917 am__fastdepCC_FALSE='#'
3919 am__fastdepCC_TRUE='#'
3920 am__fastdepCC_FALSE=
3924 depcc="$CXX" am_compiler_list=
3926 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3927 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3928 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3932 # We make a subdir and do the tests there. Otherwise we can end up
3933 # making bogus files that we don't know about and never remove. For
3934 # instance it was reported that on HP-UX the gcc test will end up
3935 # making a dummy file named `D' -- because `-MD' means `put the output
3938 # Copy depcomp to subdir because otherwise we won't find it if we're
3939 # using a relative directory.
3940 cp "$am_depcomp" conftest.dir
3942 # We will build objects and dependencies in a subdirectory because
3943 # it helps to detect inapplicable dependency modes. For instance
3944 # both Tru64's cc and ICC support -MD to output dependencies as a
3945 # side effect of compilation, but ICC will put the dependencies in
3946 # the current directory while Tru64 will put them in the object
3950 am_cv_CXX_dependencies_compiler_type=none
3951 if test "$am_compiler_list" = ""; then
3952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954 for depmode in $am_compiler_list; do
3955 # Setup a source with many dependencies, because some compilers
3956 # like to wrap large dependency lists on column 80 (with \), and
3957 # we should not choose a depcomp mode which is confused by this.
3959 # We need to recreate these files for each test, as the compiler may
3960 # overwrite some of them when testing with obscure command lines.
3961 # This happens at least with the AIX C compiler.
3963 for i in 1 2 3 4 5 6; do
3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3966 # Solaris 8's {/usr,}/bin/sh.
3967 touch sub/conftst$i.h
3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973 # after this tag, mechanisms are not by side-effect, so they'll
3974 # only be used when explicitly requested
3975 if test "x$enable_dependency_tracking" = xyes; then
3983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984 # mode. It turns out that the SunPro C++ compiler does not properly
3985 # handle `-M -o', and we need to detect this.
3986 if depmode=$depmode \
3987 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3989 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3990 >/dev/null 2>conftest.err &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CXX_dependencies_compiler_type=$depmode
4012 am_cv_CXX_dependencies_compiler_type=none
4016 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4017 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4018 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4023 test "x$enable_dependency_tracking" != xno \
4024 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4025 am__fastdepCXX_TRUE=
4026 am__fastdepCXX_FALSE='#'
4028 am__fastdepCXX_TRUE='#'
4029 am__fastdepCXX_FALSE=
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}as; ac_word=$2
4038 echo "$as_me:$LINENO: checking for $ac_word" >&5
4039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4040 if test "${ac_cv_prog_AS+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 if test -n "$AS"; then
4044 ac_cv_prog_AS="$AS" # Let the user override the test.
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_AS="${ac_tool_prefix}as"
4054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 if test -n "$AS"; then
4064 echo "$as_me:$LINENO: result: $AS" >&5
4065 echo "${ECHO_T}$AS" >&6
4067 echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6
4072 if test -z "$ac_cv_prog_AS"; then
4074 # Extract the first word of "as", so it can be a program name with args.
4075 set dummy as; ac_word=$2
4076 echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4078 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 if test -n "$ac_ct_AS"; then
4082 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_ac_ct_AS="as"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4101 if test -n "$ac_ct_AS"; then
4102 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4103 echo "${ECHO_T}$ac_ct_AS" >&6
4105 echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4114 if test -n "$ac_tool_prefix"; then
4115 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}ld; ac_word=$2
4117 echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119 if test "${ac_cv_prog_LD+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -n "$LD"; then
4123 ac_cv_prog_LD="$LD" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_LD="${ac_tool_prefix}ld"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 if test -n "$LD"; then
4143 echo "$as_me:$LINENO: result: $LD" >&5
4144 echo "${ECHO_T}$LD" >&6
4146 echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4151 if test -z "$ac_cv_prog_LD"; then
4153 # Extract the first word of "ld", so it can be a program name with args.
4154 set dummy ld; ac_word=$2
4155 echo "$as_me:$LINENO: checking for $ac_word" >&5
4156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 if test -n "$ac_ct_LD"; then
4161 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_ac_ct_LD="ld"
4171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4180 if test -n "$ac_ct_LD"; then
4181 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4182 echo "${ECHO_T}$ac_ct_LD" >&6
4184 echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}ar; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_prog_AR+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 if test -n "$AR"; then
4202 ac_cv_prog_AR="$AR" # Let the user override the test.
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211 ac_cv_prog_AR="${ac_tool_prefix}ar"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 if test -n "$AR"; then
4222 echo "$as_me:$LINENO: result: $AR" >&5
4223 echo "${ECHO_T}$AR" >&6
4225 echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6
4230 if test -z "$ac_cv_prog_AR"; then
4232 # Extract the first word of "ar", so it can be a program name with args.
4233 set dummy ar; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 if test -n "$ac_ct_AR"; then
4240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_ac_ct_AR="ar"
4250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4259 if test -n "$ac_ct_AR"; then
4260 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4261 echo "${ECHO_T}$ac_ct_AR" >&6
4263 echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4272 if test -n "$ac_tool_prefix"; then
4273 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4274 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_RANLIB+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4280 if test -n "$RANLIB"; then
4281 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 test -z "$as_dir" && as_dir=.
4288 for ac_exec_ext in '' $ac_executable_extensions; do
4289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 RANLIB=$ac_cv_prog_RANLIB
4300 if test -n "$RANLIB"; then
4301 echo "$as_me:$LINENO: result: $RANLIB" >&5
4302 echo "${ECHO_T}$RANLIB" >&6
4304 echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4309 if test -z "$ac_cv_prog_RANLIB"; then
4310 ac_ct_RANLIB=$RANLIB
4311 # Extract the first word of "ranlib", so it can be a program name with args.
4312 set dummy ranlib; ac_word=$2
4313 echo "$as_me:$LINENO: checking for $ac_word" >&5
4314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 if test -n "$ac_ct_RANLIB"; then
4319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_ac_ct_RANLIB="ranlib"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4339 if test -n "$ac_ct_RANLIB"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4341 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 RANLIB=$ac_ct_RANLIB
4349 RANLIB="$ac_cv_prog_RANLIB"
4352 for ac_prog in gawk mawk nawk awk
4354 # Extract the first word of "$ac_prog", so it can be a program name with args.
4355 set dummy $ac_prog; ac_word=$2
4356 echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358 if test "${ac_cv_prog_AWK+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 if test -n "$AWK"; then
4362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371 ac_cv_prog_AWK="$ac_prog"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 if test -n "$AWK"; then
4382 echo "$as_me:$LINENO: result: $AWK" >&5
4383 echo "${ECHO_T}$AWK" >&6
4385 echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4389 test -n "$AWK" && break
4392 for ac_prog in jar fastjar gjar
4394 # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4398 if test "${ac_cv_prog_JAR+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 if test -n "$JAR"; then
4402 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_JAR="$ac_prog"
4412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$JAR"; then
4422 echo "$as_me:$LINENO: result: $JAR" >&5
4423 echo "${ECHO_T}$JAR" >&6
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4429 test -n "$JAR" && break
4431 test -n "$JAR" || JAR="no"
4433 # Extract the first word of "zip", so it can be a program name with args.
4434 set dummy zip; ac_word=$2
4435 echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_path_ZIP+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4465 if test -n "$ZIP"; then
4466 echo "$as_me:$LINENO: result: $ZIP" >&5
4467 echo "${ECHO_T}$ZIP" >&6
4469 echo "$as_me:$LINENO: result: no" >&5
4470 echo "${ECHO_T}no" >&6
4473 # Extract the first word of "unzip", so it can be a program name with args.
4474 set dummy unzip; ac_word=$2
4475 echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4477 if test "${ac_cv_path_UNZIP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4482 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4492 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4503 UNZIP=$ac_cv_path_UNZIP
4505 if test -n "$UNZIP"; then
4506 echo "$as_me:$LINENO: result: $UNZIP" >&5
4507 echo "${ECHO_T}$UNZIP" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4514 # We need a jar that supports -@. This is a GNU extension.
4515 if test "$JAR" != no; then
4516 rm -f config-test.jar
4517 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4518 if test -f config-test.jar; then
4519 rm -f config-test.jar
4525 # Prefer the jar we found, but fall back to our jar script.
4526 if test "$JAR" = no; then
4527 if test "$ZIP" = no; then
4528 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4529 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4530 { (exit 1); exit 1; }; }
4532 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4533 JAR=`pwd`/scripts/jar
4537 # Find a good install program. We prefer a C program (faster),
4538 # so one script is as good as another. But avoid the broken or
4539 # incompatible versions:
4540 # SysV /etc/install, /usr/sbin/install
4541 # SunOS /usr/etc/install
4542 # IRIX /sbin/install
4544 # AmigaOS /C/install, which installs bootblocks on floppy discs
4545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4548 # OS/2's system install, which has a completely different semantic
4549 # ./install, which can be erroneously created by make from ./install.sh.
4550 # Reject install programs that cannot install multiple files.
4551 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4552 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4553 if test -z "$INSTALL"; then
4554 if test "${ac_cv_path_install+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir=.
4562 # Account for people who put trailing slashes in PATH elements.
4564 ./ | .// | /cC/* | \
4565 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4566 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4569 # OSF1 and SCO ODT 3.0 have their own names for install.
4570 # Don't use installbsd from OSF since it installs stuff as root
4572 for ac_prog in ginstall scoinst install; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4575 if test $ac_prog = install &&
4576 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4577 # AIX install. It has an incompatible calling convention.
4579 elif test $ac_prog = install &&
4580 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4581 # program-specific install script used by HP pwplus--don't use.
4584 rm -rf conftest.one conftest.two conftest.dir
4585 echo one > conftest.one
4586 echo two > conftest.two
4588 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4589 test -s conftest.one && test -s conftest.two &&
4590 test -s conftest.dir/conftest.one &&
4591 test -s conftest.dir/conftest.two
4593 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4604 rm -rf conftest.one conftest.two conftest.dir
4607 if test "${ac_cv_path_install+set}" = set; then
4608 INSTALL=$ac_cv_path_install
4610 # As a last resort, use the slow shell script. Don't cache a
4611 # value for INSTALL within a source directory, because that will
4612 # break other packages using the cache if that directory is
4613 # removed, or if the value is a relative name.
4614 INSTALL=$ac_install_sh
4617 echo "$as_me:$LINENO: result: $INSTALL" >&5
4618 echo "${ECHO_T}$INSTALL" >&6
4620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4621 # It thinks the first close brace ends the variable substitution.
4622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4626 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4629 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4630 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4631 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4632 if test "${enable_maintainer_mode+set}" = set; then
4633 enableval="$enable_maintainer_mode"
4634 USE_MAINTAINER_MODE=$enableval
4636 USE_MAINTAINER_MODE=no
4638 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4639 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4642 if test $USE_MAINTAINER_MODE = yes; then
4643 MAINTAINER_MODE_TRUE=
4644 MAINTAINER_MODE_FALSE='#'
4646 MAINTAINER_MODE_TRUE='#'
4647 MAINTAINER_MODE_FALSE=
4650 MAINT=$MAINTAINER_MODE_TRUE
4656 # configure.host sets the following important variables
4657 # libgcj_cflags - host specific C compiler flags
4658 # libgcj_cxxflags - host specific C++ compiler flags
4659 # libgcj_javaflags - host specific Java compiler flags
4665 . ${srcdir}/configure.host
4667 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4668 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4669 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4673 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4674 acl_cv_prog_gnu_ld=yes
4676 acl_cv_prog_gnu_ld=no
4679 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4680 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4681 with_gnu_ld=$acl_cv_prog_gnu_ld
4683 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4684 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4685 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 acl_cv_prog_gnu_ld_symbolic=no
4691 if test x"$with_gnu_ld" = x"yes"; then
4692 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4693 acl_cv_prog_gnu_ld_symbolic=yes
4697 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4698 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4699 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4700 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4705 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4706 if test -z "$libgcj_ld_symbolic"; then
4707 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4710 LIBGCJ_CFLAGS="${libgcj_cflags}"
4711 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4712 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4713 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4714 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4721 # Only use libltdl for non-newlib builds.
4722 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4723 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4724 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4726 libname_spec='lib$name'
4734 shlibpath_overrides_runpath=unknown
4736 dynamic_linker="$host_os ld.so"
4737 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4738 if test "$GCC" = yes; then
4739 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4740 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4741 # if the path contains ";" then we assume it to be the separator
4742 # otherwise default to the standard path separator (i.e. ":") - it is
4743 # assumed that no part of a normal pathname contains ";" but that should
4744 # okay in the real world where ";" in dirpaths is itself problematic.
4745 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4747 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4752 need_lib_prefix=unknown
4753 hardcode_into_libs=no
4755 # when you set need_version to no, make sure it does not cause -set_version
4756 # flags to be left without arguments
4757 need_version=unknown
4762 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4763 shlibpath_var=LIBPATH
4765 # AIX 3 has no versioning support, so we append a major version to the name.
4766 soname_spec='${libname}${release}${shared_ext}$major'
4773 hardcode_into_libs=yes
4774 if test "$host_cpu" = ia64; then
4775 # AIX 5 supports IA64
4776 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4777 shlibpath_var=LD_LIBRARY_PATH
4779 # With GCC up to 2.95.x, collect2 would create an import file
4780 # for dependence libraries. The import file would start with
4781 # the line `#! .'. This would cause the generated library to
4782 # depend on `.', always an invalid library. This was fixed in
4783 # development snapshots of GCC prior to 3.0.
4785 aix4 | aix4.[01] | aix4.[01].*)
4786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4788 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4795 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4796 # soname into executable. Probably we can add versioning support to
4797 # collect2, so additional links can be useful in future.
4798 if test "$aix_use_runtimelinking" = yes; then
4799 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4800 # instead of lib<name>.a to let people know that these are not
4801 # typical AIX shared libraries.
4802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4804 # We preserve .a as extension for shared libraries through AIX4.2
4805 # and later when we are not doing run time linking.
4806 library_names_spec='${libname}${release}.a $libname.a'
4807 soname_spec='${libname}${release}${shared_ext}$major'
4809 shlibpath_var=LIBPATH
4814 library_names_spec='$libname.ixlibrary $libname.a'
4815 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4816 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'
4820 library_names_spec='${libname}${shared_ext}'
4821 dynamic_linker="$host_os ld.so"
4822 shlibpath_var=LIBRARY_PATH
4828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829 soname_spec='${libname}${release}${shared_ext}$major'
4830 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4831 shlibpath_var=LD_LIBRARY_PATH
4832 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4833 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4834 # the default ld.so.conf also contains /usr/contrib/lib and
4835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4836 # libtool to hard-code these into programs
4839 cygwin* | mingw* | pw32*)
4840 version_type=windows
4845 case $GCC,$host_os in
4846 yes,cygwin* | yes,mingw* | yes,pw32*)
4847 library_names_spec='$libname.dll.a'
4848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4849 postinstall_cmds='base_file=`basename \${file}`~
4850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4851 dldir=$destdir/`dirname \$dlpath`~
4852 test -d \$dldir || mkdir -p \$dldir~
4853 $install_prog $dir/$dlname \$dldir/$dlname'
4854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4855 dlpath=$dir/\$dldll~
4857 shlibpath_overrides_runpath=yes
4861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4863 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4866 # MinGW DLLs use traditional 'lib' prefix
4867 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4869 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4870 # It is most probably a Windows format PATH printed by
4871 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4872 # path with ; separators, and with drive letters. We can handle the
4873 # drive letters (cygwin fileutils understands them), so leave them,
4874 # especially as we might pass files found there to a mingw objdump,
4875 # which wouldn't understand a cygwinified path. Ahh.
4876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4882 # pw32 DLLs use 'pw' prefix rather than 'lib'
4883 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4889 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4892 dynamic_linker='Win32 ld.exe'
4893 # FIXME: first we should search . and the directory the executable is in
4897 darwin* | rhapsody*)
4898 dynamic_linker="$host_os dyld"
4902 # FIXME: Relying on posixy $() will cause problems for
4903 # cross-compilation, but unfortunately the echo tests do not
4904 # yet detect zsh echo's removal of \ escapes.
4905 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4906 soname_spec='${libname}${release}${major}$shared_ext'
4907 shlibpath_overrides_runpath=yes
4908 shlibpath_var=DYLD_LIBRARY_PATH
4909 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4910 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4911 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4912 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4922 soname_spec='${libname}${release}${shared_ext}$major'
4923 shlibpath_var=LD_LIBRARY_PATH
4931 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4932 version_type=freebsd-$objformat
4933 case $version_type in
4935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4944 shlibpath_var=LD_LIBRARY_PATH
4947 shlibpath_overrides_runpath=yes
4949 freebsd3.01* | freebsdelf3.01*)
4950 shlibpath_overrides_runpath=yes
4951 hardcode_into_libs=yes
4954 shlibpath_overrides_runpath=no
4955 hardcode_into_libs=yes
4964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4965 soname_spec='${libname}${release}${shared_ext}$major'
4966 shlibpath_var=LD_LIBRARY_PATH
4967 hardcode_into_libs=yes
4970 hpux9* | hpux10* | hpux11*)
4971 # Give a soname corresponding to the major version so that dld.sl refuses to
4972 # link against other versions.
4979 hardcode_into_libs=yes
4980 dynamic_linker="$host_os dld.so"
4981 shlibpath_var=LD_LIBRARY_PATH
4982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4984 soname_spec='${libname}${release}${shared_ext}$major'
4985 if test "X$HPUX_IA64_MODE" = X32; then
4986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4994 hardcode_into_libs=yes
4995 dynamic_linker="$host_os dld.sl"
4996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4999 soname_spec='${libname}${release}${shared_ext}$major'
5000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5005 dynamic_linker="$host_os dld.sl"
5006 shlibpath_var=SHLIB_PATH
5007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5009 soname_spec='${libname}${release}${shared_ext}$major'
5012 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5013 postinstall_cmds='chmod 555 $lib'
5016 irix5* | irix6* | nonstopux*)
5018 nonstopux*) version_type=nonstopux ;;
5020 if test "$lt_cv_prog_gnu_ld" = yes; then
5028 soname_spec='${libname}${release}${shared_ext}$major'
5029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5031 irix5* | nonstopux*)
5035 case $LD in # libtool.m4 will add one of these switches to LD
5036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5037 libsuff= shlibsuff= libmagic=32-bit;;
5038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5039 libsuff=32 shlibsuff=N32 libmagic=N32;;
5040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
5042 *) libsuff= shlibsuff= libmagic=never-match;;
5046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5047 shlibpath_overrides_runpath=no
5048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5050 hardcode_into_libs=yes
5053 # No shared lib support for Linux oldld, aout, or coff.
5054 linux*oldld* | linux*aout* | linux*coff*)
5058 # This must be Linux ELF.
5063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5064 soname_spec='${libname}${release}${shared_ext}$major'
5065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5066 shlibpath_var=LD_LIBRARY_PATH
5067 shlibpath_overrides_runpath=no
5068 # This implies no fast_install, which is unacceptable.
5069 # Some rework will be needed to allow for fast_install
5070 # before this can be enabled.
5071 hardcode_into_libs=yes
5073 # We used to test for /lib/ld.so.1 and disable shared libraries on
5074 # powerpc, because MkLinux only supported shared libraries with the
5075 # GNU dynamic linker. Since this was broken with cross compilers,
5076 # most powerpc-linux boxes support dynamic linking these days and
5077 # people can always --disable-shared, the test was removed, and we
5078 # assume the GNU/Linux dynamic linker is in use.
5079 dynamic_linker='GNU/Linux ld.so'
5086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5089 dynamic_linker='NetBSD (a.out) ld.so'
5091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5092 soname_spec='${libname}${release}${shared_ext}$major'
5093 dynamic_linker='NetBSD ld.elf_so'
5095 shlibpath_var=LD_LIBRARY_PATH
5096 shlibpath_overrides_runpath=yes
5097 hardcode_into_libs=yes
5102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5103 shlibpath_var=LD_LIBRARY_PATH
5104 shlibpath_overrides_runpath=yes
5111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5112 soname_spec='${libname}${release}${shared_ext}$major'
5113 shlibpath_var=LD_LIBRARY_PATH
5114 shlibpath_overrides_runpath=yes
5121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5123 shlibpath_var=LD_LIBRARY_PATH
5124 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5126 openbsd2.[89] | openbsd2.[89].*)
5127 shlibpath_overrides_runpath=no
5130 shlibpath_overrides_runpath=yes
5134 shlibpath_overrides_runpath=yes
5139 libname_spec='$name'
5142 library_names_spec='$libname${shared_ext} $libname.a'
5143 dynamic_linker='OS/2 ld.exe'
5144 shlibpath_var=LIBPATH
5147 osf3* | osf4* | osf5*)
5151 soname_spec='${libname}${release}${shared_ext}$major'
5152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5153 shlibpath_var=LD_LIBRARY_PATH
5154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5155 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5160 soname_spec='${libname}${release}${shared_ext}$major'
5161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5162 shlibpath_var=LD_LIBRARY_PATH
5169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5170 soname_spec='${libname}${release}${shared_ext}$major'
5171 shlibpath_var=LD_LIBRARY_PATH
5172 shlibpath_overrides_runpath=yes
5173 hardcode_into_libs=yes
5174 # ldd complains unless libraries are executable
5175 postinstall_cmds='chmod +x $lib'
5180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5182 shlibpath_var=LD_LIBRARY_PATH
5183 shlibpath_overrides_runpath=yes
5184 if test "$with_gnu_ld" = yes; then
5190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5193 soname_spec='${libname}${release}${shared_ext}$major'
5194 shlibpath_var=LD_LIBRARY_PATH
5195 case $host_vendor in
5197 shlibpath_overrides_runpath=no
5199 export_dynamic_flag_spec='${wl}-Blargedynsym'
5200 runpath_var=LD_RUN_PATH
5208 shlibpath_overrides_runpath=no
5209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5215 if test -d /usr/nec ;then
5217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5218 soname_spec='$libname${shared_ext}.$major'
5219 shlibpath_var=LD_LIBRARY_PATH
5225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5226 soname_spec='${libname}${release}${shared_ext}$major'
5227 shlibpath_var=LD_LIBRARY_PATH
5234 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5235 echo "${ECHO_T}$dynamic_linker" >&6
5236 test "$dynamic_linker" = no && can_build_shared=no
5239 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5240 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5241 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 libltdl_cv_shlibpath_var="$shlibpath_var"
5246 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5247 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5248 if test -n "$libltdl_cv_shlibpath_var"; then
5250 cat >>confdefs.h <<_ACEOF
5251 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5258 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5261 # See if the user has requested runtime debugging.
5262 LIBGCJDEBUG="disable"
5264 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5265 if test "${enable_libgcj_debug+set}" = set; then
5266 enableval="$enable_libgcj_debug"
5267 if test "$enable_libgcj_debug" = yes; then
5269 cat >>confdefs.h <<\_ACEOF
5273 LIBGCJDEBUG="enable"
5278 # Check whether --with-escher or --without-escher was given.
5279 if test "${with_escher+set}" = set; then
5280 withval="$with_escher"
5283 case "$with_escher" in
5291 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5292 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5293 { (exit 1); exit 1; }; }
5300 # Determine which AWT peer libraries to build
5301 # Check whether --enable-java-awt or --disable-java-awt was given.
5302 if test "${enable_java_awt+set}" = set; then
5303 enableval="$enable_java_awt"
5307 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5312 # The default toolkit to use is the first one specified.
5316 for peer in $peerlibs ; do
5319 if test "$no_x" = yes; then
5320 echo "*** xlib peers requested but no X library available" 1>&2
5324 if test -z "$TOOLKIT"; then
5325 TOOLKIT=gnu.awt.xlib.XToolkit
5330 if test "$no_x" = yes; then
5331 echo "*** gtk peers requested but no X library available" 1>&2
5335 if test -z "$TOOLKIT"; then
5336 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5341 if test "$no_x" = yes; then
5342 # Perhaps we should admit the possibility of embedded Qt.
5343 echo "*** Qt peers requested but no X library available" 1>&2
5347 if test -z "$TOOLKIT"; then
5348 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5354 if test -z "$TOOLKIT"; then
5355 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5366 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5373 if test "$use_xlib_awt" = yes; then
5383 if test "$use_x_awt" = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define AWT_TOOLKIT "$TOOLKIT"
5399 cat >>confdefs.h <<_ACEOF
5400 #define LIBGCJ_PREFIX "$prefix"
5404 # Create standard.omit based on decisions we just made.
5405 cp $srcdir/standard.omit.in standard.omit
5406 if test "$use_xlib_awt" != yes; then
5407 echo gnu/awt/xlib >> standard.omit
5408 echo gnu/gcj/xlib >> standard.omit
5410 if test "$use_x_awt" != yes; then
5411 echo gnu/java/awt/peer/x >> standard.omit
5414 # Tools that need to be compiled against classpath's tools classes
5415 : > vm-tools-packages
5416 for package in gnu/gcj/tools/gc_analyze ; do
5417 echo $package >> standard.omit
5418 echo $package >> vm-tools-packages
5421 if test -z "${with_multisubdir}"; then
5424 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5429 # Which gcj and host gcj (for ecjx) do we use?
5431 host_exeext=${ac_exeext}
5433 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5434 if test -n "${with_cross_host}"; then
5435 # We are being configured with a cross compiler. We can't
5436 # use ac_exeext, because that is for the target platform.
5439 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5440 case "${with_cross_host}" in
5442 cross_host_exeext=.exe
5445 host_exeext=${cross_host_exeext}
5446 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5447 if test x"$build_noncanonical" = x"$with_cross_host"; then
5448 # Ordinary cross (host!=target and host=build)
5451 # Canadian cross (host!=target and host!=build)
5458 # We are being configured with a native or crossed-native compiler
5459 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5460 if test x"$build" = x"$host"; then
5461 # True native build (host=target and host=build)
5464 # Crossed-native build (host=target and host!=build)
5471 case "${which_gcj}" in
5473 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5474 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5477 if test "x${with_newlib}" = "xyes"; then
5478 # FIXME (comment): Why is this needed?
5480 GCJ="${target_noncanonical}-gcj"
5482 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5484 GCJH='$(target_noncanonical)-gcjh'
5487 GCJ="gcj -B`${PWDCMD-pwd}`/"
5498 # Create it, so that compile/link tests don't fail
5499 test -f libgcj.spec || touch libgcj.spec
5503 # Set up to configure Classpath.
5504 # FIXME: no supported way to pass args in autoconf.
5505 # Disable tool wrappers to avoid ltdl.h configure check.
5506 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5507 ac_configure_args="$ac_configure_args --disable-load-library"
5508 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5509 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5510 dir1=`cd $srcdir && pwd`
5512 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5513 ac_configure_args="$ac_configure_args --disable-core-jni"
5514 ac_configure_args="$ac_configure_args --disable-examples"
5515 ac_configure_args="$ac_configure_args --with-glibj=build"
5516 if test "$plugin_enabled" != yes; then
5517 ac_configure_args="$ac_configure_args --disable-plugin"
5519 if test "$gconf_enabled" != yes; then
5520 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5521 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5523 if test "$use_gtk_awt" != yes; then
5524 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5526 if test "$use_qt_awt" != yes; then
5527 ac_configure_args="$ac_configure_args --disable-qt-peer"
5529 # We need this as qt is disabled by default in classpath.
5530 ac_configure_args="$ac_configure_args --enable-qt-peer"
5532 if test "$use_x_awt" != yes; then
5533 ac_configure_args="$ac_configure_args --without-escher"
5535 # We need this as escher is disabled by default in classpath.
5536 if test "$use_escher" != true; then
5537 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5538 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5539 { (exit 1); exit 1; }; }
5541 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5544 if test "x$BUILD_GJDOC" = xno; then
5545 ac_configure_args="$ac_configure_args --disable-gjdoc"
5547 # -Werror causes unavoidable problems in code using alsa.
5548 ac_configure_args="$ac_configure_args --disable-regen-headers"
5549 ac_configure_args="$ac_configure_args --disable-Werror"
5551 # Only use libltdl for non-newlib builds.
5552 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5553 case $enable_ltdl_convenience in
5554 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5555 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5557 "") enable_ltdl_convenience=yes
5558 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5560 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5561 LTDLINCL='-I${top_srcdir}/''libltdl'
5562 # For backwards non-gettext consistent compatibility...
5571 cat >>confdefs.h <<\_ACEOF
5575 # Sigh. Libtool's macro doesn't do the right thing.
5576 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5577 # FIXME: this is a hack.
5578 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5579 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5586 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5587 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5592 macro_version='2.2.6'
5593 macro_revision='1.3012'
5607 ltmain="$ac_aux_dir/ltmain.sh"
5609 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5610 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5611 if test "${lt_cv_path_SED+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 # Loop through the user's path and test for sed and gsed.
5615 # Then use that list of sed's as ones to test for truncation.
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 test -z "$as_dir" && as_dir=.
5621 for lt_ac_prog in sed gsed; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5624 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5632 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5633 # along with /bin/sed that truncates output.
5634 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5635 test ! -f $lt_ac_sed && continue
5636 cat /dev/null > conftest.in
5638 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5639 # Check for GNU sed and select it if it is found.
5640 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5641 lt_cv_path_SED=$lt_ac_sed
5645 cat conftest.in conftest.in >conftest.tmp
5646 mv conftest.tmp conftest.in
5647 cp conftest.in conftest.nl
5649 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5650 cmp -s conftest.out conftest.nl || break
5651 # 10000 chars as input seems more than enough
5652 test $lt_ac_count -gt 10 && break
5653 lt_ac_count=`expr $lt_ac_count + 1`
5654 if test $lt_ac_count -gt $lt_ac_max; then
5655 lt_ac_max=$lt_ac_count
5656 lt_cv_path_SED=$lt_ac_sed
5665 echo "$as_me:$LINENO: result: $SED" >&5
5666 echo "${ECHO_T}$SED" >&6
5668 test -z "$SED" && SED=sed
5669 Xsed="$SED -e 1s/^X//"
5681 echo "$as_me:$LINENO: checking for egrep" >&5
5682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5683 if test "${ac_cv_prog_egrep+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5687 then ac_cv_prog_egrep='grep -E'
5688 else ac_cv_prog_egrep='egrep'
5691 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5692 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5693 EGREP=$ac_cv_prog_egrep
5696 echo "$as_me:$LINENO: checking for fgrep" >&5
5697 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5698 if test "${ac_cv_prog_fgrep+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5702 then ac_cv_prog_fgrep='grep -F'
5703 else ac_cv_prog_fgrep='fgrep'
5706 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5707 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5708 FGREP=$ac_cv_prog_fgrep
5711 test -z "$GREP" && GREP=grep
5731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5732 if test "${with_gnu_ld+set}" = set; then
5733 withval="$with_gnu_ld"
5734 test "$withval" = no || with_gnu_ld=yes
5739 if test "$GCC" = yes; then
5740 # Check if gcc -print-prog-name=ld gives a path.
5741 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5742 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5745 # gcc leaves a trailing carriage return which upsets mingw
5746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5751 # Accept absolute paths.
5753 re_direlt='/[^/][^/]*/\.\./'
5754 # Canonicalize the pathname of ld
5755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5759 test -z "$LD" && LD="$ac_prog"
5762 # If it fails, then pretend we aren't using GCC.
5766 # If it is relative, then search for the first ld in PATH.
5770 elif test "$with_gnu_ld" = yes; then
5771 echo "$as_me:$LINENO: checking for GNU ld" >&5
5772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5774 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5777 if test "${lt_cv_path_LD+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 if test -z "$LD"; then
5781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782 for ac_dir in $PATH; do
5784 test -z "$ac_dir" && ac_dir=.
5785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5786 lt_cv_path_LD="$ac_dir/$ac_prog"
5787 # Check to see if the program is GNU ld. I'd rather use --version,
5788 # but apparently some variants of GNU ld only accept -v.
5789 # Break only if it was the GNU/non-GNU ld that we prefer.
5790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5791 *GNU* | *'with BFD'*)
5792 test "$with_gnu_ld" != no && break
5795 test "$with_gnu_ld" != yes && break
5802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5807 if test -n "$LD"; then
5808 echo "$as_me:$LINENO: result: $LD" >&5
5809 echo "${ECHO_T}$LD" >&6
5811 echo "$as_me:$LINENO: result: no" >&5
5812 echo "${ECHO_T}no" >&6
5814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5816 { (exit 1); exit 1; }; }
5817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5819 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5823 case `$LD -v 2>&1 </dev/null` in
5824 *GNU* | *'with BFD'*)
5825 lt_cv_prog_gnu_ld=yes
5828 lt_cv_prog_gnu_ld=no
5832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5834 with_gnu_ld=$lt_cv_prog_gnu_ld
5844 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5845 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5846 if test "${lt_cv_path_NM+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 if test -n "$NM"; then
5850 # Let the user override the test.
5853 lt_nm_to_check="${ac_tool_prefix}nm"
5854 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5855 lt_nm_to_check="$lt_nm_to_check nm"
5857 for lt_tmp_nm in $lt_nm_to_check; do
5858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5859 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5861 test -z "$ac_dir" && ac_dir=.
5862 tmp_nm="$ac_dir/$lt_tmp_nm"
5863 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5864 # Check to see if the nm accepts a BSD-compat flag.
5865 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5866 # nm: unknown option "B" ignored
5867 # Tru64's nm complains that /dev/null is an invalid object file
5868 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5869 */dev/null* | *'Invalid file or object type'*)
5870 lt_cv_path_NM="$tmp_nm -B"
5874 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5876 lt_cv_path_NM="$tmp_nm -p"
5880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5881 continue # so that we can try to find one that supports BSD flags
5890 : ${lt_cv_path_NM=no}
5893 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5894 echo "${ECHO_T}$lt_cv_path_NM" >&6
5895 if test "$lt_cv_path_NM" != "no"; then
5898 # Didn't find any BSD compatible name lister, look for dumpbin.
5899 if test -n "$ac_tool_prefix"; then
5900 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5904 echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5906 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 if test -n "$DUMPBIN"; then
5910 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5919 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 DUMPBIN=$ac_cv_prog_DUMPBIN
5929 if test -n "$DUMPBIN"; then
5930 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5931 echo "${ECHO_T}$DUMPBIN" >&6
5933 echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6
5937 test -n "$DUMPBIN" && break
5940 if test -z "$DUMPBIN"; then
5941 ac_ct_DUMPBIN=$DUMPBIN
5942 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5944 # Extract the first word of "$ac_prog", so it can be a program name with args.
5945 set dummy $ac_prog; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test -n "$ac_ct_DUMPBIN"; then
5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5971 if test -n "$ac_ct_DUMPBIN"; then
5972 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5973 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5975 echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6
5979 test -n "$ac_ct_DUMPBIN" && break
5981 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5983 DUMPBIN=$ac_ct_DUMPBIN
5987 if test "$DUMPBIN" != ":"; then
5991 test -z "$NM" && NM=nm
5998 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5999 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6000 if test "${lt_cv_nm_interface+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 lt_cv_nm_interface="BSD nm"
6004 echo "int some_variable = 0;" > conftest.$ac_ext
6005 (eval echo "\"\$as_me:6005: $ac_compile\"" >&5)
6006 (eval "$ac_compile" 2>conftest.err)
6007 cat conftest.err >&5
6008 (eval echo "\"\$as_me:6008: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6009 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6010 cat conftest.err >&5
6011 (eval echo "\"\$as_me:6011: output\"" >&5)
6012 cat conftest.out >&5
6013 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6014 lt_cv_nm_interface="MS dumpbin"
6018 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6019 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6021 # find the maximum length of command line arguments
6022 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 # On DJGPP, this test can blow up pretty badly due to problems in libc
6033 # (any single argument exceeding 2000 bytes causes a buffer overrun
6034 # during glob expansion). Even if it were fixed, the result of this
6035 # check would be larger than it should be.
6036 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6040 # Under GNU Hurd, this test is not required because there is
6041 # no limit to the length of command line arguments.
6042 # Libtool will interpret -1 as no limit whatsoever
6043 lt_cv_sys_max_cmd_len=-1;
6046 cygwin* | mingw* | cegcc*)
6047 # On Win9x/ME, this test blows up -- it succeeds, but takes
6048 # about 5 minutes as the teststring grows exponentially.
6049 # Worse, since 9x/ME are not pre-emptively multitasking,
6050 # you end up with a "frozen" computer, even though with patience
6051 # the test eventually succeeds (with a max line length of 256k).
6052 # Instead, let's just punt: use the minimum linelength reported by
6053 # all of the supported platforms: 8192 (on NT/2K/XP).
6054 lt_cv_sys_max_cmd_len=8192;
6058 # On AmigaOS with pdksh, this test takes hours, literally.
6059 # So we just punt and use a minimum line length of 8192.
6060 lt_cv_sys_max_cmd_len=8192;
6063 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064 # This has been around since 386BSD, at least. Likely further.
6065 if test -x /sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067 elif test -x /usr/sbin/sysctl; then
6068 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6072 # And add a safety zone
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079 lt_cv_sys_max_cmd_len=196608
6083 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085 # nice to cause kernel panics so lets avoid the loop below.
6086 # First set a reasonable default.
6087 lt_cv_sys_max_cmd_len=16384
6089 if test -x /sbin/sysconfig; then
6090 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6096 lt_cv_sys_max_cmd_len=102400
6098 sysv5* | sco5v6* | sysv4.2uw2*)
6099 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100 if test -n "$kargmax"; then
6101 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6103 lt_cv_sys_max_cmd_len=32768
6107 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108 if test -n "$lt_cv_sys_max_cmd_len"; then
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112 # Make teststring a little bigger before we do anything with it.
6113 # a 1K string should be a reasonable start.
6114 for i in 1 2 3 4 5 6 7 8 ; do
6115 teststring=$teststring$teststring
6117 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118 # If test is not a shell built-in, we'll probably end up computing a
6119 # maximum length that is only half of the actual maximum length, but
6121 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123 test $i != 17 # 1/2 MB should be enough
6126 teststring=$teststring$teststring
6128 # Only check the string length outside the loop.
6129 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131 # Add a significant safety factor because C++ compilers can tack on
6132 # massive amounts of additional arguments before passing them to the
6133 # linker. It appears as though 1/2 is a usable value.
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6145 echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6159 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6161 # Try some XSI features
6164 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166 && eval 'test $(( 1 + 1 )) -eq 2 \
6167 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6
6173 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178 && lt_shell_append=yes
6179 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195 A) # ASCII based system
6196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197 lt_SP2NL='tr \040 \012'
6198 lt_NL2SP='tr \015\012 \040\040'
6200 *) # EBCDIC based system
6201 lt_SP2NL='tr \100 \n'
6202 lt_NL2SP='tr \r\n \100\100'
6214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 lt_cv_ld_reload_flag='-r'
6221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6226 *) reload_flag=" $reload_flag" ;;
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231 if test "$GCC" = yes; then
6232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274 OBJDUMP=$ac_cv_prog_OBJDUMP
6275 if test -n "$OBJDUMP"; then
6276 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6277 echo "${ECHO_T}$OBJDUMP" >&6
6279 echo "$as_me:$LINENO: result: no" >&5
6280 echo "${ECHO_T}no" >&6
6284 if test -z "$ac_cv_prog_OBJDUMP"; then
6285 ac_ct_OBJDUMP=$OBJDUMP
6286 # Extract the first word of "objdump", so it can be a program name with args.
6287 set dummy objdump; ac_word=$2
6288 echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6290 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 if test -n "$ac_ct_OBJDUMP"; then
6294 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6313 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6314 if test -n "$ac_ct_OBJDUMP"; then
6315 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6316 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6318 echo "$as_me:$LINENO: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6322 OBJDUMP=$ac_ct_OBJDUMP
6324 OBJDUMP="$ac_cv_prog_OBJDUMP"
6327 test -z "$OBJDUMP" && OBJDUMP=objdump
6337 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6338 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6339 if test "${lt_cv_deplibs_check_method+set}" = set; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 lt_cv_file_magic_cmd='$MAGIC_CMD'
6343 lt_cv_file_magic_test_file=
6344 lt_cv_deplibs_check_method='unknown'
6345 # Need to set the preceding variable on all platforms that support
6346 # interlibrary dependencies.
6347 # 'none' -- dependencies not supported.
6348 # `unknown' -- same as none, but documents that we really don't know.
6349 # 'pass_all' -- all dependencies passed with no checks.
6350 # 'test_compile' -- check by making test program.
6351 # 'file_magic [[regex]]' -- check by looking for files in library path
6352 # which responds to the $file_magic_cmd with a given extended regex.
6353 # If you have `file' or equivalent on your system and you're not sure
6354 # whether `pass_all' will *always* work, you probably want this one.
6358 lt_cv_deplibs_check_method=pass_all
6362 lt_cv_deplibs_check_method=pass_all
6366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6367 lt_cv_file_magic_cmd='/usr/bin/file -L'
6368 lt_cv_file_magic_test_file=/shlib/libc.so
6372 # func_win32_libid is a shell function defined in ltmain.sh
6373 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6374 lt_cv_file_magic_cmd='func_win32_libid'
6378 # Base MSYS/MinGW do not provide the 'file' command needed by
6379 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6380 # unless we find 'file', for example because we are cross-compiling.
6381 if ( file / ) >/dev/null 2>&1; then
6382 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6383 lt_cv_file_magic_cmd='func_win32_libid'
6385 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6386 lt_cv_file_magic_cmd='$OBJDUMP -f'
6391 # use the weaker test based on 'objdump'. See mingw*.
6392 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6393 lt_cv_file_magic_cmd='$OBJDUMP -f'
6396 darwin* | rhapsody*)
6397 lt_cv_deplibs_check_method=pass_all
6400 freebsd* | dragonfly*)
6401 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6404 # Not sure whether the presence of OpenBSD here was a mistake.
6405 # Let's accept both of them until this is cleared up.
6406 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6407 lt_cv_file_magic_cmd=/usr/bin/file
6408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6412 lt_cv_deplibs_check_method=pass_all
6417 lt_cv_deplibs_check_method=pass_all
6420 hpux10.20* | hpux11*)
6421 lt_cv_file_magic_cmd=/usr/bin/file
6424 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6425 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6428 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]'
6429 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6432 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6433 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6439 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6443 irix5* | irix6* | nonstopux*)
6445 *-32|*"-32 ") libmagic=32-bit;;
6446 *-n32|*"-n32 ") libmagic=N32;;
6447 *-64|*"-64 ") libmagic=64-bit;;
6448 *) libmagic=never-match;;
6450 lt_cv_deplibs_check_method=pass_all
6453 # This must be Linux ELF.
6454 linux* | k*bsd*-gnu)
6455 lt_cv_deplibs_check_method=pass_all
6459 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6462 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6468 lt_cv_file_magic_cmd=/usr/bin/file
6469 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6473 lt_cv_deplibs_check_method=pass_all
6477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6484 osf3* | osf4* | osf5*)
6485 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method=pass_all
6493 lt_cv_deplibs_check_method=pass_all
6496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6497 lt_cv_deplibs_check_method=pass_all
6501 case $host_vendor in
6503 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]'
6504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6507 lt_cv_deplibs_check_method=pass_all
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6514 lt_cv_file_magic_cmd='/bin/file'
6515 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6516 lt_cv_file_magic_test_file=/lib/libc.so
6519 lt_cv_deplibs_check_method=pass_all
6522 lt_cv_deplibs_check_method=pass_all
6528 lt_cv_deplibs_check_method=pass_all
6533 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6534 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6535 file_magic_cmd=$lt_cv_file_magic_cmd
6536 deplibs_check_method=$lt_cv_deplibs_check_method
6537 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6550 if test -n "$ac_tool_prefix"; then
6551 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6552 set dummy ${ac_tool_prefix}ar; ac_word=$2
6553 echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6555 if test "${ac_cv_prog_AR+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 if test -n "$AR"; then
6559 ac_cv_prog_AR="$AR" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_AR="${ac_tool_prefix}ar"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 if test -n "$AR"; then
6579 echo "$as_me:$LINENO: result: $AR" >&5
6580 echo "${ECHO_T}$AR" >&6
6582 echo "$as_me:$LINENO: result: no" >&5
6583 echo "${ECHO_T}no" >&6
6587 if test -z "$ac_cv_prog_AR"; then
6589 # Extract the first word of "ar", so it can be a program name with args.
6590 set dummy ar; ac_word=$2
6591 echo "$as_me:$LINENO: checking for $ac_word" >&5
6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6593 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 if test -n "$ac_ct_AR"; then
6597 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_AR="ar"
6607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6616 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6617 if test -n "$ac_ct_AR"; then
6618 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6619 echo "${ECHO_T}$ac_ct_AR" >&6
6621 echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6
6630 test -z "$AR" && AR=ar
6631 test -z "$AR_FLAGS" && AR_FLAGS=cru
6643 if test -n "$ac_tool_prefix"; then
6644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6645 set dummy ${ac_tool_prefix}strip; ac_word=$2
6646 echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6648 if test "${ac_cv_prog_STRIP+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 if test -n "$STRIP"; then
6652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 STRIP=$ac_cv_prog_STRIP
6671 if test -n "$STRIP"; then
6672 echo "$as_me:$LINENO: result: $STRIP" >&5
6673 echo "${ECHO_T}$STRIP" >&6
6675 echo "$as_me:$LINENO: result: no" >&5
6676 echo "${ECHO_T}no" >&6
6680 if test -z "$ac_cv_prog_STRIP"; then
6682 # Extract the first word of "strip", so it can be a program name with args.
6683 set dummy strip; ac_word=$2
6684 echo "$as_me:$LINENO: checking for $ac_word" >&5
6685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6686 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 if test -n "$ac_ct_STRIP"; then
6690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_ac_ct_STRIP="strip"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6709 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6710 if test -n "$ac_ct_STRIP"; then
6711 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6712 echo "${ECHO_T}$ac_ct_STRIP" >&6
6714 echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6
6720 STRIP="$ac_cv_prog_STRIP"
6723 test -z "$STRIP" && STRIP=:
6730 if test -n "$ac_tool_prefix"; then
6731 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6732 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6733 echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6735 if test "${ac_cv_prog_RANLIB+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 if test -n "$RANLIB"; then
6739 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 RANLIB=$ac_cv_prog_RANLIB
6758 if test -n "$RANLIB"; then
6759 echo "$as_me:$LINENO: result: $RANLIB" >&5
6760 echo "${ECHO_T}$RANLIB" >&6
6762 echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768 ac_ct_RANLIB=$RANLIB
6769 # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$ac_ct_RANLIB"; then
6777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_ac_ct_RANLIB="ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6801 echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6805 RANLIB=$ac_ct_RANLIB
6807 RANLIB="$ac_cv_prog_RANLIB"
6810 test -z "$RANLIB" && RANLIB=:
6817 # Determine commands to create old-style static archives.
6818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6819 old_postinstall_cmds='chmod 644 $oldlib'
6820 old_postuninstall_cmds=
6822 if test -n "$RANLIB"; then
6825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6867 # If no C compiler was specified, use CC.
6870 # If no C compiler flags were specified, use CFLAGS.
6871 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6873 # Allow CC to be a program name with arguments.
6877 # Check for command to grab the raw symbol name followed by C symbol from nm.
6878 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6879 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6880 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6884 # These are sane defaults that work on at least a few old systems.
6885 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6887 # Character class describing NM global symbol codes.
6888 symcode='[BCDEGRST]'
6890 # Regexp to match symbols that can be accessed directly from C.
6891 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6893 # Define system-specific variables.
6898 cygwin* | mingw* | pw32* | cegcc*)
6899 symcode='[ABCDGISTW]'
6902 if test "$host_cpu" = ia64; then
6903 symcode='[ABCDEGRST]'
6907 symcode='[BCDEGRST]'
6910 symcode='[BCDEGQRST]'
6921 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929 # If we're using GNU nm, then use its standard symbol codes.
6930 case `$NM -V 2>&1` in
6931 *GNU* | *'with BFD'*)
6932 symcode='[ABCDGIRSTW]' ;;
6935 # Transform an extracted symbol line into a proper C declaration.
6936 # Some systems (esp. on ia64) link data and code symbols differently,
6937 # so use this general approach.
6938 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6940 # Transform an extracted symbol line into symbol name and symbol address
6941 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6942 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6944 # Handle CRLF in mingw tool chain
6948 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6952 # Try without a prefix underscore, then with it.
6953 for ac_symprfx in "" "_"; do
6955 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6956 symxfrm="\\1 $ac_symprfx\\2 \\2"
6958 # Write the raw and C identifiers.
6959 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6960 # Fake it for dumpbin and say T for any non-static function
6961 # and D for any global variable.
6962 # Also find C++ and __fastcall symbols from MSVC++,
6963 # which start with @ or ?.
6964 lt_cv_sys_global_symbol_pipe="$AWK '"\
6965 " {last_section=section; section=\$ 3};"\
6966 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6967 " \$ 0!~/External *\|/{next};"\
6968 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6969 " {if(hide[section]) next};"\
6970 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6971 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6972 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6973 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6974 " ' prfx=^$ac_symprfx"
6976 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6979 # Check to see that the pipe works correctly.
6983 cat > conftest.$ac_ext <<_LT_EOF
6988 void nm_test_func(void);
6989 void nm_test_func(void){}
6993 int main(){nm_test_var='a';nm_test_func();return(0);}
6996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; then
7001 # Now try to grab the symbols.
7003 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7004 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && test -s "$nlist"; then
7008 # Try sorting and uniquifying the output.
7009 if sort "$nlist" | uniq > "$nlist"T; then
7010 mv -f "$nlist"T "$nlist"
7015 # Make sure that we snagged all the symbols we need.
7016 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7017 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7018 cat <<_LT_EOF > conftest.$ac_ext
7024 # Now generate the symbol file.
7025 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7027 cat <<_LT_EOF >> conftest.$ac_ext
7029 /* The mapping between symbol names and symbols. */
7034 lt__PROGRAM__LTX_preloaded_symbols[] =
7036 { "@PROGRAM@", (void *) 0 },
7038 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7039 cat <<\_LT_EOF >> conftest.$ac_ext
7043 /* This works around a problem in FreeBSD linker */
7044 #ifdef FREEBSD_WORKAROUND
7045 static const void *lt_preloaded_setup() {
7046 return lt__PROGRAM__LTX_preloaded_symbols;
7054 # Now try linking the two files.
7055 mv conftest.$ac_objext conftstm.$ac_objext
7056 lt_save_LIBS="$LIBS"
7057 lt_save_CFLAGS="$CFLAGS"
7058 LIBS="conftstm.$ac_objext"
7059 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7067 LIBS="$lt_save_LIBS"
7068 CFLAGS="$lt_save_CFLAGS"
7070 echo "cannot find nm_test_func in $nlist" >&5
7073 echo "cannot find nm_test_var in $nlist" >&5
7076 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7079 echo "$progname: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7082 rm -rf conftest* conftst*
7084 # Do not use the global_symbol_pipe unless it works.
7085 if test "$pipe_works" = yes; then
7088 lt_cv_sys_global_symbol_pipe=
7094 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7095 lt_cv_sys_global_symbol_to_cdecl=
7097 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7098 echo "$as_me:$LINENO: result: failed" >&5
7099 echo "${ECHO_T}failed" >&6
7101 echo "$as_me:$LINENO: result: ok" >&5
7102 echo "${ECHO_T}ok" >&6
7127 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7128 if test "${enable_libtool_lock+set}" = set; then
7129 enableval="$enable_libtool_lock"
7132 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7134 # Some flags need to be propagated to the compiler or linker for good
7138 # Find out which ABI we are using.
7139 echo 'int i;' > conftest.$ac_ext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); }; then
7145 case `/usr/bin/file conftest.$ac_objext` in
7157 # Find out which ABI we are using.
7158 echo '#line 7158 "configure"' > conftest.$ac_ext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; then
7164 if test "$lt_cv_prog_gnu_ld" = yes; then
7165 case `/usr/bin/file conftest.$ac_objext` in
7167 LD="${LD-ld} -melf32bsmip"
7170 LD="${LD-ld} -melf32bmipn32"
7173 LD="${LD-ld} -melf64bmip"
7177 case `/usr/bin/file conftest.$ac_objext` in
7193 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7194 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195 # Find out which ABI we are using.
7196 echo 'int i;' > conftest.$ac_ext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; then
7202 case `/usr/bin/file conftest.o` in
7205 x86_64-*kfreebsd*-gnu)
7206 LD="${LD-ld} -m elf_i386_fbsd"
7209 LD="${LD-ld} -m elf_i386"
7211 ppc64-*linux*|powerpc64-*linux*)
7212 LD="${LD-ld} -m elf32ppclinux"
7215 LD="${LD-ld} -m elf_s390"
7218 LD="${LD-ld} -m elf32_sparc"
7224 x86_64-*kfreebsd*-gnu)
7225 LD="${LD-ld} -m elf_x86_64_fbsd"
7228 LD="${LD-ld} -m elf_x86_64"
7230 ppc*-*linux*|powerpc*-*linux*)
7231 LD="${LD-ld} -m elf64ppc"
7233 s390*-*linux*|s390*-*tpf*)
7234 LD="${LD-ld} -m elf64_s390"
7237 LD="${LD-ld} -m elf64_sparc"
7247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7248 SAVE_CFLAGS="$CFLAGS"
7249 CFLAGS="$CFLAGS -belf"
7250 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7251 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7252 if test "${lt_cv_cc_needs_belf+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261 if test x$gcc_no_link = xyes; then
7262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7264 { (exit 1); exit 1; }; }
7266 cat >conftest.$ac_ext <<_ACEOF
7269 cat confdefs.h >>conftest.$ac_ext
7270 cat >>conftest.$ac_ext <<_ACEOF
7271 /* end confdefs.h. */
7281 rm -f conftest.$ac_objext conftest$ac_exeext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283 (eval $ac_link) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1 >conftest.err
7287 cat conftest.err >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try='test -s conftest$ac_exeext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 lt_cv_cc_needs_belf=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 lt_cv_cc_needs_belf=no
7310 rm -f conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7313 ac_cpp='$CPP $CPPFLAGS'
7314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7320 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7321 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7322 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7323 CFLAGS="$SAVE_CFLAGS"
7327 # Find out which ABI we are using.
7328 echo 'int i;' > conftest.$ac_ext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); }; then
7334 case `/usr/bin/file conftest.o` in
7336 case $lt_cv_prog_gnu_ld in
7337 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7339 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7351 need_locks="$enable_libtool_lock"
7355 rhapsody* | darwin*)
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 if test -n "$DSYMUTIL"; then
7365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7384 if test -n "$DSYMUTIL"; then
7385 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7386 echo "${ECHO_T}$DSYMUTIL" >&6
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7393 if test -z "$ac_cv_prog_DSYMUTIL"; then
7394 ac_ct_DSYMUTIL=$DSYMUTIL
7395 # Extract the first word of "dsymutil", so it can be a program name with args.
7396 set dummy dsymutil; ac_word=$2
7397 echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7399 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 if test -n "$ac_ct_DSYMUTIL"; then
7403 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7422 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7423 if test -n "$ac_ct_DSYMUTIL"; then
7424 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7425 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7427 echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6
7431 DSYMUTIL=$ac_ct_DSYMUTIL
7433 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7436 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7439 echo "$as_me:$LINENO: checking for $ac_word" >&5
7440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7441 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 if test -n "$NMEDIT"; then
7445 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 NMEDIT=$ac_cv_prog_NMEDIT
7464 if test -n "$NMEDIT"; then
7465 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7466 echo "${ECHO_T}$NMEDIT" >&6
7468 echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6
7473 if test -z "$ac_cv_prog_NMEDIT"; then
7474 ac_ct_NMEDIT=$NMEDIT
7475 # Extract the first word of "nmedit", so it can be a program name with args.
7476 set dummy nmedit; ac_word=$2
7477 echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7479 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 if test -n "$ac_ct_NMEDIT"; then
7483 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7502 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7503 if test -n "$ac_ct_NMEDIT"; then
7504 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7505 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7507 echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7511 NMEDIT=$ac_ct_NMEDIT
7513 NMEDIT="$ac_cv_prog_NMEDIT"
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7519 echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7521 if test "${ac_cv_prog_LIPO+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 if test -n "$LIPO"; then
7525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 LIPO=$ac_cv_prog_LIPO
7544 if test -n "$LIPO"; then
7545 echo "$as_me:$LINENO: result: $LIPO" >&5
7546 echo "${ECHO_T}$LIPO" >&6
7548 echo "$as_me:$LINENO: result: no" >&5
7549 echo "${ECHO_T}no" >&6
7553 if test -z "$ac_cv_prog_LIPO"; then
7555 # Extract the first word of "lipo", so it can be a program name with args.
7556 set dummy lipo; ac_word=$2
7557 echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7559 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 if test -n "$ac_ct_LIPO"; then
7563 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_LIPO="lipo"
7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7582 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7583 if test -n "$ac_ct_LIPO"; then
7584 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7585 echo "${ECHO_T}$ac_ct_LIPO" >&6
7587 echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6
7593 LIPO="$ac_cv_prog_LIPO"
7596 if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}otool; ac_word=$2
7599 echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7601 if test "${ac_cv_prog_OTOOL+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 if test -n "$OTOOL"; then
7605 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 OTOOL=$ac_cv_prog_OTOOL
7624 if test -n "$OTOOL"; then
7625 echo "$as_me:$LINENO: result: $OTOOL" >&5
7626 echo "${ECHO_T}$OTOOL" >&6
7628 echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6
7633 if test -z "$ac_cv_prog_OTOOL"; then
7635 # Extract the first word of "otool", so it can be a program name with args.
7636 set dummy otool; ac_word=$2
7637 echo "$as_me:$LINENO: checking for $ac_word" >&5
7638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7639 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 if test -n "$ac_ct_OTOOL"; then
7643 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_ac_ct_OTOOL="otool"
7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7659 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7662 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7663 if test -n "$ac_ct_OTOOL"; then
7664 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7665 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7667 echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6
7673 OTOOL="$ac_cv_prog_OTOOL"
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 if test -n "$OTOOL64"; then
7685 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 OTOOL64=$ac_cv_prog_OTOOL64
7704 if test -n "$OTOOL64"; then
7705 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7706 echo "${ECHO_T}$OTOOL64" >&6
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7713 if test -z "$ac_cv_prog_OTOOL64"; then
7714 ac_ct_OTOOL64=$OTOOL64
7715 # Extract the first word of "otool64", so it can be a program name with args.
7716 set dummy otool64; ac_word=$2
7717 echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7719 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 if test -n "$ac_ct_OTOOL64"; then
7723 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_ac_ct_OTOOL64="otool64"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7742 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7743 if test -n "$ac_ct_OTOOL64"; then
7744 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7745 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7747 echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7751 OTOOL64=$ac_ct_OTOOL64
7753 OTOOL64="$ac_cv_prog_OTOOL64"
7782 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7783 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7784 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 lt_cv_apple_cc_single_mod=no
7788 if test -z "${LT_MULTI_MODULE}"; then
7789 # By default we will add the -single_module flag. You can override
7790 # by either setting the environment variable LT_MULTI_MODULE
7791 # non-empty at configure time, or by adding -multi_module to the
7793 rm -rf libconftest.dylib*
7794 echo "int foo(void){return 1;}" > conftest.c
7795 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7796 -dynamiclib -Wl,-single_module conftest.c" >&5
7797 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7798 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7800 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7801 lt_cv_apple_cc_single_mod=yes
7803 cat conftest.err >&5
7805 rm -rf libconftest.dylib*
7809 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7810 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7811 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7812 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7813 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 lt_cv_ld_exported_symbols_list=no
7817 save_LDFLAGS=$LDFLAGS
7818 echo "_main" > conftest.sym
7819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7820 if test x$gcc_no_link = xyes; then
7821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7823 { (exit 1); exit 1; }; }
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842 (eval $ac_link) 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -z "$ac_c_werror_flag"
7850 || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } &&
7856 { ac_try='test -s conftest$ac_exeext'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; }; then
7862 lt_cv_ld_exported_symbols_list=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 lt_cv_ld_exported_symbols_list=no
7869 rm -f conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
7871 LDFLAGS="$save_LDFLAGS"
7874 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7875 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7877 rhapsody* | darwin1.[012])
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881 darwin*) # darwin 5.x on
7882 # if running on 10.5 or later, the deployment target defaults
7883 # to the OS version, if on x86, and 10.4, the deployment
7884 # target defaults to 10.4. Don't you love it?
7885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7896 _lt_dar_single_mod='$single_module'
7898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7903 if test "$DSYMUTIL" != ":"; then
7904 _lt_dsymutil='~$DSYMUTIL $lib || :'
7912 ac_cpp='$CPP $CPPFLAGS'
7913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7917 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7918 # On Suns, sometimes $CPP names a directory.
7919 if test -n "$CPP" && test -d "$CPP"; then
7922 if test -z "$CPP"; then
7923 if test "${ac_cv_prog_CPP+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 # Double quotes because CPP needs to be expanded
7927 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7930 for ac_c_preproc_warn_flag in '' yes
7932 # Use a header file that comes with gcc, so configuring glibc
7933 # with a fresh cross-compiler works.
7934 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7935 # <limits.h> exists even on freestanding compilers.
7936 # On the NeXT, cc -E runs the code through the compiler's parser,
7937 # not just through cpp. "Syntax error" is here to catch this case.
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7945 # include <limits.h>
7947 # include <assert.h>
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7954 grep -v '^ *+' conftest.er1 >conftest.err
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev/null; then
7959 if test -s conftest.err; then
7960 ac_cpp_err=$ac_c_preproc_warn_flag
7961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7968 if test -z "$ac_cpp_err"; then
7971 echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 # Broken: fails on valid input.
7977 rm -f conftest.err conftest.$ac_ext
7979 # OK, works on sane cases. Now check whether non-existent headers
7980 # can be detected and how.
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <ac_nonexistent.h>
7989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } >/dev/null; then
7997 if test -s conftest.err; then
7998 ac_cpp_err=$ac_c_preproc_warn_flag
7999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8006 if test -z "$ac_cpp_err"; then
8007 # Broken: success on invalid input.
8010 echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8013 # Passes both tests.
8017 rm -f conftest.err conftest.$ac_ext
8020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8021 rm -f conftest.err conftest.$ac_ext
8022 if $ac_preproc_ok; then
8034 echo "$as_me:$LINENO: result: $CPP" >&5
8035 echo "${ECHO_T}$CPP" >&6
8037 for ac_c_preproc_warn_flag in '' yes
8039 # Use a header file that comes with gcc, so configuring glibc
8040 # with a fresh cross-compiler works.
8041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042 # <limits.h> exists even on freestanding compilers.
8043 # On the NeXT, cc -E runs the code through the compiler's parser,
8044 # not just through cpp. "Syntax error" is here to catch this case.
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8052 # include <limits.h>
8054 # include <assert.h>
8058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } >/dev/null; then
8066 if test -s conftest.err; then
8067 ac_cpp_err=$ac_c_preproc_warn_flag
8068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8075 if test -z "$ac_cpp_err"; then
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 # Broken: fails on valid input.
8084 rm -f conftest.err conftest.$ac_ext
8086 # OK, works on sane cases. Now check whether non-existent headers
8087 # can be detected and how.
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 #include <ac_nonexistent.h>
8096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } >/dev/null; then
8104 if test -s conftest.err; then
8105 ac_cpp_err=$ac_c_preproc_warn_flag
8106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8113 if test -z "$ac_cpp_err"; then
8114 # Broken: success on invalid input.
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 # Passes both tests.
8124 rm -f conftest.err conftest.$ac_ext
8127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8128 rm -f conftest.err conftest.$ac_ext
8129 if $ac_preproc_ok; then
8132 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8133 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8135 See \`config.log' for more details." >&5
8136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8137 See \`config.log' for more details." >&2;}
8138 { (exit 1); exit 1; }; }; }
8142 ac_cpp='$CPP $CPPFLAGS'
8143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8148 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8149 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8150 if test "${ac_cv_header_stdc+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8172 rm -f conftest.$ac_objext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8174 (eval $ac_compile) 2>conftest.er1
8176 grep -v '^ *+' conftest.er1 >conftest.err
8178 cat conftest.err >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -z "$ac_c_werror_flag"
8182 || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_cv_header_stdc=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_header_stdc=no
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8203 if test $ac_cv_header_stdc = yes; then
8204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8205 cat >conftest.$ac_ext <<_ACEOF
8208 cat confdefs.h >>conftest.$ac_ext
8209 cat >>conftest.$ac_ext <<_ACEOF
8210 /* end confdefs.h. */
8214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8215 $EGREP "memchr" >/dev/null 2>&1; then
8218 ac_cv_header_stdc=no
8224 if test $ac_cv_header_stdc = yes; then
8225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8236 $EGREP "free" >/dev/null 2>&1; then
8239 ac_cv_header_stdc=no
8245 if test $ac_cv_header_stdc = yes; then
8246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8247 if test "$cross_compiling" = yes; then
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8257 #if ((' ' & 0x0FF) == 0x020)
8258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8261 # define ISLOWER(c) \
8262 (('a' <= (c) && (c) <= 'i') \
8263 || ('j' <= (c) && (c) <= 'r') \
8264 || ('s' <= (c) && (c) <= 'z'))
8265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8273 for (i = 0; i < 256; i++)
8274 if (XOR (islower (i), ISLOWER (i))
8275 || toupper (i) != TOUPPER (i))
8280 rm -f conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); }; }; then
8293 echo "$as_me: program exited with status $ac_status" >&5
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_cv_header_stdc=no
8300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8305 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8306 if test $ac_cv_header_stdc = yes; then
8308 cat >>confdefs.h <<\_ACEOF
8309 #define STDC_HEADERS 1
8314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8324 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8325 inttypes.h stdint.h unistd.h
8327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328 echo "$as_me:$LINENO: checking for $ac_header" >&5
8329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8341 #include <$ac_header>
8343 rm -f conftest.$ac_objext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8345 (eval $ac_compile) 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 eval "$as_ac_Header=yes"
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 eval "$as_ac_Header=no"
8372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387 for ac_header in dlfcn.h
8389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8390 echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8403 #include <$ac_header>
8405 rm -f conftest.$ac_objext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8407 (eval $ac_compile) 2>conftest.er1
8409 grep -v '^ *+' conftest.er1 >conftest.err
8411 cat conftest.err >&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -z "$ac_c_werror_flag"
8415 || test ! -s conftest.err'
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; } &&
8421 { ac_try='test -s conftest.$ac_objext'
8422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); }; }; then
8427 eval "$as_ac_Header=yes"
8429 echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 eval "$as_ac_Header=no"
8434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8450 ac_cpp='$CXXCPP $CPPFLAGS'
8451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8454 if test -n "$ac_tool_prefix"; then
8455 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8459 echo "$as_me:$LINENO: checking for $ac_word" >&5
8460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8461 if test "${ac_cv_prog_CXX+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 if test -n "$CXX"; then
8465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 test -z "$as_dir" && as_dir=.
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8484 if test -n "$CXX"; then
8485 echo "$as_me:$LINENO: result: $CXX" >&5
8486 echo "${ECHO_T}$CXX" >&6
8488 echo "$as_me:$LINENO: result: no" >&5
8489 echo "${ECHO_T}no" >&6
8492 test -n "$CXX" && break
8495 if test -z "$CXX"; then
8497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8499 # Extract the first word of "$ac_prog", so it can be a program name with args.
8500 set dummy $ac_prog; ac_word=$2
8501 echo "$as_me:$LINENO: checking for $ac_word" >&5
8502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 if test -n "$ac_ct_CXX"; then
8507 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8516 ac_cv_prog_ac_ct_CXX="$ac_prog"
8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8526 if test -n "$ac_ct_CXX"; then
8527 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8528 echo "${ECHO_T}$ac_ct_CXX" >&6
8530 echo "$as_me:$LINENO: result: no" >&5
8531 echo "${ECHO_T}no" >&6
8534 test -n "$ac_ct_CXX" && break
8536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8542 # Provide some information about the compiler.
8543 echo "$as_me:$LINENO:" \
8544 "checking for C++ compiler version" >&5
8545 ac_compiler=`set X $ac_compile; echo $2`
8546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8547 (eval $ac_compiler --version </dev/null >&5) 2>&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }
8551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8552 (eval $ac_compiler -v </dev/null >&5) 2>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); }
8556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8557 (eval $ac_compiler -V </dev/null >&5) 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }
8562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8585 rm -f conftest.$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_cxx_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8620 GXX=`test $ac_compiler_gnu = yes && echo yes`
8621 ac_test_CXXFLAGS=${CXXFLAGS+set}
8622 ac_save_CXXFLAGS=$CXXFLAGS
8624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8626 if test "${ac_cv_prog_cxx_g+set}" = set; then
8627 echo $ECHO_N "(cached) $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_cxx_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_prog_cxx_g=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8677 if test "$ac_test_CXXFLAGS" = set; then
8678 CXXFLAGS=$ac_save_CXXFLAGS
8679 elif test $ac_cv_prog_cxx_g = yes; then
8680 if test "$GXX" = yes; then
8686 if test "$GXX" = yes; then
8692 for ac_declaration in \
8694 'extern "C" void std::exit (int) throw (); using std::exit;' \
8695 'extern "C" void std::exit (int); using std::exit;' \
8696 'extern "C" void exit (int) throw ();' \
8697 'extern "C" void exit (int);' \
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8716 rm -f conftest.$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_cxx_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -z "$ac_cxx_werror_flag"
8771 || test ! -s conftest.err'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; } &&
8777 { ac_try='test -s conftest.$ac_objext'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8785 echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8792 if test -n "$ac_declaration"; then
8793 echo '#ifdef __cplusplus' >>confdefs.h
8794 echo $ac_declaration >>confdefs.h
8795 echo '#endif' >>confdefs.h
8799 ac_cpp='$CPP $CPPFLAGS'
8800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8806 (test "X$CXX" != "Xg++"))) ; then
8808 ac_cpp='$CXXCPP $CPPFLAGS'
8809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8812 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8813 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8814 if test -z "$CXXCPP"; then
8815 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 # Double quotes because CXXCPP needs to be expanded
8819 for CXXCPP in "$CXX -E" "/lib/cpp"
8822 for ac_cxx_preproc_warn_flag in '' yes
8824 # Use a header file that comes with gcc, so configuring glibc
8825 # with a fresh cross-compiler works.
8826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8827 # <limits.h> exists even on freestanding compilers.
8828 # On the NeXT, cc -E runs the code through the compiler's parser,
8829 # not just through cpp. "Syntax error" is here to catch this case.
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8837 # include <limits.h>
8839 # include <assert.h>
8843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8846 grep -v '^ *+' conftest.er1 >conftest.err
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } >/dev/null; then
8851 if test -s conftest.err; then
8852 ac_cpp_err=$ac_cxx_preproc_warn_flag
8853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8860 if test -z "$ac_cpp_err"; then
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8866 # Broken: fails on valid input.
8869 rm -f conftest.err conftest.$ac_ext
8871 # OK, works on sane cases. Now check whether non-existent headers
8872 # can be detected and how.
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <ac_nonexistent.h>
8881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } >/dev/null; then
8889 if test -s conftest.err; then
8890 ac_cpp_err=$ac_cxx_preproc_warn_flag
8891 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8898 if test -z "$ac_cpp_err"; then
8899 # Broken: success on invalid input.
8902 echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8905 # Passes both tests.
8909 rm -f conftest.err conftest.$ac_ext
8912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8913 rm -f conftest.err conftest.$ac_ext
8914 if $ac_preproc_ok; then
8919 ac_cv_prog_CXXCPP=$CXXCPP
8922 CXXCPP=$ac_cv_prog_CXXCPP
8924 ac_cv_prog_CXXCPP=$CXXCPP
8926 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8927 echo "${ECHO_T}$CXXCPP" >&6
8929 for ac_cxx_preproc_warn_flag in '' yes
8931 # Use a header file that comes with gcc, so configuring glibc
8932 # with a fresh cross-compiler works.
8933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8934 # <limits.h> exists even on freestanding compilers.
8935 # On the NeXT, cc -E runs the code through the compiler's parser,
8936 # not just through cpp. "Syntax error" is here to catch this case.
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8944 # include <limits.h>
8946 # include <assert.h>
8950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8953 grep -v '^ *+' conftest.er1 >conftest.err
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } >/dev/null; then
8958 if test -s conftest.err; then
8959 ac_cpp_err=$ac_cxx_preproc_warn_flag
8960 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8967 if test -z "$ac_cpp_err"; then
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8973 # Broken: fails on valid input.
8976 rm -f conftest.err conftest.$ac_ext
8978 # OK, works on sane cases. Now check whether non-existent headers
8979 # can be detected and how.
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <ac_nonexistent.h>
8988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } >/dev/null; then
8996 if test -s conftest.err; then
8997 ac_cpp_err=$ac_cxx_preproc_warn_flag
8998 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9005 if test -z "$ac_cpp_err"; then
9006 # Broken: success on invalid input.
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 # Passes both tests.
9016 rm -f conftest.err conftest.$ac_ext
9019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9020 rm -f conftest.err conftest.$ac_ext
9021 if $ac_preproc_ok; then
9024 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9025 echo "$as_me: error: in \`$ac_pwd':" >&2;}
9026 _lt_caught_CXX_error=yes; }
9030 ac_cpp='$CPP $CPPFLAGS'
9031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9036 _lt_caught_CXX_error=yes
9051 # Check whether --enable-shared or --disable-shared was given.
9052 if test "${enable_shared+set}" = set; then
9053 enableval="$enable_shared"
9054 p=${PACKAGE-default}
9056 yes) enable_shared=yes ;;
9057 no) enable_shared=no ;;
9060 # Look at the argument we got. We use all the common list separators.
9061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9062 for pkg in $enableval; do
9064 if test "X$pkg" = "X$p"; then
9082 # Check whether --enable-static or --disable-static was given.
9083 if test "${enable_static+set}" = set; then
9084 enableval="$enable_static"
9085 p=${PACKAGE-default}
9087 yes) enable_static=yes ;;
9088 no) enable_static=no ;;
9091 # Look at the argument we got. We use all the common list separators.
9092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9093 for pkg in $enableval; do
9095 if test "X$pkg" = "X$p"; then
9114 # Check whether --with-pic or --without-pic was given.
9115 if test "${with_pic+set}" = set; then
9122 test -z "$pic_mode" && pic_mode=default
9130 # Check whether --enable-fast-install or --disable-fast-install was given.
9131 if test "${enable_fast_install+set}" = set; then
9132 enableval="$enable_fast_install"
9133 p=${PACKAGE-default}
9135 yes) enable_fast_install=yes ;;
9136 no) enable_fast_install=no ;;
9138 enable_fast_install=no
9139 # Look at the argument we got. We use all the common list separators.
9140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9141 for pkg in $enableval; do
9143 if test "X$pkg" = "X$p"; then
9144 enable_fast_install=yes
9151 enable_fast_install=yes
9163 # This can be used to rebuild libtool when needed
9164 LIBTOOL_DEPS="$ltmain"
9166 # Always use our own libtool.
9167 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9193 test -z "$LN_S" && LN_S="ln -s"
9208 if test -n "${ZSH_VERSION+set}" ; then
9209 setopt NO_GLOB_SUBST
9212 echo "$as_me:$LINENO: checking for objdir" >&5
9213 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9214 if test "${lt_cv_objdir+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 rm -f .libs 2>/dev/null
9218 mkdir .libs 2>/dev/null
9219 if test -d .libs; then
9222 # MS-DOS does not allow filenames that begin with a dot.
9225 rmdir .libs 2>/dev/null
9227 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9228 echo "${ECHO_T}$lt_cv_objdir" >&6
9229 objdir=$lt_cv_objdir
9235 cat >>confdefs.h <<_ACEOF
9236 #define LT_OBJDIR "$lt_cv_objdir/"
9257 # AIX sometimes has problems with the GCC collect2 program. For some
9258 # reason, if we set the COLLECT_NAMES environment variable, the problems
9259 # vanish in a puff of smoke.
9260 if test "X${COLLECT_NAMES+set}" != Xset; then
9262 export COLLECT_NAMES
9267 # Sed substitution that helps us do robust quoting. It backslashifies
9268 # metacharacters that are still active within double-quoted strings.
9269 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9271 # Same as above, but do not quote variable references.
9272 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9274 # Sed substitution to delay expansion of an escaped shell variable in a
9275 # double_quote_subst'ed string.
9276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9278 # Sed substitution to delay expansion of an escaped single quote.
9279 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9281 # Sed substitution to avoid accidental globbing in evaled expressions
9282 no_glob_subst='s/\*/\\\*/g'
9286 can_build_shared=yes
9288 # All known linkers require a `.a' archive for static linking (except MSVC,
9289 # which needs '.lib').
9292 with_gnu_ld="$lt_cv_prog_gnu_ld"
9295 old_CFLAGS="$CFLAGS"
9297 # Set sane defaults for various variables
9298 test -z "$CC" && CC=cc
9299 test -z "$LTCC" && LTCC=$CC
9300 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9301 test -z "$LD" && LD=ld
9302 test -z "$ac_objext" && ac_objext=o
9304 for cc_temp in $compiler""; do
9306 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9307 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9312 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9315 # Only perform the check for file, if the check method requires it
9316 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9317 case $deplibs_check_method in
9319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9320 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9321 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9322 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9330 lt_save_MAGIC_CMD="$MAGIC_CMD"
9331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9333 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/${ac_tool_prefix}file; then
9337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9338 if test -n "$file_magic_test_file"; then
9339 case $deplibs_check_method in
9341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9344 $EGREP "$file_magic_regex" > /dev/null; then
9349 *** Warning: the command libtool uses to detect shared libraries,
9350 *** $file_magic_cmd, produces output that libtool cannot recognize.
9351 *** The result is that libtool may fail to recognize shared libraries
9352 *** as such. This will affect the creation of libtool libraries that
9353 *** depend on shared libraries, but programs linked with such libtool
9354 *** libraries will work regardless of this problem. Nevertheless, you
9355 *** may want to report the problem to your system manager and/or to
9356 *** bug-libtool@gnu.org
9366 MAGIC_CMD="$lt_save_MAGIC_CMD"
9371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9372 if test -n "$MAGIC_CMD"; then
9373 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9374 echo "${ECHO_T}$MAGIC_CMD" >&6
9376 echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6
9384 if test -z "$lt_cv_path_MAGIC_CMD"; then
9385 if test -n "$ac_tool_prefix"; then
9386 echo "$as_me:$LINENO: checking for file" >&5
9387 echo $ECHO_N "checking for file... $ECHO_C" >&6
9388 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9396 lt_save_MAGIC_CMD="$MAGIC_CMD"
9397 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9398 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9399 for ac_dir in $ac_dummy; do
9401 test -z "$ac_dir" && ac_dir=.
9402 if test -f $ac_dir/file; then
9403 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9404 if test -n "$file_magic_test_file"; then
9405 case $deplibs_check_method in
9407 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9409 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9410 $EGREP "$file_magic_regex" > /dev/null; then
9415 *** Warning: the command libtool uses to detect shared libraries,
9416 *** $file_magic_cmd, produces output that libtool cannot recognize.
9417 *** The result is that libtool may fail to recognize shared libraries
9418 *** as such. This will affect the creation of libtool libraries that
9419 *** depend on shared libraries, but programs linked with such libtool
9420 *** libraries will work regardless of this problem. Nevertheless, you
9421 *** may want to report the problem to your system manager and/or to
9422 *** bug-libtool@gnu.org
9432 MAGIC_CMD="$lt_save_MAGIC_CMD"
9437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9438 if test -n "$MAGIC_CMD"; then
9439 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9440 echo "${ECHO_T}$MAGIC_CMD" >&6
9442 echo "$as_me:$LINENO: result: no" >&5
9443 echo "${ECHO_T}no" >&6
9456 # Use C for the default configuration in the libtool script
9460 ac_cpp='$CPP $CPPFLAGS'
9461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466 # Source file extension for C test sources.
9469 # Object file extension for compiled C test sources.
9473 # Code to be used in simple compile tests
9474 lt_simple_compile_test_code="int some_variable = 0;"
9476 # Code to be used in simple link tests
9477 lt_simple_link_test_code='int main(){return(0);}'
9485 # If no C compiler was specified, use CC.
9488 # If no C compiler flags were specified, use CFLAGS.
9489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9491 # Allow CC to be a program name with arguments.
9494 # Save the default compiler, since it gets overwritten when the other
9495 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9496 compiler_DEFAULT=$CC
9498 # save warnings/boilerplate of simple test code
9499 ac_outfile=conftest.$ac_objext
9500 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9501 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9502 _lt_compiler_boilerplate=`cat conftest.err`
9505 ac_outfile=conftest.$ac_objext
9506 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9507 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9508 _lt_linker_boilerplate=`cat conftest.err`
9513 ## There is no encapsulation within the following macros, do not change
9514 ## the running order or otherwise move them around unless you know exactly
9515 ## what you are doing...
9516 if test -n "$compiler"; then
9518 lt_prog_compiler_no_builtin_flag=
9520 if test "$GCC" = yes; then
9521 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9523 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 lt_cv_prog_compiler_rtti_exceptions=no
9529 ac_outfile=conftest.$ac_objext
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531 lt_compiler_flag="-fno-rtti -fno-exceptions"
9532 # Insert the option either (1) after the last *FLAGS variable, or
9533 # (2) before a word containing "conftest.", or (3) at the end.
9534 # Note that $ac_compile itself does not contain backslashes and begins
9535 # with a dollar sign (not a hyphen), so the echo should work correctly.
9536 # The option is referenced via a variable to avoid confusing sed.
9537 lt_compile=`echo "$ac_compile" | $SED \
9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540 -e 's:$: $lt_compiler_flag:'`
9541 (eval echo "\"\$as_me:9541: $lt_compile\"" >&5)
9542 (eval "$lt_compile" 2>conftest.err)
9544 cat conftest.err >&5
9545 echo "$as_me:9545: \$? = $ac_status" >&5
9546 if (exit $ac_status) && test -s "$ac_outfile"; then
9547 # The compiler can only warn and ignore the option if not recognized
9548 # So say no if there are warnings other than the usual output.
9549 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9552 lt_cv_prog_compiler_rtti_exceptions=yes
9558 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9559 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9574 lt_prog_compiler_wl=
9575 lt_prog_compiler_pic=
9576 lt_prog_compiler_static=
9578 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9579 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9581 if test "$GCC" = yes; then
9582 lt_prog_compiler_wl='-Wl,'
9583 lt_prog_compiler_static='-static'
9587 # All AIX code is PIC.
9588 if test "$host_cpu" = ia64; then
9589 # AIX 5 now supports IA64 processor
9590 lt_prog_compiler_static='-Bstatic'
9597 # see comment about AmigaOS4 .so support
9598 lt_prog_compiler_pic='-fPIC'
9601 # FIXME: we need at least 68020 code to build shared libraries, but
9602 # adding the `-m68020' flag to GCC prevents building anything better,
9604 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9609 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9610 # PIC is the default for these OSes.
9613 mingw* | cygwin* | pw32* | os2* | cegcc*)
9614 # This hack is so that the source file can tell whether it is being
9615 # built for inclusion in a dll (and should export symbols for example).
9616 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9617 # (--disable-auto-import) libraries
9618 lt_prog_compiler_pic='-DDLL_EXPORT'
9621 darwin* | rhapsody*)
9622 # PIC is the default on this platform
9623 # Common symbols not allowed in MH_DYLIB files
9624 lt_prog_compiler_pic='-fno-common'
9628 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9629 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9630 # sets the default TLS model and affects inlining.
9636 lt_prog_compiler_pic='-fPIC'
9642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9643 # Instead, we relocate shared libraries at runtime.
9647 # Just because we use GCC doesn't mean we suddenly get shared libraries
9648 # on systems that don't support them.
9649 lt_prog_compiler_can_build_shared=no
9654 # QNX uses GNU C++, but need to define -shared option too, otherwise
9656 lt_prog_compiler_pic='-fPIC -shared'
9660 if test -d /usr/nec; then
9661 lt_prog_compiler_pic=-Kconform_pic
9666 lt_prog_compiler_pic='-fPIC'
9670 # PORTME Check for flag to pass linker flags through the system compiler.
9673 lt_prog_compiler_wl='-Wl,'
9674 if test "$host_cpu" = ia64; then
9675 # AIX 5 now supports IA64 processor
9676 lt_prog_compiler_static='-Bstatic'
9678 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9682 mingw* | cygwin* | pw32* | os2* | cegcc*)
9683 # This hack is so that the source file can tell whether it is being
9684 # built for inclusion in a dll (and should export symbols for example).
9685 lt_prog_compiler_pic='-DDLL_EXPORT'
9688 hpux9* | hpux10* | hpux11*)
9689 lt_prog_compiler_wl='-Wl,'
9690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9697 lt_prog_compiler_pic='+Z'
9700 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9701 lt_prog_compiler_static='${wl}-a ${wl}archive'
9704 irix5* | irix6* | nonstopux*)
9705 lt_prog_compiler_wl='-Wl,'
9706 # PIC (with -KPIC) is the default.
9707 lt_prog_compiler_static='-non_shared'
9710 linux* | k*bsd*-gnu)
9711 case $cc_basename in
9712 # old Intel for x86_64 which still supported -KPIC.
9714 lt_prog_compiler_wl='-Wl,'
9715 lt_prog_compiler_pic='-KPIC'
9716 lt_prog_compiler_static='-static'
9718 # icc used to be incompatible with GCC.
9719 # ICC 10 doesn't accept -KPIC any more.
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_pic='-fPIC'
9723 lt_prog_compiler_static='-static'
9725 # Lahey Fortran 8.1.
9727 lt_prog_compiler_wl='-Wl,'
9728 lt_prog_compiler_pic='--shared'
9729 lt_prog_compiler_static='--static'
9731 pgcc* | pgf77* | pgf90* | pgf95*)
9732 # Portland Group compilers (*not* the Pentium gcc compiler,
9733 # which looks to be a dead project)
9734 lt_prog_compiler_wl='-Wl,'
9735 lt_prog_compiler_pic='-fpic'
9736 lt_prog_compiler_static='-Bstatic'
9739 lt_prog_compiler_wl='-Wl,'
9740 # All Alpha code is PIC.
9741 lt_prog_compiler_static='-non_shared'
9744 # IBM XL C 8.0/Fortran 10.1 on PPC
9745 lt_prog_compiler_wl='-Wl,'
9746 lt_prog_compiler_pic='-qpic'
9747 lt_prog_compiler_static='-qstaticlink'
9750 case `$CC -V 2>&1 | sed 5q` in
9753 lt_prog_compiler_pic='-KPIC'
9754 lt_prog_compiler_static='-Bstatic'
9755 lt_prog_compiler_wl='-Wl,'
9758 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9759 lt_prog_compiler_pic='-KPIC'
9760 lt_prog_compiler_static='-Bstatic'
9761 lt_prog_compiler_wl=''
9769 lt_prog_compiler_pic='-KPIC'
9770 lt_prog_compiler_static='-Bstatic'
9774 # QNX uses GNU C++, but need to define -shared option too, otherwise
9776 lt_prog_compiler_pic='-fPIC -shared'
9779 osf3* | osf4* | osf5*)
9780 lt_prog_compiler_wl='-Wl,'
9781 # All OSF/1 code is PIC.
9782 lt_prog_compiler_static='-non_shared'
9786 lt_prog_compiler_static='-non_shared'
9790 lt_prog_compiler_pic='-KPIC'
9791 lt_prog_compiler_static='-Bstatic'
9792 case $cc_basename in
9794 lt_prog_compiler_wl='-Qoption ld ';;
9796 lt_prog_compiler_wl='-Wl,';;
9801 lt_prog_compiler_wl='-Qoption ld '
9802 lt_prog_compiler_pic='-PIC'
9803 lt_prog_compiler_static='-Bstatic'
9806 sysv4 | sysv4.2uw2* | sysv4.3*)
9807 lt_prog_compiler_wl='-Wl,'
9808 lt_prog_compiler_pic='-KPIC'
9809 lt_prog_compiler_static='-Bstatic'
9813 if test -d /usr/nec ;then
9814 lt_prog_compiler_pic='-Kconform_pic'
9815 lt_prog_compiler_static='-Bstatic'
9819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9820 lt_prog_compiler_wl='-Wl,'
9821 lt_prog_compiler_pic='-KPIC'
9822 lt_prog_compiler_static='-Bstatic'
9826 lt_prog_compiler_wl='-Wl,'
9827 lt_prog_compiler_can_build_shared=no
9831 lt_prog_compiler_pic='-pic'
9832 lt_prog_compiler_static='-Bstatic'
9836 lt_prog_compiler_can_build_shared=no
9842 # For platforms which do not support PIC, -DPIC is meaningless:
9844 lt_prog_compiler_pic=
9847 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9850 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9851 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9859 # Check to make sure the PIC flag actually works.
9861 if test -n "$lt_prog_compiler_pic"; then
9862 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9864 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 lt_cv_prog_compiler_pic_works=no
9868 ac_outfile=conftest.$ac_objext
9869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9870 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9871 # Insert the option either (1) after the last *FLAGS variable, or
9872 # (2) before a word containing "conftest.", or (3) at the end.
9873 # Note that $ac_compile itself does not contain backslashes and begins
9874 # with a dollar sign (not a hyphen), so the echo should work correctly.
9875 # The option is referenced via a variable to avoid confusing sed.
9876 lt_compile=`echo "$ac_compile" | $SED \
9877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879 -e 's:$: $lt_compiler_flag:'`
9880 (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881 (eval "$lt_compile" 2>conftest.err)
9883 cat conftest.err >&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 if (exit $ac_status) && test -s "$ac_outfile"; then
9886 # The compiler can only warn and ignore the option if not recognized
9887 # So say no if there are warnings other than the usual output.
9888 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9891 lt_cv_prog_compiler_pic_works=yes
9897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9898 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
9900 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9901 case $lt_prog_compiler_pic in
9903 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9906 lt_prog_compiler_pic=
9907 lt_prog_compiler_can_build_shared=no
9918 # Check to make sure the static flag actually works.
9920 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9921 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9922 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9923 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 lt_cv_prog_compiler_static_works=no
9927 save_LDFLAGS="$LDFLAGS"
9928 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9931 # The linker can only warn and ignore the option if not recognized
9932 # So say no if there are warnings
9933 if test -s conftest.err; then
9934 # Append any errors to the config.log.
9935 cat conftest.err 1>&5
9936 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9938 if diff conftest.exp conftest.er2 >/dev/null; then
9939 lt_cv_prog_compiler_static_works=yes
9942 lt_cv_prog_compiler_static_works=yes
9946 LDFLAGS="$save_LDFLAGS"
9949 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9950 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
9952 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9955 lt_prog_compiler_static=
9964 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9965 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9966 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 lt_cv_prog_compiler_c_o=no
9970 $RM -r conftest 2>/dev/null
9974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9976 lt_compiler_flag="-o out/conftest2.$ac_objext"
9977 # Insert the option either (1) after the last *FLAGS variable, or
9978 # (2) before a word containing "conftest.", or (3) at the end.
9979 # Note that $ac_compile itself does not contain backslashes and begins
9980 # with a dollar sign (not a hyphen), so the echo should work correctly.
9981 lt_compile=`echo "$ac_compile" | $SED \
9982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9984 -e 's:$: $lt_compiler_flag:'`
9985 (eval echo "\"\$as_me:9985: $lt_compile\"" >&5)
9986 (eval "$lt_compile" 2>out/conftest.err)
9988 cat out/conftest.err >&5
9989 echo "$as_me:9989: \$? = $ac_status" >&5
9990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9992 # The compiler can only warn and ignore the option if not recognized
9993 # So say no if there are warnings
9994 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9997 lt_cv_prog_compiler_c_o=yes
10002 # SGI C++ compiler will create directory out/ii_files/ for
10003 # template instantiation
10004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10005 $RM out/* && rmdir out
10011 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10012 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10019 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10020 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10021 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 lt_cv_prog_compiler_c_o=no
10025 $RM -r conftest 2>/dev/null
10029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10031 lt_compiler_flag="-o out/conftest2.$ac_objext"
10032 # Insert the option either (1) after the last *FLAGS variable, or
10033 # (2) before a word containing "conftest.", or (3) at the end.
10034 # Note that $ac_compile itself does not contain backslashes and begins
10035 # with a dollar sign (not a hyphen), so the echo should work correctly.
10036 lt_compile=`echo "$ac_compile" | $SED \
10037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10039 -e 's:$: $lt_compiler_flag:'`
10040 (eval echo "\"\$as_me:10040: $lt_compile\"" >&5)
10041 (eval "$lt_compile" 2>out/conftest.err)
10043 cat out/conftest.err >&5
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10047 # The compiler can only warn and ignore the option if not recognized
10048 # So say no if there are warnings
10049 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10052 lt_cv_prog_compiler_c_o=yes
10057 # SGI C++ compiler will create directory out/ii_files/ for
10058 # template instantiation
10059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10060 $RM out/* && rmdir out
10066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10072 hard_links="nottested"
10073 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10074 # do not overwrite the value of need_locks provided by the user
10075 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10076 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081 ln conftest.a conftest.b 2>&5 || hard_links=no
10082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10083 echo "$as_me:$LINENO: result: $hard_links" >&5
10084 echo "${ECHO_T}$hard_links" >&6
10085 if test "$hard_links" = no; then
10086 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10087 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10099 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10100 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10103 allow_undefined_flag=
10104 always_export_symbols=no
10106 archive_expsym_cmds=
10107 compiler_needs_object=no
10108 enable_shared_with_static_runtimes=no
10109 export_dynamic_flag_spec=
10110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10111 hardcode_automatic=no
10113 hardcode_direct_absolute=no
10114 hardcode_libdir_flag_spec=
10115 hardcode_libdir_flag_spec_ld=
10116 hardcode_libdir_separator=
10117 hardcode_minus_L=no
10118 hardcode_shlibpath_var=unsupported
10120 link_all_deplibs=unknown
10122 module_expsym_cmds=
10123 old_archive_from_new_cmds=
10124 old_archive_from_expsyms_cmds=
10125 thread_safe_flag_spec=
10126 whole_archive_flag_spec=
10127 # include_expsyms should be a list of space-separated symbols to be *always*
10128 # included in the symbol list
10130 # exclude_expsyms can be an extended regexp of symbols to exclude
10131 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10132 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10133 # as well as any symbol that contains `d'.
10134 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10135 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10136 # platforms (ab)use it in PIC code, but their linkers get confused if
10137 # the symbol is explicitly referenced. Since portable code cannot
10138 # rely on this symbol name, it's probably fine to never include it in
10139 # preloaded symbol tables.
10140 # Exclude shared library initialization/finalization symbols.
10141 extract_expsyms_cmds=
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10146 # When not using gcc, we currently assume that we are using
10147 # Microsoft Visual C++.
10148 if test "$GCC" != yes; then
10153 # we just hope/assume this is gcc and not c89 (= MSVC++)
10162 if test "$with_gnu_ld" = yes; then
10163 # If archive_cmds runs LD, not CC, wlarc should be empty
10166 # Set some defaults for GNU ld with shared library support. These
10167 # are reset later if shared libraries are not supported. Putting them
10168 # here allows them to be overridden if necessary.
10169 runpath_var=LD_RUN_PATH
10170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171 export_dynamic_flag_spec='${wl}--export-dynamic'
10172 # ancient GNU ld didn't support --whole-archive et. al.
10173 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10174 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10176 whole_archive_flag_spec=
10178 supports_anon_versioning=no
10179 case `$LD -v 2>&1` in
10180 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10181 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10182 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10183 *\ 2.11.*) ;; # other 2.11 versions
10184 *) supports_anon_versioning=yes ;;
10187 # See if GNU ld supports shared libraries.
10190 # On AIX/PPC, the GNU linker is very broken
10191 if test "$host_cpu" != ia64; then
10195 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10196 *** to be unable to reliably create shared libraries on AIX.
10197 *** Therefore, libtool is disabling shared libraries support. If you
10198 *** really care for shared libraries, you may want to modify your PATH
10199 *** so that a non-GNU linker is found, and then restart.
10208 # see comment about AmigaOS4 .so support
10209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10210 archive_expsym_cmds=''
10213 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)'
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_minus_L=yes
10221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10222 allow_undefined_flag=unsupported
10223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10224 # support --undefined. This deserves some investigation. FIXME
10225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231 cygwin* | mingw* | pw32* | cegcc*)
10232 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10233 # as there is no search path for DLLs.
10234 hardcode_libdir_flag_spec='-L$libdir'
10235 allow_undefined_flag=unsupported
10236 always_export_symbols=no
10237 enable_shared_with_static_runtimes=yes
10238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10240 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10242 # If the export-symbols file already is a .def file (1st line
10243 # is EXPORTS), use it as is; otherwise, prepend...
10244 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10245 cp $export_symbols $output_objdir/$soname.def;
10247 echo EXPORTS > $output_objdir/$soname.def;
10248 cat $export_symbols >> $output_objdir/$soname.def;
10250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10258 hardcode_shlibpath_var=no
10259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10260 export_dynamic_flag_spec='${wl}-E'
10261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10262 # Instead, shared libraries are loaded at an image base (0x10000000 by
10263 # default) and relocated if they conflict, which is a slow very memory
10264 # consuming and fragmenting process. To avoid this, we pick a random,
10265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10268 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'
10271 gnu* | linux* | tpf* | k*bsd*-gnu)
10273 if test "$host_os" = linux-dietlibc; then
10274 case $cc_basename in
10275 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10278 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10279 && test "$tmp_diet" = no
10282 tmp_sharedflag='-shared'
10283 case $cc_basename,$host_cpu in
10284 pgcc*) # Portland Group C compiler
10285 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'
10286 tmp_addflag=' $pic_flag'
10288 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10289 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'
10290 tmp_addflag=' $pic_flag -Mnomain' ;;
10291 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10292 tmp_addflag=' -i_dynamic' ;;
10293 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10294 tmp_addflag=' -i_dynamic -nofor_main' ;;
10295 ifc* | ifort*) # Intel Fortran compiler
10296 tmp_addflag=' -nofor_main' ;;
10297 lf95*) # Lahey Fortran 8.1
10298 whole_archive_flag_spec=
10299 tmp_sharedflag='--shared' ;;
10300 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10301 tmp_sharedflag='-qmkshrobj'
10304 case `$CC -V 2>&1 | sed 5q` in
10305 *Sun\ C*) # Sun C 5.9
10306 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'
10307 compiler_needs_object=yes
10308 tmp_sharedflag='-G' ;;
10309 *Sun\ F*) # Sun Fortran 8.3
10310 tmp_sharedflag='-G' ;;
10312 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10314 if test "x$supports_anon_versioning" = xyes; then
10315 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10316 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10317 echo "local: *; };" >> $output_objdir/$libname.ver~
10318 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10321 case $cc_basename in
10323 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10324 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10325 hardcode_libdir_flag_spec=
10326 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10327 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10328 if test "x$supports_anon_versioning" = xyes; then
10329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10331 echo "local: *; };" >> $output_objdir/$libname.ver~
10332 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10343 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10352 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10357 *** create shared libraries on Solaris systems. Therefore, libtool
10358 *** is disabling shared libraries support. We urge you to upgrade GNU
10359 *** binutils to release 2.9.1 or newer. Another option is to modify
10360 *** your PATH or compiler configuration so that the native linker is
10361 *** used, and then restart.
10364 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10373 case `$LD -v 2>&1` in
10374 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10378 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10379 *** reliably create shared libraries on SCO systems. Therefore, libtool
10380 *** is disabling shared libraries support. We urge you to upgrade GNU
10381 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10382 *** your PATH or compiler configuration so that the native linker is
10383 *** used, and then restart.
10388 # For security reasons, it is highly recommended that you always
10389 # use absolute paths for naming shared libraries, and exclude the
10390 # DT_RUNPATH tag from executables and libraries. But doing so
10391 # requires that you compile everything twice, which is a pain.
10392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10404 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_direct=yes
10407 hardcode_shlibpath_var=no
10411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10420 if test "$ld_shlibs" = no; then
10422 hardcode_libdir_flag_spec=
10423 export_dynamic_flag_spec=
10424 whole_archive_flag_spec=
10427 # PORTME fill in a description of your system's linker (not GNU ld)
10430 allow_undefined_flag=unsupported
10431 always_export_symbols=yes
10432 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'
10433 # Note: this linker hardcodes the directories in LIBPATH if there
10434 # are no directories specified by -L.
10435 hardcode_minus_L=yes
10436 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10437 # Neither direct hardcoding nor static linking is supported with a
10439 hardcode_direct=unsupported
10444 if test "$host_cpu" = ia64; then
10445 # On IA64, the linker does run time linking by default, so we don't
10446 # have to do anything special.
10447 aix_use_runtimelinking=no
10448 exp_sym_flag='-Bexport'
10451 # If we're using GNU nm, then we don't want the "-C" option.
10452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10453 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10454 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'
10456 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'
10458 aix_use_runtimelinking=no
10460 # Test if we are trying to use run time linking or normal
10461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10462 # need to do runtime linking.
10463 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10464 for ld_flag in $LDFLAGS; do
10465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10466 aix_use_runtimelinking=yes
10473 exp_sym_flag='-bexport'
10474 no_entry_flag='-bnoentry'
10477 # When large executables or shared objects are built, AIX ld can
10478 # have problems creating the table of contents. If linking a library
10479 # or program results in "error TOC overflow" add -mminimal-toc to
10480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10484 hardcode_direct=yes
10485 hardcode_direct_absolute=yes
10486 hardcode_libdir_separator=':'
10487 link_all_deplibs=yes
10488 file_list_spec='${wl}-f,'
10490 if test "$GCC" = yes; then
10491 case $host_os in aix4.[012]|aix4.[012].*)
10492 # We only want to do this on AIX 4.2 and lower, the check
10493 # below for broken collect2 doesn't work under 4.3+
10494 collect2name=`${CC} -print-prog-name=collect2`
10495 if test -f "$collect2name" &&
10496 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10498 # We have reworked collect2
10501 # We have old collect2
10502 hardcode_direct=unsupported
10503 # It fails to find uninstalled libraries when the uninstalled
10504 # path is not listed in the libpath. Setting hardcode_minus_L
10505 # to unsupported forces relinking
10506 hardcode_minus_L=yes
10507 hardcode_libdir_flag_spec='-L$libdir'
10508 hardcode_libdir_separator=
10512 shared_flag='-shared'
10513 if test "$aix_use_runtimelinking" = yes; then
10514 shared_flag="$shared_flag "'${wl}-G'
10518 if test "$host_cpu" = ia64; then
10519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10520 # chokes on -Wl,-G. The following line is correct:
10523 if test "$aix_use_runtimelinking" = yes; then
10524 shared_flag='${wl}-G'
10526 shared_flag='${wl}-bM:SRE'
10531 export_dynamic_flag_spec='${wl}-bexpall'
10532 # It seems that -bexpall does not export symbols beginning with
10533 # underscore (_), so it is better to generate a list of symbols to export.
10534 always_export_symbols=yes
10535 if test "$aix_use_runtimelinking" = yes; then
10536 # Warning - without using the other runtime loading flags (-brtl),
10537 # -berok will link without error, but may produce a broken library.
10538 allow_undefined_flag='-berok'
10539 # Determine the default libpath from the value encoded in an
10540 # empty executable.
10541 if test x$gcc_no_link = xyes; then
10542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10544 { (exit 1); exit 1; }; }
10546 cat >conftest.$ac_ext <<_ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>conftest.er1
10565 grep -v '^ *+' conftest.er1 >conftest.err
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } &&
10570 { ac_try='test -z "$ac_c_werror_flag"
10571 || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10584 lt_aix_libpath_sed='
10585 /Import File Strings/,/^$/ {
10591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10592 # Check for a 64-bit object if we didn't find anything.
10593 if test -z "$aix_libpath"; then
10594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10601 rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10606 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"
10608 if test "$host_cpu" = ia64; then
10609 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10610 allow_undefined_flag="-z nodefs"
10611 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"
10613 # Determine the default libpath from the value encoded in an
10614 # empty executable.
10615 if test x$gcc_no_link = xyes; then
10616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10618 { (exit 1); exit 1; }; }
10620 cat >conftest.$ac_ext <<_ACEOF
10623 cat confdefs.h >>conftest.$ac_ext
10624 cat >>conftest.$ac_ext <<_ACEOF
10625 /* end confdefs.h. */
10635 rm -f conftest.$ac_objext conftest$ac_exeext
10636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10637 (eval $ac_link) 2>conftest.er1
10639 grep -v '^ *+' conftest.er1 >conftest.err
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -z "$ac_c_werror_flag"
10645 || test ! -s conftest.err'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10658 lt_aix_libpath_sed='
10659 /Import File Strings/,/^$/ {
10665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10666 # Check for a 64-bit object if we didn't find anything.
10667 if test -z "$aix_libpath"; then
10668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10675 rm -f conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10680 # Warning - without using the other run time loading flags,
10681 # -berok will link without error, but may produce a broken library.
10682 no_undefined_flag=' ${wl}-bernotok'
10683 allow_undefined_flag=' ${wl}-berok'
10684 # Exported symbols can be pulled into shared objects from archives
10685 whole_archive_flag_spec='$convenience'
10686 archive_cmds_need_lc=yes
10687 # This is similar to how AIX traditionally builds its shared libraries.
10688 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'
10696 # see comment about AmigaOS4 .so support
10697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698 archive_expsym_cmds=''
10701 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)'
10702 hardcode_libdir_flag_spec='-L$libdir'
10703 hardcode_minus_L=yes
10709 export_dynamic_flag_spec=-rdynamic
10712 cygwin* | mingw* | pw32* | cegcc*)
10713 # When not using gcc, we currently assume that we are using
10714 # Microsoft Visual C++.
10715 # hardcode_libdir_flag_spec is actually meaningless, as there is
10716 # no search path for DLLs.
10717 hardcode_libdir_flag_spec=' '
10718 allow_undefined_flag=unsupported
10719 # Tell ltmain to make .lib files, not .a files.
10721 # Tell ltmain to make .dll files, not .so files.
10723 # FIXME: Setting linknames here is a bad hack.
10724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10725 # The linker will automatically build a .lib file if we build a DLL.
10726 old_archive_from_new_cmds='true'
10727 # FIXME: Should let the user specify the lib program.
10728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10729 fix_srcfile_path='`cygpath -w "$srcfile"`'
10730 enable_shared_with_static_runtimes=yes
10733 darwin* | rhapsody*)
10736 archive_cmds_need_lc=no
10738 hardcode_automatic=yes
10739 hardcode_shlibpath_var=unsupported
10740 whole_archive_flag_spec=''
10741 link_all_deplibs=yes
10742 allow_undefined_flag="$_lt_dar_allow_undefined"
10743 case $cc_basename in
10744 ifort*) _lt_dar_can_shared=yes ;;
10745 *) _lt_dar_can_shared=$GCC ;;
10747 if test "$_lt_dar_can_shared" = "yes"; then
10748 output_verbose_link_cmd=echo
10749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10751 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10752 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_libdir_flag_spec='-L$libdir'
10763 hardcode_shlibpath_var=no
10770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10771 # support. Future versions do this automatically, but an explicit c++rt0.o
10772 # does not break anything, and helps significantly (at the cost of a little
10775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10784 hardcode_direct=yes
10785 hardcode_minus_L=yes
10786 hardcode_shlibpath_var=no
10789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10790 freebsd* | dragonfly*)
10791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10792 hardcode_libdir_flag_spec='-R$libdir'
10793 hardcode_direct=yes
10794 hardcode_shlibpath_var=no
10798 if test "$GCC" = yes; then
10799 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'
10801 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'
10803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10804 hardcode_libdir_separator=:
10805 hardcode_direct=yes
10807 # hardcode_minus_L: Not really in the search PATH,
10808 # but as the default location of the library.
10809 hardcode_minus_L=yes
10810 export_dynamic_flag_spec='${wl}-E'
10814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10819 if test "$with_gnu_ld" = no; then
10820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10821 hardcode_libdir_flag_spec_ld='+b $libdir'
10822 hardcode_libdir_separator=:
10823 hardcode_direct=yes
10824 hardcode_direct_absolute=yes
10825 export_dynamic_flag_spec='${wl}-E'
10826 # hardcode_minus_L: Not really in the search PATH,
10827 # but as the default location of the library.
10828 hardcode_minus_L=yes
10833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10858 if test "$with_gnu_ld" = no; then
10859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10860 hardcode_libdir_separator=:
10865 hardcode_shlibpath_var=no
10868 hardcode_direct=yes
10869 hardcode_direct_absolute=yes
10870 export_dynamic_flag_spec='${wl}-E'
10872 # hardcode_minus_L: Not really in the search PATH,
10873 # but as the default location of the library.
10874 hardcode_minus_L=yes
10880 irix5* | irix6* | nonstopux*)
10881 if test "$GCC" = yes; then
10882 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'
10883 # Try to use the -exported_symbol ld option, if it does not
10884 # work, assume that -exports_file does not work either and
10885 # implicitly export all symbols.
10886 save_LDFLAGS="$LDFLAGS"
10887 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10888 if test x$gcc_no_link = xyes; then
10889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10891 { (exit 1); exit 1; }; }
10893 cat >conftest.$ac_ext <<_ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 (eval $ac_link) 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag"
10906 || test ! -s conftest.err'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest$ac_exeext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 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'
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10925 rm -f conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LDFLAGS="$save_LDFLAGS"
10929 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'
10930 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'
10932 archive_cmds_need_lc='no'
10933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10934 hardcode_libdir_separator=:
10936 link_all_deplibs=yes
10940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10945 hardcode_libdir_flag_spec='-R$libdir'
10946 hardcode_direct=yes
10947 hardcode_shlibpath_var=no
10951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952 hardcode_direct=yes
10953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10954 hardcode_libdir_separator=:
10955 hardcode_shlibpath_var=no
10962 if test -f /usr/libexec/ld.so; then
10963 hardcode_direct=yes
10964 hardcode_shlibpath_var=no
10965 hardcode_direct_absolute=yes
10966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10968 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10970 export_dynamic_flag_spec='${wl}-E'
10973 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_libdir_flag_spec='-R$libdir'
10978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10989 hardcode_libdir_flag_spec='-L$libdir'
10990 hardcode_minus_L=yes
10991 allow_undefined_flag=unsupported
10992 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'
10993 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10997 if test "$GCC" = yes; then
10998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10999 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'
11001 allow_undefined_flag=' -expect_unresolved \*'
11002 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'
11004 archive_cmds_need_lc='no'
11005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11006 hardcode_libdir_separator=:
11009 osf4* | osf5*) # as osf3* with the addition of -msym flag
11010 if test "$GCC" = yes; then
11011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11012 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'
11013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11015 allow_undefined_flag=' -expect_unresolved \*'
11016 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'
11017 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~
11018 $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'
11020 # Both c and cxx compiler support -rpath directly
11021 hardcode_libdir_flag_spec='-rpath $libdir'
11023 archive_cmds_need_lc='no'
11024 hardcode_libdir_separator=:
11028 no_undefined_flag=' -z defs'
11029 if test "$GCC" = yes; then
11031 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11035 case `$CC -V 2>&1` in
11038 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11040 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11044 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11046 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11050 hardcode_libdir_flag_spec='-R$libdir'
11051 hardcode_shlibpath_var=no
11053 solaris2.[0-5] | solaris2.[0-5].*) ;;
11055 # The compiler driver will combine and reorder linker options,
11056 # but understands `-z linker_flag'. GCC discards it without `$wl',
11057 # but is careful enough not to reorder.
11058 # Supported since Solaris 2.6 (maybe 2.5.1?)
11059 if test "$GCC" = yes; then
11060 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11066 link_all_deplibs=yes
11070 if test "x$host_vendor" = xsequent; then
11071 # Use $CC to link under sequent, because it throws in some extra .o
11072 # files that make .init and .fini sections work.
11073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11077 hardcode_libdir_flag_spec='-L$libdir'
11078 hardcode_direct=yes
11079 hardcode_minus_L=yes
11080 hardcode_shlibpath_var=no
11084 case $host_vendor in
11086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11087 hardcode_direct=yes # is this really true???
11090 ## LD is ld it makes a PLAMLIB
11091 ## CC just makes a GrossModule.
11092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11093 reload_cmds='$CC -r -o $output$reload_objs'
11097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11101 runpath_var='LD_RUN_PATH'
11102 hardcode_shlibpath_var=no
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_shlibpath_var=no
11108 export_dynamic_flag_spec='-Bexport'
11112 if test -d /usr/nec; then
11113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11114 hardcode_shlibpath_var=no
11115 runpath_var=LD_RUN_PATH
11116 hardcode_runpath_var=yes
11121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11122 no_undefined_flag='${wl}-z,text'
11123 archive_cmds_need_lc=no
11124 hardcode_shlibpath_var=no
11125 runpath_var='LD_RUN_PATH'
11127 if test "$GCC" = yes; then
11128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 sysv5* | sco3.2v5* | sco5v6*)
11137 # Note: We can NOT use -z defs as we might desire, because we do not
11138 # link with -lc, and that would cause any symbols used from libc to
11139 # always be unresolved, which means just about no library would
11140 # ever link correctly. If we're not using GNU ld we use -z text
11141 # though, which does catch some bad symbols but isn't as heavy-handed
11143 no_undefined_flag='${wl}-z,text'
11144 allow_undefined_flag='${wl}-z,nodefs'
11145 archive_cmds_need_lc=no
11146 hardcode_shlibpath_var=no
11147 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11148 hardcode_libdir_separator=':'
11149 link_all_deplibs=yes
11150 export_dynamic_flag_spec='${wl}-Bexport'
11151 runpath_var='LD_RUN_PATH'
11153 if test "$GCC" = yes; then
11154 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11157 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11164 hardcode_libdir_flag_spec='-L$libdir'
11165 hardcode_shlibpath_var=no
11173 if test x$host_vendor = xsni; then
11175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11176 export_dynamic_flag_spec='${wl}-Blargedynsym'
11182 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11183 echo "${ECHO_T}$ld_shlibs" >&6
11184 test "$ld_shlibs" = no && can_build_shared=no
11186 with_gnu_ld=$with_gnu_ld
11203 # Do we need to explicitly link libc?
11205 case "x$archive_cmds_need_lc" in
11207 # Assume -lc should be added
11208 archive_cmds_need_lc=yes
11210 if test "$enable_shared" = yes && test "$GCC" = yes; then
11211 case $archive_cmds in
11213 # FIXME: we may have to deal with multi-command sequences.
11216 # Test whether the compiler implicitly links with -lc since on some
11217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11218 # to ld, don't add -lc before -lgcc.
11219 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11220 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11225 (eval $ac_compile) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } 2>conftest.err; then
11231 libobjs=conftest.$ac_objext
11233 wl=$lt_prog_compiler_wl
11234 pic_flag=$lt_prog_compiler_pic
11240 lt_save_allow_undefined_flag=$allow_undefined_flag
11241 allow_undefined_flag=
11242 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11243 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }
11248 archive_cmds_need_lc=no
11250 archive_cmds_need_lc=yes
11252 allow_undefined_flag=$lt_save_allow_undefined_flag
11254 cat conftest.err 1>&5
11257 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11258 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11421 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11422 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11424 if test "$GCC" = yes; then
11426 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11427 *) lt_awk_arg="/^libraries:/" ;;
11429 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11430 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11431 # if the path contains ";" then we assume it to be the separator
11432 # otherwise default to the standard path separator (i.e. ":") - it is
11433 # assumed that no part of a normal pathname contains ";" but that should
11434 # okay in the real world where ";" in dirpaths is itself problematic.
11435 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11437 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11439 # Ok, now we have the path, separated by spaces, we can step through it
11440 # and add multilib dir if necessary.
11441 lt_tmp_lt_search_path_spec=
11442 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11443 for lt_sys_path in $lt_search_path_spec; do
11444 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11447 test -d "$lt_sys_path" && \
11448 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11451 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11452 BEGIN {RS=" "; FS="/|\n";} {
11455 for (lt_i = NF; lt_i > 0; lt_i--) {
11456 if ($lt_i != "" && $lt_i != ".") {
11457 if ($lt_i == "..") {
11460 if (lt_count == 0) {
11461 lt_foo="/" $lt_i lt_foo;
11468 if (lt_foo != "") { lt_freq[lt_foo]++; }
11469 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11471 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11473 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11475 library_names_spec=
11476 libname_spec='lib$name'
11480 postuninstall_cmds=
11484 shlibpath_overrides_runpath=unknown
11486 dynamic_linker="$host_os ld.so"
11487 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11488 need_lib_prefix=unknown
11489 hardcode_into_libs=no
11491 # when you set need_version to no, make sure it does not cause -set_version
11492 # flags to be left without arguments
11493 need_version=unknown
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11499 shlibpath_var=LIBPATH
11501 # AIX 3 has no versioning support, so we append a major version to the name.
11502 soname_spec='${libname}${release}${shared_ext}$major'
11509 hardcode_into_libs=yes
11510 if test "$host_cpu" = ia64; then
11511 # AIX 5 supports IA64
11512 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11513 shlibpath_var=LD_LIBRARY_PATH
11515 # With GCC up to 2.95.x, collect2 would create an import file
11516 # for dependence libraries. The import file would start with
11517 # the line `#! .'. This would cause the generated library to
11518 # depend on `.', always an invalid library. This was fixed in
11519 # development snapshots of GCC prior to 3.0.
11521 aix4 | aix4.[01] | aix4.[01].*)
11522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11524 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11527 can_build_shared=no
11531 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11532 # soname into executable. Probably we can add versioning support to
11533 # collect2, so additional links can be useful in future.
11534 if test "$aix_use_runtimelinking" = yes; then
11535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11536 # instead of lib<name>.a to let people know that these are not
11537 # typical AIX shared libraries.
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 # We preserve .a as extension for shared libraries through AIX4.2
11541 # and later when we are not doing run time linking.
11542 library_names_spec='${libname}${release}.a $libname.a'
11543 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LIBPATH
11552 # Since July 2007 AmigaOS4 officially supports .so libraries.
11553 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11557 library_names_spec='$libname.ixlibrary $libname.a'
11558 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11559 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'
11565 library_names_spec='${libname}${shared_ext}'
11566 dynamic_linker="$host_os ld.so"
11567 shlibpath_var=LIBRARY_PATH
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11575 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11578 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11579 # the default ld.so.conf also contains /usr/contrib/lib and
11580 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11581 # libtool to hard-code these into programs
11584 cygwin* | mingw* | pw32* | cegcc*)
11585 version_type=windows
11590 case $GCC,$host_os in
11591 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11592 library_names_spec='$libname.dll.a'
11593 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11594 postinstall_cmds='base_file=`basename \${file}`~
11595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11596 dldir=$destdir/`dirname \$dlpath`~
11597 test -d \$dldir || mkdir -p \$dldir~
11598 $install_prog $dir/$dlname \$dldir/$dlname~
11599 chmod a+x \$dldir/$dlname~
11600 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11601 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11604 dlpath=$dir/\$dldll~
11606 shlibpath_overrides_runpath=yes
11610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11611 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11615 # MinGW DLLs use traditional 'lib' prefix
11616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11617 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11618 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11619 # It is most probably a Windows format PATH printed by
11620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11621 # path with ; separators, and with drive letters. We can handle the
11622 # drive letters (cygwin fileutils understands them), so leave them,
11623 # especially as we might pass files found there to a mingw objdump,
11624 # which wouldn't understand a cygwinified path. Ahh.
11625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11627 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11631 # pw32 DLLs use 'pw' prefix rather than 'lib'
11632 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11641 dynamic_linker='Win32 ld.exe'
11642 # FIXME: first we should search . and the directory the executable is in
11646 darwin* | rhapsody*)
11647 dynamic_linker="$host_os dyld"
11648 version_type=darwin
11651 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11652 soname_spec='${libname}${release}${major}$shared_ext'
11653 shlibpath_overrides_runpath=yes
11654 shlibpath_var=DYLD_LIBRARY_PATH
11655 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11657 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 shlibpath_var=LD_LIBRARY_PATH
11674 freebsd* | dragonfly*)
11675 # DragonFly does not have aout. When/if they implement a new
11676 # versioning mechanism, adjust this.
11677 if test -x /usr/bin/objformat; then
11678 objformat=`/usr/bin/objformat`
11681 freebsd[123]*) objformat=aout ;;
11682 *) objformat=elf ;;
11685 version_type=freebsd-$objformat
11686 case $version_type in
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11697 shlibpath_var=LD_LIBRARY_PATH
11700 shlibpath_overrides_runpath=yes
11702 freebsd3.[01]* | freebsdelf3.[01]*)
11703 shlibpath_overrides_runpath=yes
11704 hardcode_into_libs=yes
11706 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11707 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11708 shlibpath_overrides_runpath=no
11709 hardcode_into_libs=yes
11711 *) # from 4.6 on, and DragonFly
11712 shlibpath_overrides_runpath=yes
11713 hardcode_into_libs=yes
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11723 soname_spec='${libname}${release}${shared_ext}$major'
11724 shlibpath_var=LD_LIBRARY_PATH
11725 hardcode_into_libs=yes
11728 hpux9* | hpux10* | hpux11*)
11729 # Give a soname corresponding to the major version so that dld.sl refuses to
11730 # link against other versions.
11737 hardcode_into_libs=yes
11738 dynamic_linker="$host_os dld.so"
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 if test "X$HPUX_IA64_MODE" = X32; then
11744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11752 hardcode_into_libs=yes
11753 dynamic_linker="$host_os dld.sl"
11754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11757 soname_spec='${libname}${release}${shared_ext}$major'
11758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11763 dynamic_linker="$host_os dld.sl"
11764 shlibpath_var=SHLIB_PATH
11765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767 soname_spec='${libname}${release}${shared_ext}$major'
11770 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11771 postinstall_cmds='chmod 555 $lib'
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11779 soname_spec='${libname}${release}${shared_ext}$major'
11780 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11781 shlibpath_var=LD_LIBRARY_PATH
11782 shlibpath_overrides_runpath=no
11783 hardcode_into_libs=yes
11786 irix5* | irix6* | nonstopux*)
11788 nonstopux*) version_type=nonstopux ;;
11790 if test "$lt_cv_prog_gnu_ld" = yes; then
11798 soname_spec='${libname}${release}${shared_ext}$major'
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11801 irix5* | nonstopux*)
11802 libsuff= shlibsuff=
11805 case $LD in # libtool.m4 will add one of these switches to LD
11806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11807 libsuff= shlibsuff= libmagic=32-bit;;
11808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11809 libsuff=32 shlibsuff=N32 libmagic=N32;;
11810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11812 *) libsuff= shlibsuff= libmagic=never-match;;
11816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11817 shlibpath_overrides_runpath=no
11818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11820 hardcode_into_libs=yes
11823 # No shared lib support for Linux oldld, aout, or coff.
11824 linux*oldld* | linux*aout* | linux*coff*)
11828 # This must be Linux ELF.
11829 linux* | k*bsd*-gnu)
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 shlibpath_overrides_runpath=no
11838 # Some binutils ld are patched to set DT_RUNPATH
11839 save_LDFLAGS=$LDFLAGS
11840 save_libdir=$libdir
11841 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11842 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11843 if test x$gcc_no_link = xyes; then
11844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11846 { (exit 1); exit 1; }; }
11848 cat >conftest.$ac_ext <<_ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>conftest.er1
11867 grep -v '^ *+' conftest.er1 >conftest.err
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_c_werror_flag"
11873 || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11886 shlibpath_overrides_runpath=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11894 rm -f conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LDFLAGS=$save_LDFLAGS
11897 libdir=$save_libdir
11899 # This implies no fast_install, which is unacceptable.
11900 # Some rework will be needed to allow for fast_install
11901 # before this can be enabled.
11902 hardcode_into_libs=yes
11904 # Append ld.so.conf contents to the search path
11905 if test -f /etc/ld.so.conf; then
11906 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11907 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11910 # We used to test for /lib/ld.so.1 and disable shared libraries on
11911 # powerpc, because MkLinux only supported shared libraries with the
11912 # GNU dynamic linker. Since this was broken with cross compilers,
11913 # most powerpc-linux boxes support dynamic linking these days and
11914 # people can always --disable-shared, the test was removed, and we
11915 # assume the GNU/Linux dynamic linker is in use.
11916 dynamic_linker='GNU/Linux ld.so'
11923 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11926 dynamic_linker='NetBSD (a.out) ld.so'
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 dynamic_linker='NetBSD ld.elf_so'
11932 shlibpath_var=LD_LIBRARY_PATH
11933 shlibpath_overrides_runpath=yes
11934 hardcode_into_libs=yes
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11953 dynamic_linker='ldqnx.so'
11958 sys_lib_dlsearch_path_spec="/usr/lib"
11960 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11962 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11963 *) need_version=no ;;
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11967 shlibpath_var=LD_LIBRARY_PATH
11968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11970 openbsd2.[89] | openbsd2.[89].*)
11971 shlibpath_overrides_runpath=no
11974 shlibpath_overrides_runpath=yes
11978 shlibpath_overrides_runpath=yes
11983 libname_spec='$name'
11986 library_names_spec='$libname${shared_ext} $libname.a'
11987 dynamic_linker='OS/2 ld.exe'
11988 shlibpath_var=LIBPATH
11991 osf3* | osf4* | osf5*)
11995 soname_spec='${libname}${release}${shared_ext}$major'
11996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997 shlibpath_var=LD_LIBRARY_PATH
11998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12015 # ldd complains unless libraries are executable
12016 postinstall_cmds='chmod +x $lib'
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12023 shlibpath_var=LD_LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12025 if test "$with_gnu_ld" = yes; then
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 case $host_vendor in
12038 shlibpath_overrides_runpath=no
12040 runpath_var=LD_RUN_PATH
12048 shlibpath_overrides_runpath=no
12049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12055 if test -d /usr/nec ;then
12057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12058 soname_spec='$libname${shared_ext}.$major'
12059 shlibpath_var=LD_LIBRARY_PATH
12063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12064 version_type=freebsd-elf
12067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 shlibpath_overrides_runpath=yes
12071 hardcode_into_libs=yes
12072 if test "$with_gnu_ld" = yes; then
12073 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12082 sys_lib_dlsearch_path_spec='/usr/lib'
12086 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091 shlibpath_var=LD_LIBRARY_PATH
12092 shlibpath_overrides_runpath=no
12093 hardcode_into_libs=yes
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 shlibpath_var=LD_LIBRARY_PATH
12107 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12108 echo "${ECHO_T}$dynamic_linker" >&6
12109 test "$dynamic_linker" = no && can_build_shared=no
12111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12112 if test "$GCC" = yes; then
12113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12209 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12210 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12212 if test -n "$hardcode_libdir_flag_spec" ||
12213 test -n "$runpath_var" ||
12214 test "X$hardcode_automatic" = "Xyes" ; then
12216 # We can hardcode non-existent directories.
12217 if test "$hardcode_direct" != no &&
12218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12219 # have to relink, otherwise we might link with an installed library
12220 # when we should be linking with a yet-to-be-installed one
12221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12222 test "$hardcode_minus_L" != no; then
12223 # Linking always hardcodes the temporary library directory.
12224 hardcode_action=relink
12226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12227 hardcode_action=immediate
12230 # We cannot hardcode anything, or else we can only hardcode existing
12232 hardcode_action=unsupported
12234 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12235 echo "${ECHO_T}$hardcode_action" >&6
12237 if test "$hardcode_action" = relink ||
12238 test "$inherit_rpath" = yes; then
12239 # Fast installation is not supported
12240 enable_fast_install=no
12241 elif test "$shlibpath_overrides_runpath" = yes ||
12242 test "$enable_shared" = no; then
12243 # Fast installation is not necessary
12244 enable_fast_install=needless
12252 if test "x$enable_dlopen" != xyes; then
12253 enable_dlopen=unknown
12254 enable_dlopen_self=unknown
12255 enable_dlopen_self_static=unknown
12262 lt_cv_dlopen="load_add_on"
12264 lt_cv_dlopen_self=yes
12267 mingw* | pw32* | cegcc*)
12268 lt_cv_dlopen="LoadLibrary"
12273 lt_cv_dlopen="dlopen"
12278 # if libdl is installed we need to link against it
12279 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12280 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12284 ac_check_lib_save_LIBS=$LIBS
12286 if test x$gcc_no_link = xyes; then
12287 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12289 { (exit 1); exit 1; }; }
12291 cat >conftest.$ac_ext <<_ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12298 /* Override any gcc2 internal prototype to avoid an error. */
12302 /* We use char because int might match the return type of a gcc2
12303 builtin and then its argument prototype would still apply. */
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_lib_dl_dlopen=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 ac_cv_lib_dl_dlopen=no
12342 rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344 LIBS=$ac_check_lib_save_LIBS
12346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12348 if test $ac_cv_lib_dl_dlopen = yes; then
12349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12352 lt_cv_dlopen="dyld"
12354 lt_cv_dlopen_self=yes
12361 echo "$as_me:$LINENO: checking for shl_load" >&5
12362 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12363 if test "${ac_cv_func_shl_load+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 if test x$gcc_no_link = xyes; then
12367 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12368 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12369 { (exit 1); exit 1; }; }
12371 cat >conftest.$ac_ext <<_ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12379 #define shl_load innocuous_shl_load
12381 /* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char shl_load (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12387 # include <limits.h>
12389 # include <assert.h>
12394 /* Override any gcc2 internal prototype to avoid an error. */
12399 /* We use char because int might match the return type of a gcc2
12400 builtin and then its argument prototype would still apply. */
12402 /* The GNU C library defines this for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12408 char (*f) () = shl_load;
12417 return f != shl_load;
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12424 (eval $ac_link) 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_func_shl_load=yes
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_cv_func_shl_load=no
12451 rm -f conftest.err conftest.$ac_objext \
12452 conftest$ac_exeext conftest.$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12455 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12456 if test $ac_cv_func_shl_load = yes; then
12457 lt_cv_dlopen="shl_load"
12459 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12460 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12461 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 ac_check_lib_save_LIBS=$LIBS
12466 if test x$gcc_no_link = xyes; then
12467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12469 { (exit 1); exit 1; }; }
12471 cat >conftest.$ac_ext <<_ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 /* Override any gcc2 internal prototype to avoid an error. */
12482 /* We use char because int might match the return type of a gcc2
12483 builtin and then its argument prototype would still apply. */
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_c_werror_flag"
12503 || test ! -s conftest.err'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; } &&
12509 { ac_try='test -s conftest$ac_exeext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_lib_dld_shl_load=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_cv_lib_dld_shl_load=no
12522 rm -f conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext conftest.$ac_ext
12524 LIBS=$ac_check_lib_save_LIBS
12526 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12527 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12528 if test $ac_cv_lib_dld_shl_load = yes; then
12529 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12531 echo "$as_me:$LINENO: checking for dlopen" >&5
12532 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12533 if test "${ac_cv_func_dlopen+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12536 if test x$gcc_no_link = xyes; then
12537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12539 { (exit 1); exit 1; }; }
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12547 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12549 #define dlopen innocuous_dlopen
12551 /* System header to define __stub macros and hopefully few prototypes,
12552 which can conflict with char dlopen (); below.
12553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554 <limits.h> exists even on freestanding compilers. */
12557 # include <limits.h>
12559 # include <assert.h>
12564 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */
12572 /* The GNU C library defines this for functions which it implements
12573 to always fail with ENOSYS. Some functions are actually named
12574 something starting with __ and the normal name is an alias. */
12575 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12578 char (*f) () = dlopen;
12587 return f != dlopen;
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_func_dlopen=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_cv_func_dlopen=no
12621 rm -f conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12624 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12625 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12626 if test $ac_cv_func_dlopen = yes; then
12627 lt_cv_dlopen="dlopen"
12629 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 ac_check_lib_save_LIBS=$LIBS
12636 if test x$gcc_no_link = xyes; then
12637 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12639 { (exit 1); exit 1; }; }
12641 cat >conftest.$ac_ext <<_ACEOF
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 /* Override any gcc2 internal prototype to avoid an error. */
12652 /* We use char because int might match the return type of a gcc2
12653 builtin and then its argument prototype would still apply. */
12663 rm -f conftest.$ac_objext conftest$ac_exeext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12665 (eval $ac_link) 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag"
12673 || test ! -s conftest.err'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_dl_dlopen=yes
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12690 ac_cv_lib_dl_dlopen=no
12692 rm -f conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 LIBS=$ac_check_lib_save_LIBS
12696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12698 if test $ac_cv_lib_dl_dlopen = yes; then
12699 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12701 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12702 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12703 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12704 echo $ECHO_N "(cached) $ECHO_C" >&6
12706 ac_check_lib_save_LIBS=$LIBS
12707 LIBS="-lsvld $LIBS"
12708 if test x$gcc_no_link = xyes; then
12709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12711 { (exit 1); exit 1; }; }
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12720 /* Override any gcc2 internal prototype to avoid an error. */
12724 /* We use char because int might match the return type of a gcc2
12725 builtin and then its argument prototype would still apply. */
12735 rm -f conftest.$ac_objext conftest$ac_exeext
12736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12737 (eval $ac_link) 2>conftest.er1
12739 grep -v '^ *+' conftest.er1 >conftest.err
12741 cat conftest.err >&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -z "$ac_c_werror_flag"
12745 || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_cv_lib_svld_dlopen=yes
12759 echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12762 ac_cv_lib_svld_dlopen=no
12764 rm -f conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12766 LIBS=$ac_check_lib_save_LIBS
12768 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12769 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12770 if test $ac_cv_lib_svld_dlopen = yes; then
12771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12773 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12774 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12775 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 ac_check_lib_save_LIBS=$LIBS
12780 if test x$gcc_no_link = xyes; then
12781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12783 { (exit 1); exit 1; }; }
12785 cat >conftest.$ac_ext <<_ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12792 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809 (eval $ac_link) 2>conftest.er1
12811 grep -v '^ *+' conftest.er1 >conftest.err
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag"
12817 || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest$ac_exeext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_lib_dld_dld_link=yes
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 ac_cv_lib_dld_dld_link=no
12836 rm -f conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext conftest.$ac_ext
12838 LIBS=$ac_check_lib_save_LIBS
12840 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12841 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12842 if test $ac_cv_lib_dld_dld_link = yes; then
12843 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12864 if test "x$lt_cv_dlopen" != xno; then
12870 case $lt_cv_dlopen in
12872 save_CPPFLAGS="$CPPFLAGS"
12873 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12875 save_LDFLAGS="$LDFLAGS"
12876 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12879 LIBS="$lt_cv_dlopen_libs $LIBS"
12881 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12882 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12883 if test "${lt_cv_dlopen_self+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 if test "$cross_compiling" = yes; then :
12887 lt_cv_dlopen_self=cross
12889 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12890 lt_status=$lt_dlunknown
12891 cat > conftest.$ac_ext <<_LT_EOF
12892 #line 12892 "configure"
12893 #include "confdefs.h"
12902 # define LT_DLGLOBAL RTLD_GLOBAL
12905 # define LT_DLGLOBAL DL_GLOBAL
12907 # define LT_DLGLOBAL 0
12911 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12912 find out it does not work in some platform. */
12913 #ifndef LT_DLLAZY_OR_NOW
12915 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12918 # define LT_DLLAZY_OR_NOW DL_LAZY
12921 # define LT_DLLAZY_OR_NOW RTLD_NOW
12924 # define LT_DLLAZY_OR_NOW DL_NOW
12926 # define LT_DLLAZY_OR_NOW 0
12933 void fnord() { int i=42;}
12936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12937 int status = $lt_dlunknown;
12941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12943 /* dlclose (self); */
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952 (eval $ac_link) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12956 (./conftest; exit; ) >&5 2>/dev/null
12958 case x$lt_status in
12959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12964 # compilation failed
12965 lt_cv_dlopen_self=no
12972 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12973 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12975 if test "x$lt_cv_dlopen_self" = xyes; then
12976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12977 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12978 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12979 if test "${lt_cv_dlopen_self_static+set}" = set; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 if test "$cross_compiling" = yes; then :
12983 lt_cv_dlopen_self_static=cross
12985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12986 lt_status=$lt_dlunknown
12987 cat > conftest.$ac_ext <<_LT_EOF
12988 #line 12988 "configure"
12989 #include "confdefs.h"
12998 # define LT_DLGLOBAL RTLD_GLOBAL
13001 # define LT_DLGLOBAL DL_GLOBAL
13003 # define LT_DLGLOBAL 0
13007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13008 find out it does not work in some platform. */
13009 #ifndef LT_DLLAZY_OR_NOW
13011 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13014 # define LT_DLLAZY_OR_NOW DL_LAZY
13017 # define LT_DLLAZY_OR_NOW RTLD_NOW
13020 # define LT_DLLAZY_OR_NOW DL_NOW
13022 # define LT_DLLAZY_OR_NOW 0
13029 void fnord() { int i=42;}
13032 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13033 int status = $lt_dlunknown;
13037 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13038 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13039 /* dlclose (self); */
13047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048 (eval $ac_link) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13052 (./conftest; exit; ) >&5 2>/dev/null
13054 case x$lt_status in
13055 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13060 # compilation failed
13061 lt_cv_dlopen_self_static=no
13068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13069 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13072 CPPFLAGS="$save_CPPFLAGS"
13073 LDFLAGS="$save_LDFLAGS"
13078 case $lt_cv_dlopen_self in
13079 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080 *) enable_dlopen_self=unknown ;;
13083 case $lt_cv_dlopen_self_static in
13084 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085 *) enable_dlopen_self_static=unknown ;;
13107 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13108 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112 echo "$as_me:$LINENO: result: yes" >&5
13113 echo "${ECHO_T}yes" >&6
13115 # FIXME - insert some real tests, host_os isn't really good enough
13118 if test -n "$STRIP" ; then
13119 striplib="$STRIP -x"
13120 old_striplib="$STRIP -S"
13121 echo "$as_me:$LINENO: result: yes" >&5
13122 echo "${ECHO_T}yes" >&6
13124 echo "$as_me:$LINENO: result: no" >&5
13125 echo "${ECHO_T}no" >&6
13129 echo "$as_me:$LINENO: result: no" >&5
13130 echo "${ECHO_T}no" >&6
13146 # Report which library types will actually be built
13147 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13148 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13149 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13150 echo "${ECHO_T}$can_build_shared" >&6
13152 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13153 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13154 test "$can_build_shared" = "no" && enable_shared=no
13156 # On AIX, shared libraries and static libraries use the same namespace, and
13157 # are all built from PIC.
13160 test "$enable_shared" = yes && enable_static=no
13161 if test -n "$RANLIB"; then
13162 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163 postinstall_cmds='$RANLIB $lib'
13168 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169 test "$enable_shared" = yes && enable_static=no
13173 echo "$as_me:$LINENO: result: $enable_shared" >&5
13174 echo "${ECHO_T}$enable_shared" >&6
13176 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13177 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13178 # Make sure either enable_shared or enable_static is yes.
13179 test "$enable_shared" = yes || enable_static=yes
13180 echo "$as_me:$LINENO: result: $enable_static" >&5
13181 echo "${ECHO_T}$enable_static" >&6
13188 ac_cpp='$CPP $CPPFLAGS'
13189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13197 ac_cpp='$CXXCPP $CPPFLAGS'
13198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13202 archive_cmds_need_lc_CXX=no
13203 allow_undefined_flag_CXX=
13204 always_export_symbols_CXX=no
13205 archive_expsym_cmds_CXX=
13206 compiler_needs_object_CXX=no
13207 export_dynamic_flag_spec_CXX=
13208 hardcode_direct_CXX=no
13209 hardcode_direct_absolute_CXX=no
13210 hardcode_libdir_flag_spec_CXX=
13211 hardcode_libdir_flag_spec_ld_CXX=
13212 hardcode_libdir_separator_CXX=
13213 hardcode_minus_L_CXX=no
13214 hardcode_shlibpath_var_CXX=unsupported
13215 hardcode_automatic_CXX=no
13216 inherit_rpath_CXX=no
13218 module_expsym_cmds_CXX=
13219 link_all_deplibs_CXX=unknown
13220 old_archive_cmds_CXX=$old_archive_cmds
13221 no_undefined_flag_CXX=
13222 whole_archive_flag_spec_CXX=
13223 enable_shared_with_static_runtimes_CXX=no
13225 # Source file extension for C++ test sources.
13228 # Object file extension for compiled C++ test sources.
13232 # No sense in running all these tests if we already determined that
13233 # the CXX compiler isn't working. Some variables (like enable_shared)
13234 # are currently assumed to apply to all compilers on this platform,
13235 # and will be corrupted by setting them based on a non-working compiler.
13236 if test "$_lt_caught_CXX_error" != yes; then
13237 # Code to be used in simple compile tests
13238 lt_simple_compile_test_code="int some_variable = 0;"
13240 # Code to be used in simple link tests
13241 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13243 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13250 # If no C compiler was specified, use CC.
13253 # If no C compiler flags were specified, use CFLAGS.
13254 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13256 # Allow CC to be a program name with arguments.
13260 # save warnings/boilerplate of simple test code
13261 ac_outfile=conftest.$ac_objext
13262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13264 _lt_compiler_boilerplate=`cat conftest.err`
13267 ac_outfile=conftest.$ac_objext
13268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13270 _lt_linker_boilerplate=`cat conftest.err`
13274 # Allow CC to be a program name with arguments.
13279 lt_save_with_gnu_ld=$with_gnu_ld
13280 lt_save_path_LD=$lt_cv_path_LD
13281 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13282 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13284 $as_unset lt_cv_prog_gnu_ld
13286 if test -n "${lt_cv_path_LDCXX+set}"; then
13287 lt_cv_path_LD=$lt_cv_path_LDCXX
13289 $as_unset lt_cv_path_LD
13291 test -z "${LDCXX+set}" || LD=$LDCXX
13295 for cc_temp in $compiler""; do
13297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13303 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13306 if test -n "$compiler"; then
13307 # We don't want -fno-exception when compiling C++ code, so set the
13308 # no_builtin_flag separately
13309 if test "$GXX" = yes; then
13310 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13312 lt_prog_compiler_no_builtin_flag_CXX=
13315 if test "$GXX" = yes; then
13316 # Set up default GNU C++ configuration
13320 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13321 if test "${with_gnu_ld+set}" = set; then
13322 withval="$with_gnu_ld"
13323 test "$withval" = no || with_gnu_ld=yes
13328 if test "$GCC" = yes; then
13329 # Check if gcc -print-prog-name=ld gives a path.
13330 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13331 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13334 # gcc leaves a trailing carriage return which upsets mingw
13335 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13337 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13340 # Accept absolute paths.
13342 re_direlt='/[^/][^/]*/\.\./'
13343 # Canonicalize the pathname of ld
13344 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13345 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13346 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13348 test -z "$LD" && LD="$ac_prog"
13351 # If it fails, then pretend we aren't using GCC.
13355 # If it is relative, then search for the first ld in PATH.
13356 with_gnu_ld=unknown
13359 elif test "$with_gnu_ld" = yes; then
13360 echo "$as_me:$LINENO: checking for GNU ld" >&5
13361 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13363 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13364 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13366 if test "${lt_cv_path_LD+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 if test -z "$LD"; then
13370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13371 for ac_dir in $PATH; do
13373 test -z "$ac_dir" && ac_dir=.
13374 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13375 lt_cv_path_LD="$ac_dir/$ac_prog"
13376 # Check to see if the program is GNU ld. I'd rather use --version,
13377 # but apparently some variants of GNU ld only accept -v.
13378 # Break only if it was the GNU/non-GNU ld that we prefer.
13379 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13380 *GNU* | *'with BFD'*)
13381 test "$with_gnu_ld" != no && break
13384 test "$with_gnu_ld" != yes && break
13391 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13395 LD="$lt_cv_path_LD"
13396 if test -n "$LD"; then
13397 echo "$as_me:$LINENO: result: $LD" >&5
13398 echo "${ECHO_T}$LD" >&6
13400 echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6
13403 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13404 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13405 { (exit 1); exit 1; }; }
13406 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13407 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13408 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13412 case `$LD -v 2>&1 </dev/null` in
13413 *GNU* | *'with BFD'*)
13414 lt_cv_prog_gnu_ld=yes
13417 lt_cv_prog_gnu_ld=no
13421 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13422 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13423 with_gnu_ld=$lt_cv_prog_gnu_ld
13431 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13432 # archiving commands below assume that GNU ld is being used.
13433 if test "$with_gnu_ld" = yes; then
13434 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13435 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'
13437 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13440 # If archive_cmds runs LD, not CC, wlarc should be empty
13441 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13442 # investigate it a little bit more. (MM)
13445 # ancient GNU ld didn't support --whole-archive et. al.
13446 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13447 $GREP 'no-whole-archive' > /dev/null; then
13448 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13450 whole_archive_flag_spec_CXX=
13456 # A generic and very simple default shared library creation
13457 # command for GNU C++ for the case where it uses the native
13458 # linker, instead of GNU ld. If possible, this setting should
13459 # overridden to take advantage of the native linker features on
13460 # the platform it is being used on.
13461 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13464 # Commands to make compiler produce verbose output that lists
13465 # what "hidden" libraries, object files and flags are used when
13466 # linking a shared library.
13467 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13475 # PORTME: fill in a description of your system's C++ link characteristics
13476 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13481 # FIXME: insert proper C++ library support
13485 if test "$host_cpu" = ia64; then
13486 # On IA64, the linker does run time linking by default, so we don't
13487 # have to do anything special.
13488 aix_use_runtimelinking=no
13489 exp_sym_flag='-Bexport'
13492 aix_use_runtimelinking=no
13494 # Test if we are trying to use run time linking or normal
13495 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13496 # need to do runtime linking.
13497 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13498 for ld_flag in $LDFLAGS; do
13501 aix_use_runtimelinking=yes
13509 exp_sym_flag='-bexport'
13510 no_entry_flag='-bnoentry'
13513 # When large executables or shared objects are built, AIX ld can
13514 # have problems creating the table of contents. If linking a library
13515 # or program results in "error TOC overflow" add -mminimal-toc to
13516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13519 archive_cmds_CXX=''
13520 hardcode_direct_CXX=yes
13521 hardcode_direct_absolute_CXX=yes
13522 hardcode_libdir_separator_CXX=':'
13523 link_all_deplibs_CXX=yes
13524 file_list_spec_CXX='${wl}-f,'
13526 if test "$GXX" = yes; then
13527 case $host_os in aix4.[012]|aix4.[012].*)
13528 # We only want to do this on AIX 4.2 and lower, the check
13529 # below for broken collect2 doesn't work under 4.3+
13530 collect2name=`${CC} -print-prog-name=collect2`
13531 if test -f "$collect2name" &&
13532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13534 # We have reworked collect2
13537 # We have old collect2
13538 hardcode_direct_CXX=unsupported
13539 # It fails to find uninstalled libraries when the uninstalled
13540 # path is not listed in the libpath. Setting hardcode_minus_L
13541 # to unsupported forces relinking
13542 hardcode_minus_L_CXX=yes
13543 hardcode_libdir_flag_spec_CXX='-L$libdir'
13544 hardcode_libdir_separator_CXX=
13547 shared_flag='-shared'
13548 if test "$aix_use_runtimelinking" = yes; then
13549 shared_flag="$shared_flag "'${wl}-G'
13553 if test "$host_cpu" = ia64; then
13554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13555 # chokes on -Wl,-G. The following line is correct:
13558 if test "$aix_use_runtimelinking" = yes; then
13559 shared_flag='${wl}-G'
13561 shared_flag='${wl}-bM:SRE'
13566 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13567 # It seems that -bexpall does not export symbols beginning with
13568 # underscore (_), so it is better to generate a list of symbols to
13570 always_export_symbols_CXX=yes
13571 if test "$aix_use_runtimelinking" = yes; then
13572 # Warning - without using the other runtime loading flags (-brtl),
13573 # -berok will link without error, but may produce a broken library.
13574 allow_undefined_flag_CXX='-berok'
13575 # Determine the default libpath from the value encoded in an empty
13577 if test x$gcc_no_link = xyes; then
13578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13580 { (exit 1); exit 1; }; }
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13597 rm -f conftest.$ac_objext conftest$ac_exeext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13599 (eval $ac_link) 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_cxx_werror_flag"
13607 || test ! -s conftest.err'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13620 lt_aix_libpath_sed='
13621 /Import File Strings/,/^$/ {
13627 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13628 # Check for a 64-bit object if we didn't find anything.
13629 if test -z "$aix_libpath"; then
13630 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13637 rm -f conftest.err conftest.$ac_objext \
13638 conftest$ac_exeext conftest.$ac_ext
13639 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13643 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"
13645 if test "$host_cpu" = ia64; then
13646 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13647 allow_undefined_flag_CXX="-z nodefs"
13648 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"
13650 # Determine the default libpath from the value encoded in an
13651 # empty executable.
13652 if test x$gcc_no_link = xyes; then
13653 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13654 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13655 { (exit 1); exit 1; }; }
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13672 rm -f conftest.$ac_objext conftest$ac_exeext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13674 (eval $ac_link) 2>conftest.er1
13676 grep -v '^ *+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -z "$ac_cxx_werror_flag"
13682 || test ! -s conftest.err'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; } &&
13688 { ac_try='test -s conftest$ac_exeext'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13695 lt_aix_libpath_sed='
13696 /Import File Strings/,/^$/ {
13702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13703 # Check for a 64-bit object if we didn't find anything.
13704 if test -z "$aix_libpath"; then
13705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13712 rm -f conftest.err conftest.$ac_objext \
13713 conftest$ac_exeext conftest.$ac_ext
13714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13716 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13717 # Warning - without using the other run time loading flags,
13718 # -berok will link without error, but may produce a broken library.
13719 no_undefined_flag_CXX=' ${wl}-bernotok'
13720 allow_undefined_flag_CXX=' ${wl}-berok'
13721 # Exported symbols can be pulled into shared objects from archives
13722 whole_archive_flag_spec_CXX='$convenience'
13723 archive_cmds_need_lc_CXX=yes
13724 # This is similar to how AIX traditionally builds its shared
13726 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'
13732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13733 allow_undefined_flag_CXX=unsupported
13734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13735 # support --undefined. This deserves some investigation. FIXME
13736 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13743 case $cc_basename in
13745 # FIXME: insert proper C++ library support
13751 cygwin* | mingw* | pw32* | cegcc*)
13752 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13753 # as there is no search path for DLLs.
13754 hardcode_libdir_flag_spec_CXX='-L$libdir'
13755 allow_undefined_flag_CXX=unsupported
13756 always_export_symbols_CXX=no
13757 enable_shared_with_static_runtimes_CXX=yes
13759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13760 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'
13761 # If the export-symbols file already is a .def file (1st line
13762 # is EXPORTS), use it as is; otherwise, prepend...
13763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13764 cp $export_symbols $output_objdir/$soname.def;
13766 echo EXPORTS > $output_objdir/$soname.def;
13767 cat $export_symbols >> $output_objdir/$soname.def;
13769 $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'
13774 darwin* | rhapsody*)
13777 archive_cmds_need_lc_CXX=no
13778 hardcode_direct_CXX=no
13779 hardcode_automatic_CXX=yes
13780 hardcode_shlibpath_var_CXX=unsupported
13781 whole_archive_flag_spec_CXX=''
13782 link_all_deplibs_CXX=yes
13783 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13784 case $cc_basename in
13785 ifort*) _lt_dar_can_shared=yes ;;
13786 *) _lt_dar_can_shared=$GCC ;;
13788 if test "$_lt_dar_can_shared" = "yes"; then
13789 output_verbose_link_cmd=echo
13790 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13791 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13792 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13793 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13794 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13795 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13796 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13806 case $cc_basename in
13808 # FIXME: insert proper C++ library support
13812 # Green Hills C++ Compiler
13813 # FIXME: insert proper C++ library support
13817 # FIXME: insert proper C++ library support
13824 # C++ shared libraries reported to be fairly broken before
13830 archive_cmds_need_lc_CXX=no
13833 freebsd* | dragonfly*)
13834 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13844 hardcode_libdir_separator_CXX=:
13845 export_dynamic_flag_spec_CXX='${wl}-E'
13846 hardcode_direct_CXX=yes
13847 hardcode_minus_L_CXX=yes # Not in the search PATH,
13848 # but as the default
13849 # location of the library.
13851 case $cc_basename in
13853 # FIXME: insert proper C++ library support
13857 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'
13858 # Commands to make compiler produce verbose output that lists
13859 # what "hidden" libraries, object files and flags are used when
13860 # linking a shared library.
13862 # There doesn't appear to be a way to prevent this compiler from
13863 # explicitly linking system object files so we need to strip them
13864 # from the output so that they don't get included in the library
13866 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'
13869 if test "$GXX" = yes; then
13870 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'
13872 # FIXME: insert proper C++ library support
13880 if test $with_gnu_ld = no; then
13881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13882 hardcode_libdir_separator_CXX=:
13888 export_dynamic_flag_spec_CXX='${wl}-E'
13894 hardcode_direct_CXX=no
13895 hardcode_shlibpath_var_CXX=no
13898 hardcode_direct_CXX=yes
13899 hardcode_direct_absolute_CXX=yes
13900 hardcode_minus_L_CXX=yes # Not in the search PATH,
13901 # but as the default
13902 # location of the library.
13906 case $cc_basename in
13908 # FIXME: insert proper C++ library support
13914 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13923 # Commands to make compiler produce verbose output that lists
13924 # what "hidden" libraries, object files and flags are used when
13925 # linking a shared library.
13927 # There doesn't appear to be a way to prevent this compiler from
13928 # explicitly linking system object files so we need to strip them
13929 # from the output so that they don't get included in the library
13931 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'
13934 if test "$GXX" = yes; then
13935 if test $with_gnu_ld = no; then
13938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13941 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944 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'
13949 # FIXME: insert proper C++ library support
13957 hardcode_direct_CXX=no
13958 hardcode_shlibpath_var_CXX=no
13959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13960 export_dynamic_flag_spec_CXX='${wl}-E'
13961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13962 # Instead, shared libraries are loaded at an image base (0x10000000 by
13963 # default) and relocated if they conflict, which is a slow very memory
13964 # consuming and fragmenting process. To avoid this, we pick a random,
13965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13966 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13967 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'
13968 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'
13971 case $cc_basename in
13974 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'
13976 # Archives containing C++ object files must be created using
13977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13978 # necessary to make sure instantiated templates are included
13980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13983 if test "$GXX" = yes; then
13984 if test "$with_gnu_ld" = no; then
13985 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'
13987 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'
13990 link_all_deplibs_CXX=yes
13993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13994 hardcode_libdir_separator_CXX=:
13995 inherit_rpath_CXX=yes
13998 linux* | k*bsd*-gnu)
13999 case $cc_basename in
14001 # Kuck and Associates, Inc. (KAI) C++ Compiler
14003 # KCC will only create a shared library if the output file
14004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14005 # to its proper name (with version) after linking.
14006 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'
14007 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'
14008 # Commands to make compiler produce verbose output that lists
14009 # what "hidden" libraries, object files and flags are used when
14010 # linking a shared library.
14012 # There doesn't appear to be a way to prevent this compiler from
14013 # explicitly linking system object files so we need to strip them
14014 # from the output so that they don't get included in the library
14016 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'
14018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14021 # Archives containing C++ object files must be created using
14022 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14028 # version 8.0 and above of icpc choke on multiply defined symbols
14029 # if we add $predep_objects and $postdep_objects, however 7.1 and
14030 # earlier do not add the objects themselves.
14031 case `$CC -V 2>&1` in
14033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14034 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'
14036 *) # Version 8.0 or newer
14039 ia64*) tmp_idyn=' -i_dynamic';;
14041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14042 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'
14045 archive_cmds_need_lc_CXX=no
14046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14051 # Portland Group C++ compiler
14053 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14054 prelink_cmds_CXX='tpldir=Template.dir~
14056 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14057 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14058 old_archive_cmds_CXX='tpldir=Template.dir~
14060 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14061 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14063 archive_cmds_CXX='tpldir=Template.dir~
14065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14066 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14067 archive_expsym_cmds_CXX='tpldir=Template.dir~
14069 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14070 $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'
14072 *) # Version 6 will use weak symbols
14073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14074 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'
14078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14080 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'
14084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085 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'
14087 runpath_var=LD_RUN_PATH
14088 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14089 hardcode_libdir_separator_CXX=:
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14095 # There doesn't appear to be a way to prevent this compiler from
14096 # explicitly linking system object files so we need to strip them
14097 # from the output so that they don't get included in the library
14099 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'
14102 # IBM XL 8.0 on PPC, with GNU ld
14103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14105 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 if test "x$supports_anon_versioning" = xyes; then
14107 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14109 echo "local: *; };" >> $output_objdir/$libname.ver~
14110 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14114 case `$CC -V 2>&1 | sed 5q` in
14117 no_undefined_flag_CXX=' -zdefs'
14118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14119 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'
14120 hardcode_libdir_flag_spec_CXX='-R$libdir'
14121 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'
14122 compiler_needs_object_CXX=yes
14124 # Not sure whether something based on
14125 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14127 output_verbose_link_cmd='echo'
14129 # Archives containing C++ object files must be created using
14130 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14131 # necessary to make sure instantiated templates are included
14133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14141 # FIXME: insert proper C++ library support
14146 # FIXME: insert proper C++ library support
14151 case $cc_basename in
14153 # FIXME: insert proper C++ library support
14157 # FIXME: insert proper C++ library support
14164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14165 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14167 hardcode_libdir_flag_spec_CXX='-R$libdir'
14168 hardcode_direct_CXX=yes
14169 hardcode_shlibpath_var_CXX=no
14171 # Workaround some broken pre-1.5 toolchains
14172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14180 # C++ shared libraries are fairly broken
14185 if test -f /usr/libexec/ld.so; then
14186 hardcode_direct_CXX=yes
14187 hardcode_shlibpath_var_CXX=no
14188 hardcode_direct_absolute_CXX=yes
14189 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14192 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14193 export_dynamic_flag_spec_CXX='${wl}-E'
14194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14196 output_verbose_link_cmd=echo
14202 osf3* | osf4* | osf5*)
14203 case $cc_basename in
14205 # Kuck and Associates, Inc. (KAI) C++ Compiler
14207 # KCC will only create a shared library if the output file
14208 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14209 # to its proper name (with version) after linking.
14210 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'
14212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14213 hardcode_libdir_separator_CXX=:
14215 # Archives containing C++ object files must be created using
14216 # the KAI C++ compiler.
14218 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14219 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14223 # Rational C++ 2.4.1
14224 # FIXME: insert proper C++ library support
14230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14231 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'
14232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14235 allow_undefined_flag_CXX=' -expect_unresolved \*'
14236 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'
14237 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14238 echo "-hidden">> $lib.exp~
14239 $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~
14241 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14245 hardcode_libdir_separator_CXX=:
14247 # Commands to make compiler produce verbose output that lists
14248 # what "hidden" libraries, object files and flags are used when
14249 # linking a shared library.
14251 # There doesn't appear to be a way to prevent this compiler from
14252 # explicitly linking system object files so we need to strip them
14253 # from the output so that they don't get included in the library
14255 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'
14258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14262 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'
14265 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'
14269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14270 hardcode_libdir_separator_CXX=:
14272 # Commands to make compiler produce verbose output that lists
14273 # what "hidden" libraries, object files and flags are used when
14274 # linking a shared library.
14275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14278 # FIXME: insert proper C++ library support
14286 # FIXME: insert proper C++ library support
14291 case $cc_basename in
14294 # FIXME: insert proper C++ library support
14299 # FIXME: insert proper C++ library support
14303 # FIXME: insert proper C++ library support
14310 case $cc_basename in
14312 # Sun C++ 4.2, 5.x and Centerline C++
14313 archive_cmds_need_lc_CXX=yes
14314 no_undefined_flag_CXX=' -zdefs'
14315 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14317 $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'
14319 hardcode_libdir_flag_spec_CXX='-R$libdir'
14320 hardcode_shlibpath_var_CXX=no
14322 solaris2.[0-5] | solaris2.[0-5].*) ;;
14324 # The compiler driver will combine and reorder linker options,
14325 # but understands `-z linker_flag'.
14326 # Supported since Solaris 2.6 (maybe 2.5.1?)
14327 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14330 link_all_deplibs_CXX=yes
14332 output_verbose_link_cmd='echo'
14334 # Archives containing C++ object files must be created using
14335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14336 # necessary to make sure instantiated templates are included
14338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14341 # Green Hills C++ Compiler
14342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14344 # The C++ compiler must be used to create the archive.
14345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14348 # GNU C++ compiler with Solaris linker
14349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14351 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14352 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14353 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14354 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14356 # Commands to make compiler produce verbose output that lists
14357 # what "hidden" libraries, object files and flags are used when
14358 # linking a shared library.
14359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14361 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14364 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14367 # Commands to make compiler produce verbose output that lists
14368 # what "hidden" libraries, object files and flags are used when
14369 # linking a shared library.
14370 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14375 solaris2.[0-5] | solaris2.[0-5].*) ;;
14377 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14386 no_undefined_flag_CXX='${wl}-z,text'
14387 archive_cmds_need_lc_CXX=no
14388 hardcode_shlibpath_var_CXX=no
14389 runpath_var='LD_RUN_PATH'
14391 case $cc_basename in
14393 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14394 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14397 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14398 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 sysv5* | sco3.2v5* | sco5v6*)
14404 # Note: We can NOT use -z defs as we might desire, because we do not
14405 # link with -lc, and that would cause any symbols used from libc to
14406 # always be unresolved, which means just about no library would
14407 # ever link correctly. If we're not using GNU ld we use -z text
14408 # though, which does catch some bad symbols but isn't as heavy-handed
14410 no_undefined_flag_CXX='${wl}-z,text'
14411 allow_undefined_flag_CXX='${wl}-z,nodefs'
14412 archive_cmds_need_lc_CXX=no
14413 hardcode_shlibpath_var_CXX=no
14414 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14415 hardcode_libdir_separator_CXX=':'
14416 link_all_deplibs_CXX=yes
14417 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14418 runpath_var='LD_RUN_PATH'
14420 case $cc_basename in
14422 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14426 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14433 case $cc_basename in
14435 # NonStop-UX NCC 3.20
14436 # FIXME: insert proper C++ library support
14440 # FIXME: insert proper C++ library support
14447 # FIXME: insert proper C++ library support
14452 # FIXME: insert proper C++ library support
14457 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14458 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14459 test "$ld_shlibs_CXX" = no && can_build_shared=no
14465 ## There is no encapsulation within the following macros, do not change
14466 ## the running order or otherwise move them around unless you know exactly
14467 ## what you are doing...
14468 # Dependencies to place before and after the object being linked:
14469 predep_objects_CXX=
14470 postdep_objects_CXX=
14473 compiler_lib_search_path_CXX=
14475 cat > conftest.$ac_ext <<_LT_EOF
14479 Foo (void) { a = 0; }
14485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14486 (eval $ac_compile) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; then
14490 # Parse the compiler output and extract the necessary
14491 # objects, libraries and library flags.
14493 # Sentinel used to keep track of whether or not we are before
14494 # the conftest object file.
14495 pre_test_object_deps_done=no
14497 for p in `eval "$output_verbose_link_cmd"`; do
14501 # Some compilers place space between "-{L,R}" and the path.
14502 # Remove the space.
14503 if test $p = "-L" ||
14504 test $p = "-R"; then
14511 if test "$pre_test_object_deps_done" = no; then
14514 # Internal compiler library paths should come after those
14515 # provided the user. The postdeps already come after the
14516 # user supplied libs so there is no need to process them.
14517 if test -z "$compiler_lib_search_path_CXX"; then
14518 compiler_lib_search_path_CXX="${prev}${p}"
14520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14523 # The "-l" case would never come before the object being
14524 # linked, so don't bother handling this case.
14527 if test -z "$postdeps_CXX"; then
14528 postdeps_CXX="${prev}${p}"
14530 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14536 # This assumes that the test object file only shows up
14537 # once in the compiler output.
14538 if test "$p" = "conftest.$objext"; then
14539 pre_test_object_deps_done=yes
14543 if test "$pre_test_object_deps_done" = no; then
14544 if test -z "$predep_objects_CXX"; then
14545 predep_objects_CXX="$p"
14547 predep_objects_CXX="$predep_objects_CXX $p"
14550 if test -z "$postdep_objects_CXX"; then
14551 postdep_objects_CXX="$p"
14553 postdep_objects_CXX="$postdep_objects_CXX $p"
14558 *) ;; # Ignore the rest.
14566 echo "libtool.m4: error: problem compiling CXX test program"
14569 $RM -f confest.$objext
14571 # PORTME: override above test on systems where it is broken
14574 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14575 # hack all around it, let's just trust "g++" to DTRT.
14576 predep_objects_CXX=
14577 postdep_objects_CXX=
14582 case `$CC -V 2>&1 | sed 5q` in
14586 # The more standards-conforming stlport4 library is
14587 # incompatible with the Cstd library. Avoid specifying
14588 # it if it's in CXXFLAGS. Ignore libCrun as
14589 # -library=stlport4 depends on it.
14590 case " $CXX $CXXFLAGS " in
14591 *" -library=stlport4 "*)
14592 solaris_use_stlport4=yes
14596 if test "$solaris_use_stlport4" != yes; then
14597 postdeps_CXX='-library=Cstd -library=Crun'
14604 case $cc_basename in
14606 # The more standards-conforming stlport4 library is
14607 # incompatible with the Cstd library. Avoid specifying
14608 # it if it's in CXXFLAGS. Ignore libCrun as
14609 # -library=stlport4 depends on it.
14610 case " $CXX $CXXFLAGS " in
14611 *" -library=stlport4 "*)
14612 solaris_use_stlport4=yes
14616 # Adding this requires a known-good setup of shared libraries for
14617 # Sun compiler versions before 5.6, else PIC objects from an old
14618 # archive will be linked into the output, leading to subtle bugs.
14619 if test "$solaris_use_stlport4" != yes; then
14620 postdeps_CXX='-library=Cstd -library=Crun'
14628 case " $postdeps_CXX " in
14629 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14631 compiler_lib_search_dirs_CXX=
14632 if test -n "${compiler_lib_search_path_CXX}"; then
14633 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14666 lt_prog_compiler_wl_CXX=
14667 lt_prog_compiler_pic_CXX=
14668 lt_prog_compiler_static_CXX=
14670 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14671 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14673 # C++ specific cases for pic, static, wl, etc.
14674 if test "$GXX" = yes; then
14675 lt_prog_compiler_wl_CXX='-Wl,'
14676 lt_prog_compiler_static_CXX='-static'
14680 # All AIX code is PIC.
14681 if test "$host_cpu" = ia64; then
14682 # AIX 5 now supports IA64 processor
14683 lt_prog_compiler_static_CXX='-Bstatic'
14690 # see comment about AmigaOS4 .so support
14691 lt_prog_compiler_pic_CXX='-fPIC'
14694 # FIXME: we need at least 68020 code to build shared libraries, but
14695 # adding the `-m68020' flag to GCC prevents building anything better,
14697 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14703 # PIC is the default for these OSes.
14705 mingw* | cygwin* | os2* | pw32* | cegcc*)
14706 # This hack is so that the source file can tell whether it is being
14707 # built for inclusion in a dll (and should export symbols for example).
14708 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14709 # (--disable-auto-import) libraries
14710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14712 darwin* | rhapsody*)
14713 # PIC is the default on this platform
14714 # Common symbols not allowed in MH_DYLIB files
14715 lt_prog_compiler_pic_CXX='-fno-common'
14718 # DJGPP does not support shared libraries at all
14719 lt_prog_compiler_pic_CXX=
14722 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14723 # Instead, we relocate shared libraries at runtime.
14726 if test -d /usr/nec; then
14727 lt_prog_compiler_pic_CXX=-Kconform_pic
14731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14733 # sets the default TLS model and affects inlining.
14738 lt_prog_compiler_pic_CXX='-fPIC'
14743 # QNX uses GNU C++, but need to define -shared option too, otherwise
14744 # it will coredump.
14745 lt_prog_compiler_pic_CXX='-fPIC -shared'
14748 lt_prog_compiler_pic_CXX='-fPIC'
14754 # All AIX code is PIC.
14755 if test "$host_cpu" = ia64; then
14756 # AIX 5 now supports IA64 processor
14757 lt_prog_compiler_static_CXX='-Bstatic'
14759 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14763 case $cc_basename in
14765 # Green Hills C++ Compiler
14766 # _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"
14771 case $cc_basename in
14773 lt_prog_compiler_pic_CXX='-KPIC'
14776 # Green Hills C++ Compiler
14777 lt_prog_compiler_pic_CXX='-pic'
14783 freebsd* | dragonfly*)
14784 # FreeBSD uses GNU C++
14786 hpux9* | hpux10* | hpux11*)
14787 case $cc_basename in
14789 lt_prog_compiler_wl_CXX='-Wl,'
14790 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14791 if test "$host_cpu" != ia64; then
14792 lt_prog_compiler_pic_CXX='+Z'
14796 lt_prog_compiler_wl_CXX='-Wl,'
14797 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14803 lt_prog_compiler_pic_CXX='+Z'
14812 # This is c89, which is MS Visual C++ (no shared libs)
14813 # Anyone wants to do a port?
14815 irix5* | irix6* | nonstopux*)
14816 case $cc_basename in
14818 lt_prog_compiler_wl_CXX='-Wl,'
14819 lt_prog_compiler_static_CXX='-non_shared'
14820 # CC pic flag -KPIC is the default.
14826 linux* | k*bsd*-gnu)
14827 case $cc_basename in
14830 lt_prog_compiler_wl_CXX='--backend -Wl,'
14831 lt_prog_compiler_pic_CXX='-fPIC'
14834 # old Intel C++ for x86_64 which still supported -KPIC.
14835 lt_prog_compiler_wl_CXX='-Wl,'
14836 lt_prog_compiler_pic_CXX='-KPIC'
14837 lt_prog_compiler_static_CXX='-static'
14840 # Intel C++, used to be incompatible with GCC.
14841 # ICC 10 doesn't accept -KPIC any more.
14842 lt_prog_compiler_wl_CXX='-Wl,'
14843 lt_prog_compiler_pic_CXX='-fPIC'
14844 lt_prog_compiler_static_CXX='-static'
14847 # Portland Group C++ compiler
14848 lt_prog_compiler_wl_CXX='-Wl,'
14849 lt_prog_compiler_pic_CXX='-fpic'
14850 lt_prog_compiler_static_CXX='-Bstatic'
14854 # Make sure the PIC flag is empty. It appears that all Alpha
14855 # Linux and Compaq Tru64 Unix objects are PIC.
14856 lt_prog_compiler_pic_CXX=
14857 lt_prog_compiler_static_CXX='-non_shared'
14860 # IBM XL 8.0 on PPC
14861 lt_prog_compiler_wl_CXX='-Wl,'
14862 lt_prog_compiler_pic_CXX='-qpic'
14863 lt_prog_compiler_static_CXX='-qstaticlink'
14866 case `$CC -V 2>&1 | sed 5q` in
14869 lt_prog_compiler_pic_CXX='-KPIC'
14870 lt_prog_compiler_static_CXX='-Bstatic'
14871 lt_prog_compiler_wl_CXX='-Qoption ld '
14882 case $cc_basename in
14884 lt_prog_compiler_pic_CXX='-W c,exportall'
14893 # QNX uses GNU C++, but need to define -shared option too, otherwise
14894 # it will coredump.
14895 lt_prog_compiler_pic_CXX='-fPIC -shared'
14897 osf3* | osf4* | osf5*)
14898 case $cc_basename in
14900 lt_prog_compiler_wl_CXX='--backend -Wl,'
14903 # Rational C++ 2.4.1
14904 lt_prog_compiler_pic_CXX='-pic'
14907 # Digital/Compaq C++
14908 lt_prog_compiler_wl_CXX='-Wl,'
14909 # Make sure the PIC flag is empty. It appears that all Alpha
14910 # Linux and Compaq Tru64 Unix objects are PIC.
14911 lt_prog_compiler_pic_CXX=
14912 lt_prog_compiler_static_CXX='-non_shared'
14921 case $cc_basename in
14923 # Sun C++ 4.2, 5.x and Centerline C++
14924 lt_prog_compiler_pic_CXX='-KPIC'
14925 lt_prog_compiler_static_CXX='-Bstatic'
14926 lt_prog_compiler_wl_CXX='-Qoption ld '
14929 # Green Hills C++ Compiler
14930 lt_prog_compiler_pic_CXX='-PIC'
14937 case $cc_basename in
14940 lt_prog_compiler_pic_CXX='-pic'
14941 lt_prog_compiler_static_CXX='-Bstatic'
14945 lt_prog_compiler_pic_CXX='-pic'
14951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14952 case $cc_basename in
14954 lt_prog_compiler_wl_CXX='-Wl,'
14955 lt_prog_compiler_pic_CXX='-KPIC'
14956 lt_prog_compiler_static_CXX='-Bstatic'
14961 case $cc_basename in
14963 # NonStop-UX NCC 3.20
14964 lt_prog_compiler_pic_CXX='-KPIC'
14973 lt_prog_compiler_can_build_shared_CXX=no
14979 # For platforms which do not support PIC, -DPIC is meaningless:
14981 lt_prog_compiler_pic_CXX=
14984 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14987 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14988 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14993 # Check to make sure the PIC flag actually works.
14995 if test -n "$lt_prog_compiler_pic_CXX"; then
14996 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14997 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14998 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 lt_cv_prog_compiler_pic_works_CXX=no
15002 ac_outfile=conftest.$ac_objext
15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15004 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15005 # Insert the option either (1) after the last *FLAGS variable, or
15006 # (2) before a word containing "conftest.", or (3) at the end.
15007 # Note that $ac_compile itself does not contain backslashes and begins
15008 # with a dollar sign (not a hyphen), so the echo should work correctly.
15009 # The option is referenced via a variable to avoid confusing sed.
15010 lt_compile=`echo "$ac_compile" | $SED \
15011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15013 -e 's:$: $lt_compiler_flag:'`
15014 (eval echo "\"\$as_me:15014: $lt_compile\"" >&5)
15015 (eval "$lt_compile" 2>conftest.err)
15017 cat conftest.err >&5
15018 echo "$as_me:15018: \$? = $ac_status" >&5
15019 if (exit $ac_status) && test -s "$ac_outfile"; then
15020 # The compiler can only warn and ignore the option if not recognized
15021 # So say no if there are warnings other than the usual output.
15022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15025 lt_cv_prog_compiler_pic_works_CXX=yes
15031 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15032 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
15034 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15035 case $lt_prog_compiler_pic_CXX in
15037 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15040 lt_prog_compiler_pic_CXX=
15041 lt_prog_compiler_can_build_shared_CXX=no
15049 # Check to make sure the static flag actually works.
15051 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15052 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15053 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15054 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 lt_cv_prog_compiler_static_works_CXX=no
15058 save_LDFLAGS="$LDFLAGS"
15059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15062 # The linker can only warn and ignore the option if not recognized
15063 # So say no if there are warnings
15064 if test -s conftest.err; then
15065 # Append any errors to the config.log.
15066 cat conftest.err 1>&5
15067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15069 if diff conftest.exp conftest.er2 >/dev/null; then
15070 lt_cv_prog_compiler_static_works_CXX=yes
15073 lt_cv_prog_compiler_static_works_CXX=yes
15077 LDFLAGS="$save_LDFLAGS"
15080 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15081 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
15083 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15086 lt_prog_compiler_static_CXX=
15092 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15094 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15097 lt_cv_prog_compiler_c_o_CXX=no
15098 $RM -r conftest 2>/dev/null
15102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15104 lt_compiler_flag="-o out/conftest2.$ac_objext"
15105 # Insert the option either (1) after the last *FLAGS variable, or
15106 # (2) before a word containing "conftest.", or (3) at the end.
15107 # Note that $ac_compile itself does not contain backslashes and begins
15108 # with a dollar sign (not a hyphen), so the echo should work correctly.
15109 lt_compile=`echo "$ac_compile" | $SED \
15110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15112 -e 's:$: $lt_compiler_flag:'`
15113 (eval echo "\"\$as_me:15113: $lt_compile\"" >&5)
15114 (eval "$lt_compile" 2>out/conftest.err)
15116 cat out/conftest.err >&5
15117 echo "$as_me:15117: \$? = $ac_status" >&5
15118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15120 # The compiler can only warn and ignore the option if not recognized
15121 # So say no if there are warnings
15122 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15125 lt_cv_prog_compiler_c_o_CXX=yes
15130 # SGI C++ compiler will create directory out/ii_files/ for
15131 # template instantiation
15132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15133 $RM out/* && rmdir out
15139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15144 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15146 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 lt_cv_prog_compiler_c_o_CXX=no
15150 $RM -r conftest 2>/dev/null
15154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15156 lt_compiler_flag="-o out/conftest2.$ac_objext"
15157 # Insert the option either (1) after the last *FLAGS variable, or
15158 # (2) before a word containing "conftest.", or (3) at the end.
15159 # Note that $ac_compile itself does not contain backslashes and begins
15160 # with a dollar sign (not a hyphen), so the echo should work correctly.
15161 lt_compile=`echo "$ac_compile" | $SED \
15162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164 -e 's:$: $lt_compiler_flag:'`
15165 (eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
15166 (eval "$lt_compile" 2>out/conftest.err)
15168 cat out/conftest.err >&5
15169 echo "$as_me:15169: \$? = $ac_status" >&5
15170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15172 # The compiler can only warn and ignore the option if not recognized
15173 # So say no if there are warnings
15174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15177 lt_cv_prog_compiler_c_o_CXX=yes
15182 # SGI C++ compiler will create directory out/ii_files/ for
15183 # template instantiation
15184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15185 $RM out/* && rmdir out
15191 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15192 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15197 hard_links="nottested"
15198 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15199 # do not overwrite the value of need_locks provided by the user
15200 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15201 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15206 ln conftest.a conftest.b 2>&5 || hard_links=no
15207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15208 echo "$as_me:$LINENO: result: $hard_links" >&5
15209 echo "${ECHO_T}$hard_links" >&6
15210 if test "$hard_links" = no; then
15211 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15212 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15221 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15227 # If we're using GNU nm, then we don't want the "-C" option.
15228 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15230 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'
15232 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'
15236 export_symbols_cmds_CXX="$ltdll_cmds"
15238 cygwin* | mingw* | cegcc*)
15239 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'
15242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15245 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15247 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15248 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15249 test "$ld_shlibs_CXX" = no && can_build_shared=no
15251 with_gnu_ld_CXX=$with_gnu_ld
15259 # Do we need to explicitly link libc?
15261 case "x$archive_cmds_need_lc_CXX" in
15263 # Assume -lc should be added
15264 archive_cmds_need_lc_CXX=yes
15266 if test "$enable_shared" = yes && test "$GCC" = yes; then
15267 case $archive_cmds_CXX in
15269 # FIXME: we may have to deal with multi-command sequences.
15272 # Test whether the compiler implicitly links with -lc since on some
15273 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15274 # to ld, don't add -lc before -lgcc.
15275 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15276 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281 (eval $ac_compile) 2>&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } 2>conftest.err; then
15287 libobjs=conftest.$ac_objext
15289 wl=$lt_prog_compiler_wl_CXX
15290 pic_flag=$lt_prog_compiler_pic_CXX
15296 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15297 allow_undefined_flag_CXX=
15298 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15299 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }
15304 archive_cmds_need_lc_CXX=no
15306 archive_cmds_need_lc_CXX=yes
15308 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15310 cat conftest.err 1>&5
15313 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15314 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15384 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15385 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15387 library_names_spec=
15388 libname_spec='lib$name'
15392 postuninstall_cmds=
15396 shlibpath_overrides_runpath=unknown
15398 dynamic_linker="$host_os ld.so"
15399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15400 need_lib_prefix=unknown
15401 hardcode_into_libs=no
15403 # when you set need_version to no, make sure it does not cause -set_version
15404 # flags to be left without arguments
15405 need_version=unknown
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15411 shlibpath_var=LIBPATH
15413 # AIX 3 has no versioning support, so we append a major version to the name.
15414 soname_spec='${libname}${release}${shared_ext}$major'
15421 hardcode_into_libs=yes
15422 if test "$host_cpu" = ia64; then
15423 # AIX 5 supports IA64
15424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15425 shlibpath_var=LD_LIBRARY_PATH
15427 # With GCC up to 2.95.x, collect2 would create an import file
15428 # for dependence libraries. The import file would start with
15429 # the line `#! .'. This would cause the generated library to
15430 # depend on `.', always an invalid library. This was fixed in
15431 # development snapshots of GCC prior to 3.0.
15433 aix4 | aix4.[01] | aix4.[01].*)
15434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15439 can_build_shared=no
15443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15444 # soname into executable. Probably we can add versioning support to
15445 # collect2, so additional links can be useful in future.
15446 if test "$aix_use_runtimelinking" = yes; then
15447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15448 # instead of lib<name>.a to let people know that these are not
15449 # typical AIX shared libraries.
15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 # We preserve .a as extension for shared libraries through AIX4.2
15453 # and later when we are not doing run time linking.
15454 library_names_spec='${libname}${release}.a $libname.a'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15457 shlibpath_var=LIBPATH
15464 # Since July 2007 AmigaOS4 officially supports .so libraries.
15465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 library_names_spec='$libname.ixlibrary $libname.a'
15470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15471 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'
15477 library_names_spec='${libname}${shared_ext}'
15478 dynamic_linker="$host_os ld.so"
15479 shlibpath_var=LIBRARY_PATH
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15491 # the default ld.so.conf also contains /usr/contrib/lib and
15492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15493 # libtool to hard-code these into programs
15496 cygwin* | mingw* | pw32* | cegcc*)
15497 version_type=windows
15502 case $GCC,$host_os in
15503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15504 library_names_spec='$libname.dll.a'
15505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15506 postinstall_cmds='base_file=`basename \${file}`~
15507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15508 dldir=$destdir/`dirname \$dlpath`~
15509 test -d \$dldir || mkdir -p \$dldir~
15510 $install_prog $dir/$dlname \$dldir/$dlname~
15511 chmod a+x \$dldir/$dlname~
15512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15516 dlpath=$dir/\$dldll~
15518 shlibpath_overrides_runpath=yes
15522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15527 # MinGW DLLs use traditional 'lib' prefix
15528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15531 # It is most probably a Windows format PATH printed by
15532 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15533 # path with ; separators, and with drive letters. We can handle the
15534 # drive letters (cygwin fileutils understands them), so leave them,
15535 # especially as we might pass files found there to a mingw objdump,
15536 # which wouldn't understand a cygwinified path. Ahh.
15537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15543 # pw32 DLLs use 'pw' prefix rather than 'lib'
15544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15553 dynamic_linker='Win32 ld.exe'
15554 # FIXME: first we should search . and the directory the executable is in
15558 darwin* | rhapsody*)
15559 dynamic_linker="$host_os dyld"
15560 version_type=darwin
15563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15564 soname_spec='${libname}${release}${major}$shared_ext'
15565 shlibpath_overrides_runpath=yes
15566 shlibpath_var=DYLD_LIBRARY_PATH
15567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15585 freebsd* | dragonfly*)
15586 # DragonFly does not have aout. When/if they implement a new
15587 # versioning mechanism, adjust this.
15588 if test -x /usr/bin/objformat; then
15589 objformat=`/usr/bin/objformat`
15592 freebsd[123]*) objformat=aout ;;
15593 *) objformat=elf ;;
15596 version_type=freebsd-$objformat
15597 case $version_type in
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15608 shlibpath_var=LD_LIBRARY_PATH
15611 shlibpath_overrides_runpath=yes
15613 freebsd3.[01]* | freebsdelf3.[01]*)
15614 shlibpath_overrides_runpath=yes
15615 hardcode_into_libs=yes
15617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15619 shlibpath_overrides_runpath=no
15620 hardcode_into_libs=yes
15622 *) # from 4.6 on, and DragonFly
15623 shlibpath_overrides_runpath=yes
15624 hardcode_into_libs=yes
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 hardcode_into_libs=yes
15639 hpux9* | hpux10* | hpux11*)
15640 # Give a soname corresponding to the major version so that dld.sl refuses to
15641 # link against other versions.
15648 hardcode_into_libs=yes
15649 dynamic_linker="$host_os dld.so"
15650 shlibpath_var=LD_LIBRARY_PATH
15651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec='${libname}${release}${shared_ext}$major'
15654 if test "X$HPUX_IA64_MODE" = X32; then
15655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15663 hardcode_into_libs=yes
15664 dynamic_linker="$host_os dld.sl"
15665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15674 dynamic_linker="$host_os dld.sl"
15675 shlibpath_var=SHLIB_PATH
15676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15681 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15682 postinstall_cmds='chmod 555 $lib'
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15690 soname_spec='${libname}${release}${shared_ext}$major'
15691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=no
15694 hardcode_into_libs=yes
15697 irix5* | irix6* | nonstopux*)
15699 nonstopux*) version_type=nonstopux ;;
15701 if test "$lt_cv_prog_gnu_ld" = yes; then
15709 soname_spec='${libname}${release}${shared_ext}$major'
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15712 irix5* | nonstopux*)
15713 libsuff= shlibsuff=
15716 case $LD in # libtool.m4 will add one of these switches to LD
15717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15718 libsuff= shlibsuff= libmagic=32-bit;;
15719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15720 libsuff=32 shlibsuff=N32 libmagic=N32;;
15721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15723 *) libsuff= shlibsuff= libmagic=never-match;;
15727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15728 shlibpath_overrides_runpath=no
15729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15731 hardcode_into_libs=yes
15734 # No shared lib support for Linux oldld, aout, or coff.
15735 linux*oldld* | linux*aout* | linux*coff*)
15739 # This must be Linux ELF.
15740 linux* | k*bsd*-gnu)
15744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15745 soname_spec='${libname}${release}${shared_ext}$major'
15746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 shlibpath_overrides_runpath=no
15749 # Some binutils ld are patched to set DT_RUNPATH
15750 save_LDFLAGS=$LDFLAGS
15751 save_libdir=$libdir
15752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15754 if test x$gcc_no_link = xyes; then
15755 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15756 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15757 { (exit 1); exit 1; }; }
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15774 rm -f conftest.$ac_objext conftest$ac_exeext
15775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15776 (eval $ac_link) 2>conftest.er1
15778 grep -v '^ *+' conftest.er1 >conftest.err
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
15783 { ac_try='test -z "$ac_cxx_werror_flag"
15784 || test ! -s conftest.err'
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); }; } &&
15790 { ac_try='test -s conftest$ac_exeext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15797 shlibpath_overrides_runpath=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15805 rm -f conftest.err conftest.$ac_objext \
15806 conftest$ac_exeext conftest.$ac_ext
15807 LDFLAGS=$save_LDFLAGS
15808 libdir=$save_libdir
15810 # This implies no fast_install, which is unacceptable.
15811 # Some rework will be needed to allow for fast_install
15812 # before this can be enabled.
15813 hardcode_into_libs=yes
15815 # Append ld.so.conf contents to the search path
15816 if test -f /etc/ld.so.conf; then
15817 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15818 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15821 # We used to test for /lib/ld.so.1 and disable shared libraries on
15822 # powerpc, because MkLinux only supported shared libraries with the
15823 # GNU dynamic linker. Since this was broken with cross compilers,
15824 # most powerpc-linux boxes support dynamic linking these days and
15825 # people can always --disable-shared, the test was removed, and we
15826 # assume the GNU/Linux dynamic linker is in use.
15827 dynamic_linker='GNU/Linux ld.so'
15834 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15837 dynamic_linker='NetBSD (a.out) ld.so'
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 dynamic_linker='NetBSD ld.elf_so'
15843 shlibpath_var=LD_LIBRARY_PATH
15844 shlibpath_overrides_runpath=yes
15845 hardcode_into_libs=yes
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 shlibpath_var=LD_LIBRARY_PATH
15852 shlibpath_overrides_runpath=yes
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 shlibpath_overrides_runpath=no
15863 hardcode_into_libs=yes
15864 dynamic_linker='ldqnx.so'
15869 sys_lib_dlsearch_path_spec="/usr/lib"
15871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15874 *) need_version=no ;;
15876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878 shlibpath_var=LD_LIBRARY_PATH
15879 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15881 openbsd2.[89] | openbsd2.[89].*)
15882 shlibpath_overrides_runpath=no
15885 shlibpath_overrides_runpath=yes
15889 shlibpath_overrides_runpath=yes
15894 libname_spec='$name'
15897 library_names_spec='$libname${shared_ext} $libname.a'
15898 dynamic_linker='OS/2 ld.exe'
15899 shlibpath_var=LIBPATH
15902 osf3* | osf4* | osf5*)
15906 soname_spec='${libname}${release}${shared_ext}$major'
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 shlibpath_var=LD_LIBRARY_PATH
15909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15924 shlibpath_overrides_runpath=yes
15925 hardcode_into_libs=yes
15926 # ldd complains unless libraries are executable
15927 postinstall_cmds='chmod +x $lib'
15932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15933 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15934 shlibpath_var=LD_LIBRARY_PATH
15935 shlibpath_overrides_runpath=yes
15936 if test "$with_gnu_ld" = yes; then
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15945 soname_spec='${libname}${release}${shared_ext}$major'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 case $host_vendor in
15949 shlibpath_overrides_runpath=no
15951 runpath_var=LD_RUN_PATH
15959 shlibpath_overrides_runpath=no
15960 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15966 if test -d /usr/nec ;then
15968 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15969 soname_spec='$libname${shared_ext}.$major'
15970 shlibpath_var=LD_LIBRARY_PATH
15974 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15975 version_type=freebsd-elf
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 shlibpath_var=LD_LIBRARY_PATH
15981 shlibpath_overrides_runpath=yes
15982 hardcode_into_libs=yes
15983 if test "$with_gnu_ld" = yes; then
15984 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15986 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15993 sys_lib_dlsearch_path_spec='/usr/lib'
15997 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 shlibpath_overrides_runpath=no
16004 hardcode_into_libs=yes
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16018 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16019 echo "${ECHO_T}$dynamic_linker" >&6
16020 test "$dynamic_linker" = no && can_build_shared=no
16022 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16023 if test "$GCC" = yes; then
16024 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16027 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16028 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16030 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16031 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16069 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16070 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16071 hardcode_action_CXX=
16072 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16073 test -n "$runpath_var_CXX" ||
16074 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16076 # We can hardcode non-existent directories.
16077 if test "$hardcode_direct_CXX" != no &&
16078 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16079 # have to relink, otherwise we might link with an installed library
16080 # when we should be linking with a yet-to-be-installed one
16081 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16082 test "$hardcode_minus_L_CXX" != no; then
16083 # Linking always hardcodes the temporary library directory.
16084 hardcode_action_CXX=relink
16086 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16087 hardcode_action_CXX=immediate
16090 # We cannot hardcode anything, or else we can only hardcode existing
16092 hardcode_action_CXX=unsupported
16094 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16095 echo "${ECHO_T}$hardcode_action_CXX" >&6
16097 if test "$hardcode_action_CXX" = relink ||
16098 test "$inherit_rpath_CXX" = yes; then
16099 # Fast installation is not supported
16100 enable_fast_install=no
16101 elif test "$shlibpath_overrides_runpath" = yes ||
16102 test "$enable_shared" = no; then
16103 # Fast installation is not necessary
16104 enable_fast_install=needless
16113 fi # test -n "$compiler"
16119 with_gnu_ld=$lt_save_with_gnu_ld
16120 lt_cv_path_LDCXX=$lt_cv_path_LD
16121 lt_cv_path_LD=$lt_save_path_LD
16122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16124 fi # test "$_lt_caught_CXX_error" != yes
16127 ac_cpp='$CPP $CPPFLAGS'
16128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16144 ac_config_commands="$ac_config_commands libtool"
16149 # Only expand once:
16155 # Extract the first word of "$ac_prog", so it can be a program name with args.
16156 set dummy $ac_prog; ac_word=$2
16157 echo "$as_me:$LINENO: checking for $ac_word" >&5
16158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16159 if test "${ac_cv_prog_GCJ+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 if test -n "$GCJ"; then
16163 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_prog_GCJ="$ac_prog"
16173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16181 GCJ=$ac_cv_prog_GCJ
16182 if test -n "$GCJ"; then
16183 echo "$as_me:$LINENO: result: $GCJ" >&5
16184 echo "${ECHO_T}$GCJ" >&6
16186 echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6
16190 test -n "$GCJ" && break
16192 test -n "$GCJ" || GCJ="gcj"
16194 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16195 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16196 { (exit 1); exit 1; }; }
16197 if test "x${GCJFLAGS-unset}" = xunset; then
16202 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16204 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16205 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16206 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16210 # We make a subdir and do the tests there. Otherwise we can end up
16211 # making bogus files that we don't know about and never remove. For
16212 # instance it was reported that on HP-UX the gcc test will end up
16213 # making a dummy file named `D' -- because `-MD' means `put the output
16216 # Copy depcomp to subdir because otherwise we won't find it if we're
16217 # using a relative directory.
16218 cp "$am_depcomp" conftest.dir
16220 # We will build objects and dependencies in a subdirectory because
16221 # it helps to detect inapplicable dependency modes. For instance
16222 # both Tru64's cc and ICC support -MD to output dependencies as a
16223 # side effect of compilation, but ICC will put the dependencies in
16224 # the current directory while Tru64 will put them in the object
16228 am_cv_GCJ_dependencies_compiler_type=none
16229 if test "$am_compiler_list" = ""; then
16230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16232 for depmode in $am_compiler_list; do
16233 # Setup a source with many dependencies, because some compilers
16234 # like to wrap large dependency lists on column 80 (with \), and
16235 # we should not choose a depcomp mode which is confused by this.
16237 # We need to recreate these files for each test, as the compiler may
16238 # overwrite some of them when testing with obscure command lines.
16239 # This happens at least with the AIX C compiler.
16241 for i in 1 2 3 4 5 6; do
16242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16244 # Solaris 8's {/usr,}/bin/sh.
16245 touch sub/conftst$i.h
16247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16251 # after this tag, mechanisms are not by side-effect, so they'll
16252 # only be used when explicitly requested
16253 if test "x$enable_dependency_tracking" = xyes; then
16261 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16262 # mode. It turns out that the SunPro C++ compiler does not properly
16263 # handle `-M -o', and we need to detect this.
16264 if depmode=$depmode \
16265 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16267 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16268 >/dev/null 2>conftest.err &&
16269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16270 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16272 # icc doesn't choke on unknown options, it will just issue warnings
16273 # or remarks (even with -Werror). So we grep stderr for any message
16274 # that says an option was ignored or not supported.
16275 # When given -MP, icc 7.0 and 7.1 complain thusly:
16276 # icc: Command line warning: ignoring option '-M'; no argument required
16277 # The diagnosis changed in icc 8.0:
16278 # icc: Command line remark: option '-MP' not supported
16279 if (grep 'ignoring option' conftest.err ||
16280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16281 am_cv_GCJ_dependencies_compiler_type=$depmode
16288 rm -rf conftest.dir
16290 am_cv_GCJ_dependencies_compiler_type=none
16294 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16295 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16296 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16301 test "x$enable_dependency_tracking" != xno \
16302 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16303 am__fastdepGCJ_TRUE=
16304 am__fastdepGCJ_FALSE='#'
16306 am__fastdepGCJ_TRUE='#'
16307 am__fastdepGCJ_FALSE=
16314 # Extract the first word of "$ac_prog", so it can be a program name with args.
16315 set dummy $ac_prog; ac_word=$2
16316 echo "$as_me:$LINENO: checking for $ac_word" >&5
16317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16318 if test "${ac_cv_prog_GCJ+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16321 if test -n "$GCJ"; then
16322 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16325 for as_dir in $PATH
16328 test -z "$as_dir" && as_dir=.
16329 for ac_exec_ext in '' $ac_executable_extensions; do
16330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16331 ac_cv_prog_GCJ="$ac_prog"
16332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16340 GCJ=$ac_cv_prog_GCJ
16341 if test -n "$GCJ"; then
16342 echo "$as_me:$LINENO: result: $GCJ" >&5
16343 echo "${ECHO_T}$GCJ" >&6
16345 echo "$as_me:$LINENO: result: no" >&5
16346 echo "${ECHO_T}no" >&6
16349 test -n "$GCJ" && break
16351 test -n "$GCJ" || GCJ="gcj"
16353 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16354 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16355 { (exit 1); exit 1; }; }
16356 if test "x${GCJFLAGS-unset}" = xunset; then
16361 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16363 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16364 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16365 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16369 # We make a subdir and do the tests there. Otherwise we can end up
16370 # making bogus files that we don't know about and never remove. For
16371 # instance it was reported that on HP-UX the gcc test will end up
16372 # making a dummy file named `D' -- because `-MD' means `put the output
16375 # Copy depcomp to subdir because otherwise we won't find it if we're
16376 # using a relative directory.
16377 cp "$am_depcomp" conftest.dir
16379 # We will build objects and dependencies in a subdirectory because
16380 # it helps to detect inapplicable dependency modes. For instance
16381 # both Tru64's cc and ICC support -MD to output dependencies as a
16382 # side effect of compilation, but ICC will put the dependencies in
16383 # the current directory while Tru64 will put them in the object
16387 am_cv_GCJ_dependencies_compiler_type=none
16388 if test "$am_compiler_list" = ""; then
16389 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16391 for depmode in $am_compiler_list; do
16392 # Setup a source with many dependencies, because some compilers
16393 # like to wrap large dependency lists on column 80 (with \), and
16394 # we should not choose a depcomp mode which is confused by this.
16396 # We need to recreate these files for each test, as the compiler may
16397 # overwrite some of them when testing with obscure command lines.
16398 # This happens at least with the AIX C compiler.
16400 for i in 1 2 3 4 5 6; do
16401 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16402 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16403 # Solaris 8's {/usr,}/bin/sh.
16404 touch sub/conftst$i.h
16406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16410 # after this tag, mechanisms are not by side-effect, so they'll
16411 # only be used when explicitly requested
16412 if test "x$enable_dependency_tracking" = xyes; then
16420 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16421 # mode. It turns out that the SunPro C++ compiler does not properly
16422 # handle `-M -o', and we need to detect this.
16423 if depmode=$depmode \
16424 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16425 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16426 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16427 >/dev/null 2>conftest.err &&
16428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16429 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16431 # icc doesn't choke on unknown options, it will just issue warnings
16432 # or remarks (even with -Werror). So we grep stderr for any message
16433 # that says an option was ignored or not supported.
16434 # When given -MP, icc 7.0 and 7.1 complain thusly:
16435 # icc: Command line warning: ignoring option '-M'; no argument required
16436 # The diagnosis changed in icc 8.0:
16437 # icc: Command line remark: option '-MP' not supported
16438 if (grep 'ignoring option' conftest.err ||
16439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16440 am_cv_GCJ_dependencies_compiler_type=$depmode
16447 rm -rf conftest.dir
16449 am_cv_GCJ_dependencies_compiler_type=none
16453 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16454 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16455 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16460 test "x$enable_dependency_tracking" != xno \
16461 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16462 am__fastdepGCJ_TRUE=
16463 am__fastdepGCJ_FALSE='#'
16465 am__fastdepGCJ_TRUE='#'
16466 am__fastdepGCJ_FALSE=
16474 # Source file extension for Java test sources.
16477 # Object file extension for compiled Java test sources.
16481 # Code to be used in simple compile tests
16482 lt_simple_compile_test_code="int some_variable = 0;"
16484 # Code to be used in simple link tests
16485 lt_simple_link_test_code='int main(){return(0);}'
16487 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16494 # If no C compiler was specified, use CC.
16497 # If no C compiler flags were specified, use CFLAGS.
16498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16500 # Allow CC to be a program name with arguments.
16504 # save warnings/boilerplate of simple test code
16505 ac_outfile=conftest.$ac_objext
16506 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16507 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16508 _lt_compiler_boilerplate=`cat conftest.err`
16511 ac_outfile=conftest.$ac_objext
16512 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16513 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16514 _lt_linker_boilerplate=`cat conftest.err`
16518 # Allow CC to be a program name with arguments.
16522 for cc_temp in $compiler""; do
16524 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16525 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16530 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16533 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16534 archive_cmds_need_lc_GCJ=no
16536 old_archive_cmds_GCJ=$old_archive_cmds
16539 ## There is no encapsulation within the following macros, do not change
16540 ## the running order or otherwise move them around unless you know exactly
16541 ## what you are doing...
16542 if test -n "$compiler"; then
16544 lt_prog_compiler_no_builtin_flag_GCJ=
16546 if test "$GCC" = yes; then
16547 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16549 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16550 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16551 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 lt_cv_prog_compiler_rtti_exceptions=no
16555 ac_outfile=conftest.$ac_objext
16556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16557 lt_compiler_flag="-fno-rtti -fno-exceptions"
16558 # Insert the option either (1) after the last *FLAGS variable, or
16559 # (2) before a word containing "conftest.", or (3) at the end.
16560 # Note that $ac_compile itself does not contain backslashes and begins
16561 # with a dollar sign (not a hyphen), so the echo should work correctly.
16562 # The option is referenced via a variable to avoid confusing sed.
16563 lt_compile=`echo "$ac_compile" | $SED \
16564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16566 -e 's:$: $lt_compiler_flag:'`
16567 (eval echo "\"\$as_me:16567: $lt_compile\"" >&5)
16568 (eval "$lt_compile" 2>conftest.err)
16570 cat conftest.err >&5
16571 echo "$as_me:16571: \$? = $ac_status" >&5
16572 if (exit $ac_status) && test -s "$ac_outfile"; then
16573 # The compiler can only warn and ignore the option if not recognized
16574 # So say no if there are warnings other than the usual output.
16575 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16578 lt_cv_prog_compiler_rtti_exceptions=yes
16584 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16585 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16587 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16588 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16597 lt_prog_compiler_wl_GCJ=
16598 lt_prog_compiler_pic_GCJ=
16599 lt_prog_compiler_static_GCJ=
16601 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16602 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16604 if test "$GCC" = yes; then
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16606 lt_prog_compiler_static_GCJ='-static'
16610 # All AIX code is PIC.
16611 if test "$host_cpu" = ia64; then
16612 # AIX 5 now supports IA64 processor
16613 lt_prog_compiler_static_GCJ='-Bstatic'
16620 # see comment about AmigaOS4 .so support
16621 lt_prog_compiler_pic_GCJ='-fPIC'
16624 # FIXME: we need at least 68020 code to build shared libraries, but
16625 # adding the `-m68020' flag to GCC prevents building anything better,
16627 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16633 # PIC is the default for these OSes.
16636 mingw* | cygwin* | pw32* | os2* | cegcc*)
16637 # This hack is so that the source file can tell whether it is being
16638 # built for inclusion in a dll (and should export symbols for example).
16639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16640 # (--disable-auto-import) libraries
16644 darwin* | rhapsody*)
16645 # PIC is the default on this platform
16646 # Common symbols not allowed in MH_DYLIB files
16647 lt_prog_compiler_pic_GCJ='-fno-common'
16651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16653 # sets the default TLS model and affects inlining.
16659 lt_prog_compiler_pic_GCJ='-fPIC'
16665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16666 # Instead, we relocate shared libraries at runtime.
16670 # Just because we use GCC doesn't mean we suddenly get shared libraries
16671 # on systems that don't support them.
16672 lt_prog_compiler_can_build_shared_GCJ=no
16677 # QNX uses GNU C++, but need to define -shared option too, otherwise
16678 # it will coredump.
16679 lt_prog_compiler_pic_GCJ='-fPIC -shared'
16683 if test -d /usr/nec; then
16684 lt_prog_compiler_pic_GCJ=-Kconform_pic
16689 lt_prog_compiler_pic_GCJ='-fPIC'
16693 # PORTME Check for flag to pass linker flags through the system compiler.
16696 lt_prog_compiler_wl_GCJ='-Wl,'
16697 if test "$host_cpu" = ia64; then
16698 # AIX 5 now supports IA64 processor
16699 lt_prog_compiler_static_GCJ='-Bstatic'
16701 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16705 mingw* | cygwin* | pw32* | os2* | cegcc*)
16706 # This hack is so that the source file can tell whether it is being
16707 # built for inclusion in a dll (and should export symbols for example).
16711 hpux9* | hpux10* | hpux11*)
16712 lt_prog_compiler_wl_GCJ='-Wl,'
16713 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16714 # not for PA HP-UX.
16720 lt_prog_compiler_pic_GCJ='+Z'
16723 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16724 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16727 irix5* | irix6* | nonstopux*)
16728 lt_prog_compiler_wl_GCJ='-Wl,'
16729 # PIC (with -KPIC) is the default.
16730 lt_prog_compiler_static_GCJ='-non_shared'
16733 linux* | k*bsd*-gnu)
16734 case $cc_basename in
16735 # old Intel for x86_64 which still supported -KPIC.
16737 lt_prog_compiler_wl_GCJ='-Wl,'
16738 lt_prog_compiler_pic_GCJ='-KPIC'
16739 lt_prog_compiler_static_GCJ='-static'
16741 # icc used to be incompatible with GCC.
16742 # ICC 10 doesn't accept -KPIC any more.
16744 lt_prog_compiler_wl_GCJ='-Wl,'
16745 lt_prog_compiler_pic_GCJ='-fPIC'
16746 lt_prog_compiler_static_GCJ='-static'
16748 # Lahey Fortran 8.1.
16750 lt_prog_compiler_wl_GCJ='-Wl,'
16751 lt_prog_compiler_pic_GCJ='--shared'
16752 lt_prog_compiler_static_GCJ='--static'
16754 pgcc* | pgf77* | pgf90* | pgf95*)
16755 # Portland Group compilers (*not* the Pentium gcc compiler,
16756 # which looks to be a dead project)
16757 lt_prog_compiler_wl_GCJ='-Wl,'
16758 lt_prog_compiler_pic_GCJ='-fpic'
16759 lt_prog_compiler_static_GCJ='-Bstatic'
16762 lt_prog_compiler_wl_GCJ='-Wl,'
16763 # All Alpha code is PIC.
16764 lt_prog_compiler_static_GCJ='-non_shared'
16767 # IBM XL C 8.0/Fortran 10.1 on PPC
16768 lt_prog_compiler_wl_GCJ='-Wl,'
16769 lt_prog_compiler_pic_GCJ='-qpic'
16770 lt_prog_compiler_static_GCJ='-qstaticlink'
16773 case `$CC -V 2>&1 | sed 5q` in
16776 lt_prog_compiler_pic_GCJ='-KPIC'
16777 lt_prog_compiler_static_GCJ='-Bstatic'
16778 lt_prog_compiler_wl_GCJ='-Wl,'
16781 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16782 lt_prog_compiler_pic_GCJ='-KPIC'
16783 lt_prog_compiler_static_GCJ='-Bstatic'
16784 lt_prog_compiler_wl_GCJ=''
16792 lt_prog_compiler_pic_GCJ='-KPIC'
16793 lt_prog_compiler_static_GCJ='-Bstatic'
16797 # QNX uses GNU C++, but need to define -shared option too, otherwise
16798 # it will coredump.
16799 lt_prog_compiler_pic_GCJ='-fPIC -shared'
16802 osf3* | osf4* | osf5*)
16803 lt_prog_compiler_wl_GCJ='-Wl,'
16804 # All OSF/1 code is PIC.
16805 lt_prog_compiler_static_GCJ='-non_shared'
16809 lt_prog_compiler_static_GCJ='-non_shared'
16813 lt_prog_compiler_pic_GCJ='-KPIC'
16814 lt_prog_compiler_static_GCJ='-Bstatic'
16815 case $cc_basename in
16816 f77* | f90* | f95*)
16817 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16819 lt_prog_compiler_wl_GCJ='-Wl,';;
16824 lt_prog_compiler_wl_GCJ='-Qoption ld '
16825 lt_prog_compiler_pic_GCJ='-PIC'
16826 lt_prog_compiler_static_GCJ='-Bstatic'
16829 sysv4 | sysv4.2uw2* | sysv4.3*)
16830 lt_prog_compiler_wl_GCJ='-Wl,'
16831 lt_prog_compiler_pic_GCJ='-KPIC'
16832 lt_prog_compiler_static_GCJ='-Bstatic'
16836 if test -d /usr/nec ;then
16837 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16838 lt_prog_compiler_static_GCJ='-Bstatic'
16842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16843 lt_prog_compiler_wl_GCJ='-Wl,'
16844 lt_prog_compiler_pic_GCJ='-KPIC'
16845 lt_prog_compiler_static_GCJ='-Bstatic'
16849 lt_prog_compiler_wl_GCJ='-Wl,'
16850 lt_prog_compiler_can_build_shared_GCJ=no
16854 lt_prog_compiler_pic_GCJ='-pic'
16855 lt_prog_compiler_static_GCJ='-Bstatic'
16859 lt_prog_compiler_can_build_shared_GCJ=no
16865 # For platforms which do not support PIC, -DPIC is meaningless:
16867 lt_prog_compiler_pic_GCJ=
16870 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16873 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16874 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16879 # Check to make sure the PIC flag actually works.
16881 if test -n "$lt_prog_compiler_pic_GCJ"; then
16882 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16883 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16884 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 lt_cv_prog_compiler_pic_works_GCJ=no
16888 ac_outfile=conftest.$ac_objext
16889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16890 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16891 # Insert the option either (1) after the last *FLAGS variable, or
16892 # (2) before a word containing "conftest.", or (3) at the end.
16893 # Note that $ac_compile itself does not contain backslashes and begins
16894 # with a dollar sign (not a hyphen), so the echo should work correctly.
16895 # The option is referenced via a variable to avoid confusing sed.
16896 lt_compile=`echo "$ac_compile" | $SED \
16897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16899 -e 's:$: $lt_compiler_flag:'`
16900 (eval echo "\"\$as_me:16900: $lt_compile\"" >&5)
16901 (eval "$lt_compile" 2>conftest.err)
16903 cat conftest.err >&5
16904 echo "$as_me:16904: \$? = $ac_status" >&5
16905 if (exit $ac_status) && test -s "$ac_outfile"; then
16906 # The compiler can only warn and ignore the option if not recognized
16907 # So say no if there are warnings other than the usual output.
16908 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16911 lt_cv_prog_compiler_pic_works_GCJ=yes
16917 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16918 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16920 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16921 case $lt_prog_compiler_pic_GCJ in
16923 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16926 lt_prog_compiler_pic_GCJ=
16927 lt_prog_compiler_can_build_shared_GCJ=no
16935 # Check to make sure the static flag actually works.
16937 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16938 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16939 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16940 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 lt_cv_prog_compiler_static_works_GCJ=no
16944 save_LDFLAGS="$LDFLAGS"
16945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16948 # The linker can only warn and ignore the option if not recognized
16949 # So say no if there are warnings
16950 if test -s conftest.err; then
16951 # Append any errors to the config.log.
16952 cat conftest.err 1>&5
16953 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16955 if diff conftest.exp conftest.er2 >/dev/null; then
16956 lt_cv_prog_compiler_static_works_GCJ=yes
16959 lt_cv_prog_compiler_static_works_GCJ=yes
16963 LDFLAGS="$save_LDFLAGS"
16966 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16967 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16969 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16972 lt_prog_compiler_static_GCJ=
16978 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16979 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16980 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 lt_cv_prog_compiler_c_o_GCJ=no
16984 $RM -r conftest 2>/dev/null
16988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16990 lt_compiler_flag="-o out/conftest2.$ac_objext"
16991 # Insert the option either (1) after the last *FLAGS variable, or
16992 # (2) before a word containing "conftest.", or (3) at the end.
16993 # Note that $ac_compile itself does not contain backslashes and begins
16994 # with a dollar sign (not a hyphen), so the echo should work correctly.
16995 lt_compile=`echo "$ac_compile" | $SED \
16996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998 -e 's:$: $lt_compiler_flag:'`
16999 (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
17000 (eval "$lt_compile" 2>out/conftest.err)
17002 cat out/conftest.err >&5
17003 echo "$as_me:17003: \$? = $ac_status" >&5
17004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17006 # The compiler can only warn and ignore the option if not recognized
17007 # So say no if there are warnings
17008 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17011 lt_cv_prog_compiler_c_o_GCJ=yes
17016 # SGI C++ compiler will create directory out/ii_files/ for
17017 # template instantiation
17018 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17019 $RM out/* && rmdir out
17025 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17026 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17030 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17032 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17035 lt_cv_prog_compiler_c_o_GCJ=no
17036 $RM -r conftest 2>/dev/null
17040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17042 lt_compiler_flag="-o out/conftest2.$ac_objext"
17043 # Insert the option either (1) after the last *FLAGS variable, or
17044 # (2) before a word containing "conftest.", or (3) at the end.
17045 # Note that $ac_compile itself does not contain backslashes and begins
17046 # with a dollar sign (not a hyphen), so the echo should work correctly.
17047 lt_compile=`echo "$ac_compile" | $SED \
17048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17050 -e 's:$: $lt_compiler_flag:'`
17051 (eval echo "\"\$as_me:17051: $lt_compile\"" >&5)
17052 (eval "$lt_compile" 2>out/conftest.err)
17054 cat out/conftest.err >&5
17055 echo "$as_me:17055: \$? = $ac_status" >&5
17056 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17058 # The compiler can only warn and ignore the option if not recognized
17059 # So say no if there are warnings
17060 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17061 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17062 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17063 lt_cv_prog_compiler_c_o_GCJ=yes
17068 # SGI C++ compiler will create directory out/ii_files/ for
17069 # template instantiation
17070 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17071 $RM out/* && rmdir out
17077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17083 hard_links="nottested"
17084 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17085 # do not overwrite the value of need_locks provided by the user
17086 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17092 ln conftest.a conftest.b 2>&5 || hard_links=no
17093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17094 echo "$as_me:$LINENO: result: $hard_links" >&5
17095 echo "${ECHO_T}$hard_links" >&6
17096 if test "$hard_links" = no; then
17097 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17107 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17108 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17111 allow_undefined_flag_GCJ=
17112 always_export_symbols_GCJ=no
17114 archive_expsym_cmds_GCJ=
17115 compiler_needs_object_GCJ=no
17116 enable_shared_with_static_runtimes_GCJ=no
17117 export_dynamic_flag_spec_GCJ=
17118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17119 hardcode_automatic_GCJ=no
17120 hardcode_direct_GCJ=no
17121 hardcode_direct_absolute_GCJ=no
17122 hardcode_libdir_flag_spec_GCJ=
17123 hardcode_libdir_flag_spec_ld_GCJ=
17124 hardcode_libdir_separator_GCJ=
17125 hardcode_minus_L_GCJ=no
17126 hardcode_shlibpath_var_GCJ=unsupported
17127 inherit_rpath_GCJ=no
17128 link_all_deplibs_GCJ=unknown
17130 module_expsym_cmds_GCJ=
17131 old_archive_from_new_cmds_GCJ=
17132 old_archive_from_expsyms_cmds_GCJ=
17133 thread_safe_flag_spec_GCJ=
17134 whole_archive_flag_spec_GCJ=
17135 # include_expsyms should be a list of space-separated symbols to be *always*
17136 # included in the symbol list
17137 include_expsyms_GCJ=
17138 # exclude_expsyms can be an extended regexp of symbols to exclude
17139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17141 # as well as any symbol that contains `d'.
17142 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17144 # platforms (ab)use it in PIC code, but their linkers get confused if
17145 # the symbol is explicitly referenced. Since portable code cannot
17146 # rely on this symbol name, it's probably fine to never include it in
17147 # preloaded symbol tables.
17148 # Exclude shared library initialization/finalization symbols.
17149 extract_expsyms_cmds=
17152 cygwin* | mingw* | pw32* | cegcc*)
17153 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17154 # When not using gcc, we currently assume that we are using
17155 # Microsoft Visual C++.
17156 if test "$GCC" != yes; then
17161 # we just hope/assume this is gcc and not c89 (= MSVC++)
17170 if test "$with_gnu_ld" = yes; then
17171 # If archive_cmds runs LD, not CC, wlarc should be empty
17174 # Set some defaults for GNU ld with shared library support. These
17175 # are reset later if shared libraries are not supported. Putting them
17176 # here allows them to be overridden if necessary.
17177 runpath_var=LD_RUN_PATH
17178 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17179 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17180 # ancient GNU ld didn't support --whole-archive et. al.
17181 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17182 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17184 whole_archive_flag_spec_GCJ=
17186 supports_anon_versioning=no
17187 case `$LD -v 2>&1` in
17188 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17189 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17190 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17191 *\ 2.11.*) ;; # other 2.11 versions
17192 *) supports_anon_versioning=yes ;;
17195 # See if GNU ld supports shared libraries.
17198 # On AIX/PPC, the GNU linker is very broken
17199 if test "$host_cpu" != ia64; then
17203 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17204 *** to be unable to reliably create shared libraries on AIX.
17205 *** Therefore, libtool is disabling shared libraries support. If you
17206 *** really care for shared libraries, you may want to modify your PATH
17207 *** so that a non-GNU linker is found, and then restart.
17216 # see comment about AmigaOS4 .so support
17217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17218 archive_expsym_cmds_GCJ=''
17221 archive_cmds_GCJ='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17223 hardcode_minus_L_GCJ=yes
17229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17230 allow_undefined_flag_GCJ=unsupported
17231 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17232 # support --undefined. This deserves some investigation. FIXME
17233 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17239 cygwin* | mingw* | pw32* | cegcc*)
17240 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17241 # as there is no search path for DLLs.
17242 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17243 allow_undefined_flag_GCJ=unsupported
17244 always_export_symbols_GCJ=no
17245 enable_shared_with_static_runtimes_GCJ=yes
17246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17248 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17250 # If the export-symbols file already is a .def file (1st line
17251 # is EXPORTS), use it as is; otherwise, prepend...
17252 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17253 cp $export_symbols $output_objdir/$soname.def;
17255 echo EXPORTS > $output_objdir/$soname.def;
17256 cat $export_symbols >> $output_objdir/$soname.def;
17258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17265 hardcode_direct_GCJ=no
17266 hardcode_shlibpath_var_GCJ=no
17267 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17268 export_dynamic_flag_spec_GCJ='${wl}-E'
17269 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17270 # Instead, shared libraries are loaded at an image base (0x10000000 by
17271 # default) and relocated if they conflict, which is a slow very memory
17272 # consuming and fragmenting process. To avoid this, we pick a random,
17273 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17274 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17275 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17276 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17279 gnu* | linux* | tpf* | k*bsd*-gnu)
17281 if test "$host_os" = linux-dietlibc; then
17282 case $cc_basename in
17283 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17286 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17287 && test "$tmp_diet" = no
17290 tmp_sharedflag='-shared'
17291 case $cc_basename,$host_cpu in
17292 pgcc*) # Portland Group C compiler
17293 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17294 tmp_addflag=' $pic_flag'
17296 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17297 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17298 tmp_addflag=' $pic_flag -Mnomain' ;;
17299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17300 tmp_addflag=' -i_dynamic' ;;
17301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17302 tmp_addflag=' -i_dynamic -nofor_main' ;;
17303 ifc* | ifort*) # Intel Fortran compiler
17304 tmp_addflag=' -nofor_main' ;;
17305 lf95*) # Lahey Fortran 8.1
17306 whole_archive_flag_spec_GCJ=
17307 tmp_sharedflag='--shared' ;;
17308 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17309 tmp_sharedflag='-qmkshrobj'
17312 case `$CC -V 2>&1 | sed 5q` in
17313 *Sun\ C*) # Sun C 5.9
17314 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17315 compiler_needs_object_GCJ=yes
17316 tmp_sharedflag='-G' ;;
17317 *Sun\ F*) # Sun Fortran 8.3
17318 tmp_sharedflag='-G' ;;
17320 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17322 if test "x$supports_anon_versioning" = xyes; then
17323 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17325 echo "local: *; };" >> $output_objdir/$libname.ver~
17326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17329 case $cc_basename in
17331 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17332 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17333 hardcode_libdir_flag_spec_GCJ=
17334 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17335 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17336 if test "x$supports_anon_versioning" = xyes; then
17337 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17339 echo "local: *; };" >> $output_objdir/$libname.ver~
17340 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17350 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17351 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17354 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17355 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17360 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17365 *** create shared libraries on Solaris systems. Therefore, libtool
17366 *** is disabling shared libraries support. We urge you to upgrade GNU
17367 *** binutils to release 2.9.1 or newer. Another option is to modify
17368 *** your PATH or compiler configuration so that the native linker is
17369 *** used, and then restart.
17372 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17381 case `$LD -v 2>&1` in
17382 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17386 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17387 *** reliably create shared libraries on SCO systems. Therefore, libtool
17388 *** is disabling shared libraries support. We urge you to upgrade GNU
17389 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17390 *** your PATH or compiler configuration so that the native linker is
17391 *** used, and then restart.
17396 # For security reasons, it is highly recommended that you always
17397 # use absolute paths for naming shared libraries, and exclude the
17398 # DT_RUNPATH tag from executables and libraries. But doing so
17399 # requires that you compile everything twice, which is a pain.
17400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17401 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17402 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17403 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17412 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17414 hardcode_direct_GCJ=yes
17415 hardcode_shlibpath_var_GCJ=no
17419 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17420 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17421 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17428 if test "$ld_shlibs_GCJ" = no; then
17430 hardcode_libdir_flag_spec_GCJ=
17431 export_dynamic_flag_spec_GCJ=
17432 whole_archive_flag_spec_GCJ=
17435 # PORTME fill in a description of your system's linker (not GNU ld)
17438 allow_undefined_flag_GCJ=unsupported
17439 always_export_symbols_GCJ=yes
17440 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17441 # Note: this linker hardcodes the directories in LIBPATH if there
17442 # are no directories specified by -L.
17443 hardcode_minus_L_GCJ=yes
17444 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17445 # Neither direct hardcoding nor static linking is supported with a
17447 hardcode_direct_GCJ=unsupported
17452 if test "$host_cpu" = ia64; then
17453 # On IA64, the linker does run time linking by default, so we don't
17454 # have to do anything special.
17455 aix_use_runtimelinking=no
17456 exp_sym_flag='-Bexport'
17459 # If we're using GNU nm, then we don't want the "-C" option.
17460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17461 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17462 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17464 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17466 aix_use_runtimelinking=no
17468 # Test if we are trying to use run time linking or normal
17469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17470 # need to do runtime linking.
17471 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17472 for ld_flag in $LDFLAGS; do
17473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17474 aix_use_runtimelinking=yes
17481 exp_sym_flag='-bexport'
17482 no_entry_flag='-bnoentry'
17485 # When large executables or shared objects are built, AIX ld can
17486 # have problems creating the table of contents. If linking a library
17487 # or program results in "error TOC overflow" add -mminimal-toc to
17488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17491 archive_cmds_GCJ=''
17492 hardcode_direct_GCJ=yes
17493 hardcode_direct_absolute_GCJ=yes
17494 hardcode_libdir_separator_GCJ=':'
17495 link_all_deplibs_GCJ=yes
17496 file_list_spec_GCJ='${wl}-f,'
17498 if test "$GCC" = yes; then
17499 case $host_os in aix4.[012]|aix4.[012].*)
17500 # We only want to do this on AIX 4.2 and lower, the check
17501 # below for broken collect2 doesn't work under 4.3+
17502 collect2name=`${CC} -print-prog-name=collect2`
17503 if test -f "$collect2name" &&
17504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17506 # We have reworked collect2
17509 # We have old collect2
17510 hardcode_direct_GCJ=unsupported
17511 # It fails to find uninstalled libraries when the uninstalled
17512 # path is not listed in the libpath. Setting hardcode_minus_L
17513 # to unsupported forces relinking
17514 hardcode_minus_L_GCJ=yes
17515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17516 hardcode_libdir_separator_GCJ=
17520 shared_flag='-shared'
17521 if test "$aix_use_runtimelinking" = yes; then
17522 shared_flag="$shared_flag "'${wl}-G'
17526 if test "$host_cpu" = ia64; then
17527 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17528 # chokes on -Wl,-G. The following line is correct:
17531 if test "$aix_use_runtimelinking" = yes; then
17532 shared_flag='${wl}-G'
17534 shared_flag='${wl}-bM:SRE'
17539 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17540 # It seems that -bexpall does not export symbols beginning with
17541 # underscore (_), so it is better to generate a list of symbols to export.
17542 always_export_symbols_GCJ=yes
17543 if test "$aix_use_runtimelinking" = yes; then
17544 # Warning - without using the other runtime loading flags (-brtl),
17545 # -berok will link without error, but may produce a broken library.
17546 allow_undefined_flag_GCJ='-berok'
17547 # Determine the default libpath from the value encoded in an
17548 # empty executable.
17549 if test x$gcc_no_link = xyes; then
17550 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17551 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17552 { (exit 1); exit 1; }; }
17554 cat >conftest.$ac_ext <<_ACEOF
17557 cat confdefs.h >>conftest.$ac_ext
17558 cat >>conftest.$ac_ext <<_ACEOF
17559 /* end confdefs.h. */
17569 rm -f conftest.$ac_objext conftest$ac_exeext
17570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17571 (eval $ac_link) 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } &&
17578 { ac_try='test -z "$ac_c_werror_flag"
17579 || test ! -s conftest.err'
17580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; } &&
17585 { ac_try='test -s conftest$ac_exeext'
17586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17592 lt_aix_libpath_sed='
17593 /Import File Strings/,/^$/ {
17599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17600 # Check for a 64-bit object if we didn't find anything.
17601 if test -z "$aix_libpath"; then
17602 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17605 echo "$as_me: failed program was:" >&5
17606 sed 's/^/| /' conftest.$ac_ext >&5
17609 rm -f conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17613 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17614 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17616 if test "$host_cpu" = ia64; then
17617 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17618 allow_undefined_flag_GCJ="-z nodefs"
17619 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17621 # Determine the default libpath from the value encoded in an
17622 # empty executable.
17623 if test x$gcc_no_link = xyes; then
17624 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17625 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17626 { (exit 1); exit 1; }; }
17628 cat >conftest.$ac_ext <<_ACEOF
17631 cat confdefs.h >>conftest.$ac_ext
17632 cat >>conftest.$ac_ext <<_ACEOF
17633 /* end confdefs.h. */
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>conftest.er1
17647 grep -v '^ *+' conftest.er1 >conftest.err
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag"
17653 || test ! -s conftest.err'
17654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655 (eval $ac_try) 2>&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); }; } &&
17659 { ac_try='test -s conftest$ac_exeext'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17666 lt_aix_libpath_sed='
17667 /Import File Strings/,/^$/ {
17673 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17674 # Check for a 64-bit object if we didn't find anything.
17675 if test -z "$aix_libpath"; then
17676 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17683 rm -f conftest.err conftest.$ac_objext \
17684 conftest$ac_exeext conftest.$ac_ext
17685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17687 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17688 # Warning - without using the other run time loading flags,
17689 # -berok will link without error, but may produce a broken library.
17690 no_undefined_flag_GCJ=' ${wl}-bernotok'
17691 allow_undefined_flag_GCJ=' ${wl}-berok'
17692 # Exported symbols can be pulled into shared objects from archives
17693 whole_archive_flag_spec_GCJ='$convenience'
17694 archive_cmds_need_lc_GCJ=yes
17695 # This is similar to how AIX traditionally builds its shared libraries.
17696 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17704 # see comment about AmigaOS4 .so support
17705 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17706 archive_expsym_cmds_GCJ=''
17709 archive_cmds_GCJ='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17710 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17711 hardcode_minus_L_GCJ=yes
17717 export_dynamic_flag_spec_GCJ=-rdynamic
17720 cygwin* | mingw* | pw32* | cegcc*)
17721 # When not using gcc, we currently assume that we are using
17722 # Microsoft Visual C++.
17723 # hardcode_libdir_flag_spec is actually meaningless, as there is
17724 # no search path for DLLs.
17725 hardcode_libdir_flag_spec_GCJ=' '
17726 allow_undefined_flag_GCJ=unsupported
17727 # Tell ltmain to make .lib files, not .a files.
17729 # Tell ltmain to make .dll files, not .so files.
17731 # FIXME: Setting linknames here is a bad hack.
17732 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17733 # The linker will automatically build a .lib file if we build a DLL.
17734 old_archive_from_new_cmds_GCJ='true'
17735 # FIXME: Should let the user specify the lib program.
17736 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17737 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17738 enable_shared_with_static_runtimes_GCJ=yes
17741 darwin* | rhapsody*)
17744 archive_cmds_need_lc_GCJ=no
17745 hardcode_direct_GCJ=no
17746 hardcode_automatic_GCJ=yes
17747 hardcode_shlibpath_var_GCJ=unsupported
17748 whole_archive_flag_spec_GCJ=''
17749 link_all_deplibs_GCJ=yes
17750 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17751 case $cc_basename in
17752 ifort*) _lt_dar_can_shared=yes ;;
17753 *) _lt_dar_can_shared=$GCC ;;
17755 if test "$_lt_dar_can_shared" = "yes"; then
17756 output_verbose_link_cmd=echo
17757 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17758 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17759 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17760 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17771 hardcode_shlibpath_var_GCJ=no
17778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17779 # support. Future versions do this automatically, but an explicit c++rt0.o
17780 # does not break anything, and helps significantly (at the cost of a little
17783 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17785 hardcode_direct_GCJ=yes
17786 hardcode_shlibpath_var_GCJ=no
17789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17792 hardcode_direct_GCJ=yes
17793 hardcode_minus_L_GCJ=yes
17794 hardcode_shlibpath_var_GCJ=no
17797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17798 freebsd* | dragonfly*)
17799 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17800 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17801 hardcode_direct_GCJ=yes
17802 hardcode_shlibpath_var_GCJ=no
17806 if test "$GCC" = yes; then
17807 archive_cmds_GCJ='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17809 archive_cmds_GCJ='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17811 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17812 hardcode_libdir_separator_GCJ=:
17813 hardcode_direct_GCJ=yes
17815 # hardcode_minus_L: Not really in the search PATH,
17816 # but as the default location of the library.
17817 hardcode_minus_L_GCJ=yes
17818 export_dynamic_flag_spec_GCJ='${wl}-E'
17822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17823 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17825 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17827 if test "$with_gnu_ld" = no; then
17828 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17829 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17830 hardcode_libdir_separator_GCJ=:
17831 hardcode_direct_GCJ=yes
17832 hardcode_direct_absolute_GCJ=yes
17833 export_dynamic_flag_spec_GCJ='${wl}-E'
17834 # hardcode_minus_L: Not really in the search PATH,
17835 # but as the default location of the library.
17836 hardcode_minus_L_GCJ=yes
17841 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17844 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17850 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17856 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17859 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17862 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17866 if test "$with_gnu_ld" = no; then
17867 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868 hardcode_libdir_separator_GCJ=:
17872 hardcode_direct_GCJ=no
17873 hardcode_shlibpath_var_GCJ=no
17876 hardcode_direct_GCJ=yes
17877 hardcode_direct_absolute_GCJ=yes
17878 export_dynamic_flag_spec_GCJ='${wl}-E'
17880 # hardcode_minus_L: Not really in the search PATH,
17881 # but as the default location of the library.
17882 hardcode_minus_L_GCJ=yes
17888 irix5* | irix6* | nonstopux*)
17889 if test "$GCC" = yes; then
17890 archive_cmds_GCJ='$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'
17891 # Try to use the -exported_symbol ld option, if it does not
17892 # work, assume that -exports_file does not work either and
17893 # implicitly export all symbols.
17894 save_LDFLAGS="$LDFLAGS"
17895 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17896 if test x$gcc_no_link = xyes; then
17897 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17899 { (exit 1); exit 1; }; }
17901 cat >conftest.$ac_ext <<_ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 archive_expsym_cmds_GCJ='$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'
17929 echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17933 rm -f conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17935 LDFLAGS="$save_LDFLAGS"
17937 archive_cmds_GCJ='$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'
17938 archive_expsym_cmds_GCJ='$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'
17940 archive_cmds_need_lc_GCJ='no'
17941 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942 hardcode_libdir_separator_GCJ=:
17943 inherit_rpath_GCJ=yes
17944 link_all_deplibs_GCJ=yes
17948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17949 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17951 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17953 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17954 hardcode_direct_GCJ=yes
17955 hardcode_shlibpath_var_GCJ=no
17959 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960 hardcode_direct_GCJ=yes
17961 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17962 hardcode_libdir_separator_GCJ=:
17963 hardcode_shlibpath_var_GCJ=no
17970 if test -f /usr/libexec/ld.so; then
17971 hardcode_direct_GCJ=yes
17972 hardcode_shlibpath_var_GCJ=no
17973 hardcode_direct_absolute_GCJ=yes
17974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17975 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17976 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17977 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17978 export_dynamic_flag_spec_GCJ='${wl}-E'
17981 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17982 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17983 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17986 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17998 hardcode_minus_L_GCJ=yes
17999 allow_undefined_flag_GCJ=unsupported
18000 archive_cmds_GCJ='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18001 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18005 if test "$GCC" = yes; then
18006 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18007 archive_cmds_GCJ='$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'
18009 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18010 archive_cmds_GCJ='$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'
18012 archive_cmds_need_lc_GCJ='no'
18013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18014 hardcode_libdir_separator_GCJ=:
18017 osf4* | osf5*) # as osf3* with the addition of -msym flag
18018 if test "$GCC" = yes; then
18019 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18020 archive_cmds_GCJ='$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'
18021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18023 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18024 archive_cmds_GCJ='$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'
18025 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
18026 $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'
18028 # Both c and cxx compiler support -rpath directly
18029 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18031 archive_cmds_need_lc_GCJ='no'
18032 hardcode_libdir_separator_GCJ=:
18036 no_undefined_flag_GCJ=' -z defs'
18037 if test "$GCC" = yes; then
18039 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18040 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18041 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18043 case `$CC -V 2>&1` in
18046 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18047 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18048 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18052 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18054 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18059 hardcode_shlibpath_var_GCJ=no
18061 solaris2.[0-5] | solaris2.[0-5].*) ;;
18063 # The compiler driver will combine and reorder linker options,
18064 # but understands `-z linker_flag'. GCC discards it without `$wl',
18065 # but is careful enough not to reorder.
18066 # Supported since Solaris 2.6 (maybe 2.5.1?)
18067 if test "$GCC" = yes; then
18068 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18070 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18074 link_all_deplibs_GCJ=yes
18078 if test "x$host_vendor" = xsequent; then
18079 # Use $CC to link under sequent, because it throws in some extra .o
18080 # files that make .init and .fini sections work.
18081 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18083 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086 hardcode_direct_GCJ=yes
18087 hardcode_minus_L_GCJ=yes
18088 hardcode_shlibpath_var_GCJ=no
18092 case $host_vendor in
18094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095 hardcode_direct_GCJ=yes # is this really true???
18098 ## LD is ld it makes a PLAMLIB
18099 ## CC just makes a GrossModule.
18100 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18101 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18102 hardcode_direct_GCJ=no
18105 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18106 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18109 runpath_var='LD_RUN_PATH'
18110 hardcode_shlibpath_var_GCJ=no
18114 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18115 hardcode_shlibpath_var_GCJ=no
18116 export_dynamic_flag_spec_GCJ='-Bexport'
18120 if test -d /usr/nec; then
18121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18122 hardcode_shlibpath_var_GCJ=no
18123 runpath_var=LD_RUN_PATH
18124 hardcode_runpath_var=yes
18129 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18130 no_undefined_flag_GCJ='${wl}-z,text'
18131 archive_cmds_need_lc_GCJ=no
18132 hardcode_shlibpath_var_GCJ=no
18133 runpath_var='LD_RUN_PATH'
18135 if test "$GCC" = yes; then
18136 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18137 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18139 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18144 sysv5* | sco3.2v5* | sco5v6*)
18145 # Note: We can NOT use -z defs as we might desire, because we do not
18146 # link with -lc, and that would cause any symbols used from libc to
18147 # always be unresolved, which means just about no library would
18148 # ever link correctly. If we're not using GNU ld we use -z text
18149 # though, which does catch some bad symbols but isn't as heavy-handed
18151 no_undefined_flag_GCJ='${wl}-z,text'
18152 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18153 archive_cmds_need_lc_GCJ=no
18154 hardcode_shlibpath_var_GCJ=no
18155 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18156 hardcode_libdir_separator_GCJ=':'
18157 link_all_deplibs_GCJ=yes
18158 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18159 runpath_var='LD_RUN_PATH'
18161 if test "$GCC" = yes; then
18162 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18163 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18166 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18171 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18172 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18173 hardcode_shlibpath_var_GCJ=no
18181 if test x$host_vendor = xsni; then
18183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18184 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18190 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18191 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18192 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18194 with_gnu_ld_GCJ=$with_gnu_ld
18202 # Do we need to explicitly link libc?
18204 case "x$archive_cmds_need_lc_GCJ" in
18206 # Assume -lc should be added
18207 archive_cmds_need_lc_GCJ=yes
18209 if test "$enable_shared" = yes && test "$GCC" = yes; then
18210 case $archive_cmds_GCJ in
18212 # FIXME: we may have to deal with multi-command sequences.
18215 # Test whether the compiler implicitly links with -lc since on some
18216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18217 # to ld, don't add -lc before -lgcc.
18218 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18224 (eval $ac_compile) 2>&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } 2>conftest.err; then
18230 libobjs=conftest.$ac_objext
18232 wl=$lt_prog_compiler_wl_GCJ
18233 pic_flag=$lt_prog_compiler_pic_GCJ
18239 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18240 allow_undefined_flag_GCJ=
18241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18242 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }
18247 archive_cmds_need_lc_GCJ=no
18249 archive_cmds_need_lc_GCJ=yes
18251 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18253 cat conftest.err 1>&5
18256 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18257 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18327 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18329 hardcode_action_GCJ=
18330 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18331 test -n "$runpath_var_GCJ" ||
18332 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18334 # We can hardcode non-existent directories.
18335 if test "$hardcode_direct_GCJ" != no &&
18336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18337 # have to relink, otherwise we might link with an installed library
18338 # when we should be linking with a yet-to-be-installed one
18339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18340 test "$hardcode_minus_L_GCJ" != no; then
18341 # Linking always hardcodes the temporary library directory.
18342 hardcode_action_GCJ=relink
18344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18345 hardcode_action_GCJ=immediate
18348 # We cannot hardcode anything, or else we can only hardcode existing
18350 hardcode_action_GCJ=unsupported
18352 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18353 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18355 if test "$hardcode_action_GCJ" = relink ||
18356 test "$inherit_rpath_GCJ" = yes; then
18357 # Fast installation is not supported
18358 enable_fast_install=no
18359 elif test "$shlibpath_overrides_runpath" = yes ||
18360 test "$enable_shared" = no; then
18361 # Fast installation is not necessary
18362 enable_fast_install=needless
18373 compiler_GCJ=${GCJ-gcj}
18375 ac_cpp='$CPP $CPPFLAGS'
18376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18381 if test "x$CC" != xcc; then
18382 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18383 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18385 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18386 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18388 set dummy $CC; ac_cc=`echo $2 |
18389 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18390 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 cat >conftest.$ac_ext <<_ACEOF
18396 cat confdefs.h >>conftest.$ac_ext
18397 cat >>conftest.$ac_ext <<_ACEOF
18398 /* end confdefs.h. */
18408 # Make sure it works both with $CC and with simple cc.
18409 # We do the test twice because some compilers refuse to overwrite an
18410 # existing .o file with -o, though they will create one.
18411 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18412 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413 (eval $ac_try) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); };
18423 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18424 if test "x$CC" != xcc; then
18425 # Test first that cc exists at all.
18426 if { ac_try='cc -c conftest.$ac_ext >&5'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18433 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); };
18447 # cc exists but doesn't like -o.
18448 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18453 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18458 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18459 echo "$as_me:$LINENO: result: yes" >&5
18460 echo "${ECHO_T}yes" >&6
18462 echo "$as_me:$LINENO: result: no" >&5
18463 echo "${ECHO_T}no" >&6
18465 cat >>confdefs.h <<\_ACEOF
18466 #define NO_MINUS_C_MINUS_O 1
18471 # FIXME: we rely on the cache variable name because
18472 # there is no other way.
18474 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18475 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18476 # Losing compiler, so override with the script.
18477 # FIXME: It is wrong to rewrite CC.
18478 # But if we don't then we get into trouble of one sort or another.
18479 # A longer-term fix would be to have automake use am__CC in this case,
18480 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18481 CC="$am_aux_dir/compile $CC"
18487 subdirs="$subdirs classpath libltdl"
18490 # The -no-testsuite modules omit the test subdir.
18493 if test -d $srcdir/testsuite; then
18495 TESTSUBDIR_FALSE='#'
18497 TESTSUBDIR_TRUE='#'
18502 # Should the runtime set system properties by examining the
18503 # environment variable GCJ_PROPERTIES?
18504 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18505 if test "${enable_getenv_properties+set}" = set; then
18506 enableval="$enable_getenv_properties"
18510 # Whether GCJ_PROPERTIES is used depends on the target.
18511 if test -z "$enable_getenv_properties"; then
18512 enable_getenv_properties=${enable_getenv_properties_default-yes}
18514 if test "$enable_getenv_properties" = no; then
18516 cat >>confdefs.h <<\_ACEOF
18517 #define DISABLE_GETENV_PROPERTIES 1
18522 # Whether we should use arguments to main()
18523 if test -z "$enable_main_args"; then
18524 enable_main_args=${enable_main_args_default-yes}
18526 if test "$enable_main_args" = no; then
18528 cat >>confdefs.h <<\_ACEOF
18529 #define DISABLE_MAIN_ARGS 1
18535 # Should we use hashtable-based synchronization?
18536 # Currently works only for Linux X86/ia64
18537 # Typically faster and more space-efficient
18538 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18539 if test "${enable_hash_synchronization+set}" = set; then
18540 enableval="$enable_hash_synchronization"
18544 if test -z "$enable_hash_synchronization"; then
18545 enable_hash_synchronization=$enable_hash_synchronization_default
18553 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18554 if test "${with_ecj_jar+set}" = set; then
18555 withval="$with_ecj_jar"
18558 if test -f $multi_basedir/ecj.jar; then
18559 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18560 ECJ_JAR='$(jardir)/ecj.jar'
18561 install_ecj_jar=yes
18568 if test "$ECJ_JAR" != ""; then
18570 BUILD_ECJ1_FALSE='#'
18572 BUILD_ECJ1_TRUE='#'
18578 if test $install_ecj_jar = yes; then
18579 INSTALL_ECJ_JAR_TRUE=
18580 INSTALL_ECJ_JAR_FALSE='#'
18582 INSTALL_ECJ_JAR_TRUE='#'
18583 INSTALL_ECJ_JAR_FALSE=
18588 # Check whether --with-java-home or --without-java-home was given.
18589 if test "${with_java_home+set}" = set; then
18590 withval="$with_java_home"
18591 JAVA_HOME="${withval}"
18597 if test ! -z "$JAVA_HOME"; then
18598 JAVA_HOME_SET_TRUE=
18599 JAVA_HOME_SET_FALSE='#'
18601 JAVA_HOME_SET_TRUE='#'
18602 JAVA_HOME_SET_FALSE=
18607 suppress_libgcj_bc=no
18608 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18609 if test "${enable_libgcj_bc+set}" = set; then
18610 enableval="$enable_libgcj_bc"
18611 if test "$enable_libgcj_bc" = "no"; then
18612 suppress_libgcj_bc=yes
18617 if test "$suppress_libgcj_bc" = "yes"; then
18618 SUPPRESS_LIBGCJ_BC_TRUE=
18619 SUPPRESS_LIBGCJ_BC_FALSE='#'
18621 SUPPRESS_LIBGCJ_BC_TRUE='#'
18622 SUPPRESS_LIBGCJ_BC_FALSE=
18626 build_libgcj_reduced_reflection=no
18627 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18628 if test "${enable_reduced_reflection+set}" = set; then
18629 enableval="$enable_reduced_reflection"
18630 if test "$enable_reduced_reflection" = "yes"; then
18631 build_libgcj_reduced_reflection=yes
18636 if test "$build_libgcj_reduced_reflection" = "yes"; then
18637 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18638 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18640 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18641 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18645 # What is the native OS API for MinGW?
18647 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18648 if test "${with_win32_nlsapi+set}" = set; then
18649 withval="$with_win32_nlsapi"
18650 case "${withval}" in
18651 ansi) with_win32_nlsapi=ansi ;;
18652 unicows) with_win32_nlsapi=unicows ;;
18653 unicode) with_win32_nlsapi=unicode ;;
18654 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18655 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18656 { (exit 1); exit 1; }; } ;;
18659 with_win32_nlsapi=ansi
18662 case "${with_win32_nlsapi}" in
18665 cat >>confdefs.h <<\_ACEOF
18666 #define MINGW_LIBGCJ_UNICODE 1
18672 # configure.host sets slow_pthread_self if the synchronization code should
18673 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18674 if test "${slow_pthread_self}" = "yes"; then
18676 cat >>confdefs.h <<\_ACEOF
18677 #define SLOW_PTHREAD_SELF 1
18682 # Check for gc debugging. This option is handled both here and in the GC.
18683 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18684 if test "${enable_gc_debug+set}" = set; then
18685 enableval="$enable_gc_debug"
18686 if test "$enable_gc_debug" = "yes"; then
18688 cat >>confdefs.h <<\_ACEOF
18689 #define LIBGCJ_GC_DEBUG 1
18695 # See if the user has the interpreter included.
18696 # Check whether --enable-interpreter or --disable-interpreter was given.
18697 if test "${enable_interpreter+set}" = set; then
18698 enableval="$enable_interpreter"
18699 if test "$enable_interpreter" = yes; then
18700 # This can also be set in configure.host.
18701 libgcj_interpreter=yes
18702 elif test "$enable_interpreter" = no; then
18703 libgcj_interpreter=no
18707 if test "$libgcj_interpreter" = yes; then
18709 cat >>confdefs.h <<\_ACEOF
18710 #define INTERPRETER 1
18714 INTERPRETER="$libgcj_interpreter"
18718 if test "$libgcj_interpreter" = yes; then
18720 INTERPRETER_FALSE='#'
18722 INTERPRETER_TRUE='#'
18727 echo "$as_me:$LINENO: checking for exception model to use" >&5
18728 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18730 ac_cpp='$CXXCPP $CPPFLAGS'
18731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18735 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18736 if test "${enable_sjlj_exceptions+set}" = set; then
18737 enableval="$enable_sjlj_exceptions"
18740 cat > conftest.$ac_ext << EOF
18741 #line 18741 "configure"
18742 struct S { ~S(); };
18750 old_CXXFLAGS="$CXXFLAGS"
18752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18753 (eval $ac_compile) 2>&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); }; then
18757 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18758 enable_sjlj_exceptions=yes
18759 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18760 enable_sjlj_exceptions=no
18763 CXXFLAGS="$old_CXXFLAGS"
18766 if test x$enable_sjlj_exceptions = xyes; then
18768 cat >>confdefs.h <<\_ACEOF
18769 #define SJLJ_EXCEPTIONS 1
18772 ac_exception_model_name=sjlj
18773 elif test x$enable_sjlj_exceptions = xno; then
18774 ac_exception_model_name="call frame"
18776 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18777 echo "$as_me: error: unable to detect exception model" >&2;}
18778 { (exit 1); exit 1; }; }
18781 ac_cpp='$CPP $CPPFLAGS'
18782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18787 echo "${ECHO_T}$ac_exception_model_name" >&6
18789 # If we are non using SJLJ exceptions, and this host does not have support
18790 # for unwinding from a signal handler, enable checked dereferences and divides.
18791 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18792 CHECKREFSPEC=-fcheck-references
18793 DIVIDESPEC=-fuse-divide-subroutine
18797 # See if the user wants to disable java.net. This is the mildly
18798 # ugly way that we admit that target-side configuration sucks.
18799 # Check whether --enable-java-net or --disable-java-net was given.
18800 if test "${enable_java_net+set}" = set; then
18801 enableval="$enable_java_net"
18805 # Whether java.net is built by default can depend on the target.
18806 if test -z "$enable_java_net"; then
18807 enable_java_net=${enable_java_net_default-yes}
18809 if test "$enable_java_net" = no; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define DISABLE_JAVA_NET 1
18817 # See if the user wants to configure without libffi. Some
18818 # architectures don't support it, and default values are set in
18821 # Check whether --with-libffi or --without-libffi was given.
18822 if test "${with_libffi+set}" = set; then
18823 withval="$with_libffi"
18826 with_libffi=${with_libffi_default-yes}
18831 if test "$with_libffi" != no; then
18833 cat >>confdefs.h <<\_ACEOF
18834 #define USE_LIBFFI 1
18837 LIBFFI=../libffi/libffi_convenience.la
18838 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18843 # See if the user wants to disable JVMPI support.
18844 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18845 if test "${enable_jvmpi+set}" = set; then
18846 enableval="$enable_jvmpi"
18850 if test "$enable_jvmpi" != no; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define ENABLE_JVMPI 1
18858 # If the target is an eCos system, use the appropriate eCos
18860 # FIXME: this should not be a local option but a global target
18861 # system; at present there is no eCos target.
18862 TARGET_ECOS=${PROCESS-"no"}
18864 # Check whether --with-ecos or --without-ecos was given.
18865 if test "${with_ecos+set}" = set; then
18866 withval="$with_ecos"
18867 TARGET_ECOS="$with_ecos"
18871 case "$TARGET_ECOS" in
18872 no) case "$host" in
18878 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18879 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18880 LD_PROG=`$CC --print-prog-name=ld`
18881 LD_VERSION=`$LD_PROG --version`
18882 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18883 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18884 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18887 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18891 if test "x$LD_OK" != x; then
18892 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18893 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18895 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18896 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18897 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18898 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18900 cat >>confdefs.h <<\_ACEOF
18901 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18917 cat >>confdefs.h <<\_ACEOF
18925 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18928 cat >conftest.$ac_ext <<_ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h. */
18934 #include <stdint.h>
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938 $EGREP "uint32_t" >/dev/null 2>&1; then
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_INT32_DEFINED 1
18947 cat >conftest.$ac_ext <<_ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 #include <inttypes.h>
18956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18957 $EGREP "uint32_t" >/dev/null 2>&1; then
18959 cat >>confdefs.h <<\_ACEOF
18960 #define HAVE_INT32_DEFINED 1
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 #include <sys/types.h>
18975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18976 $EGREP "u_int32_t" >/dev/null 2>&1; then
18978 cat >>confdefs.h <<\_ACEOF
18979 #define HAVE_BSD_INT32_DEFINED 1
18985 cat >conftest.$ac_ext <<_ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18991 #include <sys/config.h>
18994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18995 $EGREP "u_int32_t" >/dev/null 2>&1; then
18997 cat >>confdefs.h <<\_ACEOF
18998 #define HAVE_BSD_INT32_DEFINED 1
19007 if test "$PLATFORM" = Win32; then
19008 USING_WIN32_PLATFORM_TRUE=
19009 USING_WIN32_PLATFORM_FALSE='#'
19011 USING_WIN32_PLATFORM_TRUE='#'
19012 USING_WIN32_PLATFORM_FALSE=
19017 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19018 USING_POSIX_PLATFORM_TRUE=
19019 USING_POSIX_PLATFORM_FALSE='#'
19021 USING_POSIX_PLATFORM_TRUE='#'
19022 USING_POSIX_PLATFORM_FALSE=
19027 *-darwin*) DARWIN_CRT=true ;;
19028 *) DARWIN_CRT=false ;;
19032 if $DARWIN_CRT; then
19033 USING_DARWIN_CRT_TRUE=
19034 USING_DARWIN_CRT_FALSE='#'
19036 USING_DARWIN_CRT_TRUE='#'
19037 USING_DARWIN_CRT_FALSE=
19041 # This may not be defined in a non-ANS conformant embedded system.
19042 # FIXME: Should these case a runtime exception in that case?
19043 cat >conftest.$ac_ext <<_ACEOF
19046 cat confdefs.h >>conftest.$ac_ext
19047 cat >>conftest.$ac_ext <<_ACEOF
19048 /* end confdefs.h. */
19052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19053 $EGREP "localtime" >/dev/null 2>&1; then
19055 cat >>confdefs.h <<\_ACEOF
19056 #define HAVE_LOCALTIME 1
19063 # Create the subdirectory for natFile.cc, or the attempt
19064 # to create the link will fail.
19065 test -d java || mkdir java
19066 test -d java/io || mkdir java/io
19067 test -d gnu || mkdir gnu
19068 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19071 # Likewise for natConcreteProcess.cc.
19072 test -d java/lang || mkdir java/lang
19073 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19076 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19077 test -d java/net || mkdir java/net
19078 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19080 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19083 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19084 test -d gnu/java || mkdir gnu/java
19085 test -d gnu/java/net || mkdir gnu/java/net
19086 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19088 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19091 # Likewise for natVMPipe.cc and natVMSelector.cc.
19092 test -d gnu/java/nio || mkdir gnu/java/nio
19093 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19095 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19098 # Likewise for natFileChannelImpl.cc
19099 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19100 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19105 SYSTEMSPEC="-lgdi32 -lws2_32"
19106 if test "${with_win32_nlsapi}" = "unicows"; then
19107 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19117 # Check whether --with-system-zlib or --without-system-zlib was given.
19118 if test "${with_system_zlib+set}" = set; then
19119 withval="$with_system_zlib"
19127 echo "$as_me:$LINENO: checking for X" >&5
19128 echo $ECHO_N "checking for X... $ECHO_C" >&6
19131 # Check whether --with-x or --without-x was given.
19132 if test "${with_x+set}" = set; then
19136 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19137 if test "x$with_x" = xno; then
19138 # The user explicitly disabled X.
19141 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19142 # Both variables are already set.
19145 if test "${ac_cv_have_x+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 # One or both of the vars are not set, and there is no cached value.
19149 ac_x_includes=no ac_x_libraries=no
19150 rm -fr conftest.dir
19151 if mkdir conftest.dir; then
19153 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19154 cat >Imakefile <<'_ACEOF'
19156 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19158 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19160 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19161 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19162 for ac_extension in a so sl; do
19163 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19164 test -f $ac_im_libdir/libX11.$ac_extension; then
19165 ac_im_usrlibdir=$ac_im_libdir; break
19168 # Screen out bogus values from the imake configuration. They are
19169 # bogus both because they are the default anyway, and because
19170 # using them would break gcc on systems where it needs fixed includes.
19171 case $ac_im_incroot in
19173 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19175 case $ac_im_usrlibdir in
19176 /usr/lib | /lib) ;;
19177 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19181 rm -fr conftest.dir
19184 # Standard set of common directories for X headers.
19185 # Check X11 before X11Rn because it is often a symlink to the current release.
19197 /usr/local/X11/include
19198 /usr/local/X11R6/include
19199 /usr/local/X11R5/include
19200 /usr/local/X11R4/include
19202 /usr/local/include/X11
19203 /usr/local/include/X11R6
19204 /usr/local/include/X11R5
19205 /usr/local/include/X11R4
19209 /usr/XFree86/include/X11
19213 /usr/unsupported/include
19214 /usr/athena/include
19215 /usr/local/x11r5/include
19216 /usr/lpp/Xamples/include
19218 /usr/openwin/include
19219 /usr/openwin/share/include'
19221 if test "$ac_x_includes" = no; then
19222 # Guess where to find include files, by looking for Intrinsic.h.
19223 # First, try using that file with no special directory specified.
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 #include <X11/Intrinsic.h>
19232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } >/dev/null; then
19240 if test -s conftest.err; then
19241 ac_cpp_err=$ac_c_preproc_warn_flag
19242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19249 if test -z "$ac_cpp_err"; then
19250 # We can compile using X headers with no special include directory.
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 for ac_dir in $ac_x_header_dirs; do
19257 if test -r "$ac_dir/X11/Intrinsic.h"; then
19258 ac_x_includes=$ac_dir
19263 rm -f conftest.err conftest.$ac_ext
19264 fi # $ac_x_includes = no
19266 if test "$ac_x_libraries" = no; then
19267 # Check for the libraries.
19268 # See if we find them without any special options.
19269 # Don't add to $LIBS permanently.
19272 if test x$gcc_no_link = xyes; then
19273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19275 { (exit 1); exit 1; }; }
19277 cat >conftest.$ac_ext <<_ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19283 #include <X11/Intrinsic.h>
19292 rm -f conftest.$ac_objext conftest$ac_exeext
19293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19294 (eval $ac_link) 2>conftest.er1
19296 grep -v '^ *+' conftest.er1 >conftest.err
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } &&
19301 { ac_try='test -z "$ac_c_werror_flag"
19302 || test ! -s conftest.err'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; } &&
19308 { ac_try='test -s conftest$ac_exeext'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; }; then
19315 # We can link X programs with no special library path.
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19322 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19324 # Don't even attempt the hair of trying to link an X program!
19325 for ac_extension in a so sl; do
19326 if test -r $ac_dir/libXt.$ac_extension; then
19327 ac_x_libraries=$ac_dir
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 fi # $ac_x_libraries = no
19337 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19338 # Didn't find X anywhere. Cache the known absence of X.
19339 ac_cv_have_x="have_x=no"
19341 # Record where we found X for the cache.
19342 ac_cv_have_x="have_x=yes \
19343 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19348 eval "$ac_cv_have_x"
19351 if test "$have_x" != yes; then
19352 echo "$as_me:$LINENO: result: $have_x" >&5
19353 echo "${ECHO_T}$have_x" >&6
19356 # If each of the values was on the command line, it overrides each guess.
19357 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19358 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19359 # Update the cache value to reflect the command line values.
19360 ac_cv_have_x="have_x=yes \
19361 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19362 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19363 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19366 if test "$no_x" = yes; then
19367 # Not all programs may use this symbol, but it does not hurt to define it.
19369 cat >>confdefs.h <<\_ACEOF
19370 #define X_DISPLAY_MISSING 1
19373 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19375 if test -n "$x_includes"; then
19376 X_CFLAGS="$X_CFLAGS -I$x_includes"
19379 # It would also be nice to do this for all -L options, not just this one.
19380 if test -n "$x_libraries"; then
19381 X_LIBS="$X_LIBS -L$x_libraries"
19382 # For Solaris; some versions of Sun CC require a space after -R and
19383 # others require no space. Words are not sufficient . . . .
19384 case `(uname -sr) 2>/dev/null` in
19386 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19387 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19388 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19389 if test x$gcc_no_link = xyes; then
19390 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19392 { (exit 1); exit 1; }; }
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19411 (eval $ac_link) 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
19418 { ac_try='test -z "$ac_c_werror_flag"
19419 || test ! -s conftest.err'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest$ac_exeext'
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19438 rm -f conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
19440 if test $ac_R_nospace = yes; then
19441 echo "$as_me:$LINENO: result: no" >&5
19442 echo "${ECHO_T}no" >&6
19443 X_LIBS="$X_LIBS -R$x_libraries"
19445 LIBS="$ac_xsave_LIBS -R $x_libraries"
19446 if test x$gcc_no_link = xyes; then
19447 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19449 { (exit 1); exit 1; }; }
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468 (eval $ac_link) 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
19475 { ac_try='test -z "$ac_c_werror_flag"
19476 || test ! -s conftest.err'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; } &&
19482 { ac_try='test -s conftest$ac_exeext'
19483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484 (eval $ac_try) 2>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); }; }; then
19490 echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19495 rm -f conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19497 if test $ac_R_space = yes; then
19498 echo "$as_me:$LINENO: result: yes" >&5
19499 echo "${ECHO_T}yes" >&6
19500 X_LIBS="$X_LIBS -R $x_libraries"
19502 echo "$as_me:$LINENO: result: neither works" >&5
19503 echo "${ECHO_T}neither works" >&6
19506 LIBS=$ac_xsave_LIBS
19510 # Check for system-dependent libraries X programs must link with.
19511 # Do this before checking for the system-independent R6 libraries
19512 # (-lICE), since we may need -lsocket or whatever for X linking.
19514 if test "$ISC" = yes; then
19515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19517 # Martyn Johnson says this is needed for Ultrix, if the X
19518 # libraries were built with DECnet support. And Karl Berry says
19519 # the Alpha needs dnet_stub (dnet does not exist).
19520 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19521 if test x$gcc_no_link = xyes; then
19522 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19524 { (exit 1); exit 1; }; }
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19539 char XOpenDisplay ();
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19576 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19577 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19580 ac_check_lib_save_LIBS=$LIBS
19581 LIBS="-ldnet $LIBS"
19582 if test x$gcc_no_link = xyes; then
19583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19585 { (exit 1); exit 1; }; }
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 /* Override any gcc2 internal prototype to avoid an error. */
19598 /* We use char because int might match the return type of a gcc2
19599 builtin and then its argument prototype would still apply. */
19609 rm -f conftest.$ac_objext conftest$ac_exeext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19611 (eval $ac_link) 2>conftest.er1
19613 grep -v '^ *+' conftest.er1 >conftest.err
19615 cat conftest.err >&5
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
19618 { ac_try='test -z "$ac_c_werror_flag"
19619 || test ! -s conftest.err'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest$ac_exeext'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_lib_dnet_dnet_ntoa=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_lib_dnet_dnet_ntoa=no
19638 rm -f conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19642 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19643 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19644 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19650 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19651 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-ldnet_stub $LIBS"
19656 if test x$gcc_no_link = xyes; then
19657 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19658 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19659 { (exit 1); exit 1; }; }
19661 cat >conftest.$ac_ext <<_ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19668 /* Override any gcc2 internal prototype to avoid an error. */
19672 /* We use char because int might match the return type of a gcc2
19673 builtin and then its argument prototype would still apply. */
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19685 (eval $ac_link) 2>conftest.er1
19687 grep -v '^ *+' conftest.er1 >conftest.err
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
19692 { ac_try='test -z "$ac_c_werror_flag"
19693 || test ! -s conftest.err'
19694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19695 (eval $ac_try) 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest$ac_exeext'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; }; then
19705 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19710 ac_cv_lib_dnet_stub_dnet_ntoa=no
19712 rm -f conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19716 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19717 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19718 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19719 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19724 rm -f conftest.err conftest.$ac_objext \
19725 conftest$ac_exeext conftest.$ac_ext
19726 LIBS="$ac_xsave_LIBS"
19728 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19729 # to get the SysV transport functions.
19730 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19732 # The nsl library prevents programs from opening the X display
19733 # on Irix 5.2, according to T.E. Dickey.
19734 # The functions gethostbyname, getservbyname, and inet_addr are
19735 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19736 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19737 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19738 if test "${ac_cv_func_gethostbyname+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 if test x$gcc_no_link = xyes; then
19742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19744 { (exit 1); exit 1; }; }
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19754 #define gethostbyname innocuous_gethostbyname
19756 /* System header to define __stub macros and hopefully few prototypes,
19757 which can conflict with char gethostbyname (); below.
19758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19759 <limits.h> exists even on freestanding compilers. */
19762 # include <limits.h>
19764 # include <assert.h>
19767 #undef gethostbyname
19769 /* Override any gcc2 internal prototype to avoid an error. */
19774 /* We use char because int might match the return type of a gcc2
19775 builtin and then its argument prototype would still apply. */
19776 char gethostbyname ();
19777 /* The GNU C library defines this for functions which it implements
19778 to always fail with ENOSYS. Some functions are actually named
19779 something starting with __ and the normal name is an alias. */
19780 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19783 char (*f) () = gethostbyname;
19792 return f != gethostbyname;
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19799 (eval $ac_link) 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest$ac_exeext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19819 ac_cv_func_gethostbyname=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_cv_func_gethostbyname=no
19826 rm -f conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19829 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19830 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19832 if test $ac_cv_func_gethostbyname = no; then
19833 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19834 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19835 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 ac_check_lib_save_LIBS=$LIBS
19840 if test x$gcc_no_link = xyes; then
19841 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19843 { (exit 1); exit 1; }; }
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19852 /* Override any gcc2 internal prototype to avoid an error. */
19856 /* We use char because int might match the return type of a gcc2
19857 builtin and then its argument prototype would still apply. */
19858 char gethostbyname ();
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag"
19877 || test ! -s conftest.err'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest$ac_exeext'
19884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 ac_cv_lib_nsl_gethostbyname=yes
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_cv_lib_nsl_gethostbyname=no
19896 rm -f conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19900 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19901 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19902 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19906 if test $ac_cv_lib_nsl_gethostbyname = no; then
19907 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19908 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19909 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_check_lib_save_LIBS=$LIBS
19914 if test x$gcc_no_link = xyes; then
19915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19917 { (exit 1); exit 1; }; }
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 /* Override any gcc2 internal prototype to avoid an error. */
19930 /* We use char because int might match the return type of a gcc2
19931 builtin and then its argument prototype would still apply. */
19932 char gethostbyname ();
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943 (eval $ac_link) 2>conftest.er1
19945 grep -v '^ *+' conftest.er1 >conftest.err
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } &&
19950 { ac_try='test -z "$ac_c_werror_flag"
19951 || test ! -s conftest.err'
19952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953 (eval $ac_try) 2>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); }; } &&
19957 { ac_try='test -s conftest$ac_exeext'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; }; then
19963 ac_cv_lib_bsd_gethostbyname=yes
19965 echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19968 ac_cv_lib_bsd_gethostbyname=no
19970 rm -f conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19972 LIBS=$ac_check_lib_save_LIBS
19974 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19975 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19976 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19983 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19984 # socket/setsockopt and other routines are undefined under SCO ODT
19985 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19986 # on later versions), says Simon Leinen: it contains gethostby*
19987 # variants that don't use the name server (or something). -lsocket
19988 # must be given before -lnsl if both are needed. We assume that
19989 # if connect needs -lnsl, so does gethostbyname.
19990 echo "$as_me:$LINENO: checking for connect" >&5
19991 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19992 if test "${ac_cv_func_connect+set}" = set; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19995 if test x$gcc_no_link = xyes; then
19996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19998 { (exit 1); exit 1; }; }
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20008 #define connect innocuous_connect
20010 /* System header to define __stub macros and hopefully few prototypes,
20011 which can conflict with char connect (); below.
20012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20013 <limits.h> exists even on freestanding compilers. */
20016 # include <limits.h>
20018 # include <assert.h>
20023 /* Override any gcc2 internal prototype to avoid an error. */
20028 /* We use char because int might match the return type of a gcc2
20029 builtin and then its argument prototype would still apply. */
20031 /* The GNU C library defines this for functions which it implements
20032 to always fail with ENOSYS. Some functions are actually named
20033 something starting with __ and the normal name is an alias. */
20034 #if defined (__stub_connect) || defined (__stub___connect)
20037 char (*f) () = connect;
20046 return f != connect;
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20053 (eval $ac_link) 2>conftest.er1
20055 grep -v '^ *+' conftest.er1 >conftest.err
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
20060 { ac_try='test -z "$ac_c_werror_flag"
20061 || test ! -s conftest.err'
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; } &&
20067 { ac_try='test -s conftest$ac_exeext'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 ac_cv_func_connect=yes
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.$ac_ext >&5
20078 ac_cv_func_connect=no
20080 rm -f conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20083 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20084 echo "${ECHO_T}$ac_cv_func_connect" >&6
20086 if test $ac_cv_func_connect = no; then
20087 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20088 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20089 if test "${ac_cv_lib_socket_connect+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 ac_check_lib_save_LIBS=$LIBS
20093 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20094 if test x$gcc_no_link = xyes; then
20095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20097 { (exit 1); exit 1; }; }
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20106 /* Override any gcc2 internal prototype to avoid an error. */
20110 /* We use char because int might match the return type of a gcc2
20111 builtin and then its argument prototype would still apply. */
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20123 (eval $ac_link) 2>conftest.er1
20125 grep -v '^ *+' conftest.er1 >conftest.err
20127 cat conftest.err >&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_lib_socket_connect=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_lib_socket_connect=no
20150 rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
20152 LIBS=$ac_check_lib_save_LIBS
20154 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20155 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20156 if test $ac_cv_lib_socket_connect = yes; then
20157 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20162 # Guillermo Gomez says -lposix is necessary on A/UX.
20163 echo "$as_me:$LINENO: checking for remove" >&5
20164 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20165 if test "${ac_cv_func_remove+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 if test x$gcc_no_link = xyes; then
20169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20171 { (exit 1); exit 1; }; }
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20181 #define remove innocuous_remove
20183 /* System header to define __stub macros and hopefully few prototypes,
20184 which can conflict with char remove (); below.
20185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20186 <limits.h> exists even on freestanding compilers. */
20189 # include <limits.h>
20191 # include <assert.h>
20196 /* Override any gcc2 internal prototype to avoid an error. */
20201 /* We use char because int might match the return type of a gcc2
20202 builtin and then its argument prototype would still apply. */
20204 /* The GNU C library defines this for functions which it implements
20205 to always fail with ENOSYS. Some functions are actually named
20206 something starting with __ and the normal name is an alias. */
20207 #if defined (__stub_remove) || defined (__stub___remove)
20210 char (*f) () = remove;
20219 return f != remove;
20224 rm -f conftest.$ac_objext conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226 (eval $ac_link) 2>conftest.er1
20228 grep -v '^ *+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_func_remove=yes
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20251 ac_cv_func_remove=no
20253 rm -f conftest.err conftest.$ac_objext \
20254 conftest$ac_exeext conftest.$ac_ext
20256 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20257 echo "${ECHO_T}$ac_cv_func_remove" >&6
20259 if test $ac_cv_func_remove = no; then
20260 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20262 if test "${ac_cv_lib_posix_remove+set}" = set; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 ac_check_lib_save_LIBS=$LIBS
20266 LIBS="-lposix $LIBS"
20267 if test x$gcc_no_link = xyes; then
20268 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20269 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20270 { (exit 1); exit 1; }; }
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20279 /* Override any gcc2 internal prototype to avoid an error. */
20283 /* We use char because int might match the return type of a gcc2
20284 builtin and then its argument prototype would still apply. */
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>conftest.er1
20298 grep -v '^ *+' conftest.er1 >conftest.err
20300 cat conftest.err >&5
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); } &&
20303 { ac_try='test -z "$ac_c_werror_flag"
20304 || test ! -s conftest.err'
20305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); }; } &&
20310 { ac_try='test -s conftest$ac_exeext'
20311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20312 (eval $ac_try) 2>&5
20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315 (exit $ac_status); }; }; then
20316 ac_cv_lib_posix_remove=yes
20318 echo "$as_me: failed program was:" >&5
20319 sed 's/^/| /' conftest.$ac_ext >&5
20321 ac_cv_lib_posix_remove=no
20323 rm -f conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20328 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20329 if test $ac_cv_lib_posix_remove = yes; then
20330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20335 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20336 echo "$as_me:$LINENO: checking for shmat" >&5
20337 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20338 if test "${ac_cv_func_shmat+set}" = set; then
20339 echo $ECHO_N "(cached) $ECHO_C" >&6
20341 if test x$gcc_no_link = xyes; then
20342 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20344 { (exit 1); exit 1; }; }
20346 cat >conftest.$ac_ext <<_ACEOF
20349 cat confdefs.h >>conftest.$ac_ext
20350 cat >>conftest.$ac_ext <<_ACEOF
20351 /* end confdefs.h. */
20352 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20354 #define shmat innocuous_shmat
20356 /* System header to define __stub macros and hopefully few prototypes,
20357 which can conflict with char shmat (); below.
20358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20359 <limits.h> exists even on freestanding compilers. */
20362 # include <limits.h>
20364 # include <assert.h>
20369 /* Override any gcc2 internal prototype to avoid an error. */
20374 /* We use char because int might match the return type of a gcc2
20375 builtin and then its argument prototype would still apply. */
20377 /* The GNU C library defines this for functions which it implements
20378 to always fail with ENOSYS. Some functions are actually named
20379 something starting with __ and the normal name is an alias. */
20380 #if defined (__stub_shmat) || defined (__stub___shmat)
20383 char (*f) () = shmat;
20397 rm -f conftest.$ac_objext conftest$ac_exeext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20399 (eval $ac_link) 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
20406 { ac_try='test -z "$ac_c_werror_flag"
20407 || test ! -s conftest.err'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest$ac_exeext'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; }; then
20419 ac_cv_func_shmat=yes
20421 echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20424 ac_cv_func_shmat=no
20426 rm -f conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
20429 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20430 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20432 if test $ac_cv_func_shmat = no; then
20433 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20434 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20435 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20438 ac_check_lib_save_LIBS=$LIBS
20440 if test x$gcc_no_link = xyes; then
20441 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20443 { (exit 1); exit 1; }; }
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20452 /* Override any gcc2 internal prototype to avoid an error. */
20456 /* We use char because int might match the return type of a gcc2
20457 builtin and then its argument prototype would still apply. */
20467 rm -f conftest.$ac_objext conftest$ac_exeext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20469 (eval $ac_link) 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag"
20477 || test ! -s conftest.err'
20478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; } &&
20483 { ac_try='test -s conftest$ac_exeext'
20484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485 (eval $ac_try) 2>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); }; }; then
20489 ac_cv_lib_ipc_shmat=yes
20491 echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_lib_ipc_shmat=no
20496 rm -f conftest.err conftest.$ac_objext \
20497 conftest$ac_exeext conftest.$ac_ext
20498 LIBS=$ac_check_lib_save_LIBS
20500 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20501 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20502 if test $ac_cv_lib_ipc_shmat = yes; then
20503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20509 # Check for libraries that X11R6 Xt/Xaw programs need.
20510 ac_save_LDFLAGS=$LDFLAGS
20511 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20512 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20513 # check for ICE first), but we must link in the order -lSM -lICE or
20514 # we get undefined symbols. So assume we have SM if we have ICE.
20515 # These have to be linked with before -lX11, unlike the other
20516 # libraries we check for below, so use a different variable.
20517 # John Interrante, Karl Berry
20518 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20519 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20520 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20523 ac_check_lib_save_LIBS=$LIBS
20524 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20525 if test x$gcc_no_link = xyes; then
20526 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20528 { (exit 1); exit 1; }; }
20530 cat >conftest.$ac_ext <<_ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20537 /* Override any gcc2 internal prototype to avoid an error. */
20541 /* We use char because int might match the return type of a gcc2
20542 builtin and then its argument prototype would still apply. */
20543 char IceConnectionNumber ();
20547 IceConnectionNumber ();
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20554 (eval $ac_link) 2>conftest.er1
20556 grep -v '^ *+' conftest.er1 >conftest.err
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest$ac_exeext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_lib_ICE_IceConnectionNumber=yes
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ac_cv_lib_ICE_IceConnectionNumber=no
20581 rm -f conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20583 LIBS=$ac_check_lib_save_LIBS
20585 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20586 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20587 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20588 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20591 LDFLAGS=$ac_save_LDFLAGS
20596 # FIXME: this should be _libs on some hosts.
20599 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20602 # extra LD Flags which are required for targets
20605 # For now we have to disable it on darwin[8-9] because it slows down
20606 # the linking phase. A possible bug in ld?
20607 # on Darwin -single_module speeds up loading of the dynamic libraries.
20608 extra_ldflags_libjava=-Wl,-single_module
20611 extra_gij_ldflags=-Wl,-allow_stack_execute
20614 # Some of the ARM unwinder code is actually in libstdc++. We
20615 # could in principle replicate it in libgcj, but it's better to
20616 # have a dependency on libstdc++.
20617 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20618 LIBSTDCXXSPEC=-lstdc++
20619 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20629 # Allow the GC to be disabled. Can be useful when debugging.
20630 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20631 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20632 # Check whether --enable-java-gc or --disable-java-gc was given.
20633 if test "${enable_java_gc+set}" = set; then
20634 enableval="$enable_java_gc"
20647 echo "$as_me:$LINENO: result: boehm" >&5
20648 echo "${ECHO_T}boehm" >&6
20649 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20650 JC1GCSPEC='-fuse-boehm-gc'
20651 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20652 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20655 # The POSIX thread support needs to know this.
20657 cat >>confdefs.h <<\_ACEOF
20658 #define HAVE_BOEHM_GC 1
20663 echo "$as_me:$LINENO: result: none" >&5
20664 echo "${ECHO_T}none" >&6
20668 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20669 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20670 { (exit 1); exit 1; }; }
20679 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20683 if test "$GC" = boehm; then
20684 USING_BOEHMGC_TRUE=
20685 USING_BOEHMGC_FALSE='#'
20687 USING_BOEHMGC_TRUE='#'
20688 USING_BOEHMGC_FALSE=
20693 if test "$GC" = no; then
20695 USING_NOGC_FALSE='#'
20697 USING_NOGC_TRUE='#'
20703 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20704 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20705 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20706 echo "$as_me:$LINENO: result: $THREADS" >&5
20707 echo "${ECHO_T}$THREADS" >&6
20710 no | none | single)
20713 aix | posix | posix95 | pthreads)
20718 cat >>confdefs.h <<\_ACEOF
20719 #define LINUX_THREADS 1
20727 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20728 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20729 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20730 { (exit 1); exit 1; }; }
20733 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20734 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20735 { (exit 1); exit 1; }; }
20746 THREADSTARTFILESPEC=
20751 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20753 *-*-freebsd[1234]*)
20754 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20755 # merely adds pthread_* functions) but it does have a -pthread switch
20756 # which is required at link-time to select -lc_r *instead* of -lc.
20757 THREADLDFLAGS=-pthread
20758 # Don't set THREADSPEC here as might be expected since -pthread is
20759 # not processed when found within a spec file, it must come from
20760 # the command line. For now, the user must provide the -pthread
20761 # switch to link code compiled with gcj. In future, consider adding
20762 # support for weak references to pthread_* functions ala gthr.h API.
20763 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20766 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20767 # systems which support threads and -lpthread.
20768 THREADLDFLAGS=-pthread
20769 THREADSPEC=-lpthread
20771 alpha*-dec-osf* | hppa*-hp-hpux*)
20772 THREADCXXFLAGS=-pthread
20773 # boehm-gc needs some functions from librt, so link that too.
20774 THREADLIBS='-lpthread -lrt'
20775 THREADSPEC='-lpthread -lrt'
20778 THREADLIBS=-lpthread
20779 THREADSPEC=-lpthread
20782 THREADH=posix-threads.h
20783 # MIT pthreads doesn't seem to have the mutexattr functions.
20784 # But for now we don't check for it. We just assume you aren't
20785 # using MIT pthreads.
20787 cat >>confdefs.h <<\_ACEOF
20788 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20792 # If we're using the Boehm GC, then we happen to know that it
20793 # defines _REENTRANT, so we don't bother. Eww.
20794 if test "$GC" != boehm; then
20796 cat >>confdefs.h <<\_ACEOF
20797 #define _REENTRANT 1
20802 cat >>confdefs.h <<\_ACEOF
20803 #define _POSIX_PTHREAD_SEMANTICS 1
20809 THREADH=win32-threads.h
20810 THREADCXXFLAGS=-mthreads
20811 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20812 # But we do not want the executables created to be dependent on
20813 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20814 # exception handling contexts. The following kludge achieves this effect
20815 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20816 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20817 # A workaround is to explicitly use -mthreads while linking Java programs.
20818 # See PR libgcj/28263.
20820 # FIXME: In Java we are able to detect thread death at the end of
20821 # Thread.run() so we should be able to clean up the exception handling
20822 # contexts ourselves.
20823 THREADSTARTFILESPEC='crtmt%O%s'
20827 THREADH=no-threads.h
20830 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20841 if test "$THREADS" = posix; then
20842 USING_POSIX_THREADS_TRUE=
20843 USING_POSIX_THREADS_FALSE='#'
20845 USING_POSIX_THREADS_TRUE='#'
20846 USING_POSIX_THREADS_FALSE=
20851 if test "$THREADS" = win32; then
20852 USING_WIN32_THREADS_TRUE=
20853 USING_WIN32_THREADS_FALSE='#'
20855 USING_WIN32_THREADS_TRUE='#'
20856 USING_WIN32_THREADS_FALSE=
20861 if test "$THREADS" = none; then
20862 USING_NO_THREADS_TRUE=
20863 USING_NO_THREADS_FALSE='#'
20865 USING_NO_THREADS_TRUE='#'
20866 USING_NO_THREADS_FALSE=
20871 if test "$use_libgcj_bc" = yes; then
20872 USE_LIBGCJ_BC_TRUE=
20873 USE_LIBGCJ_BC_FALSE='#'
20875 USE_LIBGCJ_BC_TRUE='#'
20876 USE_LIBGCJ_BC_FALSE=
20880 if test -d sysdep; then true; else mkdir sysdep; fi
20881 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20883 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20885 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20888 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20889 if test "$use_libgcj_bc" = yes; then
20890 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20895 # Hash synchronization is only useful with posix threads right now.
20896 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20897 HASH_SYNC_SPEC=-fhash-synchronization
20899 cat >>confdefs.h <<\_ACEOF
20900 #define JV_HASH_SYNCHRONIZATION 1
20908 if test "$GCC" = yes; then
20910 USING_GCC_FALSE='#'
20917 # We're in the tree with gcc, and need to include some of its headers.
20918 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20920 if test "x${with_newlib}" = "xyes"; then
20921 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20922 # may not work correctly, because the compiler may not be able to
20923 # link executables.
20925 # We assume newlib. This lets us hard-code the functions we know
20928 cat >>confdefs.h <<\_ACEOF
20929 #define HAVE_MEMMOVE 1
20933 cat >>confdefs.h <<\_ACEOF
20934 #define HAVE_MEMCPY 1
20938 cat >>confdefs.h <<\_ACEOF
20939 #define HAVE_TIME 1
20943 cat >>confdefs.h <<\_ACEOF
20944 #define HAVE_GMTIME_R 1
20948 cat >>confdefs.h <<\_ACEOF
20949 #define HAVE_LOCALTIME_R 1
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_USLEEP_DECL 1
20957 # This is only for POSIX threads.
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20964 # Assume we do not have getuid and friends.
20966 cat >>confdefs.h <<\_ACEOF
20967 #define NO_GETUID 1
21002 for ac_func in strerror_r select fstat open fsync sleep opendir \
21003 localtime_r getpwuid_r getcwd \
21004 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
21005 nl_langinfo setlocale \
21006 inet_pton uname inet_ntoa \
21007 getrlimit sigaction ftruncate mmap \
21010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21011 echo "$as_me:$LINENO: checking for $ac_func" >&5
21012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_var+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 if test x$gcc_no_link = xyes; then
21017 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21019 { (exit 1); exit 1; }; }
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21029 #define $ac_func innocuous_$ac_func
21031 /* System header to define __stub macros and hopefully few prototypes,
21032 which can conflict with char $ac_func (); below.
21033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21034 <limits.h> exists even on freestanding compilers. */
21037 # include <limits.h>
21039 # include <assert.h>
21044 /* Override any gcc2 internal prototype to avoid an error. */
21049 /* We use char because int might match the return type of a gcc2
21050 builtin and then its argument prototype would still apply. */
21052 /* The GNU C library defines this for functions which it implements
21053 to always fail with ENOSYS. Some functions are actually named
21054 something starting with __ and the normal name is an alias. */
21055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21058 char (*f) () = $ac_func;
21067 return f != $ac_func;
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21074 (eval $ac_link) 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_c_werror_flag"
21082 || test ! -s conftest.err'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; } &&
21088 { ac_try='test -s conftest$ac_exeext'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; }; then
21094 eval "$as_ac_var=yes"
21096 echo "$as_me: failed program was:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 eval "$as_ac_var=no"
21101 rm -f conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21106 if test `eval echo '${'$as_ac_var'}'` = yes; then
21107 cat >>confdefs.h <<_ACEOF
21108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21116 for ac_func in inet_aton inet_addr
21118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21119 echo "$as_me:$LINENO: checking for $ac_func" >&5
21120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21121 if eval "test \"\${$as_ac_var+set}\" = set"; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 if test x$gcc_no_link = xyes; then
21125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21127 { (exit 1); exit 1; }; }
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21137 #define $ac_func innocuous_$ac_func
21139 /* System header to define __stub macros and hopefully few prototypes,
21140 which can conflict with char $ac_func (); below.
21141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21142 <limits.h> exists even on freestanding compilers. */
21145 # include <limits.h>
21147 # include <assert.h>
21152 /* Override any gcc2 internal prototype to avoid an error. */
21157 /* We use char because int might match the return type of a gcc2
21158 builtin and then its argument prototype would still apply. */
21160 /* The GNU C library defines this for functions which it implements
21161 to always fail with ENOSYS. Some functions are actually named
21162 something starting with __ and the normal name is an alias. */
21163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21166 char (*f) () = $ac_func;
21175 return f != $ac_func;
21180 rm -f conftest.$ac_objext conftest$ac_exeext
21181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21182 (eval $ac_link) 2>conftest.er1
21184 grep -v '^ *+' conftest.er1 >conftest.err
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
21189 { ac_try='test -z "$ac_c_werror_flag"
21190 || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest$ac_exeext'
21197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 eval "$as_ac_var=yes"
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 eval "$as_ac_var=no"
21209 rm -f conftest.err conftest.$ac_objext \
21210 conftest$ac_exeext conftest.$ac_ext
21212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21214 if test `eval echo '${'$as_ac_var'}'` = yes; then
21215 cat >>confdefs.h <<_ACEOF
21216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21225 for ac_header in unistd.h dlfcn.h sys/resource.h
21227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21229 echo "$as_me:$LINENO: checking for $ac_header" >&5
21230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21237 # Is the header compilable?
21238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21240 cat >conftest.$ac_ext <<_ACEOF
21243 cat confdefs.h >>conftest.$ac_ext
21244 cat >>conftest.$ac_ext <<_ACEOF
21245 /* end confdefs.h. */
21246 $ac_includes_default
21247 #include <$ac_header>
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251 (eval $ac_compile) 2>conftest.er1
21253 grep -v '^ *+' conftest.er1 >conftest.err
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_header_compiler=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_header_compiler=no
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21280 echo "${ECHO_T}$ac_header_compiler" >&6
21282 # Is the header present?
21283 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include <$ac_header>
21293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21296 grep -v '^ *+' conftest.er1 >conftest.err
21298 cat conftest.err >&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } >/dev/null; then
21301 if test -s conftest.err; then
21302 ac_cpp_err=$ac_c_preproc_warn_flag
21303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21310 if test -z "$ac_cpp_err"; then
21311 ac_header_preproc=yes
21313 echo "$as_me: failed program was:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_preproc=no
21318 rm -f conftest.err conftest.$ac_ext
21319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21320 echo "${ECHO_T}$ac_header_preproc" >&6
21322 # So? What about this header?
21323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21326 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21329 ac_header_preproc=yes
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21333 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21335 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21337 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21339 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21343 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21346 ## ---------------------------------- ##
21347 ## Report this to the libjava lists. ##
21348 ## ---------------------------------- ##
21351 sed "s/^/$as_me: WARNING: /" >&2
21354 echo "$as_me:$LINENO: checking for $ac_header" >&5
21355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21359 eval "$as_ac_Header=\$ac_header_preproc"
21361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21366 cat >>confdefs.h <<_ACEOF
21367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21374 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21375 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21376 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21377 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 ac_check_lib_save_LIBS=$LIBS
21382 if test x$gcc_no_link = xyes; then
21383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21385 { (exit 1); exit 1; }; }
21387 cat >conftest.$ac_ext <<_ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h. */
21394 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21411 (eval $ac_link) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag"
21419 || test ! -s conftest.err'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest$ac_exeext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_lib_dl_dladdr=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_lib_dl_dladdr=no
21438 rm -f conftest.err conftest.$ac_objext \
21439 conftest$ac_exeext conftest.$ac_ext
21440 LIBS=$ac_check_lib_save_LIBS
21442 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21443 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21444 if test $ac_cv_lib_dl_dladdr = yes; then
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_DLADDR 1
21453 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21454 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21455 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 ac_check_lib_save_LIBS=$LIBS
21460 if test x$gcc_no_link = xyes; then
21461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21463 { (exit 1); exit 1; }; }
21465 cat >conftest.$ac_ext <<_ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21472 /* Override any gcc2 internal prototype to avoid an error. */
21476 /* We use char because int might match the return type of a gcc2
21477 builtin and then its argument prototype would still apply. */
21487 rm -f conftest.$ac_objext conftest$ac_exeext
21488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21489 (eval $ac_link) 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -z "$ac_c_werror_flag"
21497 || test ! -s conftest.err'
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest$ac_exeext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_cv_lib_dld_dladdr=yes
21511 echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 ac_cv_lib_dld_dladdr=no
21516 rm -f conftest.err conftest.$ac_objext \
21517 conftest$ac_exeext conftest.$ac_ext
21518 LIBS=$ac_check_lib_save_LIBS
21520 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21521 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21522 if test $ac_cv_lib_dld_dladdr = yes; then
21525 cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_DLADDR 1
21534 if test x"$cross_compiling" = x"no"; then
21535 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21536 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21537 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 test "$cross_compiling" = yes &&
21541 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21542 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21543 { (exit 1); exit 1; }; }
21544 if test -r "/proc/self/exe"; then
21545 ac_cv_file__proc_self_exe=yes
21547 ac_cv_file__proc_self_exe=no
21550 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21551 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21552 if test $ac_cv_file__proc_self_exe = yes; then
21554 cat >>confdefs.h <<_ACEOF
21555 #define HAVE__PROC_SELF_EXE 1
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_PROC_SELF_EXE 1
21566 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21567 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21568 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21569 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 test "$cross_compiling" = yes &&
21572 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21573 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21574 { (exit 1); exit 1; }; }
21575 if test -r "/proc/self/maps"; then
21576 ac_cv_file__proc_self_maps=yes
21578 ac_cv_file__proc_self_maps=no
21581 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21582 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21583 if test $ac_cv_file__proc_self_maps = yes; then
21585 cat >>confdefs.h <<_ACEOF
21586 #define HAVE__PROC_SELF_MAPS 1
21591 cat >>confdefs.h <<\_ACEOF
21592 #define HAVE_PROC_SELF_MAPS 1
21601 cat >>confdefs.h <<\_ACEOF
21602 #define HAVE_PROC_SELF_EXE 1
21606 cat >>confdefs.h <<\_ACEOF
21607 #define HAVE_PROC_SELF_MAPS 1
21615 if test "X$prefix" = "XNONE"; then
21616 acl_final_prefix="$ac_default_prefix"
21618 acl_final_prefix="$prefix"
21620 if test "X$exec_prefix" = "XNONE"; then
21621 acl_final_exec_prefix='${prefix}'
21623 acl_final_exec_prefix="$exec_prefix"
21625 acl_save_prefix="$prefix"
21626 prefix="$acl_final_prefix"
21627 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21628 prefix="$acl_save_prefix"
21631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21632 if test "${with_gnu_ld+set}" = set; then
21633 withval="$with_gnu_ld"
21634 test "$withval" = no || with_gnu_ld=yes
21638 # Prepare PATH_SEPARATOR.
21639 # The user is always right.
21640 if test "${PATH_SEPARATOR+set}" != set; then
21641 echo "#! /bin/sh" >conf$$.sh
21642 echo "exit 0" >>conf$$.sh
21644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21652 if test "$GCC" = yes; then
21653 # Check if gcc -print-prog-name=ld gives a path.
21654 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21658 # gcc leaves a trailing carriage return which upsets mingw
21659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21664 # Accept absolute paths.
21665 [\\/]* | [A-Za-z]:[\\/]*)
21666 re_direlt='/[^/][^/]*/\.\./'
21667 # Canonicalize the path of ld
21668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21672 test -z "$LD" && LD="$ac_prog"
21675 # If it fails, then pretend we aren't using GCC.
21679 # If it is relative, then search for the first ld in PATH.
21680 with_gnu_ld=unknown
21683 elif test "$with_gnu_ld" = yes; then
21684 echo "$as_me:$LINENO: checking for GNU ld" >&5
21685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21687 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21690 if test "${acl_cv_path_LD+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 if test -z "$LD"; then
21694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21695 for ac_dir in $PATH; do
21696 test -z "$ac_dir" && ac_dir=.
21697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21698 acl_cv_path_LD="$ac_dir/$ac_prog"
21699 # Check to see if the program is GNU ld. I'd rather use --version,
21700 # but apparently some GNU ld's only accept -v.
21701 # Break only if it was the GNU/non-GNU ld that we prefer.
21702 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21703 test "$with_gnu_ld" != no && break
21705 test "$with_gnu_ld" != yes && break
21711 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21715 LD="$acl_cv_path_LD"
21716 if test -n "$LD"; then
21717 echo "$as_me:$LINENO: result: $LD" >&5
21718 echo "${ECHO_T}$LD" >&6
21720 echo "$as_me:$LINENO: result: no" >&5
21721 echo "${ECHO_T}no" >&6
21723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21725 { (exit 1); exit 1; }; }
21726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21728 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21733 acl_cv_prog_gnu_ld=yes
21735 acl_cv_prog_gnu_ld=no
21738 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21739 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21740 with_gnu_ld=$acl_cv_prog_gnu_ld
21744 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21745 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21746 if test "${acl_cv_rpath+set}" = set; then
21747 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21751 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21753 rm -f ./conftest.sh
21757 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21758 echo "${ECHO_T}$acl_cv_rpath" >&6
21760 libext="$acl_cv_libext"
21761 shlibext="$acl_cv_shlibext"
21762 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21763 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21764 hardcode_direct="$acl_cv_hardcode_direct"
21765 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21766 # Check whether --enable-rpath or --disable-rpath was given.
21767 if test "${enable_rpath+set}" = set; then
21768 enableval="$enable_rpath"
21782 acl_save_prefix="$prefix"
21783 prefix="$acl_final_prefix"
21784 acl_save_exec_prefix="$exec_prefix"
21785 exec_prefix="$acl_final_exec_prefix"
21787 eval additional_includedir=\"$includedir\"
21788 eval additional_libdir=\"$libdir\"
21790 exec_prefix="$acl_save_exec_prefix"
21791 prefix="$acl_save_prefix"
21794 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21795 if test "${with_libiconv_prefix+set}" = set; then
21796 withval="$with_libiconv_prefix"
21798 if test "X$withval" = "Xno"; then
21801 if test "X$withval" = "X"; then
21803 acl_save_prefix="$prefix"
21804 prefix="$acl_final_prefix"
21805 acl_save_exec_prefix="$exec_prefix"
21806 exec_prefix="$acl_final_exec_prefix"
21808 eval additional_includedir=\"$includedir\"
21809 eval additional_libdir=\"$libdir\"
21811 exec_prefix="$acl_save_exec_prefix"
21812 prefix="$acl_save_prefix"
21815 additional_includedir="$withval/include"
21816 additional_libdir="$withval/lib"
21826 names_already_handled=
21827 names_next_round='iconv '
21828 while test -n "$names_next_round"; do
21829 names_this_round="$names_next_round"
21831 for name in $names_this_round; do
21833 for n in $names_already_handled; do
21834 if test "$n" = "$name"; then
21835 already_handled=yes
21839 if test -z "$already_handled"; then
21840 names_already_handled="$names_already_handled $name"
21841 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21842 eval value=\"\$HAVE_LIB$uppername\"
21843 if test -n "$value"; then
21844 if test "$value" = yes; then
21845 eval value=\"\$LIB$uppername\"
21846 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21847 eval value=\"\$LTLIB$uppername\"
21848 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21857 if test $use_additional = yes; then
21858 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21859 found_dir="$additional_libdir"
21860 found_so="$additional_libdir/lib$name.$shlibext"
21861 if test -f "$additional_libdir/lib$name.la"; then
21862 found_la="$additional_libdir/lib$name.la"
21865 if test -f "$additional_libdir/lib$name.$libext"; then
21866 found_dir="$additional_libdir"
21867 found_a="$additional_libdir/lib$name.$libext"
21868 if test -f "$additional_libdir/lib$name.la"; then
21869 found_la="$additional_libdir/lib$name.la"
21874 if test "X$found_dir" = "X"; then
21875 for x in $LDFLAGS $LTLIBICONV; do
21877 acl_save_prefix="$prefix"
21878 prefix="$acl_final_prefix"
21879 acl_save_exec_prefix="$exec_prefix"
21880 exec_prefix="$acl_final_exec_prefix"
21882 exec_prefix="$acl_save_exec_prefix"
21883 prefix="$acl_save_prefix"
21887 dir=`echo "X$x" | sed -e 's/^X-L//'`
21888 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21890 found_so="$dir/lib$name.$shlibext"
21891 if test -f "$dir/lib$name.la"; then
21892 found_la="$dir/lib$name.la"
21895 if test -f "$dir/lib$name.$libext"; then
21897 found_a="$dir/lib$name.$libext"
21898 if test -f "$dir/lib$name.la"; then
21899 found_la="$dir/lib$name.la"
21905 if test "X$found_dir" != "X"; then
21910 if test "X$found_dir" != "X"; then
21911 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21912 if test "X$found_so" != "X"; then
21913 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21917 for x in $ltrpathdirs; do
21918 if test "X$x" = "X$found_dir"; then
21923 if test -z "$haveit"; then
21924 ltrpathdirs="$ltrpathdirs $found_dir"
21926 if test "$hardcode_direct" = yes; then
21927 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21929 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21930 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21932 for x in $rpathdirs; do
21933 if test "X$x" = "X$found_dir"; then
21938 if test -z "$haveit"; then
21939 rpathdirs="$rpathdirs $found_dir"
21943 for x in $LDFLAGS $LIBICONV; do
21945 acl_save_prefix="$prefix"
21946 prefix="$acl_final_prefix"
21947 acl_save_exec_prefix="$exec_prefix"
21948 exec_prefix="$acl_final_exec_prefix"
21950 exec_prefix="$acl_save_exec_prefix"
21951 prefix="$acl_save_prefix"
21953 if test "X$x" = "X-L$found_dir"; then
21958 if test -z "$haveit"; then
21959 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21961 if test "$hardcode_minus_L" != no; then
21962 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21964 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21970 if test "X$found_a" != "X"; then
21971 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21973 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21976 additional_includedir=
21977 case "$found_dir" in
21979 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21980 additional_includedir="$basedir/include"
21983 if test "X$additional_includedir" != "X"; then
21984 if test "X$additional_includedir" != "X/usr/include"; then
21986 if test "X$additional_includedir" = "X/usr/local/include"; then
21987 if test -n "$GCC"; then
21989 linux*) haveit=yes;;
21993 if test -z "$haveit"; then
21994 for x in $CPPFLAGS $INCICONV; do
21996 acl_save_prefix="$prefix"
21997 prefix="$acl_final_prefix"
21998 acl_save_exec_prefix="$exec_prefix"
21999 exec_prefix="$acl_final_exec_prefix"
22001 exec_prefix="$acl_save_exec_prefix"
22002 prefix="$acl_save_prefix"
22004 if test "X$x" = "X-I$additional_includedir"; then
22009 if test -z "$haveit"; then
22010 if test -d "$additional_includedir"; then
22011 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22017 if test -n "$found_la"; then
22018 save_libdir="$libdir"
22019 case "$found_la" in
22020 */* | *\\*) . "$found_la" ;;
22021 *) . "./$found_la" ;;
22023 libdir="$save_libdir"
22024 for dep in $dependency_libs; do
22027 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22028 if test "X$additional_libdir" != "X/usr/lib"; then
22030 if test "X$additional_libdir" = "X/usr/local/lib"; then
22031 if test -n "$GCC"; then
22033 linux*) haveit=yes;;
22037 if test -z "$haveit"; then
22039 for x in $LDFLAGS $LIBICONV; do
22041 acl_save_prefix="$prefix"
22042 prefix="$acl_final_prefix"
22043 acl_save_exec_prefix="$exec_prefix"
22044 exec_prefix="$acl_final_exec_prefix"
22046 exec_prefix="$acl_save_exec_prefix"
22047 prefix="$acl_save_prefix"
22049 if test "X$x" = "X-L$additional_libdir"; then
22054 if test -z "$haveit"; then
22055 if test -d "$additional_libdir"; then
22056 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22060 for x in $LDFLAGS $LTLIBICONV; do
22062 acl_save_prefix="$prefix"
22063 prefix="$acl_final_prefix"
22064 acl_save_exec_prefix="$exec_prefix"
22065 exec_prefix="$acl_final_exec_prefix"
22067 exec_prefix="$acl_save_exec_prefix"
22068 prefix="$acl_save_prefix"
22070 if test "X$x" = "X-L$additional_libdir"; then
22075 if test -z "$haveit"; then
22076 if test -d "$additional_libdir"; then
22077 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22084 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22085 if test "$enable_rpath" != no; then
22087 for x in $rpathdirs; do
22088 if test "X$x" = "X$dir"; then
22093 if test -z "$haveit"; then
22094 rpathdirs="$rpathdirs $dir"
22097 for x in $ltrpathdirs; do
22098 if test "X$x" = "X$dir"; then
22103 if test -z "$haveit"; then
22104 ltrpathdirs="$ltrpathdirs $dir"
22109 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22112 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22115 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22116 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22122 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22123 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22129 if test "X$rpathdirs" != "X"; then
22130 if test -n "$hardcode_libdir_separator"; then
22132 for found_dir in $rpathdirs; do
22133 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22135 acl_save_libdir="$libdir"
22137 eval flag=\"$hardcode_libdir_flag_spec\"
22138 libdir="$acl_save_libdir"
22139 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22141 for found_dir in $rpathdirs; do
22142 acl_save_libdir="$libdir"
22143 libdir="$found_dir"
22144 eval flag=\"$hardcode_libdir_flag_spec\"
22145 libdir="$acl_save_libdir"
22146 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22150 if test "X$ltrpathdirs" != "X"; then
22151 for found_dir in $ltrpathdirs; do
22152 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22162 am_save_CPPFLAGS="$CPPFLAGS"
22164 for element in $INCICONV; do
22166 for x in $CPPFLAGS; do
22168 acl_save_prefix="$prefix"
22169 prefix="$acl_final_prefix"
22170 acl_save_exec_prefix="$exec_prefix"
22171 exec_prefix="$acl_final_exec_prefix"
22173 exec_prefix="$acl_save_exec_prefix"
22174 prefix="$acl_save_prefix"
22176 if test "X$x" = "X$element"; then
22181 if test -z "$haveit"; then
22182 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22187 echo "$as_me:$LINENO: checking for iconv" >&5
22188 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22189 if test "${am_cv_func_iconv+set}" = set; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22193 am_cv_func_iconv="no, consider installing GNU libiconv"
22195 if test x$gcc_no_link = xyes; then
22196 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22198 { (exit 1); exit 1; }; }
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22206 #include <stdlib.h>
22211 iconv_t cd = iconv_open("","");
22212 iconv(cd,NULL,NULL,NULL,NULL);
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220 (eval $ac_link) 2>conftest.er1
22222 grep -v '^ *+' conftest.er1 >conftest.err
22224 cat conftest.err >&5
22225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } &&
22227 { ac_try='test -z "$ac_c_werror_flag"
22228 || test ! -s conftest.err'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; } &&
22234 { ac_try='test -s conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 am_cv_func_iconv=yes
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22246 rm -f conftest.err conftest.$ac_objext \
22247 conftest$ac_exeext conftest.$ac_ext
22248 if test "$am_cv_func_iconv" != yes; then
22249 am_save_LIBS="$LIBS"
22250 LIBS="$LIBS $LIBICONV"
22251 if test x$gcc_no_link = xyes; then
22252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22254 { (exit 1); exit 1; }; }
22256 cat >conftest.$ac_ext <<_ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22262 #include <stdlib.h>
22267 iconv_t cd = iconv_open("","");
22268 iconv(cd,NULL,NULL,NULL,NULL);
22274 rm -f conftest.$ac_objext conftest$ac_exeext
22275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22276 (eval $ac_link) 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } &&
22283 { ac_try='test -z "$ac_c_werror_flag"
22284 || test ! -s conftest.err'
22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); }; } &&
22290 { ac_try='test -s conftest$ac_exeext'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 am_cv_lib_iconv=yes
22297 am_cv_func_iconv=yes
22299 echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22303 rm -f conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22305 LIBS="$am_save_LIBS"
22309 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22310 echo "${ECHO_T}$am_cv_func_iconv" >&6
22311 if test "$am_cv_func_iconv" = yes; then
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_ICONV 1
22318 if test "$am_cv_lib_iconv" = yes; then
22319 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22320 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22321 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22322 echo "${ECHO_T}$LIBICONV" >&6
22324 CPPFLAGS="$am_save_CPPFLAGS"
22331 if test "$am_cv_func_iconv" = yes; then
22332 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22333 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22334 if test "${am_cv_proto_iconv+set}" = set; then
22335 echo $ECHO_N "(cached) $ECHO_C" >&6
22338 cat >conftest.$ac_ext <<_ACEOF
22341 cat confdefs.h >>conftest.$ac_ext
22342 cat >>conftest.$ac_ext <<_ACEOF
22343 /* end confdefs.h. */
22345 #include <stdlib.h>
22351 #if defined(__STDC__) || defined(__cplusplus)
22352 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22365 rm -f conftest.$ac_objext
22366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22367 (eval $ac_compile) 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } &&
22374 { ac_try='test -z "$ac_c_werror_flag"
22375 || test ! -s conftest.err'
22376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377 (eval $ac_try) 2>&5
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; } &&
22381 { ac_try='test -s conftest.$ac_objext'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; }; then
22387 am_cv_proto_iconv_arg1=""
22389 echo "$as_me: failed program was:" >&5
22390 sed 's/^/| /' conftest.$ac_ext >&5
22392 am_cv_proto_iconv_arg1="const"
22394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22395 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22398 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22399 echo "$as_me:$LINENO: result: ${ac_t:-
22400 }$am_cv_proto_iconv" >&5
22401 echo "${ECHO_T}${ac_t:-
22402 }$am_cv_proto_iconv" >&6
22404 cat >>confdefs.h <<_ACEOF
22405 #define ICONV_CONST $am_cv_proto_iconv_arg1
22411 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22412 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22413 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22414 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 if test x$gcc_no_link = xyes; then
22417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22419 { (exit 1); exit 1; }; }
22421 cat >conftest.$ac_ext <<_ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h. */
22427 #include <locale.h>
22436 rm -f conftest.$ac_objext conftest$ac_exeext
22437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22438 (eval $ac_link) 2>conftest.er1
22440 grep -v '^ *+' conftest.er1 >conftest.err
22442 cat conftest.err >&5
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } &&
22445 { ac_try='test -z "$ac_c_werror_flag"
22446 || test ! -s conftest.err'
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try='test -s conftest$ac_exeext'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 am_cv_val_LC_MESSAGES=yes
22460 echo "$as_me: failed program was:" >&5
22461 sed 's/^/| /' conftest.$ac_ext >&5
22463 am_cv_val_LC_MESSAGES=no
22465 rm -f conftest.err conftest.$ac_objext \
22466 conftest$ac_exeext conftest.$ac_ext
22468 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22469 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22470 if test $am_cv_val_LC_MESSAGES = yes; then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define HAVE_LC_MESSAGES 1
22478 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22479 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22480 if test "${ac_cv_struct_tm+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 #include <sys/types.h>
22495 struct tm *tp; tp->tm_sec;
22500 rm -f conftest.$ac_objext
22501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22502 (eval $ac_compile) 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } &&
22509 { ac_try='test -z "$ac_c_werror_flag"
22510 || test ! -s conftest.err'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; } &&
22516 { ac_try='test -s conftest.$ac_objext'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; }; then
22522 ac_cv_struct_tm=time.h
22524 echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_cv_struct_tm=sys/time.h
22529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22532 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22533 if test $ac_cv_struct_tm = sys/time.h; then
22535 cat >>confdefs.h <<\_ACEOF
22536 #define TM_IN_SYS_TIME 1
22541 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22542 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22543 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 #include <sys/types.h>
22553 #include <$ac_cv_struct_tm>
22559 static struct tm ac_aggr;
22560 if (ac_aggr.tm_zone)
22566 rm -f conftest.$ac_objext
22567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22568 (eval $ac_compile) 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574 (exit $ac_status); } &&
22575 { ac_try='test -z "$ac_c_werror_flag"
22576 || test ! -s conftest.err'
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_cv_member_struct_tm_tm_zone=yes
22590 echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 #include <sys/types.h>
22600 #include <$ac_cv_struct_tm>
22606 static struct tm ac_aggr;
22607 if (sizeof ac_aggr.tm_zone)
22613 rm -f conftest.$ac_objext
22614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22615 (eval $ac_compile) 2>conftest.er1
22617 grep -v '^ *+' conftest.er1 >conftest.err
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
22622 { ac_try='test -z "$ac_c_werror_flag"
22623 || test ! -s conftest.err'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; } &&
22629 { ac_try='test -s conftest.$ac_objext'
22630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22631 (eval $ac_try) 2>&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }; }; then
22635 ac_cv_member_struct_tm_tm_zone=yes
22637 echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 ac_cv_member_struct_tm_tm_zone=no
22642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22646 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22650 cat >>confdefs.h <<_ACEOF
22651 #define HAVE_STRUCT_TM_TM_ZONE 1
22657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22659 cat >>confdefs.h <<\_ACEOF
22660 #define HAVE_TM_ZONE 1
22664 echo "$as_me:$LINENO: checking for tzname" >&5
22665 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22666 if test "${ac_cv_var_tzname+set}" = set; then
22667 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 if test x$gcc_no_link = xyes; then
22670 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22671 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22672 { (exit 1); exit 1; }; }
22674 cat >conftest.$ac_ext <<_ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22681 #ifndef tzname /* For SGI. */
22682 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22695 (eval $ac_link) 2>conftest.er1
22697 grep -v '^ *+' conftest.er1 >conftest.err
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } &&
22702 { ac_try='test -z "$ac_c_werror_flag"
22703 || test ! -s conftest.err'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; } &&
22709 { ac_try='test -s conftest$ac_exeext'
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; }; then
22715 ac_cv_var_tzname=yes
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_cv_var_tzname=no
22722 rm -f conftest.err conftest.$ac_objext \
22723 conftest$ac_exeext conftest.$ac_ext
22725 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22726 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22727 if test $ac_cv_var_tzname = yes; then
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_TZNAME 1
22738 for ac_func in gethostbyname_r
22740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22741 echo "$as_me:$LINENO: checking for $ac_func" >&5
22742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22743 if eval "test \"\${$as_ac_var+set}\" = set"; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22746 if test x$gcc_no_link = xyes; then
22747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22749 { (exit 1); exit 1; }; }
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22759 #define $ac_func innocuous_$ac_func
22761 /* System header to define __stub macros and hopefully few prototypes,
22762 which can conflict with char $ac_func (); below.
22763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22764 <limits.h> exists even on freestanding compilers. */
22767 # include <limits.h>
22769 # include <assert.h>
22774 /* Override any gcc2 internal prototype to avoid an error. */
22779 /* We use char because int might match the return type of a gcc2
22780 builtin and then its argument prototype would still apply. */
22782 /* The GNU C library defines this for functions which it implements
22783 to always fail with ENOSYS. Some functions are actually named
22784 something starting with __ and the normal name is an alias. */
22785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22788 char (*f) () = $ac_func;
22797 return f != $ac_func;
22802 rm -f conftest.$ac_objext conftest$ac_exeext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22804 (eval $ac_link) 2>conftest.er1
22806 grep -v '^ *+' conftest.er1 >conftest.err
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } &&
22811 { ac_try='test -z "$ac_c_werror_flag"
22812 || test ! -s conftest.err'
22813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814 (eval $ac_try) 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); }; } &&
22818 { ac_try='test -s conftest$ac_exeext'
22819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820 (eval $ac_try) 2>&5
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); }; }; then
22824 eval "$as_ac_var=yes"
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22829 eval "$as_ac_var=no"
22831 rm -f conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
22834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22836 if test `eval echo '${'$as_ac_var'}'` = yes; then
22837 cat >>confdefs.h <<_ACEOF
22838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22842 cat >>confdefs.h <<\_ACEOF
22843 #define HAVE_GETHOSTBYNAME_R 1
22846 # There are two different kinds of gethostbyname_r.
22847 # We look for the one that returns `int'.
22848 # Hopefully this check is robust enough.
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22859 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22862 cat >>confdefs.h <<\_ACEOF
22863 #define GETHOSTBYNAME_R_RETURNS_INT 1
22870 case " $GCINCS " in
22871 *" -D_REENTRANT "*) ;;
22873 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22874 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22875 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22879 ac_cpp='$CXXCPP $CPPFLAGS'
22880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22884 cat >conftest.$ac_ext <<_ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22894 gethostbyname_r("", 0, 0);
22899 rm -f conftest.$ac_objext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22901 (eval $ac_compile) 2>conftest.er1
22903 grep -v '^ *+' conftest.er1 >conftest.err
22905 cat conftest.err >&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -z "$ac_cxx_werror_flag"
22909 || test ! -s conftest.err'
22910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }; } &&
22915 { ac_try='test -s conftest.$ac_objext'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; }; then
22921 libjava_cv_gethostbyname_r_needs_reentrant=no
22923 echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 CPPFLAGS_SAVE="$CPPFLAGS"
22927 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22938 gethostbyname_r("", 0, 0);
22943 rm -f conftest.$ac_objext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22945 (eval $ac_compile) 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } &&
22952 { ac_try='test -z "$ac_cxx_werror_flag"
22953 || test ! -s conftest.err'
22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955 (eval $ac_try) 2>&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); }; } &&
22959 { ac_try='test -s conftest.$ac_objext'
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; }; then
22965 libjava_cv_gethostbyname_r_needs_reentrant=yes
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 libjava_cv_gethostbyname_r_needs_reentrant=fail
22972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22973 CPPFLAGS="$CPPFLAGS_SAVE"
22976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22978 ac_cpp='$CPP $CPPFLAGS'
22979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22985 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22986 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22987 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22989 cat >>confdefs.h <<\_ACEOF
22990 #define _REENTRANT 1
22997 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22998 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22999 if test "${libjava_cv_struct_hostent_data+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 cat >conftest.$ac_ext <<_ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23009 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
23010 # define _REENTRANT 1
23016 struct hostent_data data;
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023 (eval $ac_compile) 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } &&
23030 { ac_try='test -z "$ac_c_werror_flag"
23031 || test ! -s conftest.err'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; } &&
23037 { ac_try='test -s conftest.$ac_objext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 libjava_cv_struct_hostent_data=yes
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 libjava_cv_struct_hostent_data=no
23050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23052 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
23053 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
23054 if test "x$libjava_cv_struct_hostent_data" = xyes; then
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_STRUCT_HOSTENT_DATA 1
23066 # FIXME: libjava source code expects to find a prototype for
23067 # gethostbyaddr_r in netdb.h. The outer check ensures that
23068 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
23069 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
23070 # linkage check is enough, yet C++ code requires proper prototypes.)
23071 cat >conftest.$ac_ext <<_ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23081 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
23084 for ac_func in gethostbyaddr_r
23086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23087 echo "$as_me:$LINENO: checking for $ac_func" >&5
23088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23089 if eval "test \"\${$as_ac_var+set}\" = set"; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
23092 if test x$gcc_no_link = xyes; then
23093 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23095 { (exit 1); exit 1; }; }
23097 cat >conftest.$ac_ext <<_ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23105 #define $ac_func innocuous_$ac_func
23107 /* System header to define __stub macros and hopefully few prototypes,
23108 which can conflict with char $ac_func (); below.
23109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23110 <limits.h> exists even on freestanding compilers. */
23113 # include <limits.h>
23115 # include <assert.h>
23120 /* Override any gcc2 internal prototype to avoid an error. */
23125 /* We use char because int might match the return type of a gcc2
23126 builtin and then its argument prototype would still apply. */
23128 /* The GNU C library defines this for functions which it implements
23129 to always fail with ENOSYS. Some functions are actually named
23130 something starting with __ and the normal name is an alias. */
23131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23134 char (*f) () = $ac_func;
23143 return f != $ac_func;
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>conftest.er1
23152 grep -v '^ *+' conftest.er1 >conftest.err
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 eval "$as_ac_var=yes"
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23175 eval "$as_ac_var=no"
23177 rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23182 if test `eval echo '${'$as_ac_var'}'` = yes; then
23183 cat >>confdefs.h <<_ACEOF
23184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23188 cat >>confdefs.h <<\_ACEOF
23189 #define HAVE_GETHOSTBYADDR_R 1
23192 # There are two different kinds of gethostbyaddr_r.
23193 # We look for the one that returns `int'.
23194 # Hopefully this check is robust enough.
23195 cat >conftest.$ac_ext <<_ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23205 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23208 cat >>confdefs.h <<\_ACEOF
23209 #define GETHOSTBYADDR_R_RETURNS_INT 1
23223 for ac_func in gethostname
23225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23226 echo "$as_me:$LINENO: checking for $ac_func" >&5
23227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23228 if eval "test \"\${$as_ac_var+set}\" = set"; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23231 if test x$gcc_no_link = xyes; then
23232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23234 { (exit 1); exit 1; }; }
23236 cat >conftest.$ac_ext <<_ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23244 #define $ac_func innocuous_$ac_func
23246 /* System header to define __stub macros and hopefully few prototypes,
23247 which can conflict with char $ac_func (); below.
23248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23249 <limits.h> exists even on freestanding compilers. */
23252 # include <limits.h>
23254 # include <assert.h>
23259 /* Override any gcc2 internal prototype to avoid an error. */
23264 /* We use char because int might match the return type of a gcc2
23265 builtin and then its argument prototype would still apply. */
23267 /* The GNU C library defines this for functions which it implements
23268 to always fail with ENOSYS. Some functions are actually named
23269 something starting with __ and the normal name is an alias. */
23270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23273 char (*f) () = $ac_func;
23282 return f != $ac_func;
23287 rm -f conftest.$ac_objext conftest$ac_exeext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23289 (eval $ac_link) 2>conftest.er1
23291 grep -v '^ *+' conftest.er1 >conftest.err
23293 cat conftest.err >&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try='test -z "$ac_c_werror_flag"
23297 || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest$ac_exeext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 eval "$as_ac_var=yes"
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 eval "$as_ac_var=no"
23316 rm -f conftest.err conftest.$ac_objext \
23317 conftest$ac_exeext conftest.$ac_ext
23319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23321 if test `eval echo '${'$as_ac_var'}'` = yes; then
23322 cat >>confdefs.h <<_ACEOF
23323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_GETHOSTNAME 1
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 #include <unistd.h>
23340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23341 $EGREP "gethostname" >/dev/null 2>&1; then
23344 cat >>confdefs.h <<\_ACEOF
23345 #define HAVE_GETHOSTNAME_DECL 1
23356 for ac_func in usleep
23358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23359 echo "$as_me:$LINENO: checking for $ac_func" >&5
23360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23361 if eval "test \"\${$as_ac_var+set}\" = set"; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 if test x$gcc_no_link = xyes; then
23365 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23366 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23367 { (exit 1); exit 1; }; }
23369 cat >conftest.$ac_ext <<_ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23377 #define $ac_func innocuous_$ac_func
23379 /* System header to define __stub macros and hopefully few prototypes,
23380 which can conflict with char $ac_func (); below.
23381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23382 <limits.h> exists even on freestanding compilers. */
23385 # include <limits.h>
23387 # include <assert.h>
23392 /* Override any gcc2 internal prototype to avoid an error. */
23397 /* We use char because int might match the return type of a gcc2
23398 builtin and then its argument prototype would still apply. */
23400 /* The GNU C library defines this for functions which it implements
23401 to always fail with ENOSYS. Some functions are actually named
23402 something starting with __ and the normal name is an alias. */
23403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23406 char (*f) () = $ac_func;
23415 return f != $ac_func;
23420 rm -f conftest.$ac_objext conftest$ac_exeext
23421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23422 (eval $ac_link) 2>conftest.er1
23424 grep -v '^ *+' conftest.er1 >conftest.err
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } &&
23429 { ac_try='test -z "$ac_c_werror_flag"
23430 || test ! -s conftest.err'
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; } &&
23436 { ac_try='test -s conftest$ac_exeext'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; }; then
23442 eval "$as_ac_var=yes"
23444 echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23447 eval "$as_ac_var=no"
23449 rm -f conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
23452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23454 if test `eval echo '${'$as_ac_var'}'` = yes; then
23455 cat >>confdefs.h <<_ACEOF
23456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23465 #include <unistd.h>
23468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23469 $EGREP "usleep" >/dev/null 2>&1; then
23472 cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_USLEEP_DECL 1
23483 # Look for these functions in the thread library, but only bother
23484 # if using POSIX threads.
23485 if test "$THREADS" = posix; then
23487 LIBS="$LIBS $THREADLIBS"
23489 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23490 # Solaris 7 the name librt is preferred.
23492 for ac_func in sched_yield
23494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495 echo "$as_me:$LINENO: checking for $ac_func" >&5
23496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497 if eval "test \"\${$as_ac_var+set}\" = set"; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23500 if test x$gcc_no_link = xyes; then
23501 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23503 { (exit 1); exit 1; }; }
23505 cat >conftest.$ac_ext <<_ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23513 #define $ac_func innocuous_$ac_func
23515 /* System header to define __stub macros and hopefully few prototypes,
23516 which can conflict with char $ac_func (); below.
23517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23518 <limits.h> exists even on freestanding compilers. */
23521 # include <limits.h>
23523 # include <assert.h>
23528 /* Override any gcc2 internal prototype to avoid an error. */
23533 /* We use char because int might match the return type of a gcc2
23534 builtin and then its argument prototype would still apply. */
23536 /* The GNU C library defines this for functions which it implements
23537 to always fail with ENOSYS. Some functions are actually named
23538 something starting with __ and the normal name is an alias. */
23539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23542 char (*f) () = $ac_func;
23551 return f != $ac_func;
23556 rm -f conftest.$ac_objext conftest$ac_exeext
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558 (eval $ac_link) 2>conftest.er1
23560 grep -v '^ *+' conftest.er1 >conftest.err
23562 cat conftest.err >&5
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); } &&
23565 { ac_try='test -z "$ac_c_werror_flag"
23566 || test ! -s conftest.err'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; } &&
23572 { ac_try='test -s conftest$ac_exeext'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 eval "$as_ac_var=yes"
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23583 eval "$as_ac_var=no"
23585 rm -f conftest.err conftest.$ac_objext \
23586 conftest$ac_exeext conftest.$ac_ext
23588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23590 if test `eval echo '${'$as_ac_var'}'` = yes; then
23591 cat >>confdefs.h <<_ACEOF
23592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23597 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23598 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23599 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23600 echo $ECHO_N "(cached) $ECHO_C" >&6
23602 ac_check_lib_save_LIBS=$LIBS
23604 if test x$gcc_no_link = xyes; then
23605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23607 { (exit 1); exit 1; }; }
23609 cat >conftest.$ac_ext <<_ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23616 /* Override any gcc2 internal prototype to avoid an error. */
23620 /* We use char because int might match the return type of a gcc2
23621 builtin and then its argument prototype would still apply. */
23622 char sched_yield ();
23631 rm -f conftest.$ac_objext conftest$ac_exeext
23632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23633 (eval $ac_link) 2>conftest.er1
23635 grep -v '^ *+' conftest.er1 >conftest.err
23637 cat conftest.err >&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } &&
23640 { ac_try='test -z "$ac_c_werror_flag"
23641 || test ! -s conftest.err'
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest$ac_exeext'
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 ac_cv_lib_rt_sched_yield=yes
23655 echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.$ac_ext >&5
23658 ac_cv_lib_rt_sched_yield=no
23660 rm -f conftest.err conftest.$ac_objext \
23661 conftest$ac_exeext conftest.$ac_ext
23662 LIBS=$ac_check_lib_save_LIBS
23664 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23665 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23666 if test $ac_cv_lib_rt_sched_yield = yes; then
23668 cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_SCHED_YIELD 1
23672 THREADLIBS="$THREADLIBS -lrt"
23673 THREADSPEC="$THREADSPEC -lrt"
23676 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23677 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23678 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23681 ac_check_lib_save_LIBS=$LIBS
23682 LIBS="-lposix4 $LIBS"
23683 if test x$gcc_no_link = xyes; then
23684 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23686 { (exit 1); exit 1; }; }
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23695 /* Override any gcc2 internal prototype to avoid an error. */
23699 /* We use char because int might match the return type of a gcc2
23700 builtin and then its argument prototype would still apply. */
23701 char sched_yield ();
23710 rm -f conftest.$ac_objext conftest$ac_exeext
23711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23712 (eval $ac_link) 2>conftest.er1
23714 grep -v '^ *+' conftest.er1 >conftest.err
23716 cat conftest.err >&5
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
23719 { ac_try='test -z "$ac_c_werror_flag"
23720 || test ! -s conftest.err'
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } &&
23726 { ac_try='test -s conftest$ac_exeext'
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 ac_cv_lib_posix4_sched_yield=yes
23734 echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23737 ac_cv_lib_posix4_sched_yield=no
23739 rm -f conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
23741 LIBS=$ac_check_lib_save_LIBS
23743 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23744 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23745 if test $ac_cv_lib_posix4_sched_yield = yes; then
23747 cat >>confdefs.h <<\_ACEOF
23748 #define HAVE_SCHED_YIELD 1
23751 THREADLIBS="$THREADLIBS -lposix4"
23752 THREADSPEC="$THREADSPEC -lposix4"
23761 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23762 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23763 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 ac_check_lib_save_LIBS=$LIBS
23768 if test x$gcc_no_link = xyes; then
23769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23771 { (exit 1); exit 1; }; }
23773 cat >conftest.$ac_ext <<_ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h. */
23780 /* Override any gcc2 internal prototype to avoid an error. */
23784 /* We use char because int might match the return type of a gcc2
23785 builtin and then its argument prototype would still apply. */
23786 char clock_gettime ();
23795 rm -f conftest.$ac_objext conftest$ac_exeext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23797 (eval $ac_link) 2>conftest.er1
23799 grep -v '^ *+' conftest.er1 >conftest.err
23801 cat conftest.err >&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } &&
23804 { ac_try='test -z "$ac_c_werror_flag"
23805 || test ! -s conftest.err'
23806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); }; } &&
23811 { ac_try='test -s conftest$ac_exeext'
23812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813 (eval $ac_try) 2>&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); }; }; then
23817 ac_cv_lib_rt_clock_gettime=yes
23819 echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822 ac_cv_lib_rt_clock_gettime=no
23824 rm -f conftest.err conftest.$ac_objext \
23825 conftest$ac_exeext conftest.$ac_ext
23826 LIBS=$ac_check_lib_save_LIBS
23828 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23829 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23830 if test $ac_cv_lib_rt_clock_gettime = yes; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define HAVE_CLOCK_GETTIME 1
23837 case "$THREADSPEC" in
23840 THREADSPEC="$THREADSPEC -lrt"
23841 THREADLIBS="$THREADLIBS -lrt"
23849 # We can save a little space at runtime if the mutex has m_count
23850 # or __m_count. This is a nice hack for Linux.
23851 cat >conftest.$ac_ext <<_ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h. */
23857 #include <pthread.h>
23862 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23868 rm -f conftest.$ac_objext
23869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23870 (eval $ac_compile) 2>conftest.er1
23872 grep -v '^ *+' conftest.er1 >conftest.err
23874 cat conftest.err >&5
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); } &&
23877 { ac_try='test -z "$ac_c_werror_flag"
23878 || test ! -s conftest.err'
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; } &&
23884 { ac_try='test -s conftest.$ac_objext'
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; }; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23896 echo "$as_me: failed program was:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23900 cat >conftest.$ac_ext <<_ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h. */
23906 #include <pthread.h>
23911 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23917 rm -f conftest.$ac_objext
23918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23919 (eval $ac_compile) 2>conftest.er1
23921 grep -v '^ *+' conftest.er1 >conftest.err
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } &&
23926 { ac_try='test -z "$ac_c_werror_flag"
23927 || test ! -s conftest.err'
23928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929 (eval $ac_try) 2>&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); }; } &&
23933 { ac_try='test -s conftest.$ac_objext'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; }; then
23940 cat >>confdefs.h <<\_ACEOF
23941 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23945 echo "$as_me: failed program was:" >&5
23946 sed 's/^/| /' conftest.$ac_ext >&5
23949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23954 # We require a way to get the time.
23959 for ac_func in gettimeofday time ftime
23961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23962 echo "$as_me:$LINENO: checking for $ac_func" >&5
23963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23964 if eval "test \"\${$as_ac_var+set}\" = set"; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23967 if test x$gcc_no_link = xyes; then
23968 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23970 { (exit 1); exit 1; }; }
23972 cat >conftest.$ac_ext <<_ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23980 #define $ac_func innocuous_$ac_func
23982 /* System header to define __stub macros and hopefully few prototypes,
23983 which can conflict with char $ac_func (); below.
23984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23985 <limits.h> exists even on freestanding compilers. */
23988 # include <limits.h>
23990 # include <assert.h>
23995 /* Override any gcc2 internal prototype to avoid an error. */
24000 /* We use char because int might match the return type of a gcc2
24001 builtin and then its argument prototype would still apply. */
24003 /* The GNU C library defines this for functions which it implements
24004 to always fail with ENOSYS. Some functions are actually named
24005 something starting with __ and the normal name is an alias. */
24006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24009 char (*f) () = $ac_func;
24018 return f != $ac_func;
24023 rm -f conftest.$ac_objext conftest$ac_exeext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24025 (eval $ac_link) 2>conftest.er1
24027 grep -v '^ *+' conftest.er1 >conftest.err
24029 cat conftest.err >&5
24030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031 (exit $ac_status); } &&
24032 { ac_try='test -z "$ac_c_werror_flag"
24033 || test ! -s conftest.err'
24034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035 (eval $ac_try) 2>&5
24037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038 (exit $ac_status); }; } &&
24039 { ac_try='test -s conftest$ac_exeext'
24040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041 (eval $ac_try) 2>&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; }; then
24045 eval "$as_ac_var=yes"
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24050 eval "$as_ac_var=no"
24052 rm -f conftest.err conftest.$ac_objext \
24053 conftest$ac_exeext conftest.$ac_ext
24055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24057 if test `eval echo '${'$as_ac_var'}'` = yes; then
24058 cat >>confdefs.h <<_ACEOF
24059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24065 if test "$time_found" = no; then
24066 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
24067 echo "$as_me: error: no function found to get the time" >&2;}
24068 { (exit 1); exit 1; }; }
24072 for ac_func in memmove
24074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24075 echo "$as_me:$LINENO: checking for $ac_func" >&5
24076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24077 if eval "test \"\${$as_ac_var+set}\" = set"; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24080 if test x$gcc_no_link = xyes; then
24081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24083 { (exit 1); exit 1; }; }
24085 cat >conftest.$ac_ext <<_ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24093 #define $ac_func innocuous_$ac_func
24095 /* System header to define __stub macros and hopefully few prototypes,
24096 which can conflict with char $ac_func (); below.
24097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24098 <limits.h> exists even on freestanding compilers. */
24101 # include <limits.h>
24103 # include <assert.h>
24108 /* Override any gcc2 internal prototype to avoid an error. */
24113 /* We use char because int might match the return type of a gcc2
24114 builtin and then its argument prototype would still apply. */
24116 /* The GNU C library defines this for functions which it implements
24117 to always fail with ENOSYS. Some functions are actually named
24118 something starting with __ and the normal name is an alias. */
24119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24122 char (*f) () = $ac_func;
24131 return f != $ac_func;
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24138 (eval $ac_link) 2>conftest.er1
24140 grep -v '^ *+' conftest.er1 >conftest.err
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } &&
24145 { ac_try='test -z "$ac_c_werror_flag"
24146 || test ! -s conftest.err'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; } &&
24152 { ac_try='test -s conftest$ac_exeext'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158 eval "$as_ac_var=yes"
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 eval "$as_ac_var=no"
24165 rm -f conftest.err conftest.$ac_objext \
24166 conftest$ac_exeext conftest.$ac_ext
24168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24170 if test `eval echo '${'$as_ac_var'}'` = yes; then
24171 cat >>confdefs.h <<_ACEOF
24172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24179 # We require memcpy.
24182 for ac_func in memcpy
24184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24185 echo "$as_me:$LINENO: checking for $ac_func" >&5
24186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24187 if eval "test \"\${$as_ac_var+set}\" = set"; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24190 if test x$gcc_no_link = xyes; then
24191 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24193 { (exit 1); exit 1; }; }
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24201 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24203 #define $ac_func innocuous_$ac_func
24205 /* System header to define __stub macros and hopefully few prototypes,
24206 which can conflict with char $ac_func (); below.
24207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24208 <limits.h> exists even on freestanding compilers. */
24211 # include <limits.h>
24213 # include <assert.h>
24218 /* Override any gcc2 internal prototype to avoid an error. */
24223 /* We use char because int might match the return type of a gcc2
24224 builtin and then its argument prototype would still apply. */
24226 /* The GNU C library defines this for functions which it implements
24227 to always fail with ENOSYS. Some functions are actually named
24228 something starting with __ and the normal name is an alias. */
24229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24232 char (*f) () = $ac_func;
24241 return f != $ac_func;
24246 rm -f conftest.$ac_objext conftest$ac_exeext
24247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24248 (eval $ac_link) 2>conftest.er1
24250 grep -v '^ *+' conftest.er1 >conftest.err
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } &&
24255 { ac_try='test -z "$ac_c_werror_flag"
24256 || test ! -s conftest.err'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; } &&
24262 { ac_try='test -s conftest$ac_exeext'
24263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24264 (eval $ac_try) 2>&5
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); }; }; then
24268 eval "$as_ac_var=yes"
24270 echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24273 eval "$as_ac_var=no"
24275 rm -f conftest.err conftest.$ac_objext \
24276 conftest$ac_exeext conftest.$ac_ext
24278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24279 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24280 if test `eval echo '${'$as_ac_var'}'` = yes; then
24281 cat >>confdefs.h <<_ACEOF
24282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24288 if test "$memcpy_found" = no; then
24289 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24290 echo "$as_me: error: memcpy is required" >&2;}
24291 { (exit 1); exit 1; }; }
24293 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24297 echo $ECHO_N "(cached) $ECHO_C" >&6
24299 ac_check_lib_save_LIBS=$LIBS
24301 if test x$gcc_no_link = xyes; then
24302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24304 { (exit 1); exit 1; }; }
24306 cat >conftest.$ac_ext <<_ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h. */
24313 /* Override any gcc2 internal prototype to avoid an error. */
24317 /* We use char because int might match the return type of a gcc2
24318 builtin and then its argument prototype would still apply. */
24328 rm -f conftest.$ac_objext conftest$ac_exeext
24329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24330 (eval $ac_link) 2>conftest.er1
24332 grep -v '^ *+' conftest.er1 >conftest.err
24334 cat conftest.err >&5
24335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336 (exit $ac_status); } &&
24337 { ac_try='test -z "$ac_c_werror_flag"
24338 || test ! -s conftest.err'
24339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340 (eval $ac_try) 2>&5
24342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343 (exit $ac_status); }; } &&
24344 { ac_try='test -s conftest$ac_exeext'
24345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346 (eval $ac_try) 2>&5
24348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); }; }; then
24350 ac_cv_lib_dl_dlopen=yes
24352 echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24355 ac_cv_lib_dl_dlopen=no
24357 rm -f conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24363 if test $ac_cv_lib_dl_dlopen = yes; then
24366 cat >>confdefs.h <<\_ACEOF
24367 #define HAVE_DLOPEN 1
24372 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24373 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24374 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24375 echo $ECHO_N "(cached) $ECHO_C" >&6
24377 ac_check_lib_save_LIBS=$LIBS
24379 if test x$gcc_no_link = xyes; then
24380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24382 { (exit 1); exit 1; }; }
24384 cat >conftest.$ac_ext <<_ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h. */
24391 /* Override any gcc2 internal prototype to avoid an error. */
24395 /* We use char because int might match the return type of a gcc2
24396 builtin and then its argument prototype would still apply. */
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24408 (eval $ac_link) 2>conftest.er1
24410 grep -v '^ *+' conftest.er1 >conftest.err
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } &&
24415 { ac_try='test -z "$ac_c_werror_flag"
24416 || test ! -s conftest.err'
24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418 (eval $ac_try) 2>&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; } &&
24422 { ac_try='test -s conftest$ac_exeext'
24423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424 (eval $ac_try) 2>&5
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); }; }; then
24428 ac_cv_lib_dld_dlopen=yes
24430 echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24433 ac_cv_lib_dld_dlopen=no
24435 rm -f conftest.err conftest.$ac_objext \
24436 conftest$ac_exeext conftest.$ac_ext
24437 LIBS=$ac_check_lib_save_LIBS
24439 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24440 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24441 if test $ac_cv_lib_dld_dlopen = yes; then
24444 cat >>confdefs.h <<\_ACEOF
24445 #define HAVE_DLOPEN 1
24453 # Some library-finding code we stole from Tcl.
24454 #--------------------------------------------------------------------
24455 # Check for the existence of the -lsocket and -lnsl libraries.
24456 # The order here is important, so that they end up in the right
24457 # order in the command line generated by make. Here are some
24458 # special considerations:
24459 # 1. Use "connect" and "accept" to check for -lsocket, and
24460 # "gethostbyname" to check for -lnsl.
24461 # 2. Use each function name only once: can't redo a check because
24462 # autoconf caches the results of the last check and won't redo it.
24463 # 3. Use -lnsl and -lsocket only if they supply procedures that
24464 # aren't already present in the normal libraries. This is because
24465 # IRIX 5.2 has libraries, but they aren't needed and they're
24466 # bogus: they goof up name resolution if used.
24467 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24468 # To get around this problem, check for both libraries together
24469 # if -lsocket doesn't work by itself.
24470 #--------------------------------------------------------------------
24472 echo "$as_me:$LINENO: checking for socket libraries" >&5
24473 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24474 if test "${gcj_cv_lib_sockets+set}" = set; then
24475 echo $ECHO_N "(cached) $ECHO_C" >&6
24477 gcj_cv_lib_sockets=
24479 unset ac_cv_func_connect
24480 echo "$as_me:$LINENO: checking for connect" >&5
24481 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24482 if test "${ac_cv_func_connect+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24485 if test x$gcc_no_link = xyes; then
24486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24488 { (exit 1); exit 1; }; }
24490 cat >conftest.$ac_ext <<_ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h. */
24496 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24498 #define connect innocuous_connect
24500 /* System header to define __stub macros and hopefully few prototypes,
24501 which can conflict with char connect (); below.
24502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24503 <limits.h> exists even on freestanding compilers. */
24506 # include <limits.h>
24508 # include <assert.h>
24513 /* Override any gcc2 internal prototype to avoid an error. */
24518 /* We use char because int might match the return type of a gcc2
24519 builtin and then its argument prototype would still apply. */
24521 /* The GNU C library defines this for functions which it implements
24522 to always fail with ENOSYS. Some functions are actually named
24523 something starting with __ and the normal name is an alias. */
24524 #if defined (__stub_connect) || defined (__stub___connect)
24527 char (*f) () = connect;
24536 return f != connect;
24541 rm -f conftest.$ac_objext conftest$ac_exeext
24542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24543 (eval $ac_link) 2>conftest.er1
24545 grep -v '^ *+' conftest.er1 >conftest.err
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } &&
24550 { ac_try='test -z "$ac_c_werror_flag"
24551 || test ! -s conftest.err'
24552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553 (eval $ac_try) 2>&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; } &&
24557 { ac_try='test -s conftest$ac_exeext'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; }; then
24563 ac_cv_func_connect=yes
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24568 ac_cv_func_connect=no
24570 rm -f conftest.err conftest.$ac_objext \
24571 conftest$ac_exeext conftest.$ac_ext
24573 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24574 echo "${ECHO_T}$ac_cv_func_connect" >&6
24575 if test $ac_cv_func_connect = yes; then
24581 if test "$gcj_checkSocket" = 1; then
24582 unset ac_cv_func_connect
24583 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24584 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24585 if test "${ac_cv_lib_socket_main+set}" = set; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24588 ac_check_lib_save_LIBS=$LIBS
24589 LIBS="-lsocket $LIBS"
24590 if test x$gcc_no_link = xyes; then
24591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24593 { (exit 1); exit 1; }; }
24595 cat >conftest.$ac_ext <<_ACEOF
24598 cat confdefs.h >>conftest.$ac_ext
24599 cat >>conftest.$ac_ext <<_ACEOF
24600 /* end confdefs.h. */
24611 rm -f conftest.$ac_objext conftest$ac_exeext
24612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24613 (eval $ac_link) 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } &&
24620 { ac_try='test -z "$ac_c_werror_flag"
24621 || test ! -s conftest.err'
24622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623 (eval $ac_try) 2>&5
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; } &&
24627 { ac_try='test -s conftest$ac_exeext'
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; }; then
24633 ac_cv_lib_socket_main=yes
24635 echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24638 ac_cv_lib_socket_main=no
24640 rm -f conftest.err conftest.$ac_objext \
24641 conftest$ac_exeext conftest.$ac_ext
24642 LIBS=$ac_check_lib_save_LIBS
24644 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24645 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24646 if test $ac_cv_lib_socket_main = yes; then
24647 gcj_cv_lib_sockets="-lsocket"
24653 if test "$gcj_checkBoth" = 1; then
24655 LIBS="$LIBS -lsocket -lnsl"
24656 unset ac_cv_func_accept
24657 echo "$as_me:$LINENO: checking for accept" >&5
24658 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24659 if test "${ac_cv_func_accept+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24662 if test x$gcc_no_link = xyes; then
24663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24665 { (exit 1); exit 1; }; }
24667 cat >conftest.$ac_ext <<_ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h. */
24673 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24675 #define accept innocuous_accept
24677 /* System header to define __stub macros and hopefully few prototypes,
24678 which can conflict with char accept (); below.
24679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24680 <limits.h> exists even on freestanding compilers. */
24683 # include <limits.h>
24685 # include <assert.h>
24690 /* Override any gcc2 internal prototype to avoid an error. */
24695 /* We use char because int might match the return type of a gcc2
24696 builtin and then its argument prototype would still apply. */
24698 /* The GNU C library defines this for functions which it implements
24699 to always fail with ENOSYS. Some functions are actually named
24700 something starting with __ and the normal name is an alias. */
24701 #if defined (__stub_accept) || defined (__stub___accept)
24704 char (*f) () = accept;
24713 return f != accept;
24718 rm -f conftest.$ac_objext conftest$ac_exeext
24719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24720 (eval $ac_link) 2>conftest.er1
24722 grep -v '^ *+' conftest.er1 >conftest.err
24724 cat conftest.err >&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
24727 { ac_try='test -z "$ac_c_werror_flag"
24728 || test ! -s conftest.err'
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try='test -s conftest$ac_exeext'
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_func_accept=yes
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24745 ac_cv_func_accept=no
24747 rm -f conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
24750 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24751 echo "${ECHO_T}$ac_cv_func_accept" >&6
24752 if test $ac_cv_func_accept = yes; then
24754 gcj_cv_lib_sockets="-lsocket -lnsl"
24757 unset ac_cv_func_accept
24760 unset ac_cv_func_gethostbyname
24762 LIBS="$LIBS $gcj_cv_lib_sockets"
24763 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24764 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24765 if test "${ac_cv_func_gethostbyname+set}" = set; then
24766 echo $ECHO_N "(cached) $ECHO_C" >&6
24768 if test x$gcc_no_link = xyes; then
24769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24771 { (exit 1); exit 1; }; }
24773 cat >conftest.$ac_ext <<_ACEOF
24776 cat confdefs.h >>conftest.$ac_ext
24777 cat >>conftest.$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24781 #define gethostbyname innocuous_gethostbyname
24783 /* System header to define __stub macros and hopefully few prototypes,
24784 which can conflict with char gethostbyname (); below.
24785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24786 <limits.h> exists even on freestanding compilers. */
24789 # include <limits.h>
24791 # include <assert.h>
24794 #undef gethostbyname
24796 /* Override any gcc2 internal prototype to avoid an error. */
24801 /* We use char because int might match the return type of a gcc2
24802 builtin and then its argument prototype would still apply. */
24803 char gethostbyname ();
24804 /* The GNU C library defines this for functions which it implements
24805 to always fail with ENOSYS. Some functions are actually named
24806 something starting with __ and the normal name is an alias. */
24807 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24810 char (*f) () = gethostbyname;
24819 return f != gethostbyname;
24824 rm -f conftest.$ac_objext conftest$ac_exeext
24825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24826 (eval $ac_link) 2>conftest.er1
24828 grep -v '^ *+' conftest.er1 >conftest.err
24830 cat conftest.err >&5
24831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } &&
24833 { ac_try='test -z "$ac_c_werror_flag"
24834 || test ! -s conftest.err'
24835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24836 (eval $ac_try) 2>&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); }; } &&
24840 { ac_try='test -s conftest$ac_exeext'
24841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842 (eval $ac_try) 2>&5
24844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_cv_func_gethostbyname=yes
24848 echo "$as_me: failed program was:" >&5
24849 sed 's/^/| /' conftest.$ac_ext >&5
24851 ac_cv_func_gethostbyname=no
24853 rm -f conftest.err conftest.$ac_objext \
24854 conftest$ac_exeext conftest.$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24857 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24858 if test $ac_cv_func_gethostbyname = yes; then
24861 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24862 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24863 if test "${ac_cv_lib_nsl_main+set}" = set; then
24864 echo $ECHO_N "(cached) $ECHO_C" >&6
24866 ac_check_lib_save_LIBS=$LIBS
24868 if test x$gcc_no_link = xyes; then
24869 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24870 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24871 { (exit 1); exit 1; }; }
24873 cat >conftest.$ac_ext <<_ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24889 rm -f conftest.$ac_objext conftest$ac_exeext
24890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24891 (eval $ac_link) 2>conftest.er1
24893 grep -v '^ *+' conftest.er1 >conftest.err
24895 cat conftest.err >&5
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } &&
24898 { ac_try='test -z "$ac_c_werror_flag"
24899 || test ! -s conftest.err'
24900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24901 (eval $ac_try) 2>&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; } &&
24905 { ac_try='test -s conftest$ac_exeext'
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; }; then
24911 ac_cv_lib_nsl_main=yes
24913 echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24916 ac_cv_lib_nsl_main=no
24918 rm -f conftest.err conftest.$ac_objext \
24919 conftest$ac_exeext conftest.$ac_ext
24920 LIBS=$ac_check_lib_save_LIBS
24922 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24923 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24924 if test $ac_cv_lib_nsl_main = yes; then
24925 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24930 unset ac_cv_func_gethostbyname
24934 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24935 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24936 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24938 if test "$with_system_zlib" = yes; then
24939 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24940 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24941 if test "${ac_cv_lib_z_deflate+set}" = set; then
24942 echo $ECHO_N "(cached) $ECHO_C" >&6
24944 ac_check_lib_save_LIBS=$LIBS
24946 if test x$gcc_no_link = xyes; then
24947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24949 { (exit 1); exit 1; }; }
24951 cat >conftest.$ac_ext <<_ACEOF
24954 cat confdefs.h >>conftest.$ac_ext
24955 cat >>conftest.$ac_ext <<_ACEOF
24956 /* end confdefs.h. */
24958 /* Override any gcc2 internal prototype to avoid an error. */
24962 /* We use char because int might match the return type of a gcc2
24963 builtin and then its argument prototype would still apply. */
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975 (eval $ac_link) 2>conftest.er1
24977 grep -v '^ *+' conftest.er1 >conftest.err
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
24990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_lib_z_deflate=yes
24997 echo "$as_me: failed program was:" >&5
24998 sed 's/^/| /' conftest.$ac_ext >&5
25000 ac_cv_lib_z_deflate=no
25002 rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
25004 LIBS=$ac_check_lib_save_LIBS
25006 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25007 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25008 if test $ac_cv_lib_z_deflate = yes; then
25016 # Test for Gtk stuff, if asked for.
25017 if test "$use_gtk_awt" = yes; then
25021 if test -z "$PKG_CONFIG"; then
25022 # Extract the first word of "pkg-config", so it can be a program name with args.
25023 set dummy pkg-config; ac_word=$2
25024 echo "$as_me:$LINENO: checking for $ac_word" >&5
25025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25026 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25027 echo $ECHO_N "(cached) $ECHO_C" >&6
25029 case $PKG_CONFIG in
25031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25035 for as_dir in $PATH
25038 test -z "$as_dir" && as_dir=.
25039 for ac_exec_ext in '' $ac_executable_extensions; do
25040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25048 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25052 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25054 if test -n "$PKG_CONFIG"; then
25055 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25056 echo "${ECHO_T}$PKG_CONFIG" >&6
25058 echo "$as_me:$LINENO: result: no" >&5
25059 echo "${ECHO_T}no" >&6
25064 if test "$PKG_CONFIG" = "no" ; then
25065 echo "*** The pkg-config script could not be found. Make sure it is"
25066 echo "*** in your path, or set the PKG_CONFIG environment variable"
25067 echo "*** to the full path to pkg-config."
25068 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25070 PKG_CONFIG_MIN_VERSION=0.9.0
25071 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25072 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
25073 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
25075 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
25076 echo "$as_me:$LINENO: result: yes" >&5
25077 echo "${ECHO_T}yes" >&6
25080 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25081 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
25082 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
25083 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25084 echo "${ECHO_T}$GTK_CFLAGS" >&6
25086 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25087 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25088 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25089 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25090 echo "${ECHO_T}$GTK_LIBS" >&6
25094 ## If we have a custom action on failure, don't print errors, but
25095 ## do set a variable so people can do so.
25096 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25097 echo $GTK_PKG_ERRORS
25103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25108 if test $succeeded = yes; then
25111 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25112 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25113 { (exit 1); exit 1; }; }
25122 if test -z "$PKG_CONFIG"; then
25123 # Extract the first word of "pkg-config", so it can be a program name with args.
25124 set dummy pkg-config; ac_word=$2
25125 echo "$as_me:$LINENO: checking for $ac_word" >&5
25126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25128 echo $ECHO_N "(cached) $ECHO_C" >&6
25130 case $PKG_CONFIG in
25132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25136 for as_dir in $PATH
25139 test -z "$as_dir" && as_dir=.
25140 for ac_exec_ext in '' $ac_executable_extensions; do
25141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25155 if test -n "$PKG_CONFIG"; then
25156 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25157 echo "${ECHO_T}$PKG_CONFIG" >&6
25159 echo "$as_me:$LINENO: result: no" >&5
25160 echo "${ECHO_T}no" >&6
25165 if test "$PKG_CONFIG" = "no" ; then
25166 echo "*** The pkg-config script could not be found. Make sure it is"
25167 echo "*** in your path, or set the PKG_CONFIG environment variable"
25168 echo "*** to the full path to pkg-config."
25169 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25171 PKG_CONFIG_MIN_VERSION=0.9.0
25172 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25173 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25174 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25176 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25177 echo "$as_me:$LINENO: result: yes" >&5
25178 echo "${ECHO_T}yes" >&6
25181 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25182 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25183 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25184 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25185 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25187 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25188 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25189 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25190 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25191 echo "${ECHO_T}$GLIB_LIBS" >&6
25195 ## If we have a custom action on failure, don't print errors, but
25196 ## do set a variable so people can do so.
25197 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25198 echo $GLIB_PKG_ERRORS
25204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25209 if test $succeeded = yes; then
25212 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25213 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25214 { (exit 1); exit 1; }; }
25223 if test -z "$PKG_CONFIG"; then
25224 # Extract the first word of "pkg-config", so it can be a program name with args.
25225 set dummy pkg-config; ac_word=$2
25226 echo "$as_me:$LINENO: checking for $ac_word" >&5
25227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25228 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25231 case $PKG_CONFIG in
25233 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237 for as_dir in $PATH
25240 test -z "$as_dir" && as_dir=.
25241 for ac_exec_ext in '' $ac_executable_extensions; do
25242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25243 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25256 if test -n "$PKG_CONFIG"; then
25257 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25258 echo "${ECHO_T}$PKG_CONFIG" >&6
25260 echo "$as_me:$LINENO: result: no" >&5
25261 echo "${ECHO_T}no" >&6
25266 if test "$PKG_CONFIG" = "no" ; then
25267 echo "*** The pkg-config script could not be found. Make sure it is"
25268 echo "*** in your path, or set the PKG_CONFIG environment variable"
25269 echo "*** to the full path to pkg-config."
25270 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25272 PKG_CONFIG_MIN_VERSION=0.9.0
25273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25274 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25275 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25277 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25278 echo "$as_me:$LINENO: result: yes" >&5
25279 echo "${ECHO_T}yes" >&6
25282 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25283 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25284 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25285 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25286 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25288 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25289 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25290 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25291 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25292 echo "${ECHO_T}$LIBART_LIBS" >&6
25296 ## If we have a custom action on failure, don't print errors, but
25297 ## do set a variable so people can do so.
25298 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25299 echo $LIBART_PKG_ERRORS
25305 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25306 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25310 if test $succeeded = yes; then
25313 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25314 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25315 { (exit 1); exit 1; }; }
25321 # We require the XTest Extension to support java.awt.Robot.
25322 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25323 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25324 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 ac_check_lib_save_LIBS=$LIBS
25328 LIBS="-lXtst ${X_LIBS} $LIBS"
25329 if test x$gcc_no_link = xyes; then
25330 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25332 { (exit 1); exit 1; }; }
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25341 /* Override any gcc2 internal prototype to avoid an error. */
25345 /* We use char because int might match the return type of a gcc2
25346 builtin and then its argument prototype would still apply. */
25347 char XTestQueryExtension ();
25351 XTestQueryExtension ();
25356 rm -f conftest.$ac_objext conftest$ac_exeext
25357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25358 (eval $ac_link) 2>conftest.er1
25360 grep -v '^ *+' conftest.er1 >conftest.err
25362 cat conftest.err >&5
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } &&
25365 { ac_try='test -z "$ac_c_werror_flag"
25366 || test ! -s conftest.err'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; } &&
25372 { ac_try='test -s conftest$ac_exeext'
25373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; }; then
25378 ac_cv_lib_Xtst_XTestQueryExtension=yes
25380 echo "$as_me: failed program was:" >&5
25381 sed 's/^/| /' conftest.$ac_ext >&5
25383 ac_cv_lib_Xtst_XTestQueryExtension=no
25385 rm -f conftest.err conftest.$ac_objext \
25386 conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25389 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25390 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25391 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25394 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25395 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25396 { (exit 1); exit 1; }; }
25401 # On Solaris, and maybe other architectures, the Boehm collector
25403 if test "$GC" = boehm; then
25406 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25407 # libgcj.spec is used, so override here
25408 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25411 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25412 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25413 if test "${ac_cv_lib_dl_main+set}" = set; then
25414 echo $ECHO_N "(cached) $ECHO_C" >&6
25416 ac_check_lib_save_LIBS=$LIBS
25418 if test x$gcc_no_link = xyes; then
25419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25421 { (exit 1); exit 1; }; }
25423 cat >conftest.$ac_ext <<_ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h. */
25439 rm -f conftest.$ac_objext conftest$ac_exeext
25440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25441 (eval $ac_link) 2>conftest.er1
25443 grep -v '^ *+' conftest.er1 >conftest.err
25445 cat conftest.err >&5
25446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447 (exit $ac_status); } &&
25448 { ac_try='test -z "$ac_c_werror_flag"
25449 || test ! -s conftest.err'
25450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451 (eval $ac_try) 2>&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); }; } &&
25455 { ac_try='test -s conftest$ac_exeext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 ac_cv_lib_dl_main=yes
25463 echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25466 ac_cv_lib_dl_main=no
25468 rm -f conftest.err conftest.$ac_objext \
25469 conftest$ac_exeext conftest.$ac_ext
25470 LIBS=$ac_check_lib_save_LIBS
25472 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25473 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25474 if test $ac_cv_lib_dl_main = yes; then
25475 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25483 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25485 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25486 *) CLASSPATH_SEPARATOR=':' ;;
25490 # We must search the source tree for java.lang, since we still don't
25491 # have libgcj.jar nor java/lang/*.class
25492 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25493 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25495 # Since some classes depend on this one, we need its source available
25496 # before we can do any GCJ compilation test :-(
25497 if test ! -f gnu/classpath/Configuration.java; then
25498 test -d gnu || mkdir gnu
25499 test -d gnu/classpath || mkdir gnu/classpath
25500 # Note that it is not crucial that all the values here be correct.
25501 sed -e "s,@prefix@,$prefix," \
25502 -e "s,@VERSION@,$VERSION," \
25503 -e "s,@LIBDEBUG@,false," \
25504 -e "s,@INIT_LOAD_LIBRARY@,false," \
25505 -e "s,@@,$LIBGCJDEBUG," \
25506 -e "s,@default_toolkit@,$TOOLKIT," \
25507 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25508 -e "s,@GTK_CAIRO_ENABLED@,false," \
25509 -e "s,@ECJ_JAR@,," \
25510 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
25511 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25512 > gnu/classpath/Configuration.java
25513 # We do not want to redirect the output of the grep below to /dev/null,
25514 # but we add /dev/null to the input list so that grep will print the
25515 # filename of Configuration.java in case it finds any matches.
25516 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25517 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25518 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25519 { (exit 1); exit 1; }; }
25526 # Extract the first word of "$ac_prog", so it can be a program name with args.
25527 set dummy $ac_prog; ac_word=$2
25528 echo "$as_me:$LINENO: checking for $ac_word" >&5
25529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25530 if test "${ac_cv_prog_GCJ+set}" = set; then
25531 echo $ECHO_N "(cached) $ECHO_C" >&6
25533 if test -n "$GCJ"; then
25534 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25537 for as_dir in $PATH
25540 test -z "$as_dir" && as_dir=.
25541 for ac_exec_ext in '' $ac_executable_extensions; do
25542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25543 ac_cv_prog_GCJ="$ac_prog"
25544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25552 GCJ=$ac_cv_prog_GCJ
25553 if test -n "$GCJ"; then
25554 echo "$as_me:$LINENO: result: $GCJ" >&5
25555 echo "${ECHO_T}$GCJ" >&6
25557 echo "$as_me:$LINENO: result: no" >&5
25558 echo "${ECHO_T}no" >&6
25561 test -n "$GCJ" && break
25563 test -n "$GCJ" || GCJ="gcj"
25565 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25566 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25567 { (exit 1); exit 1; }; }
25568 if test "x${GCJFLAGS-unset}" = xunset; then
25573 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25577 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25578 echo $ECHO_N "(cached) $ECHO_C" >&6
25580 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25581 # We make a subdir and do the tests there. Otherwise we can end up
25582 # making bogus files that we don't know about and never remove. For
25583 # instance it was reported that on HP-UX the gcc test will end up
25584 # making a dummy file named `D' -- because `-MD' means `put the output
25587 # Copy depcomp to subdir because otherwise we won't find it if we're
25588 # using a relative directory.
25589 cp "$am_depcomp" conftest.dir
25591 # We will build objects and dependencies in a subdirectory because
25592 # it helps to detect inapplicable dependency modes. For instance
25593 # both Tru64's cc and ICC support -MD to output dependencies as a
25594 # side effect of compilation, but ICC will put the dependencies in
25595 # the current directory while Tru64 will put them in the object
25599 am_cv_GCJ_dependencies_compiler_type=none
25600 if test "$am_compiler_list" = ""; then
25601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25603 for depmode in $am_compiler_list; do
25604 # Setup a source with many dependencies, because some compilers
25605 # like to wrap large dependency lists on column 80 (with \), and
25606 # we should not choose a depcomp mode which is confused by this.
25608 # We need to recreate these files for each test, as the compiler may
25609 # overwrite some of them when testing with obscure command lines.
25610 # This happens at least with the AIX C compiler.
25612 for i in 1 2 3 4 5 6; do
25613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25614 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25615 # Solaris 8's {/usr,}/bin/sh.
25616 touch sub/conftst$i.h
25618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25622 # after this tag, mechanisms are not by side-effect, so they'll
25623 # only be used when explicitly requested
25624 if test "x$enable_dependency_tracking" = xyes; then
25632 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25633 # mode. It turns out that the SunPro C++ compiler does not properly
25634 # handle `-M -o', and we need to detect this.
25635 if depmode=$depmode \
25636 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25637 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25638 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25639 >/dev/null 2>conftest.err &&
25640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25643 # icc doesn't choke on unknown options, it will just issue warnings
25644 # or remarks (even with -Werror). So we grep stderr for any message
25645 # that says an option was ignored or not supported.
25646 # When given -MP, icc 7.0 and 7.1 complain thusly:
25647 # icc: Command line warning: ignoring option '-M'; no argument required
25648 # The diagnosis changed in icc 8.0:
25649 # icc: Command line remark: option '-MP' not supported
25650 if (grep 'ignoring option' conftest.err ||
25651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25652 am_cv_GCJ_dependencies_compiler_type=$depmode
25659 rm -rf conftest.dir
25661 am_cv_GCJ_dependencies_compiler_type=none
25665 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25666 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25667 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25672 test "x$enable_dependency_tracking" != xno \
25673 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25674 am__fastdepGCJ_TRUE=
25675 am__fastdepGCJ_FALSE='#'
25677 am__fastdepGCJ_TRUE='#'
25678 am__fastdepGCJ_FALSE=
25685 rm -f gnu/classpath/Configuration.java
25687 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25689 echo "$as_me:$LINENO: checking for void *" >&5
25690 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25691 if test "${ac_cv_type_void_p+set}" = set; then
25692 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 cat >conftest.$ac_ext <<_ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h. */
25700 $ac_includes_default
25706 if (sizeof (void *))
25712 rm -f conftest.$ac_objext
25713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25714 (eval $ac_compile) 2>conftest.er1
25716 grep -v '^ *+' conftest.er1 >conftest.err
25718 cat conftest.err >&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } &&
25721 { ac_try='test -z "$ac_c_werror_flag"
25722 || test ! -s conftest.err'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; } &&
25728 { ac_try='test -s conftest.$ac_objext'
25729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730 (eval $ac_try) 2>&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); }; }; then
25734 ac_cv_type_void_p=yes
25736 echo "$as_me: failed program was:" >&5
25737 sed 's/^/| /' conftest.$ac_ext >&5
25739 ac_cv_type_void_p=no
25741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25743 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25744 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25746 echo "$as_me:$LINENO: checking size of void *" >&5
25747 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25748 if test "${ac_cv_sizeof_void_p+set}" = set; then
25749 echo $ECHO_N "(cached) $ECHO_C" >&6
25751 if test "$ac_cv_type_void_p" = yes; then
25752 # The cast to unsigned long works around a bug in the HP C Compiler
25753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25755 # This bug is HP SR number 8606223364.
25756 if test "$cross_compiling" = yes; then
25757 # Depending upon the size, compute the lo and hi bounds.
25758 cat >conftest.$ac_ext <<_ACEOF
25761 cat confdefs.h >>conftest.$ac_ext
25762 cat >>conftest.$ac_ext <<_ACEOF
25763 /* end confdefs.h. */
25764 $ac_includes_default
25768 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25775 rm -f conftest.$ac_objext
25776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25777 (eval $ac_compile) 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } &&
25784 { ac_try='test -z "$ac_c_werror_flag"
25785 || test ! -s conftest.err'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; } &&
25791 { ac_try='test -s conftest.$ac_objext'
25792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793 (eval $ac_try) 2>&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); }; }; then
25799 cat >conftest.$ac_ext <<_ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h. */
25805 $ac_includes_default
25809 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25816 rm -f conftest.$ac_objext
25817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25818 (eval $ac_compile) 2>conftest.er1
25820 grep -v '^ *+' conftest.er1 >conftest.err
25822 cat conftest.err >&5
25823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824 (exit $ac_status); } &&
25825 { ac_try='test -z "$ac_c_werror_flag"
25826 || test ! -s conftest.err'
25827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25828 (eval $ac_try) 2>&5
25830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831 (exit $ac_status); }; } &&
25832 { ac_try='test -s conftest.$ac_objext'
25833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834 (eval $ac_try) 2>&5
25836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837 (exit $ac_status); }; }; then
25838 ac_hi=$ac_mid; break
25840 echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25843 ac_lo=`expr $ac_mid + 1`
25844 if test $ac_lo -le $ac_mid; then
25848 ac_mid=`expr 2 '*' $ac_mid + 1`
25850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25853 echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25856 cat >conftest.$ac_ext <<_ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25862 $ac_includes_default
25866 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25873 rm -f conftest.$ac_objext
25874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25875 (eval $ac_compile) 2>conftest.er1
25877 grep -v '^ *+' conftest.er1 >conftest.err
25879 cat conftest.err >&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); } &&
25882 { ac_try='test -z "$ac_c_werror_flag"
25883 || test ! -s conftest.err'
25884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885 (eval $ac_try) 2>&5
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); }; } &&
25889 { ac_try='test -s conftest.$ac_objext'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; }; then
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 $ac_includes_default
25907 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25914 rm -f conftest.$ac_objext
25915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25916 (eval $ac_compile) 2>conftest.er1
25918 grep -v '^ *+' conftest.er1 >conftest.err
25920 cat conftest.err >&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } &&
25923 { ac_try='test -z "$ac_c_werror_flag"
25924 || test ! -s conftest.err'
25925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926 (eval $ac_try) 2>&5
25928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929 (exit $ac_status); }; } &&
25930 { ac_try='test -s conftest.$ac_objext'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; }; then
25936 ac_lo=$ac_mid; break
25938 echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25941 ac_hi=`expr '(' $ac_mid ')' - 1`
25942 if test $ac_mid -le $ac_hi; then
25946 ac_mid=`expr 2 '*' $ac_mid`
25948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25951 echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25959 # Binary search between lo and hi bounds.
25960 while test "x$ac_lo" != "x$ac_hi"; do
25961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25962 cat >conftest.$ac_ext <<_ACEOF
25965 cat confdefs.h >>conftest.$ac_ext
25966 cat >>conftest.$ac_ext <<_ACEOF
25967 /* end confdefs.h. */
25968 $ac_includes_default
25972 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25979 rm -f conftest.$ac_objext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25981 (eval $ac_compile) 2>conftest.er1
25983 grep -v '^ *+' conftest.er1 >conftest.err
25985 cat conftest.err >&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); } &&
25988 { ac_try='test -z "$ac_c_werror_flag"
25989 || test ! -s conftest.err'
25990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25991 (eval $ac_try) 2>&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); }; } &&
25995 { ac_try='test -s conftest.$ac_objext'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; }; then
26003 echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26006 ac_lo=`expr '(' $ac_mid ')' + 1`
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26011 ?*) ac_cv_sizeof_void_p=$ac_lo;;
26012 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26013 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26015 See \`config.log' for more details." >&5
26016 echo "$as_me: error: cannot compute sizeof (void *), 77
26017 See \`config.log' for more details." >&2;}
26018 { (exit 1); exit 1; }; }; } ;;
26021 if test "$cross_compiling" = yes; then
26022 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26023 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26024 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26025 See \`config.log' for more details." >&5
26026 echo "$as_me: error: cannot run test program while cross compiling
26027 See \`config.log' for more details." >&2;}
26028 { (exit 1); exit 1; }; }; }
26030 cat >conftest.$ac_ext <<_ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h. */
26036 $ac_includes_default
26037 long longval () { return (long) (sizeof (void *)); }
26038 unsigned long ulongval () { return (long) (sizeof (void *)); }
26040 #include <stdlib.h>
26045 FILE *f = fopen ("conftest.val", "w");
26048 if (((long) (sizeof (void *))) < 0)
26050 long i = longval ();
26051 if (i != ((long) (sizeof (void *))))
26053 fprintf (f, "%ld\n", i);
26057 unsigned long i = ulongval ();
26058 if (i != ((long) (sizeof (void *))))
26060 fprintf (f, "%lu\n", i);
26062 exit (ferror (f) || fclose (f) != 0);
26068 rm -f conftest$ac_exeext
26069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26070 (eval $ac_link) 2>&5
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; }; then
26079 ac_cv_sizeof_void_p=`cat conftest.val`
26081 echo "$as_me: program exited with status $ac_status" >&5
26082 echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26085 ( exit $ac_status )
26086 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26087 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26089 See \`config.log' for more details." >&5
26090 echo "$as_me: error: cannot compute sizeof (void *), 77
26091 See \`config.log' for more details." >&2;}
26092 { (exit 1); exit 1; }; }; }
26094 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26099 ac_cv_sizeof_void_p=0
26102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26103 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26104 cat >>confdefs.h <<_ACEOF
26105 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26110 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26112 if test "${ac_cv_c_bigendian+set}" = set; then
26113 echo $ECHO_N "(cached) $ECHO_C" >&6
26115 # See if sys/param.h defines the BYTE_ORDER macro.
26116 cat >conftest.$ac_ext <<_ACEOF
26119 cat confdefs.h >>conftest.$ac_ext
26120 cat >>conftest.$ac_ext <<_ACEOF
26121 /* end confdefs.h. */
26122 #include <sys/types.h>
26123 #include <sys/param.h>
26128 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26129 bogus endian macros
26136 rm -f conftest.$ac_objext
26137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26138 (eval $ac_compile) 2>conftest.er1
26140 grep -v '^ *+' conftest.er1 >conftest.err
26142 cat conftest.err >&5
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
26145 { ac_try='test -z "$ac_c_werror_flag"
26146 || test ! -s conftest.err'
26147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26148 (eval $ac_try) 2>&5
26150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); }; } &&
26152 { ac_try='test -s conftest.$ac_objext'
26153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26154 (eval $ac_try) 2>&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); }; }; then
26158 # It does; now see whether it defined to BIG_ENDIAN or not.
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165 #include <sys/types.h>
26166 #include <sys/param.h>
26171 #if BYTE_ORDER != BIG_ENDIAN
26179 rm -f conftest.$ac_objext
26180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26181 (eval $ac_compile) 2>conftest.er1
26183 grep -v '^ *+' conftest.er1 >conftest.err
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } &&
26188 { ac_try='test -z "$ac_c_werror_flag"
26189 || test ! -s conftest.err'
26190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; } &&
26195 { ac_try='test -s conftest.$ac_objext'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201 ac_cv_c_bigendian=yes
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_cv_c_bigendian=no
26208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 # It does not; compile a test program.
26214 if test "$cross_compiling" = yes; then
26215 # try to guess the endianness by grepping values into an object file
26216 ac_cv_c_bigendian=unknown
26217 cat >conftest.$ac_ext <<_ACEOF
26220 cat confdefs.h >>conftest.$ac_ext
26221 cat >>conftest.$ac_ext <<_ACEOF
26222 /* end confdefs.h. */
26223 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26224 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26226 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26227 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26232 _ascii (); _ebcdic ();
26237 rm -f conftest.$ac_objext
26238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26239 (eval $ac_compile) 2>conftest.er1
26241 grep -v '^ *+' conftest.er1 >conftest.err
26243 cat conftest.err >&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
26246 { ac_try='test -z "$ac_c_werror_flag"
26247 || test ! -s conftest.err'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; } &&
26253 { ac_try='test -s conftest.$ac_objext'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; }; then
26259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26260 ac_cv_c_bigendian=yes
26262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26263 if test "$ac_cv_c_bigendian" = unknown; then
26264 ac_cv_c_bigendian=no
26266 # finding both strings is unlikely to happen, but who knows?
26267 ac_cv_c_bigendian=unknown
26271 echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26286 /* Are we little or big endian? From Harbison&Steele. */
26290 char c[sizeof (long)];
26293 exit (u.c[sizeof (long) - 1] == 1);
26296 rm -f conftest$ac_exeext
26297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26298 (eval $ac_link) 2>&5
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26303 (eval $ac_try) 2>&5
26305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); }; }; then
26307 ac_cv_c_bigendian=no
26309 echo "$as_me: program exited with status $ac_status" >&5
26310 echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26313 ( exit $ac_status )
26314 ac_cv_c_bigendian=yes
26316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26321 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26322 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26323 case $ac_cv_c_bigendian in
26326 cat >>confdefs.h <<\_ACEOF
26327 #define WORDS_BIGENDIAN 1
26333 { { echo "$as_me:$LINENO: error: unknown endianness
26334 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26335 echo "$as_me: error: unknown endianness
26336 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26337 { (exit 1); exit 1; }; } ;;
26345 if test -z "$ZLIBSPEC"; then
26346 # Use zlib from the GCC tree.
26347 ZINCS='-I$(top_srcdir)/../zlib'
26348 ZLIBS=../zlib/libzgcj_convenience.la
26351 SYS_ZLIBS="$ZLIBSPEC"
26364 if test "$NATIVE" = yes; then
26374 if test "$enable_shared" = yes; then
26375 ENABLE_SHARED_TRUE=
26376 ENABLE_SHARED_FALSE='#'
26378 ENABLE_SHARED_TRUE='#'
26379 ENABLE_SHARED_FALSE=
26384 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26385 NEEDS_DATA_START_TRUE=
26386 NEEDS_DATA_START_FALSE='#'
26388 NEEDS_DATA_START_TRUE='#'
26389 NEEDS_DATA_START_FALSE=
26394 if test -z "${with_multisubdir}"; then
26395 INSTALL_BINARIES_TRUE=
26396 INSTALL_BINARIES_FALSE='#'
26398 INSTALL_BINARIES_TRUE='#'
26399 INSTALL_BINARIES_FALSE=
26404 # Process the option "--enable-version-specific-runtime-libs"
26405 # Calculate toolexeclibdir
26406 case ${version_specific_libs} in
26408 # Need the gcc compiler version to know where to install libraries
26409 # and header files if --enable-version-specific-runtime-libs option
26411 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26412 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26413 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26414 toolexeclibdir=$toolexecmainlibdir
26417 if test -n "$with_cross_host" &&
26418 test x"$with_cross_host" != x"no"; then
26419 # Install a library built with a cross compiler in tooldir, not libdir.
26420 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26421 toolexecmainlibdir='$(toolexecdir)/lib'
26423 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26424 toolexecmainlibdir='$(libdir)'
26426 multi_os_directory=`$CC -print-multi-os-directory`
26427 case $multi_os_directory in
26428 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26429 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26437 # Determine gcj and libgcj version number.
26438 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26439 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26440 GCJVERSION=$gcjversion
26443 cat >>confdefs.h <<_ACEOF
26444 #define GCJVERSION "$GCJVERSION"
26448 # Determine where the standard .db file and GNU Classpath JNI
26449 # libraries are found.
26450 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26451 multi_os_directory=`$CC -print-multi-os-directory`
26452 case $multi_os_directory in
26454 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26457 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26464 cat >>confdefs.h <<\_ACEOF
26465 #define JV_VERSION "1.5.0"
26469 cat >>confdefs.h <<\_ACEOF
26470 #define JV_API_VERSION "1.5"
26475 case "${with_gxx_include_dir}" in
26477 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26478 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26479 { (exit 1); exit 1; }; }
26482 case "${enable_version_specific_runtime_libs}" in
26483 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26485 libstdcxx_incdir='c++/$(gcc_version)'
26486 gxx_include_dir='include/$(libstdcxx_incdir)'
26487 if test -n "$with_cross_host" &&
26488 test x"$with_cross_host" != x"no"; then
26489 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26491 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26494 *) gxx_include_dir=${with_gxx_include_dir} ;;
26500 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26501 # On that system, sys/ioctl.h will not include sys/filio.h unless
26502 # BSD_COMP is defined; just including sys/filio.h is simpler.
26503 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26504 # for now. If you change this, you also must update natFile.cc.
26528 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26529 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26530 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26531 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26532 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26536 echo "$as_me:$LINENO: checking for $ac_header" >&5
26537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26539 echo $ECHO_N "(cached) $ECHO_C" >&6
26541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26544 # Is the header compilable?
26545 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26547 cat >conftest.$ac_ext <<_ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h. */
26553 $ac_includes_default
26554 #include <$ac_header>
26556 rm -f conftest.$ac_objext
26557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26558 (eval $ac_compile) 2>conftest.er1
26560 grep -v '^ *+' conftest.er1 >conftest.err
26562 cat conftest.err >&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } &&
26565 { ac_try='test -z "$ac_c_werror_flag"
26566 || test ! -s conftest.err'
26567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26568 (eval $ac_try) 2>&5
26570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571 (exit $ac_status); }; } &&
26572 { ac_try='test -s conftest.$ac_objext'
26573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26574 (eval $ac_try) 2>&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); }; }; then
26578 ac_header_compiler=yes
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26583 ac_header_compiler=no
26585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26587 echo "${ECHO_T}$ac_header_compiler" >&6
26589 # Is the header present?
26590 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26592 cat >conftest.$ac_ext <<_ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598 #include <$ac_header>
26600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26603 grep -v '^ *+' conftest.er1 >conftest.err
26605 cat conftest.err >&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } >/dev/null; then
26608 if test -s conftest.err; then
26609 ac_cpp_err=$ac_c_preproc_warn_flag
26610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26617 if test -z "$ac_cpp_err"; then
26618 ac_header_preproc=yes
26620 echo "$as_me: failed program was:" >&5
26621 sed 's/^/| /' conftest.$ac_ext >&5
26623 ac_header_preproc=no
26625 rm -f conftest.err conftest.$ac_ext
26626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26627 echo "${ECHO_T}$ac_header_preproc" >&6
26629 # So? What about this header?
26630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26636 ac_header_preproc=yes
26639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26653 ## ---------------------------------- ##
26654 ## Report this to the libjava lists. ##
26655 ## ---------------------------------- ##
26658 sed "s/^/$as_me: WARNING: /" >&2
26661 echo "$as_me:$LINENO: checking for $ac_header" >&5
26662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664 echo $ECHO_N "(cached) $ECHO_C" >&6
26666 eval "$as_ac_Header=\$ac_header_preproc"
26668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26673 cat >>confdefs.h <<_ACEOF
26674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26682 for ac_header in inttypes.h
26684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26686 echo "$as_me:$LINENO: checking for $ac_header" >&5
26687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26694 # Is the header compilable?
26695 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26697 cat >conftest.$ac_ext <<_ACEOF
26700 cat confdefs.h >>conftest.$ac_ext
26701 cat >>conftest.$ac_ext <<_ACEOF
26702 /* end confdefs.h. */
26703 $ac_includes_default
26704 #include <$ac_header>
26706 rm -f conftest.$ac_objext
26707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26708 (eval $ac_compile) 2>conftest.er1
26710 grep -v '^ *+' conftest.er1 >conftest.err
26712 cat conftest.err >&5
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); } &&
26715 { ac_try='test -z "$ac_c_werror_flag"
26716 || test ! -s conftest.err'
26717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26718 (eval $ac_try) 2>&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); }; } &&
26722 { ac_try='test -s conftest.$ac_objext'
26723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 (eval $ac_try) 2>&5
26726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); }; }; then
26728 ac_header_compiler=yes
26730 echo "$as_me: failed program was:" >&5
26731 sed 's/^/| /' conftest.$ac_ext >&5
26733 ac_header_compiler=no
26735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26736 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26737 echo "${ECHO_T}$ac_header_compiler" >&6
26739 # Is the header present?
26740 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 #include <$ac_header>
26750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26753 grep -v '^ *+' conftest.er1 >conftest.err
26755 cat conftest.err >&5
26756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757 (exit $ac_status); } >/dev/null; then
26758 if test -s conftest.err; then
26759 ac_cpp_err=$ac_c_preproc_warn_flag
26760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26767 if test -z "$ac_cpp_err"; then
26768 ac_header_preproc=yes
26770 echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26773 ac_header_preproc=no
26775 rm -f conftest.err conftest.$ac_ext
26776 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26777 echo "${ECHO_T}$ac_header_preproc" >&6
26779 # So? What about this header?
26780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26786 ac_header_preproc=yes
26789 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26792 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26795 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26796 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26799 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26803 ## ---------------------------------- ##
26804 ## Report this to the libjava lists. ##
26805 ## ---------------------------------- ##
26808 sed "s/^/$as_me: WARNING: /" >&2
26811 echo "$as_me:$LINENO: checking for $ac_header" >&5
26812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26814 echo $ECHO_N "(cached) $ECHO_C" >&6
26816 eval "$as_ac_Header=\$ac_header_preproc"
26818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26823 cat >>confdefs.h <<_ACEOF
26824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26828 cat >>confdefs.h <<\_ACEOF
26829 #define HAVE_INTTYPES_H 1
26833 cat >>confdefs.h <<\_ACEOF
26834 #define JV_HAVE_INTTYPES_H 1
26843 echo "$as_me:$LINENO: checking for ssize_t" >&5
26844 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26845 if test "${ac_cv_type_ssize_t+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26848 cat >conftest.$ac_ext <<_ACEOF
26851 cat confdefs.h >>conftest.$ac_ext
26852 cat >>conftest.$ac_ext <<_ACEOF
26853 /* end confdefs.h. */
26854 $ac_includes_default
26860 if (sizeof (ssize_t))
26866 rm -f conftest.$ac_objext
26867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26868 (eval $ac_compile) 2>conftest.er1
26870 grep -v '^ *+' conftest.er1 >conftest.err
26872 cat conftest.err >&5
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } &&
26875 { ac_try='test -z "$ac_c_werror_flag"
26876 || test ! -s conftest.err'
26877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878 (eval $ac_try) 2>&5
26880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881 (exit $ac_status); }; } &&
26882 { ac_try='test -s conftest.$ac_objext'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; }; then
26888 ac_cv_type_ssize_t=yes
26890 echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26893 ac_cv_type_ssize_t=no
26895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26897 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26898 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26899 if test $ac_cv_type_ssize_t = yes; then
26903 cat >>confdefs.h <<_ACEOF
26904 #define ssize_t int
26909 echo "$as_me:$LINENO: checking for magic_t" >&5
26910 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26911 if test "${ac_cv_type_magic_t+set}" = set; then
26912 echo $ECHO_N "(cached) $ECHO_C" >&6
26914 cat >conftest.$ac_ext <<_ACEOF
26917 cat confdefs.h >>conftest.$ac_ext
26918 cat >>conftest.$ac_ext <<_ACEOF
26919 /* end confdefs.h. */
26921 #ifdef HAVE_MAGIC_H
26930 if (sizeof (magic_t))
26936 rm -f conftest.$ac_objext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26938 (eval $ac_compile) 2>conftest.er1
26940 grep -v '^ *+' conftest.er1 >conftest.err
26942 cat conftest.err >&5
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
26945 { ac_try='test -z "$ac_c_werror_flag"
26946 || test ! -s conftest.err'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; } &&
26952 { ac_try='test -s conftest.$ac_objext'
26953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954 (eval $ac_try) 2>&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; }; then
26958 ac_cv_type_magic_t=yes
26960 echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963 ac_cv_type_magic_t=no
26965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26967 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26968 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26969 if test $ac_cv_type_magic_t = yes; then
26972 cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_MAGIC_T 1
26979 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26980 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26981 cat >conftest.$ac_ext <<_ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26987 #include <sys/types.h>
26989 #include <stdlib.h>
26990 #include <stddef.h>
26992 #if HAVE_NETINET_IN_H
26993 #include <netinet/in.h>
27003 rm -f conftest.$ac_objext
27004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27005 (eval $ac_compile) 2>conftest.er1
27007 grep -v '^ *+' conftest.er1 >conftest.err
27009 cat conftest.err >&5
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); } &&
27012 { ac_try='test -z "$ac_c_werror_flag"
27013 || test ! -s conftest.err'
27014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015 (eval $ac_try) 2>&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); }; } &&
27019 { ac_try='test -s conftest.$ac_objext'
27020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021 (eval $ac_try) 2>&5
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); }; }; then
27026 cat >>confdefs.h <<\_ACEOF
27027 #define HAVE_IN_ADDR_T 1
27030 echo "$as_me:$LINENO: result: yes" >&5
27031 echo "${ECHO_T}yes" >&6
27033 echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.$ac_ext >&5
27036 echo "$as_me:$LINENO: result: no" >&5
27037 echo "${ECHO_T}no" >&6
27039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
27042 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
27043 cat >conftest.$ac_ext <<_ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h. */
27049 #include <netinet/in.h>
27053 struct ip_mreq mreq;
27058 rm -f conftest.$ac_objext
27059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27060 (eval $ac_compile) 2>conftest.er1
27062 grep -v '^ *+' conftest.er1 >conftest.err
27064 cat conftest.err >&5
27065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066 (exit $ac_status); } &&
27067 { ac_try='test -z "$ac_c_werror_flag"
27068 || test ! -s conftest.err'
27069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070 (eval $ac_try) 2>&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); }; } &&
27074 { ac_try='test -s conftest.$ac_objext'
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; }; then
27081 cat >>confdefs.h <<\_ACEOF
27082 #define HAVE_STRUCT_IP_MREQ 1
27085 echo "$as_me:$LINENO: result: yes" >&5
27086 echo "${ECHO_T}yes" >&6
27088 echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27091 echo "$as_me:$LINENO: result: no" >&5
27092 echo "${ECHO_T}no" >&6
27094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27096 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
27097 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
27098 cat >conftest.$ac_ext <<_ACEOF
27101 cat confdefs.h >>conftest.$ac_ext
27102 cat >>conftest.$ac_ext <<_ACEOF
27103 /* end confdefs.h. */
27104 #include <netinet/in.h>
27108 struct ipv6_mreq mreq6;
27113 rm -f conftest.$ac_objext
27114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27115 (eval $ac_compile) 2>conftest.er1
27117 grep -v '^ *+' conftest.er1 >conftest.err
27119 cat conftest.err >&5
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
27122 { ac_try='test -z "$ac_c_werror_flag"
27123 || test ! -s conftest.err'
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest.$ac_objext'
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27136 cat >>confdefs.h <<\_ACEOF
27137 #define HAVE_STRUCT_IPV6_MREQ 1
27140 echo "$as_me:$LINENO: result: yes" >&5
27141 echo "${ECHO_T}yes" >&6
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 echo "$as_me:$LINENO: result: no" >&5
27147 echo "${ECHO_T}no" >&6
27149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27151 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27152 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27153 cat >conftest.$ac_ext <<_ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h. */
27159 #include <netinet/in.h>
27163 struct sockaddr_in6 addr6;
27168 rm -f conftest.$ac_objext
27169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27170 (eval $ac_compile) 2>conftest.er1
27172 grep -v '^ *+' conftest.er1 >conftest.err
27174 cat conftest.err >&5
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); } &&
27177 { ac_try='test -z "$ac_c_werror_flag"
27178 || test ! -s conftest.err'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; } &&
27184 { ac_try='test -s conftest.$ac_objext'
27185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27186 (eval $ac_try) 2>&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); }; }; then
27191 cat >>confdefs.h <<\_ACEOF
27192 #define HAVE_INET6 1
27195 echo "$as_me:$LINENO: result: yes" >&5
27196 echo "${ECHO_T}yes" >&6
27198 echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 echo "$as_me:$LINENO: result: no" >&5
27202 echo "${ECHO_T}no" >&6
27204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27206 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27207 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27208 cat >conftest.$ac_ext <<_ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27214 #define _POSIX_PII_SOCKET
27215 #include <sys/types.h>
27216 #include <sys/socket.h>
27225 rm -f conftest.$ac_objext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27227 (eval $ac_compile) 2>conftest.er1
27229 grep -v '^ *+' conftest.er1 >conftest.err
27231 cat conftest.err >&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); } &&
27234 { ac_try='test -z "$ac_c_werror_flag"
27235 || test ! -s conftest.err'
27236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237 (eval $ac_try) 2>&5
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); }; } &&
27241 { ac_try='test -s conftest.$ac_objext'
27242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243 (eval $ac_try) 2>&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; }; then
27248 cat >>confdefs.h <<\_ACEOF
27249 #define HAVE_SOCKLEN_T 1
27252 echo "$as_me:$LINENO: result: yes" >&5
27253 echo "${ECHO_T}yes" >&6
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27258 echo "$as_me:$LINENO: result: no" >&5
27259 echo "${ECHO_T}no" >&6
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27263 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27264 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27265 cat >conftest.$ac_ext <<_ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h. */
27275 struct tm tim; tim.tm_gmtoff = 0;
27280 rm -f conftest.$ac_objext
27281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27282 (eval $ac_compile) 2>conftest.er1
27284 grep -v '^ *+' conftest.er1 >conftest.err
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
27289 { ac_try='test -z "$ac_c_werror_flag"
27290 || test ! -s conftest.err'
27291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27292 (eval $ac_try) 2>&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest.$ac_objext'
27297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27298 (eval $ac_try) 2>&5
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; }; then
27303 cat >>confdefs.h <<\_ACEOF
27304 #define STRUCT_TM_HAS_GMTOFF 1
27307 echo "$as_me:$LINENO: result: yes" >&5
27308 echo "${ECHO_T}yes" >&6
27310 echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27313 echo "$as_me:$LINENO: result: no" >&5
27314 echo "${ECHO_T}no" >&6
27315 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27316 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27317 cat >conftest.$ac_ext <<_ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27327 void i(){long z2 = 2*timezone;}
27332 rm -f conftest.$ac_objext
27333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27334 (eval $ac_compile) 2>conftest.er1
27336 grep -v '^ *+' conftest.er1 >conftest.err
27338 cat conftest.err >&5
27339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } &&
27341 { ac_try='test -z "$ac_c_werror_flag"
27342 || test ! -s conftest.err'
27343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27344 (eval $ac_try) 2>&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); }; } &&
27348 { ac_try='test -s conftest.$ac_objext'
27349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350 (eval $ac_try) 2>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
27355 cat >>confdefs.h <<\_ACEOF
27356 #define HAVE_TIMEZONE 1
27359 echo "$as_me:$LINENO: result: yes" >&5
27360 echo "${ECHO_T}yes" >&6
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 echo "$as_me:$LINENO: result: no" >&5
27366 echo "${ECHO_T}no" >&6
27367 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27368 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27369 cat >conftest.$ac_ext <<_ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h. */
27379 long z2 = _timezone;
27384 rm -f conftest.$ac_objext
27385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27386 (eval $ac_compile) 2>conftest.er1
27388 grep -v '^ *+' conftest.er1 >conftest.err
27390 cat conftest.err >&5
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); } &&
27393 { ac_try='test -z "$ac_c_werror_flag"
27394 || test ! -s conftest.err'
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; } &&
27400 { ac_try='test -s conftest.$ac_objext'
27401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27402 (eval $ac_try) 2>&5
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27407 cat >>confdefs.h <<\_ACEOF
27408 #define HAVE_UNDERSCORE_TIMEZONE 1
27411 echo "$as_me:$LINENO: result: yes" >&5
27412 echo "${ECHO_T}yes" >&6
27414 echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27417 echo "$as_me:$LINENO: result: no" >&5
27418 echo "${ECHO_T}no" >&6
27420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27426 for ac_prog in perl
27428 # Extract the first word of "$ac_prog", so it can be a program name with args.
27429 set dummy $ac_prog; ac_word=$2
27430 echo "$as_me:$LINENO: checking for $ac_word" >&5
27431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27432 if test "${ac_cv_prog_PERL+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27435 if test -n "$PERL"; then
27436 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27439 for as_dir in $PATH
27442 test -z "$as_dir" && as_dir=.
27443 for ac_exec_ext in '' $ac_executable_extensions; do
27444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27445 ac_cv_prog_PERL="$ac_prog"
27446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27454 PERL=$ac_cv_prog_PERL
27455 if test -n "$PERL"; then
27456 echo "$as_me:$LINENO: result: $PERL" >&5
27457 echo "${ECHO_T}$PERL" >&6
27459 echo "$as_me:$LINENO: result: no" >&5
27460 echo "${ECHO_T}no" >&6
27463 test -n "$PERL" && break
27465 test -n "$PERL" || PERL="false"
27469 SIGNAL_HANDLER_AUX=
27473 SIGNAL_HANDLER=include/i386-signal.h
27475 sparc*-sun-solaris*)
27476 SIGNAL_HANDLER=include/sparc-signal.h
27479 # SYSDEP_SOURCES=sysdep/ia64.c
27480 # test -d sysdep || mkdir sysdep
27483 SIGNAL_HANDLER=include/pa-signal.h
27486 SIGNAL_HANDLER=include/hppa-signal.h
27489 SIGNAL_HANDLER=include/dwarf2-signal.h
27492 SIGNAL_HANDLER=include/powerpc-signal.h
27495 SIGNAL_HANDLER=include/dwarf2-signal.h
27498 SIGNAL_HANDLER=include/s390-signal.h
27501 SIGNAL_HANDLER=include/x86_64-signal.h
27502 SIGNAL_HANDLER_AUX=include/i386-signal.h
27505 SIGNAL_HANDLER=include/dwarf2-signal.h
27508 SIGNAL_HANDLER=include/sh-signal.h
27511 SIGNAL_HANDLER=include/win32-signal.h
27514 SIGNAL_HANDLER=include/mips-signal.h
27517 SIGNAL_HANDLER=include/dwarf2-signal.h
27519 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27520 SIGNAL_HANDLER=include/darwin-signal.h
27523 SIGNAL_HANDLER=include/aix-signal.h
27526 SIGNAL_HANDLER=include/default-signal.h
27530 # If we're using sjlj exceptions, forget what we just learned.
27531 if test "$enable_sjlj_exceptions" = yes; then
27532 SIGNAL_HANDLER=include/default-signal.h
27533 SIGNAL_HANDLER_AUX=
27538 if test -z "$SIGNAL_HANDLER_AUX"; then
27539 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27542 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27545 if test "${multilib}" = "yes"; then
27546 multilib_arg="--enable-multilib"
27551 # See if we support thread-local storage.
27553 # Check whether --enable-tls or --disable-tls was given.
27554 if test "${enable_tls+set}" = set; then
27555 enableval="$enable_tls"
27557 case "$enableval" in
27559 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27560 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27561 { (exit 1); exit 1; }; } ;;
27568 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27569 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27570 if test "${gcc_cv_have_tls+set}" = set; then
27571 echo $ECHO_N "(cached) $ECHO_C" >&6
27574 if test "$cross_compiling" = yes; then
27575 if test x$gcc_no_link = xyes; then
27576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27578 { (exit 1); exit 1; }; }
27580 cat >conftest.$ac_ext <<_ACEOF
27581 __thread int a; int b; int main() { return a = b; }
27583 rm -f conftest.$ac_objext conftest$ac_exeext
27584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27585 (eval $ac_link) 2>conftest.er1
27587 grep -v '^ *+' conftest.er1 >conftest.err
27589 cat conftest.err >&5
27590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591 (exit $ac_status); } &&
27592 { ac_try='test -z "$ac_c_werror_flag"
27593 || test ! -s conftest.err'
27594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595 (eval $ac_try) 2>&5
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; } &&
27599 { ac_try='test -s conftest$ac_exeext'
27600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601 (eval $ac_try) 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; }; then
27605 gcc_cv_have_tls=yes
27607 echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27612 rm -f conftest.err conftest.$ac_objext \
27613 conftest$ac_exeext conftest.$ac_ext
27617 cat >conftest.$ac_ext <<_ACEOF
27618 __thread int a; int b; int main() { return a = b; }
27620 rm -f conftest$ac_exeext
27621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27622 (eval $ac_link) 2>&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627 (eval $ac_try) 2>&5
27629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630 (exit $ac_status); }; }; then
27631 chktls_save_LDFLAGS="$LDFLAGS"
27632 LDFLAGS="-static $LDFLAGS"
27633 if test x$gcc_no_link = xyes; then
27634 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27635 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27636 { (exit 1); exit 1; }; }
27638 cat >conftest.$ac_ext <<_ACEOF
27639 int main() { return 0; }
27641 rm -f conftest.$ac_objext conftest$ac_exeext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27643 (eval $ac_link) 2>conftest.er1
27645 grep -v '^ *+' conftest.er1 >conftest.err
27647 cat conftest.err >&5
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); } &&
27650 { ac_try='test -z "$ac_c_werror_flag"
27651 || test ! -s conftest.err'
27652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653 (eval $ac_try) 2>&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); }; } &&
27657 { ac_try='test -s conftest$ac_exeext'
27658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659 (eval $ac_try) 2>&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; }; then
27663 if test "$cross_compiling" = yes; then
27664 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27665 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27666 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27667 See \`config.log' for more details." >&5
27668 echo "$as_me: error: cannot run test program while cross compiling
27669 See \`config.log' for more details." >&2;}
27670 { (exit 1); exit 1; }; }; }
27672 cat >conftest.$ac_ext <<_ACEOF
27673 __thread int a; int b; int main() { return a = b; }
27675 rm -f conftest$ac_exeext
27676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27677 (eval $ac_link) 2>&5
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 gcc_cv_have_tls=yes
27688 echo "$as_me: program exited with status $ac_status" >&5
27689 echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27692 ( exit $ac_status )
27695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27698 echo "$as_me: failed program was:" >&5
27699 sed 's/^/| /' conftest.$ac_ext >&5
27701 gcc_cv_have_tls=yes
27703 rm -f conftest.err conftest.$ac_objext \
27704 conftest$ac_exeext conftest.$ac_ext
27705 LDFLAGS="$chktls_save_LDFLAGS"
27706 if test $gcc_cv_have_tls = yes; then
27707 chktls_save_CFLAGS="$CFLAGS"
27708 thread_CFLAGS=failed
27709 for flag in '' '-pthread' '-lpthread'; do
27710 CFLAGS="$flag $chktls_save_CFLAGS"
27711 if test x$gcc_no_link = xyes; then
27712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27714 { (exit 1); exit 1; }; }
27716 cat >conftest.$ac_ext <<_ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 #include <pthread.h>
27723 void *g(void *d) { return NULL; }
27727 pthread_t t; pthread_create(&t,NULL,g,NULL);
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27734 (eval $ac_link) 2>conftest.er1
27736 grep -v '^ *+' conftest.er1 >conftest.err
27738 cat conftest.err >&5
27739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740 (exit $ac_status); } &&
27741 { ac_try='test -z "$ac_c_werror_flag"
27742 || test ! -s conftest.err'
27743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; } &&
27748 { ac_try='test -s conftest$ac_exeext'
27749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27750 (eval $ac_try) 2>&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); }; }; then
27754 thread_CFLAGS="$flag"
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27760 rm -f conftest.err conftest.$ac_objext \
27761 conftest$ac_exeext conftest.$ac_ext
27762 if test "X$thread_CFLAGS" != Xfailed; then
27766 CFLAGS="$chktls_save_CFLAGS"
27767 if test "X$thread_CFLAGS" != Xfailed; then
27768 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27769 if test "$cross_compiling" = yes; then
27770 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27771 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27773 See \`config.log' for more details." >&5
27774 echo "$as_me: error: cannot run test program while cross compiling
27775 See \`config.log' for more details." >&2;}
27776 { (exit 1); exit 1; }; }; }
27778 cat >conftest.$ac_ext <<_ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h. */
27784 #include <pthread.h>
27786 static int *a_in_other_thread;
27788 thread_func (void *arg)
27790 a_in_other_thread = &a;
27797 void *thread_retval;
27798 int *a_in_main_thread;
27799 if (pthread_create (&thread, (pthread_attr_t *)0,
27800 thread_func, (void *)0))
27802 a_in_main_thread = &a;
27803 if (pthread_join (thread, &thread_retval))
27805 return (a_in_other_thread == a_in_main_thread);
27810 rm -f conftest$ac_exeext
27811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27812 (eval $ac_link) 2>&5
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; }; then
27821 gcc_cv_have_tls=yes
27823 echo "$as_me: program exited with status $ac_status" >&5
27824 echo "$as_me: failed program was:" >&5
27825 sed 's/^/| /' conftest.$ac_ext >&5
27827 ( exit $ac_status )
27830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27832 CFLAGS="$chktls_save_CFLAGS"
27836 echo "$as_me: program exited with status $ac_status" >&5
27837 echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.$ac_ext >&5
27840 ( exit $ac_status )
27843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27846 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27847 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27848 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27850 cat >>confdefs.h <<\_ACEOF
27856 # For _Unwind_GetIPInfo.
27861 ac_cpp='$CXXCPP $CPPFLAGS'
27862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27866 ac_save_CXXFLAGS="$CXXFLAGS"
27867 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27868 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27869 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27870 if test "${gcc_cv_getipinfo+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27874 if test x$gcc_no_link = xyes; then
27875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27877 { (exit 1); exit 1; }; }
27879 cat >conftest.$ac_ext <<_ACEOF
27882 cat confdefs.h >>conftest.$ac_ext
27883 cat >>conftest.$ac_ext <<_ACEOF
27884 /* end confdefs.h. */
27885 extern "C" { extern void _Unwind_GetIPInfo(); }
27889 _Unwind_GetIPInfo();
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896 (eval $ac_link) 2>conftest.er1
27898 grep -v '^ *+' conftest.er1 >conftest.err
27900 cat conftest.err >&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); } &&
27903 { ac_try='test -z "$ac_cxx_werror_flag"
27904 || test ! -s conftest.err'
27905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906 (eval $ac_try) 2>&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); }; } &&
27910 { ac_try='test -s conftest$ac_exeext'
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
27916 gcc_cv_getipinfo=yes
27918 echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27921 gcc_cv_getipinfo=no
27923 rm -f conftest.err conftest.$ac_objext \
27924 conftest$ac_exeext conftest.$ac_ext
27928 if test $gcc_cv_getipinfo = yes; then
27930 cat >>confdefs.h <<\_ACEOF
27931 #define HAVE_GETIPINFO 1
27935 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27936 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27937 CXXFLAGS="$ac_save_CXXFLAGS"
27939 ac_cpp='$CPP $CPPFLAGS'
27940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27946 # See if linker supports anonymous version scripts.
27947 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27948 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27949 if test "${libjava_cv_anon_version_script+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27953 libjava_cv_anon_version_script=no
27954 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27955 echo '{ global: globalsymb*; local: *; };' > conftest.map
27956 if test x$gcc_no_link = xyes; then
27957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27959 { (exit 1); exit 1; }; }
27961 cat >conftest.$ac_ext <<_ACEOF
27964 cat confdefs.h >>conftest.$ac_ext
27965 cat >>conftest.$ac_ext <<_ACEOF
27966 /* end confdefs.h. */
27967 void globalsymbol (void) {} void localsymbol (void) {}
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978 (eval $ac_link) 2>conftest.er1
27980 grep -v '^ *+' conftest.er1 >conftest.err
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
27998 libjava_cv_anon_version_script=yes
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28004 rm -f conftest.err conftest.$ac_objext \
28005 conftest$ac_exeext conftest.$ac_ext
28006 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
28009 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
28010 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
28013 if test "$libjava_cv_anon_version_script" = yes; then
28014 ANONVERSCRIPT_TRUE=
28015 ANONVERSCRIPT_FALSE='#'
28017 ANONVERSCRIPT_TRUE='#'
28018 ANONVERSCRIPT_FALSE=
28022 # Check if linker supports static linking on a per library basis
28023 LD_START_STATIC_SPEC=
28024 LD_FINISH_STATIC_SPEC=
28025 if $LD --help 2>&1 | grep -q -e -call_shared ; then
28026 if $LD --help 2>&1 | grep -q -e -non_shared ; then
28027 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
28028 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
28034 here=`${PWDCMD-pwd}`
28037 # We get this from the environment.
28041 # Check whether --with-python-dir or --without-python-dir was given.
28042 if test "${with_python_dir+set}" = set; then
28043 withval="$with_python_dir"
28044 with_python_dir=$withval
28049 if test "x${with_python_dir}" = "x"
28051 # Needed for installing Python modules during make install.
28052 python_mod_dir="\${prefix}/share/python"
28053 # Needed for substituting into aot-compile*
28054 python_mod_dir_expanded="${prefix}/share/python"
28056 python_mod_dir="\${prefix}${with_python_dir}"
28057 python_mod_dir_expanded="${prefix}${with_python_dir}"
28059 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
28060 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
28064 # needed for aot-compile-rpm
28068 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
28069 if test "${enable_aot_compile_rpm+set}" = set; then
28070 enableval="$enable_aot_compile_rpm"
28071 case "${enableval}" in
28072 yes) AOT_RPM_ENABLED=yes ;;
28073 no) AOT_RPM_ENABLED=no ;;
28074 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
28075 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
28076 { (exit 1); exit 1; }; } ;;
28084 if test "x${AOT_RPM_ENABLED}" = xyes; then
28085 INSTALL_AOT_RPM_TRUE=
28086 INSTALL_AOT_RPM_FALSE='#'
28088 INSTALL_AOT_RPM_TRUE='#'
28089 INSTALL_AOT_RPM_FALSE=
28093 # Check whether --enable-java-home or --disable-java-home was given.
28094 if test "${enable_java_home+set}" = set; then
28095 enableval="$enable_java_home"
28096 case "${enableval}" in
28097 yes) JAVA_HOME_ENABLED=yes ;;
28098 no) JAVA_HOME_ENABLED=no ;;
28099 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
28100 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
28101 { (exit 1); exit 1; }; } ;;
28104 JAVA_HOME_ENABLED=no
28109 if test "x${JAVA_HOME_ENABLED}" = xyes; then
28110 CREATE_JAVA_HOME_TRUE=
28111 CREATE_JAVA_HOME_FALSE='#'
28113 CREATE_JAVA_HOME_TRUE='#'
28114 CREATE_JAVA_HOME_FALSE=
28118 # Only do these checks if java-home above is enabled.
28119 if test "x${JAVA_HOME_ENABLED}" = xyes
28123 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28124 if test "${with_gcc_suffix+set}" = set; then
28125 withval="$with_gcc_suffix"
28126 gcc_suffix=$withval
28130 echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28131 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28135 # Check whether --with-arch-directory or --without-arch-directory was given.
28136 if test "${with_arch_directory+set}" = set; then
28137 withval="$with_arch_directory"
28144 # Check whether --with-os-directory or --without-os-directory was given.
28145 if test "${with_os_directory+set}" = set; then
28146 withval="$with_os_directory"
28153 # Check whether --with-origin-name or --without-origin-name was given.
28154 if test "${with_origin_name+set}" = set; then
28155 withval="$with_origin_name"
28156 origin_name=$withval
28158 origin_name=gcj${gcc_suffix}
28160 echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28161 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28164 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28165 if test "${with_arch_suffix+set}" = set; then
28166 withval="$with_arch_suffix"
28167 arch_suffix=$withval
28171 echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28172 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28175 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28176 if test "${with_jvm_root_dir+set}" = set; then
28177 withval="$with_jvm_root_dir"
28178 jvm_root_dir=$withval
28180 jvm_root_dir="\${prefix}/lib/jvm"
28182 echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28183 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28186 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28187 if test "${with_jvm_jar_dir+set}" = set; then
28188 withval="$with_jvm_jar_dir"
28189 jvm_jar_dir=$withval
28191 jvm_jar_dir=\${prefix}/lib/jvm-exports
28193 echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28194 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28200 echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28201 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28203 jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28204 sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28205 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28206 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28208 JVM_ROOT_DIR=${jvm_root_dir}
28210 echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28211 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28213 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28215 echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28216 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28218 JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28220 echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28221 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28235 SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28237 echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28238 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28240 SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28242 echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28243 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28245 SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28247 echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28248 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28250 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28252 echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28253 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28255 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28257 echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28258 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28260 # Find gcj prefix using gcj found in PATH.
28261 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28263 # Where do the gcj binaries live?
28264 # For jhbuild based builds, they all live in a sibling of bin called
28265 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
28266 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28268 echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28269 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28271 echo host is ${host}
28272 if test "x${host_cpu}" = "x"
28275 *-mingw* | *-cygwin*)
28277 i486-* | i586-* | i686-*)
28280 host_cpu=${host_cpu};;
28283 echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28284 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28288 if test "x${host_os}" = "x"
28291 *-mingw* | *-cygwin*)
28296 host_os=${host_os};;
28299 echo os directory: ${host_os}
28303 # make an expanded $libdir, for substituting into
28304 # scripts (and other non-Makefile things).
28306 if test "x${exec_prefix}" = "xNONE"
28308 lib_exec_prefix=$prefix
28310 lib_exec_prefix=$exec_prefix
28312 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28316 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/rebuild-gcj-db"
28319 if test ${multilib} = yes; then
28320 multilib_arg="--enable-multilib"
28325 ac_config_files="$ac_config_files scripts/jar"
28327 cat >confcache <<\_ACEOF
28328 # This file is a shell script that caches the results of configure
28329 # tests run on this system so they can be shared between configure
28330 # scripts and configure runs, see configure's option --config-cache.
28331 # It is not useful on other systems. If it contains results you don't
28332 # want to keep, you may remove or edit it.
28334 # config.status only pays attention to the cache file if you give it
28335 # the --recheck option to rerun configure.
28337 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28338 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28339 # following values.
28343 # The following way of writing the cache mishandles newlines in values,
28344 # but we know of no workaround that is simple, portable, and efficient.
28345 # So, don't put newlines in cache variables' values.
28346 # Ultrix sh set writes to stderr and can't be redirected directly,
28347 # and sets the high bit in the cache file unless we assign to the vars.
28350 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28352 # `set' does not quote correctly, so add quotes (double-quote
28353 # substitution turns \\\\ into \\, and sed turns \\ into \).
28356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28359 # `set' quotes correctly as required by POSIX, so do not add quotes.
28361 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28370 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28372 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28373 if test -w $cache_file; then
28374 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28375 cat confcache >$cache_file
28377 echo "not updating unwritable cache $cache_file"
28382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28383 # Let make expand exec_prefix.
28384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28388 # trailing colons and then remove the whole line if VPATH becomes empty
28389 # (actually we leave an empty line to preserve line numbers).
28390 if test "x$srcdir" = x.; then
28391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28392 s/:*\$(srcdir):*/:/;
28393 s/:*\${srcdir}:*/:/;
28395 s/^\([^=]*=[ ]*\):*/\1/;
28401 DEFS=-DHAVE_CONFIG_H
28405 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28406 # 1. Remove the extension, and $U if already installed.
28407 ac_i=`echo "$ac_i" |
28408 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28410 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28411 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28413 LIBOBJS=$ac_libobjs
28415 LTLIBOBJS=$ac_ltlibobjs
28418 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
28419 { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
28420 Usually this means the macro was only invoked conditionally." >&5
28421 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
28422 Usually this means the macro was only invoked conditionally." >&2;}
28423 { (exit 1); exit 1; }; }
28425 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28426 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28427 Usually this means the macro was only invoked conditionally." >&5
28428 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28429 Usually this means the macro was only invoked conditionally." >&2;}
28430 { (exit 1); exit 1; }; }
28432 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28433 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28434 Usually this means the macro was only invoked conditionally." >&5
28435 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28436 Usually this means the macro was only invoked conditionally." >&2;}
28437 { (exit 1); exit 1; }; }
28439 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28440 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28441 Usually this means the macro was only invoked conditionally." >&5
28442 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28443 Usually this means the macro was only invoked conditionally." >&2;}
28444 { (exit 1); exit 1; }; }
28446 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28447 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28448 Usually this means the macro was only invoked conditionally." >&5
28449 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28450 Usually this means the macro was only invoked conditionally." >&2;}
28451 { (exit 1); exit 1; }; }
28453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28454 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28455 Usually this means the macro was only invoked conditionally." >&5
28456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28457 Usually this means the macro was only invoked conditionally." >&2;}
28458 { (exit 1); exit 1; }; }
28460 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28461 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28462 Usually this means the macro was only invoked conditionally." >&5
28463 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28464 Usually this means the macro was only invoked conditionally." >&2;}
28465 { (exit 1); exit 1; }; }
28467 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28468 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28469 Usually this means the macro was only invoked conditionally." >&5
28470 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28471 Usually this means the macro was only invoked conditionally." >&2;}
28472 { (exit 1); exit 1; }; }
28474 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28475 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28476 Usually this means the macro was only invoked conditionally." >&5
28477 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28478 Usually this means the macro was only invoked conditionally." >&2;}
28479 { (exit 1); exit 1; }; }
28481 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28482 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28483 Usually this means the macro was only invoked conditionally." >&5
28484 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28485 Usually this means the macro was only invoked conditionally." >&2;}
28486 { (exit 1); exit 1; }; }
28488 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28489 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28490 Usually this means the macro was only invoked conditionally." >&5
28491 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28492 Usually this means the macro was only invoked conditionally." >&2;}
28493 { (exit 1); exit 1; }; }
28495 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28496 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28497 Usually this means the macro was only invoked conditionally." >&5
28498 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28499 Usually this means the macro was only invoked conditionally." >&2;}
28500 { (exit 1); exit 1; }; }
28502 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28503 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28504 Usually this means the macro was only invoked conditionally." >&5
28505 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28506 Usually this means the macro was only invoked conditionally." >&2;}
28507 { (exit 1); exit 1; }; }
28509 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28510 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28511 Usually this means the macro was only invoked conditionally." >&5
28512 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28513 Usually this means the macro was only invoked conditionally." >&2;}
28514 { (exit 1); exit 1; }; }
28516 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28517 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28518 Usually this means the macro was only invoked conditionally." >&5
28519 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28520 Usually this means the macro was only invoked conditionally." >&2;}
28521 { (exit 1); exit 1; }; }
28523 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28524 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28525 Usually this means the macro was only invoked conditionally." >&5
28526 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28527 Usually this means the macro was only invoked conditionally." >&2;}
28528 { (exit 1); exit 1; }; }
28530 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28531 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28532 Usually this means the macro was only invoked conditionally." >&5
28533 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28534 Usually this means the macro was only invoked conditionally." >&2;}
28535 { (exit 1); exit 1; }; }
28537 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28538 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28539 Usually this means the macro was only invoked conditionally." >&5
28540 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28541 Usually this means the macro was only invoked conditionally." >&2;}
28542 { (exit 1); exit 1; }; }
28544 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28545 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28546 Usually this means the macro was only invoked conditionally." >&5
28547 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28548 Usually this means the macro was only invoked conditionally." >&2;}
28549 { (exit 1); exit 1; }; }
28551 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28552 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28553 Usually this means the macro was only invoked conditionally." >&5
28554 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28555 Usually this means the macro was only invoked conditionally." >&2;}
28556 { (exit 1); exit 1; }; }
28558 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28559 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28560 Usually this means the macro was only invoked conditionally." >&5
28561 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28562 Usually this means the macro was only invoked conditionally." >&2;}
28563 { (exit 1); exit 1; }; }
28565 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28566 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28567 Usually this means the macro was only invoked conditionally." >&5
28568 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28569 Usually this means the macro was only invoked conditionally." >&2;}
28570 { (exit 1); exit 1; }; }
28572 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28573 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28574 Usually this means the macro was only invoked conditionally." >&5
28575 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28576 Usually this means the macro was only invoked conditionally." >&2;}
28577 { (exit 1); exit 1; }; }
28579 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28580 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28581 Usually this means the macro was only invoked conditionally." >&5
28582 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28583 Usually this means the macro was only invoked conditionally." >&2;}
28584 { (exit 1); exit 1; }; }
28586 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28587 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28588 Usually this means the macro was only invoked conditionally." >&5
28589 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28590 Usually this means the macro was only invoked conditionally." >&2;}
28591 { (exit 1); exit 1; }; }
28593 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28594 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28595 Usually this means the macro was only invoked conditionally." >&5
28596 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28597 Usually this means the macro was only invoked conditionally." >&2;}
28598 { (exit 1); exit 1; }; }
28600 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28601 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28602 Usually this means the macro was only invoked conditionally." >&5
28603 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28604 Usually this means the macro was only invoked conditionally." >&2;}
28605 { (exit 1); exit 1; }; }
28607 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28608 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28609 Usually this means the macro was only invoked conditionally." >&5
28610 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28611 Usually this means the macro was only invoked conditionally." >&2;}
28612 { (exit 1); exit 1; }; }
28614 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28615 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28616 Usually this means the macro was only invoked conditionally." >&5
28617 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28618 Usually this means the macro was only invoked conditionally." >&2;}
28619 { (exit 1); exit 1; }; }
28621 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28622 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28623 Usually this means the macro was only invoked conditionally." >&5
28624 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28625 Usually this means the macro was only invoked conditionally." >&2;}
28626 { (exit 1); exit 1; }; }
28628 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28629 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28630 Usually this means the macro was only invoked conditionally." >&5
28631 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28632 Usually this means the macro was only invoked conditionally." >&2;}
28633 { (exit 1); exit 1; }; }
28635 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
28636 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
28637 Usually this means the macro was only invoked conditionally." >&5
28638 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
28639 Usually this means the macro was only invoked conditionally." >&2;}
28640 { (exit 1); exit 1; }; }
28642 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28643 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28644 Usually this means the macro was only invoked conditionally." >&5
28645 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28646 Usually this means the macro was only invoked conditionally." >&2;}
28647 { (exit 1); exit 1; }; }
28649 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28650 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28651 Usually this means the macro was only invoked conditionally." >&5
28652 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28653 Usually this means the macro was only invoked conditionally." >&2;}
28654 { (exit 1); exit 1; }; }
28656 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28657 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28658 Usually this means the macro was only invoked conditionally." >&5
28659 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28660 Usually this means the macro was only invoked conditionally." >&2;}
28661 { (exit 1); exit 1; }; }
28664 : ${CONFIG_STATUS=./config.status}
28665 ac_clean_files_save=$ac_clean_files
28666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28669 cat >$CONFIG_STATUS <<_ACEOF
28671 # Generated by $as_me.
28672 # Run this file to recreate the current configuration.
28673 # Compiler output produced by configure, useful for debugging
28674 # configure, is in config.log if it exists.
28677 ac_cs_recheck=false
28679 SHELL=\${CONFIG_SHELL-$SHELL}
28682 cat >>$CONFIG_STATUS <<\_ACEOF
28683 ## --------------------- ##
28684 ## M4sh Initialization. ##
28685 ## --------------------- ##
28687 # Be Bourne compatible
28688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28691 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28692 # is contrary to our usage. Disable this feature.
28693 alias -g '${1+"$@"}'='"$@"'
28694 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28697 DUALCASE=1; export DUALCASE # for MKS sh
28699 # Support unset when possible.
28700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28707 # Work around bugs in pre-3.0 UWIN ksh.
28708 $as_unset ENV MAIL MAILPATH
28715 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28716 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28717 LC_TELEPHONE LC_TIME
28719 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28720 eval $as_var=C; export $as_var
28726 # Required to use basename.
28727 if expr a : '\(a\)' >/dev/null 2>&1; then
28733 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28734 as_basename=basename
28740 # Name of the executable.
28741 as_me=`$as_basename "$0" ||
28742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28743 X"$0" : 'X\(//\)$' \| \
28744 X"$0" : 'X\(/\)$' \| \
28745 . : '\(.\)' 2>/dev/null ||
28747 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28748 /^X\/\(\/\/\)$/{ s//\1/; q; }
28749 /^X\/\(\/\).*/{ s//\1/; q; }
28753 # PATH needs CR, and LINENO needs CR and PATH.
28754 # Avoid depending upon Character Ranges.
28755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28758 as_cr_digits='0123456789'
28759 as_cr_alnum=$as_cr_Letters$as_cr_digits
28761 # The user is always right.
28762 if test "${PATH_SEPARATOR+set}" != set; then
28763 echo "#! /bin/sh" >conf$$.sh
28764 echo "exit 0" >>conf$$.sh
28766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28775 as_lineno_1=$LINENO
28776 as_lineno_2=$LINENO
28777 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28778 test "x$as_lineno_1" != "x$as_lineno_2" &&
28779 test "x$as_lineno_3" = "x$as_lineno_2" || {
28780 # Find who we are. Look in the path if we contain no path at all
28783 *[\\/]* ) as_myself=$0 ;;
28784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28785 for as_dir in $PATH
28788 test -z "$as_dir" && as_dir=.
28789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28794 # We did not find ourselves, most probably we were run as `sh COMMAND'
28795 # in which case we are not to be found in the path.
28796 if test "x$as_myself" = x; then
28799 if test ! -f "$as_myself"; then
28800 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28801 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28802 { (exit 1); exit 1; }; }
28804 case $CONFIG_SHELL in
28806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28807 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28810 test -z "$as_dir" && as_dir=.
28811 for as_base in sh bash ksh sh5; do
28814 if ("$as_dir/$as_base" -c '
28815 as_lineno_1=$LINENO
28816 as_lineno_2=$LINENO
28817 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28818 test "x$as_lineno_1" != "x$as_lineno_2" &&
28819 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28820 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28821 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28822 CONFIG_SHELL=$as_dir/$as_base
28823 export CONFIG_SHELL
28824 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28832 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28833 # uniformly replaced by the line number. The first 'sed' inserts a
28834 # line-number line before each line; the second 'sed' does the real
28835 # work. The second script uses 'N' to pair each line-number line
28836 # with the numbered line, and appends trailing '-' during
28837 # substitution so that $LINENO is not a special case at line end.
28838 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28839 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28840 sed '=' <$as_myself |
28845 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28848 s,^['$as_cr_digits']*\n,,
28849 ' >$as_me.lineno &&
28850 chmod +x $as_me.lineno ||
28851 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28852 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28853 { (exit 1); exit 1; }; }
28855 # Don't try to exec as it changes $[0], causing all sort of problems
28856 # (the dirname of $[0] is not the place where we might find the
28857 # original and so on. Autoconf is especially sensible to this).
28859 # Exit status is that of the last command.
28864 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28865 *c*,-n*) ECHO_N= ECHO_C='
28867 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28868 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28871 if expr a : '\(a\)' >/dev/null 2>&1; then
28877 rm -f conf$$ conf$$.exe conf$$.file
28879 if ln -s conf$$.file conf$$ 2>/dev/null; then
28880 # We could just check for DJGPP; but this test a) works b) is more generic
28881 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28882 if test -f conf$$.exe; then
28883 # Don't use ln at all; we don't have any links
28888 elif ln conf$$.file conf$$ 2>/dev/null; then
28893 rm -f conf$$ conf$$.exe conf$$.file
28895 if mkdir -p . 2>/dev/null; then
28898 test -d ./-p && rmdir ./-p
28902 as_executable_p="test -f"
28904 # Sed expression to map a string onto a valid CPP name.
28905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28907 # Sed expression to map a string onto a valid variable name.
28908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28912 # We need space, tab and new line, in precisely that order.
28922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28923 # report actual input values of CONFIG_FILES etc. instead of their
28924 # values after options handling. Logging --version etc. is OK.
28928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28929 ## Running $as_me. ##
28934 This file was extended by libjava $as_me version-unused, which was
28935 generated by GNU Autoconf 2.59. Invocation command line was
28937 CONFIG_FILES = $CONFIG_FILES
28938 CONFIG_HEADERS = $CONFIG_HEADERS
28939 CONFIG_LINKS = $CONFIG_LINKS
28940 CONFIG_COMMANDS = $CONFIG_COMMANDS
28944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28948 # Files that config.status was made for.
28949 if test -n "$ac_config_files"; then
28950 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28953 if test -n "$ac_config_headers"; then
28954 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28957 if test -n "$ac_config_links"; then
28958 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28961 if test -n "$ac_config_commands"; then
28962 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28965 cat >>$CONFIG_STATUS <<\_ACEOF
28968 \`$as_me' instantiates files from templates according to the
28969 current configuration.
28971 Usage: $0 [OPTIONS] [FILE]...
28973 -h, --help print this help, then exit
28974 -V, --version print version number, then exit
28975 -q, --quiet do not print progress messages
28976 -d, --debug don't remove temporary files
28977 --recheck update $as_me by reconfiguring in the same conditions
28978 --file=FILE[:TEMPLATE]
28979 instantiate the configuration file FILE
28980 --header=FILE[:TEMPLATE]
28981 instantiate the configuration header FILE
28983 Configuration files:
28986 Configuration headers:
28989 Configuration links:
28992 Configuration commands:
28995 Report bugs to <bug-autoconf@gnu.org>."
28998 cat >>$CONFIG_STATUS <<_ACEOF
29000 libjava config.status version-unused
29001 configured by $0, generated by GNU Autoconf 2.59,
29002 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29004 Copyright (C) 2003 Free Software Foundation, Inc.
29005 This config.status script is free software; the Free Software Foundation
29006 gives unlimited permission to copy, distribute and modify it."
29011 cat >>$CONFIG_STATUS <<\_ACEOF
29012 # If no file are specified by the user, then we need to provide default
29013 # value. By we need to know if files were specified by the user.
29019 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29020 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29028 *) # This is not an option, so the user has probably given explicit
29031 ac_need_defaults=false;;
29035 # Handling of the options.
29037 cat >>$CONFIG_STATUS <<\_ACEOF
29038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29040 --version | --vers* | -V )
29041 echo "$ac_cs_version"; exit 0 ;;
29043 # Conflict between --help and --header
29044 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29045 Try \`$0 --help' for more information." >&5
29046 echo "$as_me: error: ambiguous option: $1
29047 Try \`$0 --help' for more information." >&2;}
29048 { (exit 1); exit 1; }; };;
29049 --help | --hel | -h )
29050 echo "$ac_cs_usage"; exit 0 ;;
29051 --debug | --d* | -d )
29053 --file | --fil | --fi | --f )
29055 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29056 ac_need_defaults=false;;
29057 --header | --heade | --head | --hea )
29059 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29060 ac_need_defaults=false;;
29061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29065 # This is an error.
29066 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29067 Try \`$0 --help' for more information." >&5
29068 echo "$as_me: error: unrecognized option: $1
29069 Try \`$0 --help' for more information." >&2;}
29070 { (exit 1); exit 1; }; } ;;
29072 *) ac_config_targets="$ac_config_targets $1" ;;
29078 ac_configure_extra_args=
29080 if $ac_cs_silent; then
29082 ac_configure_extra_args="$ac_configure_extra_args --silent"
29086 cat >>$CONFIG_STATUS <<_ACEOF
29087 if \$ac_cs_recheck; then
29088 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29089 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29094 cat >>$CONFIG_STATUS <<_ACEOF
29096 # INIT-COMMANDS section.
29103 with_multisubdir="$with_multisubdir"
29104 with_multisrctop="$with_multisrctop"
29105 with_target_subdir="$with_target_subdir"
29106 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29107 multi_basedir="$multi_basedir"
29108 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29110 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29113 # The HP-UX ksh and POSIX shell print the target directory to stdout
29114 # if CDPATH is set.
29115 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29117 sed_quote_subst='$sed_quote_subst'
29118 double_quote_subst='$double_quote_subst'
29119 delay_variable_subst='$delay_variable_subst'
29120 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29121 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29122 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29123 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29124 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29125 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29126 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29127 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29128 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29129 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29130 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29131 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29132 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29133 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29134 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29135 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29136 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29137 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29138 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29139 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29140 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29141 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29142 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29143 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29144 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29145 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29146 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29147 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29148 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29149 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29150 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29151 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29152 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29153 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29154 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29155 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29156 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29157 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29158 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29159 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29160 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29161 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29162 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29163 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29164 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"`'
29165 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29166 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29167 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29168 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29169 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29170 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29171 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29172 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29173 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29174 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29175 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29176 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29177 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29178 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29179 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29180 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29181 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29182 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29183 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29184 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29185 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29186 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29187 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29188 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29189 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29190 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29191 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29192 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29193 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29194 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29195 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29196 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29197 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29198 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29199 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29200 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29201 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29202 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29203 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29204 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29205 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29206 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29207 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29208 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29209 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29210 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29211 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29212 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29213 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29214 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29215 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29216 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29217 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29218 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29219 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29220 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29221 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29222 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29223 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29224 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29225 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29226 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29227 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29228 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29229 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29230 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29231 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29232 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29233 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29234 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29235 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29236 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29237 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29238 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29239 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29240 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29241 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29242 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29243 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29244 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29245 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29246 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29247 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29248 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29249 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29250 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29251 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29252 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29253 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29254 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29255 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29256 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29257 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29258 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29259 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29260 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29261 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29262 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29263 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29264 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29265 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29266 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29267 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29268 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29269 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29270 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29271 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29272 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29273 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29274 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29275 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29276 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29277 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29278 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29279 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29280 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29281 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29282 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29283 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29284 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29285 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29286 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29287 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29288 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29289 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29290 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29291 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29292 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29293 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29294 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29295 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29296 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29297 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29298 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29300 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29301 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29303 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29304 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29305 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29306 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29307 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29308 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29309 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29310 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29311 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29312 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29313 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29314 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29315 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29316 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29317 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29318 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29319 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29320 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29321 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29322 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29323 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29324 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29325 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29326 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29327 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29328 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29329 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29330 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29331 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29332 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29333 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29334 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29335 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29336 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29337 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29340 LTCFLAGS='$LTCFLAGS'
29341 compiler='$compiler_DEFAULT'
29343 # Quote evaled strings.
29355 deplibs_check_method \
29364 lt_cv_sys_global_symbol_pipe \
29365 lt_cv_sys_global_symbol_to_cdecl \
29366 lt_cv_sys_global_symbol_to_c_name_address \
29367 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29370 lt_prog_compiler_no_builtin_flag \
29371 lt_prog_compiler_wl \
29372 lt_prog_compiler_pic \
29373 lt_prog_compiler_static \
29374 lt_cv_prog_compiler_c_o \
29382 export_dynamic_flag_spec \
29383 whole_archive_flag_spec \
29384 compiler_needs_object \
29386 allow_undefined_flag \
29387 no_undefined_flag \
29388 hardcode_libdir_flag_spec \
29389 hardcode_libdir_flag_spec_ld \
29390 hardcode_libdir_separator \
29395 variables_saved_for_relink \
29397 library_names_spec \
29402 compiler_lib_search_dirs \
29407 compiler_lib_search_path \
29412 lt_prog_compiler_no_builtin_flag_CXX \
29413 lt_prog_compiler_no_builtin_flag_GCJ \
29414 lt_prog_compiler_wl_CXX \
29415 lt_prog_compiler_wl_GCJ \
29416 lt_prog_compiler_pic_CXX \
29417 lt_prog_compiler_pic_GCJ \
29418 lt_prog_compiler_static_CXX \
29419 lt_prog_compiler_static_GCJ \
29420 lt_cv_prog_compiler_c_o_CXX \
29421 lt_cv_prog_compiler_c_o_GCJ \
29422 export_dynamic_flag_spec_CXX \
29423 export_dynamic_flag_spec_GCJ \
29424 whole_archive_flag_spec_CXX \
29425 whole_archive_flag_spec_GCJ \
29426 compiler_needs_object_CXX \
29427 compiler_needs_object_GCJ \
29430 allow_undefined_flag_CXX \
29431 allow_undefined_flag_GCJ \
29432 no_undefined_flag_CXX \
29433 no_undefined_flag_GCJ \
29434 hardcode_libdir_flag_spec_CXX \
29435 hardcode_libdir_flag_spec_GCJ \
29436 hardcode_libdir_flag_spec_ld_CXX \
29437 hardcode_libdir_flag_spec_ld_GCJ \
29438 hardcode_libdir_separator_CXX \
29439 hardcode_libdir_separator_GCJ \
29440 fix_srcfile_path_CXX \
29441 fix_srcfile_path_GCJ \
29442 exclude_expsyms_CXX \
29443 exclude_expsyms_GCJ \
29444 include_expsyms_CXX \
29445 include_expsyms_GCJ \
29446 file_list_spec_CXX \
29447 file_list_spec_GCJ \
29448 compiler_lib_search_dirs_CXX \
29449 compiler_lib_search_dirs_GCJ \
29450 predep_objects_CXX \
29451 predep_objects_GCJ \
29452 postdep_objects_CXX \
29453 postdep_objects_GCJ \
29458 compiler_lib_search_path_CXX \
29459 compiler_lib_search_path_GCJ; do
29460 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29461 *[\\\\\\\`\\"\\\$]*)
29462 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29465 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29470 # Double-quote double-evaled strings.
29471 for var in reload_cmds \
29472 old_postinstall_cmds \
29473 old_postuninstall_cmds \
29475 extract_expsyms_cmds \
29476 old_archive_from_new_cmds \
29477 old_archive_from_expsyms_cmds \
29479 archive_expsym_cmds \
29481 module_expsym_cmds \
29482 export_symbols_cmds \
29485 postuninstall_cmds \
29487 sys_lib_search_path_spec \
29488 sys_lib_dlsearch_path_spec \
29489 old_archive_cmds_CXX \
29490 old_archive_cmds_GCJ \
29491 old_archive_from_new_cmds_CXX \
29492 old_archive_from_new_cmds_GCJ \
29493 old_archive_from_expsyms_cmds_CXX \
29494 old_archive_from_expsyms_cmds_GCJ \
29497 archive_expsym_cmds_CXX \
29498 archive_expsym_cmds_GCJ \
29501 module_expsym_cmds_CXX \
29502 module_expsym_cmds_GCJ \
29503 export_symbols_cmds_CXX \
29504 export_symbols_cmds_GCJ \
29506 prelink_cmds_GCJ; do
29507 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29508 *[\\\\\\\`\\"\\\$]*)
29509 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29512 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29517 # Fix-up fallback echo if it was mangled by the above quoting rules.
29519 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29523 ac_aux_dir='$ac_aux_dir'
29524 xsi_shell='$xsi_shell'
29525 lt_shell_append='$lt_shell_append'
29527 # See if we are running on zsh, and set the options which allow our
29528 # commands through without removal of \ escapes INIT.
29529 if test -n "\${ZSH_VERSION+set}" ; then
29530 setopt NO_GLOB_SUBST
29536 TIMESTAMP='$TIMESTAMP'
29551 cat >>$CONFIG_STATUS <<\_ACEOF
29552 for ac_config_target in $ac_config_targets
29554 case "$ac_config_target" in
29555 # Handling of arguments.
29556 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29557 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29558 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29559 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29560 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29561 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29562 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29563 "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29564 "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29565 "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29566 "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29567 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29568 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29569 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29570 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29571 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29572 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29573 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29574 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29575 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29576 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29577 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29578 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29579 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29580 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29581 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29582 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29583 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29584 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29585 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29586 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29587 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29588 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29589 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29590 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29591 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29592 { (exit 1); exit 1; }; };;
29596 # If the user did not use the arguments to specify the items to instantiate,
29597 # then the envvar interface is used. Set only those that are not.
29598 # We use the long form for the default assignment because of an extremely
29599 # bizarre bug on SunOS 4.1.3.
29600 if $ac_need_defaults; then
29601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29603 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29604 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29607 # Have a temporary directory for convenience. Make it in the build tree
29608 # simply because there is no reason to put it here, and in addition,
29609 # creating and moving files from /tmp can sometimes cause problems.
29610 # Create a temporary directory, and hook for its removal unless debugging.
29613 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29614 trap '{ (exit 1); exit 1; }' 1 2 13 15
29617 # Create a (secure) tmp directory for tmp files.
29620 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29621 test -n "$tmp" && test -d "$tmp"
29624 tmp=./confstat$$-$RANDOM
29625 (umask 077 && mkdir $tmp)
29628 echo "$me: cannot create a temporary directory in ." >&2
29629 { (exit 1); exit 1; }
29634 cat >>$CONFIG_STATUS <<_ACEOF
29637 # CONFIG_FILES section.
29640 # No need to generate the scripts if there are no CONFIG_FILES.
29641 # This happens for instance when ./config.status config.h
29642 if test -n "\$CONFIG_FILES"; then
29643 # Protect against being on the right side of a sed subst in config.status.
29644 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29645 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29646 s,@SHELL@,$SHELL,;t t
29647 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29648 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29649 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29650 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29651 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29652 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29653 s,@exec_prefix@,$exec_prefix,;t t
29654 s,@prefix@,$prefix,;t t
29655 s,@program_transform_name@,$program_transform_name,;t t
29656 s,@bindir@,$bindir,;t t
29657 s,@sbindir@,$sbindir,;t t
29658 s,@libexecdir@,$libexecdir,;t t
29659 s,@datadir@,$datadir,;t t
29660 s,@sysconfdir@,$sysconfdir,;t t
29661 s,@sharedstatedir@,$sharedstatedir,;t t
29662 s,@localstatedir@,$localstatedir,;t t
29663 s,@libdir@,$libdir,;t t
29664 s,@includedir@,$includedir,;t t
29665 s,@oldincludedir@,$oldincludedir,;t t
29666 s,@infodir@,$infodir,;t t
29667 s,@mandir@,$mandir,;t t
29668 s,@build_alias@,$build_alias,;t t
29669 s,@host_alias@,$host_alias,;t t
29670 s,@target_alias@,$target_alias,;t t
29671 s,@DEFS@,$DEFS,;t t
29672 s,@ECHO_C@,$ECHO_C,;t t
29673 s,@ECHO_N@,$ECHO_N,;t t
29674 s,@ECHO_T@,$ECHO_T,;t t
29675 s,@LIBS@,$LIBS,;t t
29676 s,@build@,$build,;t t
29677 s,@build_cpu@,$build_cpu,;t t
29678 s,@build_vendor@,$build_vendor,;t t
29679 s,@build_os@,$build_os,;t t
29680 s,@build_libsubdir@,$build_libsubdir,;t t
29681 s,@build_subdir@,$build_subdir,;t t
29682 s,@host_subdir@,$host_subdir,;t t
29683 s,@target_subdir@,$target_subdir,;t t
29684 s,@multi_basedir@,$multi_basedir,;t t
29685 s,@host@,$host,;t t
29686 s,@host_cpu@,$host_cpu,;t t
29687 s,@host_vendor@,$host_vendor,;t t
29688 s,@host_os@,$host_os,;t t
29689 s,@target@,$target,;t t
29690 s,@target_cpu@,$target_cpu,;t t
29691 s,@target_vendor@,$target_vendor,;t t
29692 s,@target_os@,$target_os,;t t
29693 s,@target_noncanonical@,$target_noncanonical,;t t
29694 s,@LN_S@,$LN_S,;t t
29695 s,@mkinstalldirs@,$mkinstalldirs,;t t
29696 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
29697 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
29698 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
29699 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29700 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29702 s,@ac_ct_CC@,$ac_ct_CC,;t t
29703 s,@EXEEXT@,$EXEEXT,;t t
29704 s,@OBJEXT@,$OBJEXT,;t t
29706 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29707 s,@CFLAGS@,$CFLAGS,;t t
29708 s,@CXXFLAGS@,$CXXFLAGS,;t t
29709 s,@LDFLAGS@,$LDFLAGS,;t t
29710 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29711 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29712 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29713 s,@CYGPATH_W@,$CYGPATH_W,;t t
29714 s,@PACKAGE@,$PACKAGE,;t t
29715 s,@VERSION@,$VERSION,;t t
29716 s,@ACLOCAL@,$ACLOCAL,;t t
29717 s,@AUTOCONF@,$AUTOCONF,;t t
29718 s,@AUTOMAKE@,$AUTOMAKE,;t t
29719 s,@AUTOHEADER@,$AUTOHEADER,;t t
29720 s,@MAKEINFO@,$MAKEINFO,;t t
29721 s,@install_sh@,$install_sh,;t t
29722 s,@STRIP@,$STRIP,;t t
29723 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29724 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29725 s,@mkdir_p@,$mkdir_p,;t t
29727 s,@SET_MAKE@,$SET_MAKE,;t t
29728 s,@am__leading_dot@,$am__leading_dot,;t t
29729 s,@AMTAR@,$AMTAR,;t t
29730 s,@am__tar@,$am__tar,;t t
29731 s,@am__untar@,$am__untar,;t t
29732 s,@DEPDIR@,$DEPDIR,;t t
29733 s,@am__include@,$am__include,;t t
29734 s,@am__quote@,$am__quote,;t t
29735 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29736 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29737 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29738 s,@CCDEPMODE@,$CCDEPMODE,;t t
29739 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29740 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29741 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29742 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29743 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29745 s,@ac_ct_AS@,$ac_ct_AS,;t t
29747 s,@ac_ct_LD@,$ac_ct_LD,;t t
29749 s,@ac_ct_AR@,$ac_ct_AR,;t t
29750 s,@RANLIB@,$RANLIB,;t t
29751 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29754 s,@UNZIP@,$UNZIP,;t t
29755 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29756 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29757 s,@MAINT@,$MAINT,;t t
29758 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29759 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29760 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29761 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29762 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29763 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29764 s,@TOOLKIT@,$TOOLKIT,;t t
29765 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29766 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29767 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29768 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29769 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29770 s,@GCJH@,$GCJH,;t t
29771 s,@host_exeext@,$host_exeext,;t t
29772 s,@INCLTDL@,$INCLTDL,;t t
29773 s,@LIBLTDL@,$LIBLTDL,;t t
29774 s,@DIRLTDL@,$DIRLTDL,;t t
29775 s,@LIBTOOL@,$LIBTOOL,;t t
29777 s,@EGREP@,$EGREP,;t t
29778 s,@FGREP@,$FGREP,;t t
29779 s,@GREP@,$GREP,;t t
29780 s,@DUMPBIN@,$DUMPBIN,;t t
29781 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29783 s,@OBJDUMP@,$OBJDUMP,;t t
29784 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29785 s,@lt_ECHO@,$lt_ECHO,;t t
29786 s,@DSYMUTIL@,$DSYMUTIL,;t t
29787 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29788 s,@NMEDIT@,$NMEDIT,;t t
29789 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29790 s,@LIPO@,$LIPO,;t t
29791 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29792 s,@OTOOL@,$OTOOL,;t t
29793 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29794 s,@OTOOL64@,$OTOOL64,;t t
29795 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29797 s,@CPPFLAGS@,$CPPFLAGS,;t t
29798 s,@CXXCPP@,$CXXCPP,;t t
29800 s,@GCJFLAGS@,$GCJFLAGS,;t t
29801 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29802 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29803 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29804 s,@subdirs@,$subdirs,;t t
29805 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29806 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29807 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29808 s,@ECJ_JAR@,$ECJ_JAR,;t t
29809 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29810 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29811 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29812 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29813 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29814 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29815 s,@JAVA_HOME@,$JAVA_HOME,;t t
29816 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29817 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29818 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29819 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29820 s,@INTERPRETER@,$INTERPRETER,;t t
29821 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29822 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29823 s,@LIBFFI@,$LIBFFI,;t t
29824 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29825 s,@PLATFORM@,$PLATFORM,;t t
29826 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29827 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29828 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29829 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29830 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29831 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29832 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29833 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29834 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29835 s,@X_CFLAGS@,$X_CFLAGS,;t t
29836 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29837 s,@X_LIBS@,$X_LIBS,;t t
29838 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29839 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29840 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29841 s,@extra_ldflags@,$extra_ldflags,;t t
29842 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29843 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29844 s,@GCLIBS@,$GCLIBS,;t t
29845 s,@GCINCS@,$GCINCS,;t t
29846 s,@GCDEPS@,$GCDEPS,;t t
29847 s,@GCSPEC@,$GCSPEC,;t t
29848 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29849 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29850 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29851 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29852 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29853 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29854 s,@THREADLIBS@,$THREADLIBS,;t t
29855 s,@THREADINCS@,$THREADINCS,;t t
29856 s,@THREADDEPS@,$THREADDEPS,;t t
29857 s,@THREADSPEC@,$THREADSPEC,;t t
29858 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29859 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29860 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29861 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29862 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29863 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29864 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29865 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29866 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29867 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29868 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29869 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29870 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29871 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29872 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29873 s,@LIBICONV@,$LIBICONV,;t t
29874 s,@LTLIBICONV@,$LTLIBICONV,;t t
29875 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29876 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29877 s,@GTK_LIBS@,$GTK_LIBS,;t t
29878 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29879 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29880 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29881 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29882 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29883 s,@ZLIBS@,$ZLIBS,;t t
29884 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29885 s,@ZINCS@,$ZINCS,;t t
29886 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29887 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29888 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29889 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29890 s,@IEEESPEC@,$IEEESPEC,;t t
29891 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29892 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29893 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29894 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29895 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29896 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29897 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
29898 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
29899 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29900 s,@toolexecdir@,$toolexecdir,;t t
29901 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29902 s,@toolexeclibdir@,$toolexeclibdir,;t t
29903 s,@GCJVERSION@,$GCJVERSION,;t t
29904 s,@dbexecdir@,$dbexecdir,;t t
29905 s,@gcjsubdir@,$gcjsubdir,;t t
29906 s,@gxx_include_dir@,$gxx_include_dir,;t t
29907 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29908 s,@PERL@,$PERL,;t t
29909 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29910 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29911 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29912 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29913 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29914 s,@here@,$here,;t t
29915 s,@python_mod_dir@,$python_mod_dir,;t t
29916 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29917 s,@MAKE@,$MAKE,;t t
29918 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29919 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29920 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29921 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29922 s,@gcc_suffix@,$gcc_suffix,;t t
29923 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29924 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29925 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29926 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29927 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29928 s,@JRE_DIR@,$JRE_DIR,;t t
29929 s,@SDK_DIR@,$SDK_DIR,;t t
29930 s,@JRE_LNK@,$JRE_LNK,;t t
29931 s,@SDK_LNK@,$SDK_LNK,;t t
29932 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29933 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29934 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29935 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29936 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29937 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29940 s,@LIBDIR@,$LIBDIR,;t t
29941 s,@LIBOBJS@,$LIBOBJS,;t t
29942 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29947 cat >>$CONFIG_STATUS <<\_ACEOF
29948 # Split the substitutions into bite-sized pieces for seds with
29949 # small command number limits, like on Digital OSF/1 and HP-UX.
29950 ac_max_sed_lines=48
29951 ac_sed_frag=1 # Number of current file.
29952 ac_beg=1 # First line for current file.
29953 ac_end=$ac_max_sed_lines # Line after last line for current file.
29956 while $ac_more_lines; do
29957 if test $ac_beg -gt 1; then
29958 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29960 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29962 if test ! -s $tmp/subs.frag; then
29963 ac_more_lines=false
29965 # The purpose of the label and of the branching condition is to
29966 # speed up the sed processing (if there are no `@' at all, there
29967 # is no need to browse any of the substitutions).
29968 # These are the two extra sed commands mentioned above.
29970 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29971 if test -z "$ac_sed_cmds"; then
29972 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29974 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29976 ac_sed_frag=`expr $ac_sed_frag + 1`
29978 ac_end=`expr $ac_end + $ac_max_sed_lines`
29981 if test -z "$ac_sed_cmds"; then
29984 fi # test -n "$CONFIG_FILES"
29987 cat >>$CONFIG_STATUS <<\_ACEOF
29988 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29991 - | *:- | *:-:* ) # input from stdin
29993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29997 * ) ac_file_in=$ac_file.in ;;
30000 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30001 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30002 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30003 X"$ac_file" : 'X\(//\)[^/]' \| \
30004 X"$ac_file" : 'X\(//\)$' \| \
30005 X"$ac_file" : 'X\(/\)' \| \
30006 . : '\(.\)' 2>/dev/null ||
30008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30009 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30010 /^X\(\/\/\)$/{ s//\1/; q; }
30011 /^X\(\/\).*/{ s//\1/; q; }
30013 { if $as_mkdir_p; then
30018 while test ! -d "$as_dir"; do
30019 as_dirs="$as_dir $as_dirs"
30020 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30022 X"$as_dir" : 'X\(//\)[^/]' \| \
30023 X"$as_dir" : 'X\(//\)$' \| \
30024 X"$as_dir" : 'X\(/\)' \| \
30025 . : '\(.\)' 2>/dev/null ||
30027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30028 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30029 /^X\(\/\/\)$/{ s//\1/; q; }
30030 /^X\(\/\).*/{ s//\1/; q; }
30033 test ! -n "$as_dirs" || mkdir $as_dirs
30034 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30035 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30036 { (exit 1); exit 1; }; }; }
30040 if test "$ac_dir" != .; then
30041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30042 # A "../" for each directory in $ac_dir_suffix.
30043 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30045 ac_dir_suffix= ac_top_builddir=
30049 .) # No --srcdir option. We are building in place.
30051 if test -z "$ac_top_builddir"; then
30054 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30056 [\\/]* | ?:[\\/]* ) # Absolute path.
30057 ac_srcdir=$srcdir$ac_dir_suffix;
30058 ac_top_srcdir=$srcdir ;;
30059 *) # Relative path.
30060 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30061 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30064 # Do not use `cd foo && pwd` to compute absolute paths, because
30065 # the directories may not exist.
30067 .) ac_abs_builddir="$ac_dir";;
30070 .) ac_abs_builddir=`pwd`;;
30071 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30072 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30075 case $ac_abs_builddir in
30076 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30078 case ${ac_top_builddir}. in
30079 .) ac_abs_top_builddir=$ac_abs_builddir;;
30080 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30081 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30084 case $ac_abs_builddir in
30085 .) ac_abs_srcdir=$ac_srcdir;;
30088 .) ac_abs_srcdir=$ac_abs_builddir;;
30089 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30090 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30093 case $ac_abs_builddir in
30094 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30096 case $ac_top_srcdir in
30097 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30098 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30099 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30106 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30109 if test x"$ac_file" != x-; then
30110 { echo "$as_me:$LINENO: creating $ac_file" >&5
30111 echo "$as_me: creating $ac_file" >&6;}
30114 # Let's still pretend it is `configure' which instantiates (i.e., don't
30115 # use $as_me), people would be surprised to read:
30116 # /* config.h. Generated by config.status. */
30117 if test x"$ac_file" = x-; then
30120 configure_input="$ac_file. "
30122 configure_input=$configure_input"Generated from `echo $ac_file_in |
30123 sed 's,.*/,,'` by configure."
30125 # First look for the input files in the build tree, otherwise in the
30127 ac_file_inputs=`IFS=:
30128 for f in $ac_file_in; do
30130 -) echo $tmp/stdin ;;
30132 # Absolute (can't be DOS-style, as IFS=:)
30133 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30134 echo "$as_me: error: cannot find input file: $f" >&2;}
30135 { (exit 1); exit 1; }; }
30138 if test -f "$f"; then
30141 elif test -f "$srcdir/$f"; then
30146 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30147 echo "$as_me: error: cannot find input file: $f" >&2;}
30148 { (exit 1); exit 1; }; }
30151 done` || { (exit 1); exit 1; }
30153 cat >>$CONFIG_STATUS <<_ACEOF
30157 cat >>$CONFIG_STATUS <<\_ACEOF
30159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30160 s,@configure_input@,$configure_input,;t t
30161 s,@srcdir@,$ac_srcdir,;t t
30162 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30163 s,@top_srcdir@,$ac_top_srcdir,;t t
30164 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30165 s,@builddir@,$ac_builddir,;t t
30166 s,@abs_builddir@,$ac_abs_builddir,;t t
30167 s,@top_builddir@,$ac_top_builddir,;t t
30168 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30169 s,@INSTALL@,$ac_INSTALL,;t t
30170 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30172 if test x"$ac_file" != x-; then
30173 mv $tmp/out $ac_file
30179 # Run the commands associated with the file.
30181 scripts/jar ) chmod +x scripts/jar ;;
30185 cat >>$CONFIG_STATUS <<\_ACEOF
30188 # CONFIG_HEADER section.
30191 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30192 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30194 # ac_d sets the value in "#define NAME VALUE" lines.
30195 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30196 ac_dB='[ ].*$,\1#\2'
30199 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30200 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30201 ac_uB='$,\1#\2define\3'
30205 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30208 - | *:- | *:-:* ) # input from stdin
30210 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30212 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30214 * ) ac_file_in=$ac_file.in ;;
30217 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30218 echo "$as_me: creating $ac_file" >&6;}
30220 # First look for the input files in the build tree, otherwise in the
30222 ac_file_inputs=`IFS=:
30223 for f in $ac_file_in; do
30225 -) echo $tmp/stdin ;;
30227 # Absolute (can't be DOS-style, as IFS=:)
30228 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30229 echo "$as_me: error: cannot find input file: $f" >&2;}
30230 { (exit 1); exit 1; }; }
30231 # Do quote $f, to prevent DOS paths from being IFS'd.
30234 if test -f "$f"; then
30237 elif test -f "$srcdir/$f"; then
30242 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30243 echo "$as_me: error: cannot find input file: $f" >&2;}
30244 { (exit 1); exit 1; }; }
30247 done` || { (exit 1); exit 1; }
30248 # Remove the trailing spaces.
30249 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30253 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30254 # `conftest.undefs', that substitutes the proper values into
30255 # config.h.in to produce config.h. The first handles `#define'
30256 # templates, and the second `#undef' templates.
30257 # And first: Protect against being on the right side of a sed subst in
30258 # config.status. Protect against being in an unquoted here document
30259 # in config.status.
30260 rm -f conftest.defines conftest.undefs
30261 # Using a here document instead of a string reduces the quoting nightmare.
30262 # Putting comments in sed scripts is not portable.
30264 # `end' is used to avoid that the second main sed command (meant for
30265 # 0-ary CPP macros) applies to n-ary macro definitions.
30266 # See the Autoconf documentation for `clear'.
30267 cat >confdef2sed.sed <<\_ACEOF
30272 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30274 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30277 # If some macros were called several times there might be several times
30278 # the same #defines, which is useless. Nevertheless, we may not want to
30279 # sort them, since we want the *last* AC-DEFINE to be honored.
30280 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30281 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30282 rm -f confdef2sed.sed
30284 # This sed command replaces #undef with comments. This is necessary, for
30285 # example, in the case of _POSIX_SOURCE, which is predefined and required
30286 # on some systems where configure will not decide to define it.
30287 cat >>conftest.undefs <<\_ACEOF
30288 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30291 # Break up conftest.defines because some shells have a limit on the size
30292 # of here documents, and old seds have small limits too (100 cmds).
30293 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30294 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30295 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30296 echo ' :' >>$CONFIG_STATUS
30297 rm -f conftest.tail
30298 while grep . conftest.defines >/dev/null
30300 # Write a limited-size here document to $tmp/defines.sed.
30301 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30302 # Speed up: don't consider the non `#define' lines.
30303 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30304 # Work around the forget-to-reset-the-flag bug.
30305 echo 't clr' >>$CONFIG_STATUS
30306 echo ': clr' >>$CONFIG_STATUS
30307 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30309 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30311 mv $tmp/out $tmp/in
30313 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30314 rm -f conftest.defines
30315 mv conftest.tail conftest.defines
30317 rm -f conftest.defines
30318 echo ' fi # grep' >>$CONFIG_STATUS
30319 echo >>$CONFIG_STATUS
30321 # Break up conftest.undefs because some shells have a limit on the size
30322 # of here documents, and old seds have small limits too (100 cmds).
30323 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30324 rm -f conftest.tail
30325 while grep . conftest.undefs >/dev/null
30327 # Write a limited-size here document to $tmp/undefs.sed.
30328 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30329 # Speed up: don't consider the non `#undef'
30330 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30331 # Work around the forget-to-reset-the-flag bug.
30332 echo 't clr' >>$CONFIG_STATUS
30333 echo ': clr' >>$CONFIG_STATUS
30334 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30336 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30338 mv $tmp/out $tmp/in
30340 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30341 rm -f conftest.undefs
30342 mv conftest.tail conftest.undefs
30344 rm -f conftest.undefs
30346 cat >>$CONFIG_STATUS <<\_ACEOF
30347 # Let's still pretend it is `configure' which instantiates (i.e., don't
30348 # use $as_me), people would be surprised to read:
30349 # /* config.h. Generated by config.status. */
30350 if test x"$ac_file" = x-; then
30351 echo "/* Generated by configure. */" >$tmp/config.h
30353 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30355 cat $tmp/in >>$tmp/config.h
30357 if test x"$ac_file" != x-; then
30358 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30359 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30360 echo "$as_me: $ac_file is unchanged" >&6;}
30362 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30364 X"$ac_file" : 'X\(//\)[^/]' \| \
30365 X"$ac_file" : 'X\(//\)$' \| \
30366 X"$ac_file" : 'X\(/\)' \| \
30367 . : '\(.\)' 2>/dev/null ||
30369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30371 /^X\(\/\/\)$/{ s//\1/; q; }
30372 /^X\(\/\).*/{ s//\1/; q; }
30374 { if $as_mkdir_p; then
30379 while test ! -d "$as_dir"; do
30380 as_dirs="$as_dir $as_dirs"
30381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30383 X"$as_dir" : 'X\(//\)[^/]' \| \
30384 X"$as_dir" : 'X\(//\)$' \| \
30385 X"$as_dir" : 'X\(/\)' \| \
30386 . : '\(.\)' 2>/dev/null ||
30388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30390 /^X\(\/\/\)$/{ s//\1/; q; }
30391 /^X\(\/\).*/{ s//\1/; q; }
30394 test ! -n "$as_dirs" || mkdir $as_dirs
30395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30397 { (exit 1); exit 1; }; }; }
30400 mv $tmp/config.h $ac_file
30404 rm -f $tmp/config.h
30406 # Compute $ac_file's index in $config_headers.
30408 for _am_header in $config_headers :; do
30409 case $_am_header in
30410 $ac_file | $ac_file:* )
30413 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30416 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30417 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30418 X$ac_file : 'X\(//\)[^/]' \| \
30419 X$ac_file : 'X\(//\)$' \| \
30420 X$ac_file : 'X\(/\)' \| \
30421 . : '\(.\)' 2>/dev/null ||
30423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30425 /^X\(\/\/\)$/{ s//\1/; q; }
30426 /^X\(\/\).*/{ s//\1/; q; }
30427 s/.*/./; q'`/stamp-h$_am_stamp_count
30430 cat >>$CONFIG_STATUS <<\_ACEOF
30433 # CONFIG_LINKS section.
30436 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30437 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30438 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30440 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30441 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30443 if test ! -r $srcdir/$ac_source; then
30444 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30445 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30446 { (exit 1); exit 1; }; }
30450 # Make relative symlinks.
30451 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30452 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30453 X"$ac_dest" : 'X\(//\)[^/]' \| \
30454 X"$ac_dest" : 'X\(//\)$' \| \
30455 X"$ac_dest" : 'X\(/\)' \| \
30456 . : '\(.\)' 2>/dev/null ||
30458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30459 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30460 /^X\(\/\/\)$/{ s//\1/; q; }
30461 /^X\(\/\).*/{ s//\1/; q; }
30463 { if $as_mkdir_p; then
30464 mkdir -p "$ac_dest_dir"
30466 as_dir="$ac_dest_dir"
30468 while test ! -d "$as_dir"; do
30469 as_dirs="$as_dir $as_dirs"
30470 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30472 X"$as_dir" : 'X\(//\)[^/]' \| \
30473 X"$as_dir" : 'X\(//\)$' \| \
30474 X"$as_dir" : 'X\(/\)' \| \
30475 . : '\(.\)' 2>/dev/null ||
30477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30478 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30479 /^X\(\/\/\)$/{ s//\1/; q; }
30480 /^X\(\/\).*/{ s//\1/; q; }
30483 test ! -n "$as_dirs" || mkdir $as_dirs
30484 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30485 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30486 { (exit 1); exit 1; }; }; }
30490 if test "$ac_dest_dir" != .; then
30491 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30492 # A "../" for each directory in $ac_dir_suffix.
30493 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30495 ac_dir_suffix= ac_top_builddir=
30499 .) # No --srcdir option. We are building in place.
30501 if test -z "$ac_top_builddir"; then
30504 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30506 [\\/]* | ?:[\\/]* ) # Absolute path.
30507 ac_srcdir=$srcdir$ac_dir_suffix;
30508 ac_top_srcdir=$srcdir ;;
30509 *) # Relative path.
30510 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30511 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30514 # Do not use `cd foo && pwd` to compute absolute paths, because
30515 # the directories may not exist.
30517 .) ac_abs_builddir="$ac_dest_dir";;
30519 case "$ac_dest_dir" in
30520 .) ac_abs_builddir=`pwd`;;
30521 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30522 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30525 case $ac_abs_builddir in
30526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30528 case ${ac_top_builddir}. in
30529 .) ac_abs_top_builddir=$ac_abs_builddir;;
30530 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30531 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30534 case $ac_abs_builddir in
30535 .) ac_abs_srcdir=$ac_srcdir;;
30538 .) ac_abs_srcdir=$ac_abs_builddir;;
30539 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30540 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30543 case $ac_abs_builddir in
30544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30546 case $ac_top_srcdir in
30547 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30548 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30549 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30555 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30556 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30559 # Try a symlink, then a hard link, then a copy.
30560 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30561 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30562 cp -p $srcdir/$ac_source $ac_dest ||
30563 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30564 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30565 { (exit 1); exit 1; }; }
30568 cat >>$CONFIG_STATUS <<\_ACEOF
30571 # CONFIG_COMMANDS section.
30573 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30574 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30575 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30576 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30577 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30578 X"$ac_dest" : 'X\(//\)[^/]' \| \
30579 X"$ac_dest" : 'X\(//\)$' \| \
30580 X"$ac_dest" : 'X\(/\)' \| \
30581 . : '\(.\)' 2>/dev/null ||
30583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30585 /^X\(\/\/\)$/{ s//\1/; q; }
30586 /^X\(\/\).*/{ s//\1/; q; }
30588 { if $as_mkdir_p; then
30593 while test ! -d "$as_dir"; do
30594 as_dirs="$as_dir $as_dirs"
30595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30597 X"$as_dir" : 'X\(//\)[^/]' \| \
30598 X"$as_dir" : 'X\(//\)$' \| \
30599 X"$as_dir" : 'X\(/\)' \| \
30600 . : '\(.\)' 2>/dev/null ||
30602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30604 /^X\(\/\/\)$/{ s//\1/; q; }
30605 /^X\(\/\).*/{ s//\1/; q; }
30608 test ! -n "$as_dirs" || mkdir $as_dirs
30609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30611 { (exit 1); exit 1; }; }; }
30615 if test "$ac_dir" != .; then
30616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30617 # A "../" for each directory in $ac_dir_suffix.
30618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30620 ac_dir_suffix= ac_top_builddir=
30624 .) # No --srcdir option. We are building in place.
30626 if test -z "$ac_top_builddir"; then
30629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30631 [\\/]* | ?:[\\/]* ) # Absolute path.
30632 ac_srcdir=$srcdir$ac_dir_suffix;
30633 ac_top_srcdir=$srcdir ;;
30634 *) # Relative path.
30635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30639 # Do not use `cd foo && pwd` to compute absolute paths, because
30640 # the directories may not exist.
30642 .) ac_abs_builddir="$ac_dir";;
30645 .) ac_abs_builddir=`pwd`;;
30646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30647 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30650 case $ac_abs_builddir in
30651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30653 case ${ac_top_builddir}. in
30654 .) ac_abs_top_builddir=$ac_abs_builddir;;
30655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30659 case $ac_abs_builddir in
30660 .) ac_abs_srcdir=$ac_srcdir;;
30663 .) ac_abs_srcdir=$ac_abs_builddir;;
30664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30668 case $ac_abs_builddir in
30669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30671 case $ac_top_srcdir in
30672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30679 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30680 echo "$as_me: executing $ac_dest commands" >&6;}
30683 # Only add multilib support code if we just rebuilt the top-level
30685 case " $CONFIG_FILES " in
30687 ac_file=Makefile . ${multi_basedir}/config-ml.in
30690 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30691 # Strip MF so we end up with the name of the file.
30692 mf=`echo "$mf" | sed -e 's/:.*$//'`
30693 # Check whether this is an Automake generated Makefile or not.
30694 # We used to match only the files named `Makefile.in', but
30695 # some people rename them; so instead we look at the file content.
30696 # Grep'ing the first line is not enough: some people post-process
30697 # each Makefile.in and add a new line on top of each file to say so.
30698 # So let's grep whole file.
30699 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30700 dirpart=`(dirname "$mf") 2>/dev/null ||
30701 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30702 X"$mf" : 'X\(//\)[^/]' \| \
30703 X"$mf" : 'X\(//\)$' \| \
30704 X"$mf" : 'X\(/\)' \| \
30705 . : '\(.\)' 2>/dev/null ||
30707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30709 /^X\(\/\/\)$/{ s//\1/; q; }
30710 /^X\(\/\).*/{ s//\1/; q; }
30715 # Extract the definition of DEPDIR, am__include, and am__quote
30716 # from the Makefile without running `make'.
30717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30718 test -z "$DEPDIR" && continue
30719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30720 test -z "am__include" && continue
30721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30722 # When using ansi2knr, U may be empty or an underscore; expand it
30723 U=`sed -n 's/^U = //p' < "$mf"`
30724 # Find all dependency output files, they are included files with
30725 # $(DEPDIR) in their names. We invoke sed twice because it is the
30726 # simplest approach to changing $(DEPDIR) to its actual value in the
30728 for file in `sed -n "
30729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30731 # Make sure the directory exists.
30732 test -f "$dirpart/$file" && continue
30733 fdir=`(dirname "$file") 2>/dev/null ||
30734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30735 X"$file" : 'X\(//\)[^/]' \| \
30736 X"$file" : 'X\(//\)$' \| \
30737 X"$file" : 'X\(/\)' \| \
30738 . : '\(.\)' 2>/dev/null ||
30740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30742 /^X\(\/\/\)$/{ s//\1/; q; }
30743 /^X\(\/\).*/{ s//\1/; q; }
30745 { if $as_mkdir_p; then
30746 mkdir -p $dirpart/$fdir
30748 as_dir=$dirpart/$fdir
30750 while test ! -d "$as_dir"; do
30751 as_dirs="$as_dir $as_dirs"
30752 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30753 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30754 X"$as_dir" : 'X\(//\)[^/]' \| \
30755 X"$as_dir" : 'X\(//\)$' \| \
30756 X"$as_dir" : 'X\(/\)' \| \
30757 . : '\(.\)' 2>/dev/null ||
30759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30761 /^X\(\/\/\)$/{ s//\1/; q; }
30762 /^X\(\/\).*/{ s//\1/; q; }
30765 test ! -n "$as_dirs" || mkdir $as_dirs
30766 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30767 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30768 { (exit 1); exit 1; }; }; }
30770 # echo "creating $dirpart/$file"
30771 echo '# dummy' > "$dirpart/$file"
30777 # See if we are running on zsh, and set the options which allow our
30778 # commands through without removal of \ escapes.
30779 if test -n "${ZSH_VERSION+set}" ; then
30780 setopt NO_GLOB_SUBST
30783 cfgfile="${ofile}T"
30784 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30787 cat <<_LT_EOF >> "$cfgfile"
30790 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30791 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30793 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30795 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30796 # 2006, 2007, 2008 Free Software Foundation, Inc.
30797 # Written by Gordon Matzigkeit, 1996
30799 # This file is part of GNU Libtool.
30801 # GNU Libtool is free software; you can redistribute it and/or
30802 # modify it under the terms of the GNU General Public License as
30803 # published by the Free Software Foundation; either version 2 of
30804 # the License, or (at your option) any later version.
30806 # As a special exception to the GNU General Public License,
30807 # if you distribute this file as part of a program or library that
30808 # is built using GNU Libtool, you may include this file under the
30809 # same distribution terms that you use for the rest of that program.
30811 # GNU Libtool is distributed in the hope that it will be useful,
30812 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30813 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30814 # GNU General Public License for more details.
30816 # You should have received a copy of the GNU General Public License
30817 # along with GNU Libtool; see the file COPYING. If not, a copy
30818 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30819 # obtained by writing to the Free Software Foundation, Inc.,
30820 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30823 # The names of the tagged configurations supported by this script.
30824 available_tags="CXX GCJ "
30826 # ### BEGIN LIBTOOL CONFIG
30828 # Which release of libtool.m4 was used?
30829 macro_version=$macro_version
30830 macro_revision=$macro_revision
30832 # Whether or not to build shared libraries.
30833 build_libtool_libs=$enable_shared
30835 # Whether or not to build static libraries.
30836 build_old_libs=$enable_static
30838 # What type of objects to build.
30841 # Whether or not to optimize for fast installation.
30842 fast_install=$enable_fast_install
30845 host_alias=$host_alias
30849 # The build system.
30850 build_alias=$build_alias
30854 # A sed program that does not truncate output.
30857 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30858 Xsed="\$SED -e 1s/^X//"
30860 # A grep program that handles long lines.
30866 # A literal string matcher.
30869 # A BSD- or MS-compatible name lister.
30872 # Whether we need soft or hard links.
30875 # What is the maximum length of a command?
30876 max_cmd_len=$max_cmd_len
30878 # Object file suffix (normally "o").
30881 # Executable file suffix (normally "").
30884 # whether the shell understands "unset".
30887 # turn spaces into newlines.
30890 # turn newlines into spaces.
30893 # How to create reloadable object files.
30894 reload_flag=$lt_reload_flag
30895 reload_cmds=$lt_reload_cmds
30897 # An object symbol dumper.
30898 OBJDUMP=$lt_OBJDUMP
30900 # Method to check whether dependent libraries are shared objects.
30901 deplibs_check_method=$lt_deplibs_check_method
30903 # Command to use when deplibs_check_method == "file_magic".
30904 file_magic_cmd=$lt_file_magic_cmd
30908 AR_FLAGS=$lt_AR_FLAGS
30910 # A symbol stripping program.
30913 # Commands used to install an old-style archive.
30915 old_postinstall_cmds=$lt_old_postinstall_cmds
30916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30921 # LTCC compiler flags.
30922 LTCFLAGS=$lt_CFLAGS
30924 # Take the output of nm and produce a listing of raw symbols and C names.
30925 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30927 # Transform the output of nm in a proper C declaration.
30928 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30930 # Transform the output of nm in a C name address pair.
30931 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30933 # Transform the output of nm in a C name address pair when lib prefix is needed.
30934 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30936 # The name of the directory that contains temporary libtool files.
30939 # Shell to use when invoking shell scripts.
30942 # An echo program that does not interpret backslashes.
30945 # Used to examine libraries when file_magic_cmd begins with "file".
30946 MAGIC_CMD=$MAGIC_CMD
30948 # Must we lock files when doing compilation?
30949 need_locks=$lt_need_locks
30951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30952 DSYMUTIL=$lt_DSYMUTIL
30954 # Tool to change global to local symbols on Mac OS X.
30957 # Tool to manipulate fat objects and archives on Mac OS X.
30960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30964 OTOOL64=$lt_OTOOL64
30966 # Old archive suffix (normally "a").
30969 # Shared library suffix (normally ".so").
30970 shrext_cmds=$lt_shrext_cmds
30972 # The commands to extract the exported symbol list from a shared archive.
30973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30975 # Variables whose values should be saved in libtool wrapper scripts and
30976 # restored at link time.
30977 variables_saved_for_relink=$lt_variables_saved_for_relink
30979 # Do we need the "lib" prefix for modules?
30980 need_lib_prefix=$need_lib_prefix
30982 # Do we need a version for libraries?
30983 need_version=$need_version
30985 # Library versioning type.
30986 version_type=$version_type
30988 # Shared library runtime path variable.
30989 runpath_var=$runpath_var
30991 # Shared library path variable.
30992 shlibpath_var=$shlibpath_var
30994 # Is shlibpath searched before the hard-coded library search path?
30995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30997 # Format of library name prefix.
30998 libname_spec=$lt_libname_spec
31000 # List of archive names. First name is the real one, the rest are links.
31001 # The last name is the one that the linker finds with -lNAME
31002 library_names_spec=$lt_library_names_spec
31004 # The coded name of the library, if different from the real name.
31005 soname_spec=$lt_soname_spec
31007 # Command to use after installation of a shared archive.
31008 postinstall_cmds=$lt_postinstall_cmds
31010 # Command to use after uninstallation of a shared archive.
31011 postuninstall_cmds=$lt_postuninstall_cmds
31013 # Commands used to finish a libtool library installation in a directory.
31014 finish_cmds=$lt_finish_cmds
31016 # As "finish_cmds", except a single script fragment to be evaled but
31018 finish_eval=$lt_finish_eval
31020 # Whether we should hardcode library paths into libraries.
31021 hardcode_into_libs=$hardcode_into_libs
31023 # Compile-time system search path for libraries.
31024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31026 # Run-time system search path for libraries.
31027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31029 # Whether dlopen is supported.
31030 dlopen_support=$enable_dlopen
31032 # Whether dlopen of programs is supported.
31033 dlopen_self=$enable_dlopen_self
31035 # Whether dlopen of statically linked programs is supported.
31036 dlopen_self_static=$enable_dlopen_self_static
31038 # Commands to strip libraries.
31039 old_striplib=$lt_old_striplib
31040 striplib=$lt_striplib
31043 # The linker used to build libraries.
31046 # Commands used to build an old-style archive.
31047 old_archive_cmds=$lt_old_archive_cmds
31049 # A language specific compiler.
31052 # Is the compiler the GNU compiler?
31055 # Compiler flag to turn off builtin functions.
31056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31058 # How to pass a linker flag through the compiler.
31059 wl=$lt_lt_prog_compiler_wl
31061 # Additional compiler flags for building library objects.
31062 pic_flag=$lt_lt_prog_compiler_pic
31064 # Compiler flag to prevent dynamic linking.
31065 link_static_flag=$lt_lt_prog_compiler_static
31067 # Does compiler simultaneously support -c and -o options?
31068 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31070 # Whether or not to add -lc for building shared libraries.
31071 build_libtool_need_lc=$archive_cmds_need_lc
31073 # Whether or not to disallow shared libs when runtime libs are static.
31074 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31076 # Compiler flag to allow reflexive dlopens.
31077 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31079 # Compiler flag to generate shared objects directly from archives.
31080 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31082 # Whether the compiler copes with passing no objects directly.
31083 compiler_needs_object=$lt_compiler_needs_object
31085 # Create an old-style archive from a shared archive.
31086 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31088 # Create a temporary old-style archive to link instead of a shared archive.
31089 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31091 # Commands used to build a shared archive.
31092 archive_cmds=$lt_archive_cmds
31093 archive_expsym_cmds=$lt_archive_expsym_cmds
31095 # Commands used to build a loadable module if different from building
31096 # a shared archive.
31097 module_cmds=$lt_module_cmds
31098 module_expsym_cmds=$lt_module_expsym_cmds
31100 # Whether we are building with GNU ld or not.
31101 with_gnu_ld=$lt_with_gnu_ld
31103 # Flag that allows shared libraries with undefined symbols to be built.
31104 allow_undefined_flag=$lt_allow_undefined_flag
31106 # Flag that enforces no undefined symbols.
31107 no_undefined_flag=$lt_no_undefined_flag
31109 # Flag to hardcode \$libdir into a binary during linking.
31110 # This must work even if \$libdir does not exist
31111 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31113 # If ld is used when linking, flag to hardcode \$libdir into a binary
31114 # during linking. This must work even if \$libdir does not exist.
31115 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31117 # Whether we need a single "-rpath" flag with a separated argument.
31118 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31120 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31121 # DIR into the resulting binary.
31122 hardcode_direct=$hardcode_direct
31124 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31125 # DIR into the resulting binary and the resulting library dependency is
31126 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31127 # library is relocated.
31128 hardcode_direct_absolute=$hardcode_direct_absolute
31130 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31131 # into the resulting binary.
31132 hardcode_minus_L=$hardcode_minus_L
31134 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31135 # into the resulting binary.
31136 hardcode_shlibpath_var=$hardcode_shlibpath_var
31138 # Set to "yes" if building a shared library automatically hardcodes DIR
31139 # into the library and all subsequent libraries and executables linked
31141 hardcode_automatic=$hardcode_automatic
31143 # Set to yes if linker adds runtime paths of dependent libraries
31144 # to runtime path list.
31145 inherit_rpath=$inherit_rpath
31147 # Whether libtool must link a program against all its dependency libraries.
31148 link_all_deplibs=$link_all_deplibs
31150 # Fix the shell variable \$srcfile for the compiler.
31151 fix_srcfile_path=$lt_fix_srcfile_path
31153 # Set to "yes" if exported symbols are required.
31154 always_export_symbols=$always_export_symbols
31156 # The commands to list exported symbols.
31157 export_symbols_cmds=$lt_export_symbols_cmds
31159 # Symbols that should not be listed in the preloaded symbols.
31160 exclude_expsyms=$lt_exclude_expsyms
31162 # Symbols that must always be exported.
31163 include_expsyms=$lt_include_expsyms
31165 # Commands necessary for linking programs (against libraries) with templates.
31166 prelink_cmds=$lt_prelink_cmds
31168 # Specify filename containing input files.
31169 file_list_spec=$lt_file_list_spec
31171 # How to hardcode a shared library path into an executable.
31172 hardcode_action=$hardcode_action
31174 # The directories searched by this compiler when creating a shared library.
31175 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31177 # Dependencies to place before and after the objects being linked to
31178 # create a shared library.
31179 predep_objects=$lt_predep_objects
31180 postdep_objects=$lt_postdep_objects
31181 predeps=$lt_predeps
31182 postdeps=$lt_postdeps
31184 # The library search path used internally by the compiler when linking
31185 # a shared library.
31186 compiler_lib_search_path=$lt_compiler_lib_search_path
31188 # ### END LIBTOOL CONFIG
31194 cat <<\_LT_EOF >> "$cfgfile"
31195 # AIX sometimes has problems with the GCC collect2 program. For some
31196 # reason, if we set the COLLECT_NAMES environment variable, the problems
31197 # vanish in a puff of smoke.
31198 if test "X${COLLECT_NAMES+set}" != Xset; then
31200 export COLLECT_NAMES
31207 ltmain="$ac_aux_dir/ltmain.sh"
31210 # We use sed instead of cat because bash on DJGPP gets confused if
31211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31212 # text mode, it properly converts lines to CR/LF. This bash problem
31213 # is reportedly fixed, but why not run on old versions too?
31214 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31215 || (rm -f "$cfgfile"; exit 1)
31219 cat << \_LT_EOF >> "$cfgfile"
31221 # func_dirname file append nondir_replacement
31222 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31223 # otherwise set result to NONDIR_REPLACEMENT.
31227 */*) func_dirname_result="${1%/*}${2}" ;;
31228 * ) func_dirname_result="${3}" ;;
31232 # func_basename file
31235 func_basename_result="${1##*/}"
31238 # func_dirname_and_basename file append nondir_replacement
31239 # perform func_basename and func_dirname in a single function
31241 # dirname: Compute the dirname of FILE. If nonempty,
31242 # add APPEND to the result, otherwise set result
31243 # to NONDIR_REPLACEMENT.
31244 # value returned in "$func_dirname_result"
31245 # basename: Compute filename of FILE.
31246 # value retuned in "$func_basename_result"
31247 # Implementation must be kept synchronized with func_dirname
31248 # and func_basename. For efficiency, we do not delegate to
31249 # those functions but instead duplicate the functionality here.
31250 func_dirname_and_basename ()
31253 */*) func_dirname_result="${1%/*}${2}" ;;
31254 * ) func_dirname_result="${3}" ;;
31256 func_basename_result="${1##*/}"
31259 # func_stripname prefix suffix name
31260 # strip PREFIX and SUFFIX off of NAME.
31261 # PREFIX and SUFFIX must not contain globbing or regex special
31262 # characters, hashes, percent signs, but SUFFIX may contain a leading
31263 # dot (in which case that matches only a dot).
31266 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31267 # positional parameters, so assign one to ordinary parameter first.
31268 func_stripname_result=${3}
31269 func_stripname_result=${func_stripname_result#"${1}"}
31270 func_stripname_result=${func_stripname_result%"${2}"}
31276 func_opt_split_opt=${1%%=*}
31277 func_opt_split_arg=${1#*=}
31284 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31285 *) func_lo2o_result=${1} ;;
31289 # func_xform libobj-or-source
31292 func_xform_result=${1%.*}.lo
31295 # func_arith arithmetic-term...
31298 func_arith_result=$(( $* ))
31302 # STRING may not start with a hyphen.
31305 func_len_result=${#1}
31310 *) # Bourne compatible functions.
31311 cat << \_LT_EOF >> "$cfgfile"
31313 # func_dirname file append nondir_replacement
31314 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31315 # otherwise set result to NONDIR_REPLACEMENT.
31318 # Extract subdirectory from the argument.
31319 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31320 if test "X$func_dirname_result" = "X${1}"; then
31321 func_dirname_result="${3}"
31323 func_dirname_result="$func_dirname_result${2}"
31327 # func_basename file
31330 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31334 # func_stripname prefix suffix name
31335 # strip PREFIX and SUFFIX off of NAME.
31336 # PREFIX and SUFFIX must not contain globbing or regex special
31337 # characters, hashes, percent signs, but SUFFIX may contain a leading
31338 # dot (in which case that matches only a dot).
31339 # func_strip_suffix prefix name
31343 .*) func_stripname_result=`$ECHO "X${3}" \
31344 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31345 *) func_stripname_result=`$ECHO "X${3}" \
31346 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31351 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31352 my_sed_long_arg='1s/^-[^=]*=//'
31357 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31358 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31364 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31367 # func_xform libobj-or-source
31370 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31373 # func_arith arithmetic-term...
31376 func_arith_result=`expr "$@"`
31380 # STRING may not start with a hyphen.
31383 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31389 case $lt_shell_append in
31391 cat << \_LT_EOF >> "$cfgfile"
31393 # func_append var value
31394 # Append VALUE to the end of shell variable VAR.
31402 cat << \_LT_EOF >> "$cfgfile"
31404 # func_append var value
31405 # Append VALUE to the end of shell variable VAR.
31416 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31417 || (rm -f "$cfgfile"; exit 1)
31419 mv -f "$cfgfile" "$ofile" ||
31420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31424 cat <<_LT_EOF >> "$ofile"
31426 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31428 # The linker used to build libraries.
31431 # Commands used to build an old-style archive.
31432 old_archive_cmds=$lt_old_archive_cmds_CXX
31434 # A language specific compiler.
31435 CC=$lt_compiler_CXX
31437 # Is the compiler the GNU compiler?
31440 # Compiler flag to turn off builtin functions.
31441 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31443 # How to pass a linker flag through the compiler.
31444 wl=$lt_lt_prog_compiler_wl_CXX
31446 # Additional compiler flags for building library objects.
31447 pic_flag=$lt_lt_prog_compiler_pic_CXX
31449 # Compiler flag to prevent dynamic linking.
31450 link_static_flag=$lt_lt_prog_compiler_static_CXX
31452 # Does compiler simultaneously support -c and -o options?
31453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31455 # Whether or not to add -lc for building shared libraries.
31456 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31458 # Whether or not to disallow shared libs when runtime libs are static.
31459 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31461 # Compiler flag to allow reflexive dlopens.
31462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31464 # Compiler flag to generate shared objects directly from archives.
31465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31467 # Whether the compiler copes with passing no objects directly.
31468 compiler_needs_object=$lt_compiler_needs_object_CXX
31470 # Create an old-style archive from a shared archive.
31471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31473 # Create a temporary old-style archive to link instead of a shared archive.
31474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31476 # Commands used to build a shared archive.
31477 archive_cmds=$lt_archive_cmds_CXX
31478 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31480 # Commands used to build a loadable module if different from building
31481 # a shared archive.
31482 module_cmds=$lt_module_cmds_CXX
31483 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31485 # Whether we are building with GNU ld or not.
31486 with_gnu_ld=$lt_with_gnu_ld_CXX
31488 # Flag that allows shared libraries with undefined symbols to be built.
31489 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31491 # Flag that enforces no undefined symbols.
31492 no_undefined_flag=$lt_no_undefined_flag_CXX
31494 # Flag to hardcode \$libdir into a binary during linking.
31495 # This must work even if \$libdir does not exist
31496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31498 # If ld is used when linking, flag to hardcode \$libdir into a binary
31499 # during linking. This must work even if \$libdir does not exist.
31500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31502 # Whether we need a single "-rpath" flag with a separated argument.
31503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31505 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31506 # DIR into the resulting binary.
31507 hardcode_direct=$hardcode_direct_CXX
31509 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31510 # DIR into the resulting binary and the resulting library dependency is
31511 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31512 # library is relocated.
31513 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31515 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31516 # into the resulting binary.
31517 hardcode_minus_L=$hardcode_minus_L_CXX
31519 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31520 # into the resulting binary.
31521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31523 # Set to "yes" if building a shared library automatically hardcodes DIR
31524 # into the library and all subsequent libraries and executables linked
31526 hardcode_automatic=$hardcode_automatic_CXX
31528 # Set to yes if linker adds runtime paths of dependent libraries
31529 # to runtime path list.
31530 inherit_rpath=$inherit_rpath_CXX
31532 # Whether libtool must link a program against all its dependency libraries.
31533 link_all_deplibs=$link_all_deplibs_CXX
31535 # Fix the shell variable \$srcfile for the compiler.
31536 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31538 # Set to "yes" if exported symbols are required.
31539 always_export_symbols=$always_export_symbols_CXX
31541 # The commands to list exported symbols.
31542 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31544 # Symbols that should not be listed in the preloaded symbols.
31545 exclude_expsyms=$lt_exclude_expsyms_CXX
31547 # Symbols that must always be exported.
31548 include_expsyms=$lt_include_expsyms_CXX
31550 # Commands necessary for linking programs (against libraries) with templates.
31551 prelink_cmds=$lt_prelink_cmds_CXX
31553 # Specify filename containing input files.
31554 file_list_spec=$lt_file_list_spec_CXX
31556 # How to hardcode a shared library path into an executable.
31557 hardcode_action=$hardcode_action_CXX
31559 # The directories searched by this compiler when creating a shared library.
31560 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31562 # Dependencies to place before and after the objects being linked to
31563 # create a shared library.
31564 predep_objects=$lt_predep_objects_CXX
31565 postdep_objects=$lt_postdep_objects_CXX
31566 predeps=$lt_predeps_CXX
31567 postdeps=$lt_postdeps_CXX
31569 # The library search path used internally by the compiler when linking
31570 # a shared library.
31571 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31573 # ### END LIBTOOL TAG CONFIG: CXX
31577 cat <<_LT_EOF >> "$ofile"
31579 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31581 # The linker used to build libraries.
31584 # Commands used to build an old-style archive.
31585 old_archive_cmds=$lt_old_archive_cmds_GCJ
31587 # A language specific compiler.
31588 CC=$lt_compiler_GCJ
31590 # Is the compiler the GNU compiler?
31593 # Compiler flag to turn off builtin functions.
31594 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31596 # How to pass a linker flag through the compiler.
31597 wl=$lt_lt_prog_compiler_wl_GCJ
31599 # Additional compiler flags for building library objects.
31600 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31602 # Compiler flag to prevent dynamic linking.
31603 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31605 # Does compiler simultaneously support -c and -o options?
31606 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31608 # Whether or not to add -lc for building shared libraries.
31609 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31611 # Whether or not to disallow shared libs when runtime libs are static.
31612 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31614 # Compiler flag to allow reflexive dlopens.
31615 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31617 # Compiler flag to generate shared objects directly from archives.
31618 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31620 # Whether the compiler copes with passing no objects directly.
31621 compiler_needs_object=$lt_compiler_needs_object_GCJ
31623 # Create an old-style archive from a shared archive.
31624 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31626 # Create a temporary old-style archive to link instead of a shared archive.
31627 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31629 # Commands used to build a shared archive.
31630 archive_cmds=$lt_archive_cmds_GCJ
31631 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31633 # Commands used to build a loadable module if different from building
31634 # a shared archive.
31635 module_cmds=$lt_module_cmds_GCJ
31636 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31638 # Whether we are building with GNU ld or not.
31639 with_gnu_ld=$lt_with_gnu_ld_GCJ
31641 # Flag that allows shared libraries with undefined symbols to be built.
31642 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31644 # Flag that enforces no undefined symbols.
31645 no_undefined_flag=$lt_no_undefined_flag_GCJ
31647 # Flag to hardcode \$libdir into a binary during linking.
31648 # This must work even if \$libdir does not exist
31649 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31651 # If ld is used when linking, flag to hardcode \$libdir into a binary
31652 # during linking. This must work even if \$libdir does not exist.
31653 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31655 # Whether we need a single "-rpath" flag with a separated argument.
31656 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31658 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31659 # DIR into the resulting binary.
31660 hardcode_direct=$hardcode_direct_GCJ
31662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31663 # DIR into the resulting binary and the resulting library dependency is
31664 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31665 # library is relocated.
31666 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31668 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31669 # into the resulting binary.
31670 hardcode_minus_L=$hardcode_minus_L_GCJ
31672 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31673 # into the resulting binary.
31674 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31676 # Set to "yes" if building a shared library automatically hardcodes DIR
31677 # into the library and all subsequent libraries and executables linked
31679 hardcode_automatic=$hardcode_automatic_GCJ
31681 # Set to yes if linker adds runtime paths of dependent libraries
31682 # to runtime path list.
31683 inherit_rpath=$inherit_rpath_GCJ
31685 # Whether libtool must link a program against all its dependency libraries.
31686 link_all_deplibs=$link_all_deplibs_GCJ
31688 # Fix the shell variable \$srcfile for the compiler.
31689 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31691 # Set to "yes" if exported symbols are required.
31692 always_export_symbols=$always_export_symbols_GCJ
31694 # The commands to list exported symbols.
31695 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31697 # Symbols that should not be listed in the preloaded symbols.
31698 exclude_expsyms=$lt_exclude_expsyms_GCJ
31700 # Symbols that must always be exported.
31701 include_expsyms=$lt_include_expsyms_GCJ
31703 # Commands necessary for linking programs (against libraries) with templates.
31704 prelink_cmds=$lt_prelink_cmds_GCJ
31706 # Specify filename containing input files.
31707 file_list_spec=$lt_file_list_spec_GCJ
31709 # How to hardcode a shared library path into an executable.
31710 hardcode_action=$hardcode_action_GCJ
31712 # The directories searched by this compiler when creating a shared library.
31713 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31715 # Dependencies to place before and after the objects being linked to
31716 # create a shared library.
31717 predep_objects=$lt_predep_objects_GCJ
31718 postdep_objects=$lt_postdep_objects_GCJ
31719 predeps=$lt_predeps_GCJ
31720 postdeps=$lt_postdeps_GCJ
31722 # The library search path used internally by the compiler when linking
31723 # a shared library.
31724 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31726 # ### END LIBTOOL TAG CONFIG: GCJ
31734 cat >>$CONFIG_STATUS <<\_ACEOF
31736 { (exit 0); exit 0; }
31738 chmod +x $CONFIG_STATUS
31739 ac_clean_files=$ac_clean_files_save
31742 # configure is writing to config.log, and then calls config.status.
31743 # config.status does its own redirection, appending to config.log.
31744 # Unfortunately, on DOS this fails, as config.log is still kept open
31745 # by configure, so config.status won't be able to write to it; its
31746 # output is simply discarded. So we exec the FD to /dev/null,
31747 # effectively closing config.log, so it can be properly (re)opened and
31748 # appended to by config.status. When coming back to configure, we
31749 # need to make the FD available again.
31750 if test "$no_create" != yes; then
31752 ac_config_status_args=
31753 test "$silent" = yes &&
31754 ac_config_status_args="$ac_config_status_args --quiet"
31756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31759 # would make configure fail if this is the last instruction.
31760 $ac_cs_success || { (exit 1); exit 1; }
31764 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31766 if test "$no_recursion" != yes; then
31768 # Remove --cache-file and --srcdir arguments so they do not pile up.
31769 ac_sub_configure_args=
31771 eval "set x $ac_configure_args"
31775 if test -n "$ac_prev"; then
31780 -cache-file | --cache-file | --cache-fil | --cache-fi \
31781 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31782 ac_prev=cache_file ;;
31783 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31784 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31787 --config-cache | -C)
31789 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31791 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31793 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31795 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31799 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31801 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31805 # Always prepend --prefix to ensure using the same prefix
31806 # in subdir configurations.
31807 ac_arg="--prefix=$prefix"
31809 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31811 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31814 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31816 # Do not complain, so a configure script can configure whichever
31817 # parts of a large source tree are present.
31818 test -d "$srcdir/$ac_dir" || continue
31820 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31821 echo "$as_me: configuring in $ac_dir" >&6;}
31822 { if $as_mkdir_p; then
31827 while test ! -d "$as_dir"; do
31828 as_dirs="$as_dir $as_dirs"
31829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31831 X"$as_dir" : 'X\(//\)[^/]' \| \
31832 X"$as_dir" : 'X\(//\)$' \| \
31833 X"$as_dir" : 'X\(/\)' \| \
31834 . : '\(.\)' 2>/dev/null ||
31836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31838 /^X\(\/\/\)$/{ s//\1/; q; }
31839 /^X\(\/\).*/{ s//\1/; q; }
31842 test ! -n "$as_dirs" || mkdir $as_dirs
31843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31845 { (exit 1); exit 1; }; }; }
31849 if test "$ac_dir" != .; then
31850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31851 # A "../" for each directory in $ac_dir_suffix.
31852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31854 ac_dir_suffix= ac_top_builddir=
31858 .) # No --srcdir option. We are building in place.
31860 if test -z "$ac_top_builddir"; then
31863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31865 [\\/]* | ?:[\\/]* ) # Absolute path.
31866 ac_srcdir=$srcdir$ac_dir_suffix;
31867 ac_top_srcdir=$srcdir ;;
31868 *) # Relative path.
31869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31873 # Do not use `cd foo && pwd` to compute absolute paths, because
31874 # the directories may not exist.
31876 .) ac_abs_builddir="$ac_dir";;
31879 .) ac_abs_builddir=`pwd`;;
31880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31884 case $ac_abs_builddir in
31885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31887 case ${ac_top_builddir}. in
31888 .) ac_abs_top_builddir=$ac_abs_builddir;;
31889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31893 case $ac_abs_builddir in
31894 .) ac_abs_srcdir=$ac_srcdir;;
31897 .) ac_abs_srcdir=$ac_abs_builddir;;
31898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31902 case $ac_abs_builddir in
31903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31905 case $ac_top_srcdir in
31906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31915 # Check for guested configure; otherwise get Cygnus style configure.
31916 if test -f "$ac_srcdir/configure.gnu"; then
31917 ac_sub_configure=$ac_srcdir/configure.gnu
31918 elif test -f "$ac_srcdir/configure"; then
31919 ac_sub_configure=$ac_srcdir/configure
31920 elif test -f "$ac_srcdir/configure.in"; then
31921 # This should be Cygnus configure.
31922 ac_sub_configure=$ac_aux_dir/configure
31924 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31929 # The recursion is here.
31930 if test -n "$ac_sub_configure"; then
31931 # Make the cache file name correct relative to the subdirectory.
31932 case $cache_file in
31933 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31934 *) # Relative path.
31935 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31938 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31939 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31940 # The eval makes quoting arguments work.
31941 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31942 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31943 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31944 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31945 { (exit 1); exit 1; }; }