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 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 lt_ECHO 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 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 GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here 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 --enable-java-maintainer-mode
1021 allow rebuilding of .class and .h files
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-maintainer-mode enable make rules and dependencies not useful
1025 (and sometimes confusing) to the casual installer
1026 --enable-libgcj-debug enable runtime debugging code
1027 --enable-java-awt list of AWT peer implementations to be built
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --disable-getenv-properties
1036 don't set system properties from GCJ_PROPERTIES
1037 --enable-hash-synchronization
1038 use global hash table for monitor locks
1039 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1041 --enable-gc-debug include full support for pointer backtracing etc.
1042 --enable-interpreter enable interpreter
1043 --enable-sjlj-exceptions
1044 force use of builtin_setjmp for exceptions
1045 --disable-java-net disable java.net
1046 --disable-jvmpi disable JVMPI support
1047 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1048 --disable-rpath do not hardcode runtime library paths
1049 --enable-tls Use thread-local storage [default=yes]
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-build-libsubdir=DIR Directory where to find libraries for build system
1055 --with-target-subdir=SUBDIR
1056 configure in a subdirectory
1057 --with-cross-host=HOST configure with a cross compiler from HOST
1058 --with-newlib configure with newlib
1059 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1062 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1063 --with-ecj-jar=FILE use preinstalled ecj jar
1064 --with-java-home=DIRECTORY
1065 value of java.home system property
1066 --with-win32-nlsapi=ansi or unicows or unicode
1067 native MinGW libgcj Win32 OS API (default is ansi)
1068 --without-libffi don't use libffi
1069 --with-ecos enable runtime eCos target support
1070 --with-system-zlib use installed libz
1071 --with-x use the X Window System
1072 --with-gnu-ld assume the C compiler uses GNU ld default=no
1073 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1074 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1076 Some influential environment variables:
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CXX C++ compiler command
1084 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1094 if test "$ac_init_help" = "recursive"; then
1095 # If there are subdirs, report their specific --help.
1097 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1098 test -d $ac_dir || continue
1101 if test "$ac_dir" != .; then
1102 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1103 # A "../" for each directory in $ac_dir_suffix.
1104 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106 ac_dir_suffix= ac_top_builddir=
1110 .) # No --srcdir option. We are building in place.
1112 if test -z "$ac_top_builddir"; then
1115 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 [\\/]* | ?:[\\/]* ) # Absolute path.
1118 ac_srcdir=$srcdir$ac_dir_suffix;
1119 ac_top_srcdir=$srcdir ;;
1121 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1122 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1125 # Do not use `cd foo && pwd` to compute absolute paths, because
1126 # the directories may not exist.
1128 .) ac_abs_builddir="$ac_dir";;
1131 .) ac_abs_builddir=`pwd`;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1133 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1139 case ${ac_top_builddir}. in
1140 .) ac_abs_top_builddir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1142 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1145 case $ac_abs_builddir in
1146 .) ac_abs_srcdir=$ac_srcdir;;
1149 .) ac_abs_srcdir=$ac_abs_builddir;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1151 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1157 case $ac_top_srcdir in
1158 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1160 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1165 # Check for guested configure; otherwise get Cygnus style configure.
1166 if test -f $ac_srcdir/configure.gnu; then
1168 $SHELL $ac_srcdir/configure.gnu --help=recursive
1169 elif test -f $ac_srcdir/configure; then
1171 $SHELL $ac_srcdir/configure --help=recursive
1172 elif test -f $ac_srcdir/configure.ac ||
1173 test -f $ac_srcdir/configure.in; then
1175 $ac_configure --help
1177 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 test -n "$ac_init_help" && exit 0
1184 if $ac_init_version; then
1186 libjava configure version-unused
1187 generated by GNU Autoconf 2.59
1189 Copyright (C) 2003 Free Software Foundation, Inc.
1190 This configure script is free software; the Free Software Foundation
1191 gives unlimited permission to copy, distribute and modify it.
1197 This file contains any messages produced by compilers while
1198 running configure, to aid debugging if configure makes a mistake.
1200 It was created by libjava $as_me version-unused, which was
1201 generated by GNU Autoconf 2.59. Invocation command line was
1212 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1213 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1214 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1215 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1216 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1219 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1222 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1223 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1224 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1225 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1226 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1227 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235 test -z "$as_dir" && as_dir=.
1236 echo "PATH: $as_dir"
1251 # Keep a trace of the command line.
1252 # Strip out --no-create and --no-recursion so they do not pile up.
1253 # Strip out --silent because we don't want to record it for future runs.
1254 # Also quote any args containing shell meta-characters.
1255 # Make two passes to allow for proper duplicate-argument suppression.
1260 ac_must_keep_next=false
1266 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268 | -silent | --silent | --silen | --sile | --sil)
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1277 if test $ac_must_keep_next = true; then
1278 ac_must_keep_next=false # Got value, back to normal.
1281 *=* | --config-cache | -C | -disable-* | --disable-* \
1282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1284 | -with-* | --with-* | -without-* | --without-* | --x)
1285 case "$ac_configure_args0 " in
1286 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1289 -* ) ac_must_keep_next=true ;;
1292 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1293 # Get rid of the leading space.
1299 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1300 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302 # When interrupted or exit'd, cleanup temporary files, and complete
1303 # config.log. We remove comments because anyway the quotes in there
1304 # would cause problems or look ugly.
1305 # WARNING: Be sure not to use single quotes in there, as some shells,
1306 # such as our DU 5.0 friend, will then `close' the trap.
1307 trap 'exit_status=$?
1308 # Save into config.log some information that might help in debugging.
1313 ## ---------------- ##
1314 ## Cache variables. ##
1315 ## ---------------- ##
1318 # The following way of writing the cache mishandles newlines in values,
1321 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1324 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1329 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1336 ## ----------------- ##
1337 ## Output variables. ##
1338 ## ----------------- ##
1341 for ac_var in $ac_subst_vars
1343 eval ac_val=$`echo $ac_var`
1344 echo "$ac_var='"'"'$ac_val'"'"'"
1348 if test -n "$ac_subst_files"; then
1355 for ac_var in $ac_subst_files
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1363 if test -s confdefs.h; then
1370 sed "/^$/d" confdefs.h | sort
1373 test "$ac_signal" != 0 &&
1374 echo "$as_me: caught signal $ac_signal"
1375 echo "$as_me: exit $exit_status"
1377 rm -f core *.core &&
1378 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1381 for ac_signal in 1 2 13 15; do
1382 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1387 rm -rf conftest* confdefs.h
1388 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1391 # Predefined preprocessor variables.
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_NAME "$PACKAGE_NAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_STRING "$PACKAGE_STRING"
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418 # Let the site file select an alternate cache file if it wants to.
1419 # Prefer explicitly selected file to automatically selected ones.
1420 if test -z "$CONFIG_SITE"; then
1421 if test "x$prefix" != xNONE; then
1422 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1427 for ac_site_file in $CONFIG_SITE; do
1428 if test -r "$ac_site_file"; then
1429 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1430 echo "$as_me: loading site script $ac_site_file" >&6;}
1431 sed 's/^/| /' "$ac_site_file" >&5
1436 if test -r "$cache_file"; then
1437 # Some versions of bash will fail to source /dev/null (special
1438 # files actually), so we avoid doing that.
1439 if test -f "$cache_file"; then
1440 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1441 echo "$as_me: loading cache $cache_file" >&6;}
1443 [\\/]* | ?:[\\/]* ) . $cache_file;;
1444 *) . ./$cache_file;;
1448 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1449 echo "$as_me: creating cache $cache_file" >&6;}
1453 # Check that the precious variables saved in the cache have kept the same
1455 ac_cache_corrupted=false
1456 for ac_var in `(set) 2>&1 |
1457 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1459 eval ac_new_set=\$ac_env_${ac_var}_set
1460 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1461 eval ac_new_val="\$ac_env_${ac_var}_value"
1462 case $ac_old_set,$ac_new_set in
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1465 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1468 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1470 ac_cache_corrupted=: ;;
1473 if test "x$ac_old_val" != "x$ac_new_val"; then
1474 # differences in whitespace do not lead to failure.
1475 ac_old_val_w=`echo x $ac_old_val`
1476 ac_new_val_w=`echo x $ac_new_val`
1477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1478 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480 ac_cache_corrupted=:
1482 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1483 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1484 eval $ac_var=\$ac_old_val
1486 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1487 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1488 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1489 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1492 # Pass precious variables to config.status.
1493 if test "$ac_new_set" = set; then
1495 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1496 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1497 *) ac_arg=$ac_var=$ac_new_val ;;
1499 case " $ac_configure_args " in
1500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1501 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 if $ac_cache_corrupted; then
1506 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1507 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1508 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1509 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1510 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1511 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1512 { (exit 1); exit 1; }; }
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1554 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 elif test -f $ac_dir/install.sh; then
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 elif test -f $ac_dir/shtool; then
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1569 if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1574 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578 # Make sure we can run config.sub.
1579 $ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1584 echo "$as_me:$LINENO: checking build system type" >&5
1585 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586 if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 ac_cv_build_alias=$build_alias
1590 test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592 test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1602 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603 echo "${ECHO_T}$ac_cv_build" >&6
1605 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1610 case ${build_alias} in
1611 "") build_noncanonical=${build} ;;
1612 *) build_noncanonical=${build_alias} ;;
1615 case ${host_alias} in
1616 "") host_noncanonical=${build_noncanonical} ;;
1617 *) host_noncanonical=${host_alias} ;;
1620 case ${target_alias} in
1621 "") target_noncanonical=${host_noncanonical} ;;
1622 *) target_noncanonical=${target_alias} ;;
1626 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1627 # have matching libraries, they should use host libraries: Makefile.tpl
1628 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1629 # However, they still use the build modules, because the corresponding
1630 # host modules (e.g. bison) are only built for the host when bootstrap
1632 # - build_subdir is where we find build modules, and never changes.
1633 # - build_libsubdir is where we find build libraries, and can be overridden.
1635 # Prefix 'build-' so this never conflicts with target_subdir.
1636 build_subdir="build-${build_noncanonical}"
1638 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1639 if test "${with_build_libsubdir+set}" = set; then
1640 withval="$with_build_libsubdir"
1641 build_libsubdir="$withval"
1643 build_libsubdir="$build_subdir"
1645 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1646 if ( test $srcdir = . && test -d gcc ) \
1647 || test -d $srcdir/../host-${host_noncanonical}; then
1648 host_subdir="host-${host_noncanonical}"
1653 target_subdir=${target_noncanonical}
1656 # We use these options to decide which functions to include.
1658 # Check whether --with-target-subdir or --without-target-subdir was given.
1659 if test "${with_target_subdir+set}" = set; then
1660 withval="$with_target_subdir"
1664 # We may get other options which we don't document:
1665 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1667 # Find the rest of the source tree framework.
1668 # Default to --enable-multilib
1669 # Check whether --enable-multilib or --disable-multilib was given.
1670 if test "${enable_multilib+set}" = set; then
1671 enableval="$enable_multilib"
1672 case "$enableval" in
1673 yes) multilib=yes ;;
1675 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1676 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1677 { (exit 1); exit 1; }; } ;;
1683 # We may get other options which we leave undocumented:
1684 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1685 # See config-ml.in if you want the gory details.
1687 if test "$srcdir" = "."; then
1688 if test "$with_target_subdir" != "."; then
1689 multi_basedir="$srcdir/$with_multisrctop../.."
1691 multi_basedir="$srcdir/$with_multisrctop.."
1694 multi_basedir="$srcdir/.."
1698 # Even if the default multilib is not a cross compilation,
1699 # it may be that some of the other multilibs are.
1700 if test $cross_compiling = no && test $multilib = yes \
1701 && test "x${with_multisubdir}" != x ; then
1702 cross_compiling=maybe
1705 ac_config_commands="$ac_config_commands default-1"
1708 echo "$as_me:$LINENO: checking host system type" >&5
1709 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1710 if test "${ac_cv_host+set}" = set; then
1711 echo $ECHO_N "(cached) $ECHO_C" >&6
1713 ac_cv_host_alias=$host_alias
1714 test -z "$ac_cv_host_alias" &&
1715 ac_cv_host_alias=$ac_cv_build_alias
1716 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1717 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1718 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1719 { (exit 1); exit 1; }; }
1722 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1723 echo "${ECHO_T}$ac_cv_host" >&6
1725 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1726 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1727 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730 echo "$as_me:$LINENO: checking target system type" >&5
1731 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1732 if test "${ac_cv_target+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 ac_cv_target_alias=$target_alias
1736 test "x$ac_cv_target_alias" = "x" &&
1737 ac_cv_target_alias=$ac_cv_host_alias
1738 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1740 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1741 { (exit 1); exit 1; }; }
1744 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1745 echo "${ECHO_T}$ac_cv_target" >&6
1746 target=$ac_cv_target
1747 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752 # The aliases save the names the user supplied, while $host etc.
1753 # will get canonicalized.
1754 test -n "$target_alias" &&
1755 test "$program_prefix$program_suffix$program_transform_name" = \
1757 program_prefix=${target_alias}-
1758 case ${build_alias} in
1759 "") build_noncanonical=${build} ;;
1760 *) build_noncanonical=${build_alias} ;;
1763 case ${target_alias} in
1764 "") target_noncanonical=${host_noncanonical} ;;
1765 *) target_noncanonical=${target_alias} ;;
1771 # This works around the fact that libtool configuration may change LD
1772 # for this particular configuration, but some shells, instead of
1773 # keeping the changes in LD private, export them just because LD is
1775 ORIGINAL_LD_FOR_MULTILIBS=$LD
1777 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1778 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1780 if test "$LN_S" = "ln -s"; then
1781 echo "$as_me:$LINENO: result: yes" >&5
1782 echo "${ECHO_T}yes" >&6
1784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1785 echo "${ECHO_T}no, using $LN_S" >&6
1789 # This works around an automake problem.
1790 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1794 # Check whether --with-cross-host or --without-cross-host was given.
1795 if test "${with_cross_host+set}" = set; then
1796 withval="$with_cross_host"
1801 # Check whether --with-newlib or --without-newlib was given.
1802 if test "${with_newlib+set}" = set; then
1803 withval="$with_newlib"
1807 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1808 if test "${enable_version_specific_runtime_libs+set}" = set; then
1809 enableval="$enable_version_specific_runtime_libs"
1810 case "$enableval" in
1811 yes) version_specific_libs=yes ;;
1812 no) version_specific_libs=no ;;
1813 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1814 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1815 { (exit 1); exit 1; }; };;
1818 version_specific_libs=no
1822 # Check whether --enable-plugin or --disable-plugin was given.
1823 if test "${enable_plugin+set}" = set; then
1824 enableval="$enable_plugin"
1825 case "$enableval" in
1826 yes) plugin_enabled=yes ;;
1827 no) plugin_enabled=no ;;
1828 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1829 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1830 { (exit 1); exit 1; }; };;
1837 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1838 if test "${enable_gconf_peer+set}" = set; then
1839 enableval="$enable_gconf_peer"
1840 case "$enableval" in
1841 yes) gconf_enabled=yes ;;
1842 no) gconf_enabled=no ;;
1843 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1844 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1845 { (exit 1); exit 1; }; };;
1852 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1853 if test "${enable_java_maintainer_mode+set}" = set; then
1854 enableval="$enable_java_maintainer_mode"
1859 if test "$enable_java_maintainer_mode" = yes; then
1860 JAVA_MAINTAINER_MODE_TRUE=
1861 JAVA_MAINTAINER_MODE_FALSE='#'
1863 JAVA_MAINTAINER_MODE_TRUE='#'
1864 JAVA_MAINTAINER_MODE_FALSE=
1868 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1871 # (1) We use an abnormal CXX (without library references), so we
1872 # must cache it under a different name.
1873 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1874 # the non-multilib-adjusted value will be used in multilibs.
1875 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1876 # (4) As another side effect, automake doesn't automatically include them
1878 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1879 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1880 # used in later tests. This may not be necessary in libjava; I don't know.
1883 save_CXXFLAGS="$CXXFLAGS"
1884 CXXFLAGS="$CXXFLAGS -fno-builtin"
1886 ac_cpp='$CPP $CPPFLAGS'
1887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 if test -n "$ac_tool_prefix"; then
1891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1893 echo "$as_me:$LINENO: checking for $ac_word" >&5
1894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895 if test "${ac_cv_prog_CC+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 if test -n "$CC"; then
1899 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 if test -n "$CC"; then
1919 echo "$as_me:$LINENO: result: $CC" >&5
1920 echo "${ECHO_T}$CC" >&6
1922 echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6
1927 if test -z "$ac_cv_prog_CC"; then
1929 # Extract the first word of "gcc", so it can be a program name with args.
1930 set dummy gcc; ac_word=$2
1931 echo "$as_me:$LINENO: checking for $ac_word" >&5
1932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 if test -n "$ac_ct_CC"; then
1937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 ac_cv_prog_ac_ct_CC="gcc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1956 if test -n "$ac_ct_CC"; then
1957 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1958 echo "${ECHO_T}$ac_ct_CC" >&6
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1969 if test -z "$CC"; then
1970 if test -n "$ac_tool_prefix"; then
1971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}cc; ac_word=$2
1973 echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test -n "$CC"; then
1979 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988 ac_cv_prog_CC="${ac_tool_prefix}cc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$CC"; then
1999 echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2007 if test -z "$ac_cv_prog_CC"; then
2009 # Extract the first word of "cc", so it can be a program name with args.
2010 set dummy cc; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$ac_ct_CC"; then
2017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_ac_ct_CC="cc"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2036 if test -n "$ac_ct_CC"; then
2037 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2038 echo "${ECHO_T}$ac_ct_CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2050 if test -z "$CC"; then
2051 # Extract the first word of "cc", so it can be a program name with args.
2052 set dummy cc; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$CC"; then
2059 ac_cv_prog_CC="$CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070 ac_prog_rejected=yes
2074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test $ac_prog_rejected = yes; then
2081 # We found a bogon in the path, so make sure we never use it.
2082 set dummy $ac_cv_prog_CC
2084 if test $# != 0; then
2085 # We chose a different compiler from the bogus one.
2086 # However, it has the same basename, so the bogon will be chosen
2087 # first if we set CC to just the basename; use the full file name.
2089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2095 if test -n "$CC"; then
2096 echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2099 echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2104 if test -z "$CC"; then
2105 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$CC"; then
2116 ac_cv_prog_CC="$CC" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 if test -n "$CC"; then
2136 echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2139 echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2143 test -n "$CC" && break
2146 if test -z "$CC"; then
2150 # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 if test -n "$ac_ct_CC"; then
2158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2167 ac_cv_prog_ac_ct_CC="$ac_prog"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2177 if test -n "$ac_ct_CC"; then
2178 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2179 echo "${ECHO_T}$ac_ct_CC" >&6
2181 echo "$as_me:$LINENO: result: no" >&5
2182 echo "${ECHO_T}no" >&6
2185 test -n "$ac_ct_CC" && break
2194 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2195 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2196 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: no acceptable C compiler found in \$PATH
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }; }
2202 # Provide some information about the compiler.
2203 echo "$as_me:$LINENO:" \
2204 "checking for C compiler version" >&5
2205 ac_compiler=`set X $ac_compile; echo $2`
2206 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207 (eval $ac_compiler --version </dev/null >&5) 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }
2211 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212 (eval $ac_compiler -v </dev/null >&5) 2>&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217 (eval $ac_compiler -V </dev/null >&5) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }
2222 cat >conftest.$ac_ext <<_ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h. */
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2248 if test x$gcc_no_link = xyes; then
2249 # Setting cross_compile will disable run tests; it will
2250 # also disable AC_CHECK_FILE but that's generally
2251 # correct if we can't link.
2255 cat >conftest.$ac_ext <<_ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2270 ac_clean_files_save=$ac_clean_files
2271 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2272 # Try to create an executable without -o first, disregard a.out.
2273 # It will help us diagnose broken compilers, and finding out an intuition
2275 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2276 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2277 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2278 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2279 (eval $ac_link_default) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 # Find the output, starting from the most likely. This scheme is
2284 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2287 # Be careful to initialize this variable, since it used to be cached.
2288 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2290 # b.out is created by i960 compilers.
2291 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2293 test -f "$ac_file" || continue
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2298 # This is the source file.
2301 # We found the default executable, but exeext='' is most
2305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306 # FIXME: I believe we export ac_cv_exeext for Libtool,
2307 # but it would be cool to find out if it's true. Does anybody
2308 # maintain Libtool? --akim.
2316 echo "$as_me: failed program was:" >&5
2317 sed 's/^/| /' conftest.$ac_ext >&5
2319 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2320 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&2;}
2325 { (exit 77); exit 77; }; }; }
2328 ac_exeext=$ac_cv_exeext
2329 echo "$as_me:$LINENO: result: $ac_file" >&5
2330 echo "${ECHO_T}$ac_file" >&6
2332 # Check the compiler produces executables we can run. If not, either
2333 # the compiler is broken, or we cross compile.
2334 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2335 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2337 # If not cross compiling, check that we can run a simple program.
2338 if test "$cross_compiling" != yes; then
2339 if { ac_try='./$ac_file'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 if test "$cross_compiling" = maybe; then
2350 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2351 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2352 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2353 If you meant to cross compile, use \`--host'.
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }; }
2362 echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6
2365 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2366 ac_clean_files=$ac_clean_files_save
2367 # Check the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2371 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2372 echo "${ECHO_T}$cross_compiling" >&6
2374 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2375 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2377 (eval $ac_link) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; then
2381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2383 # work properly (i.e., refer to `conftest.exe'), while it won't with
2385 for ac_file in conftest.exe conftest conftest.*; do
2386 test -f "$ac_file" || continue
2388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2396 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2397 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2401 See \`config.log' for more details." >&2;}
2402 { (exit 1); exit 1; }; }; }
2405 rm -f conftest$ac_cv_exeext
2406 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2407 echo "${ECHO_T}$ac_cv_exeext" >&6
2409 rm -f conftest.$ac_ext
2410 EXEEXT=$ac_cv_exeext
2413 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2414 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2415 if test "${ac_cv_objext+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 cat >conftest.$ac_ext <<_ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2433 rm -f conftest.o conftest.obj
2434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2435 (eval $ac_compile) 2>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; then
2439 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2442 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2450 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2451 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2453 See \`config.log' for more details." >&5
2454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2455 See \`config.log' for more details." >&2;}
2456 { (exit 1); exit 1; }; }; }
2459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2462 echo "${ECHO_T}$ac_cv_objext" >&6
2463 OBJEXT=$ac_cv_objext
2465 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490 (eval $ac_compile) 2>conftest.er1
2492 grep -v '^ *+' conftest.er1 >conftest.err
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } &&
2497 { ac_try='test -z "$ac_c_werror_flag"
2498 || test ! -s conftest.err'
2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; } &&
2504 { ac_try='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2521 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2522 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2523 GCC=`test $ac_compiler_gnu = yes && echo yes`
2524 ac_test_CFLAGS=${CFLAGS+set}
2525 ac_save_CFLAGS=$CFLAGS
2527 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2529 if test "${ac_cv_prog_cc_g+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 cat >conftest.$ac_ext <<_ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1 >conftest.err
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -z "$ac_c_werror_flag"
2557 || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2579 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2580 if test "$ac_test_CFLAGS" = set; then
2581 CFLAGS=$ac_save_CFLAGS
2582 elif test $ac_cv_prog_cc_g = yes; then
2583 if test "$GCC" = yes; then
2589 if test "$GCC" = yes; then
2595 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2596 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2597 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 ac_cv_prog_cc_stdc=no
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2610 #include <sys/types.h>
2611 #include <sys/stat.h>
2612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2613 struct buf { int x; };
2614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2615 static char *e (p, i)
2621 static char *f (char * (*g) (char **, int), char **p, ...)
2626 s = g (p, va_arg (v,int));
2631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2632 function prototypes and stuff, but not '\xHH' hex character constants.
2633 These don't provoke an error unfortunately, instead are silently treated
2634 as 'x'. The following induces an error, until -std1 is added to get
2635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2636 array size at least. It's necessary to write '\x00'==0 to get something
2637 that's true only with -std1. */
2638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2640 int test (int i, double x);
2641 struct s1 {int (*f) (int a);};
2642 struct s2 {int (*f) (double a);};
2643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2654 # Don't try gcc -ansi; that turns off useful extensions and
2655 # breaks some systems' header files.
2656 # AIX -qlanglvl=ansi
2657 # Ultrix and OSF/1 -std1
2658 # HP-UX 10.20 and later -Ae
2659 # HP-UX older versions -Aa -D_HPUX_SOURCE
2660 # SVR4 -Xc -D__EXTENSIONS__
2661 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2663 CC="$ac_save_CC $ac_arg"
2664 rm -f conftest.$ac_objext
2665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2666 (eval $ac_compile) 2>conftest.er1
2668 grep -v '^ *+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -z "$ac_c_werror_flag"
2674 || test ! -s conftest.err'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2686 ac_cv_prog_cc_stdc=$ac_arg
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2693 rm -f conftest.err conftest.$ac_objext
2695 rm -f conftest.$ac_ext conftest.$ac_objext
2700 case "x$ac_cv_prog_cc_stdc" in
2702 echo "$as_me:$LINENO: result: none needed" >&5
2703 echo "${ECHO_T}none needed" >&6 ;;
2705 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2706 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2707 CC="$CC $ac_cv_prog_cc_stdc" ;;
2710 # Some people use a C++ compiler to compile C. Since we use `exit',
2711 # in C++ we need to declare it. In case someone uses the same compiler
2712 # for both compiling C and C++ we need to have the C++ compiler decide
2713 # the declaration of exit, since it's the most demanding environment.
2714 cat >conftest.$ac_ext <<_ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2723 grep -v '^ *+' conftest.er1 >conftest.err
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 for ac_declaration in \
2743 'extern "C" void std::exit (int) throw (); using std::exit;' \
2744 'extern "C" void std::exit (int); using std::exit;' \
2745 'extern "C" void exit (int) throw ();' \
2746 'extern "C" void exit (int);' \
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 cat >conftest.$ac_ext <<_ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2814 grep -v '^ *+' conftest.er1 >conftest.err
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 if test -n "$ac_declaration"; then
2842 echo '#ifdef __cplusplus' >>confdefs.h
2843 echo $ac_declaration >>confdefs.h
2844 echo '#endif' >>confdefs.h
2848 echo "$as_me: failed program was:" >&5
2849 sed 's/^/| /' conftest.$ac_ext >&5
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2854 ac_cpp='$CPP $CPPFLAGS'
2855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 ac_cpp='$CXXCPP $CPPFLAGS'
2861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_CXX+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 if test -n "$CXX"; then
2875 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$CXX"; then
2895 echo "$as_me:$LINENO: result: $CXX" >&5
2896 echo "${ECHO_T}$CXX" >&6
2898 echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2902 test -n "$CXX" && break
2905 if test -z "$CXX"; then
2907 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy $ac_prog; ac_word=$2
2911 echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$ac_ct_CXX"; then
2917 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2936 if test -n "$ac_ct_CXX"; then
2937 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2938 echo "${ECHO_T}$ac_ct_CXX" >&6
2940 echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2944 test -n "$ac_ct_CXX" && break
2946 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2952 # Provide some information about the compiler.
2953 echo "$as_me:$LINENO:" \
2954 "checking for C++ compiler version" >&5
2955 ac_compiler=`set X $ac_compile; echo $2`
2956 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2957 (eval $ac_compiler --version </dev/null >&5) 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2961 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2962 (eval $ac_compiler -v </dev/null >&5) 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }
2966 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2967 (eval $ac_compiler -V </dev/null >&5) 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }
2972 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2974 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997 (eval $ac_compile) 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -z "$ac_cxx_werror_flag"
3005 || test ! -s conftest.err'
3006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; } &&
3011 { ac_try='test -s conftest.$ac_objext'
3012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; }; then
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3028 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3030 GXX=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CXXFLAGS=${CXXFLAGS+set}
3032 ac_save_CXXFLAGS=$CXXFLAGS
3034 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3035 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3036 if test "${ac_cv_prog_cxx_g+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056 (eval $ac_compile) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1 >conftest.err
3060 cat conftest.err >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } &&
3063 { ac_try='test -z "$ac_cxx_werror_flag"
3064 || test ! -s conftest.err'
3065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cxx_g=yes
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3087 if test "$ac_test_CXXFLAGS" = set; then
3088 CXXFLAGS=$ac_save_CXXFLAGS
3089 elif test $ac_cv_prog_cxx_g = yes; then
3090 if test "$GXX" = yes; then
3096 if test "$GXX" = yes; then
3102 for ac_declaration in \
3104 'extern "C" void std::exit (int) throw (); using std::exit;' \
3105 'extern "C" void std::exit (int); using std::exit;' \
3106 'extern "C" void exit (int) throw ();' \
3107 'extern "C" void exit (int);' \
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_cxx_werror_flag"
3181 || test ! -s conftest.err'
3182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; } &&
3187 { ac_try='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3202 if test -n "$ac_declaration"; then
3203 echo '#ifdef __cplusplus' >>confdefs.h
3204 echo $ac_declaration >>confdefs.h
3205 echo '#endif' >>confdefs.h
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 CXXFLAGS="$save_CXXFLAGS"
3220 am__api_version="1.9"
3221 # Find a good install program. We prefer a C program (faster),
3222 # so one script is as good as another. But avoid the broken or
3223 # incompatible versions:
3224 # SysV /etc/install, /usr/sbin/install
3225 # SunOS /usr/etc/install
3226 # IRIX /sbin/install
3228 # AmigaOS /C/install, which installs bootblocks on floppy discs
3229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3232 # OS/2's system install, which has a completely different semantic
3233 # ./install, which can be erroneously created by make from ./install.sh.
3234 # Reject install programs that cannot install multiple files.
3235 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3237 if test -z "$INSTALL"; then
3238 if test "${ac_cv_path_install+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 # Account for people who put trailing slashes in PATH elements.
3248 ./ | .// | /cC/* | \
3249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3253 # OSF1 and SCO ODT 3.0 have their own names for install.
3254 # Don't use installbsd from OSF since it installs stuff as root
3256 for ac_prog in ginstall scoinst install; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3259 if test $ac_prog = install &&
3260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3261 # AIX install. It has an incompatible calling convention.
3263 elif test $ac_prog = install &&
3264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265 # program-specific install script used by HP pwplus--don't use.
3268 rm -rf conftest.one conftest.two conftest.dir
3269 echo one > conftest.one
3270 echo two > conftest.two
3272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3273 test -s conftest.one && test -s conftest.two &&
3274 test -s conftest.dir/conftest.one &&
3275 test -s conftest.dir/conftest.two
3277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3288 rm -rf conftest.one conftest.two conftest.dir
3291 if test "${ac_cv_path_install+set}" = set; then
3292 INSTALL=$ac_cv_path_install
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for INSTALL within a source directory, because that will
3296 # break other packages using the cache if that directory is
3297 # removed, or if the value is a relative name.
3298 INSTALL=$ac_install_sh
3301 echo "$as_me:$LINENO: result: $INSTALL" >&5
3302 echo "${ECHO_T}$INSTALL" >&6
3304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305 # It thinks the first close brace ends the variable substitution.
3306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3312 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3313 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3316 echo timestamp > conftest.file
3317 # Do `set' in a subshell so we don't clobber the current shell's
3318 # arguments. Must try -L first in case configure is actually a
3319 # symlink; some systems play weird games with the mod time of symlinks
3320 # (eg FreeBSD returns the mod time of the symlink's containing
3323 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3324 if test "$*" = "X"; then
3326 set X `ls -t $srcdir/configure conftest.file`
3329 if test "$*" != "X $srcdir/configure conftest.file" \
3330 && test "$*" != "X conftest.file $srcdir/configure"; then
3332 # If neither matched, then we have a broken ls. This can happen
3333 # if, for instance, CONFIG_SHELL is bash and it inherits a
3334 # broken ls alias from the environment. This has actually
3335 # happened. Such a system could not be considered "sane".
3336 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3337 alias in your environment" >&5
3338 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3339 alias in your environment" >&2;}
3340 { (exit 1); exit 1; }; }
3343 test "$2" = conftest.file
3349 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3350 Check your system clock" >&5
3351 echo "$as_me: error: newly created file is older than distributed files!
3352 Check your system clock" >&2;}
3353 { (exit 1); exit 1; }; }
3355 echo "$as_me:$LINENO: result: yes" >&5
3356 echo "${ECHO_T}yes" >&6
3357 test "$program_prefix" != NONE &&
3358 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3359 # Use a double $ so make ignores it.
3360 test "$program_suffix" != NONE &&
3361 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3362 # Double any \ or $. echo might interpret backslashes.
3363 # By default was `s,x,x', remove it if useless.
3364 cat <<\_ACEOF >conftest.sed
3365 s/[\\$]/&&/g;s/;s,x,x,$//
3367 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3370 # expand $ac_aux_dir to an absolute path
3371 am_aux_dir=`cd $ac_aux_dir && pwd`
3373 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3374 # Use eval to expand $SHELL
3375 if eval "$MISSING --run true"; then
3376 am_missing_run="$MISSING --run "
3379 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3380 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3383 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3384 # We used to keeping the `.' as first argument, in order to
3385 # allow $(mkdir_p) to be used without argument. As in
3386 # $(mkdir_p) $(somedir)
3387 # where $(somedir) is conditionally defined. However this is wrong
3389 # 1. if the package is installed by a user who cannot write `.'
3390 # make install will fail,
3391 # 2. the above comment should most certainly read
3392 # $(mkdir_p) $(DESTDIR)$(somedir)
3393 # so it does not work when $(somedir) is undefined and
3394 # $(DESTDIR) is not.
3395 # To support the latter case, we have to write
3396 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3397 # so the `.' trick is pointless.
3398 mkdir_p='mkdir -p --'
3400 # On NextStep and OpenStep, the `mkdir' command does not
3401 # recognize any option. It will interpret all options as
3402 # directories to create, and then abort because `.' already
3404 for d in ./-p ./--version;
3406 test -d $d && rmdir $d
3408 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3409 if test -f "$ac_aux_dir/mkinstalldirs"; then
3410 mkdir_p='$(mkinstalldirs)'
3412 mkdir_p='$(install_sh) -d'
3416 for ac_prog in gawk mawk nawk awk
3418 # Extract the first word of "$ac_prog", so it can be a program name with args.
3419 set dummy $ac_prog; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_prog_AWK+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 if test -n "$AWK"; then
3426 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_AWK="$ac_prog"
3436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 if test -n "$AWK"; then
3446 echo "$as_me:$LINENO: result: $AWK" >&5
3447 echo "${ECHO_T}$AWK" >&6
3449 echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6
3453 test -n "$AWK" && break
3456 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3457 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3458 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3459 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 cat >conftest.make <<\_ACEOF
3464 @echo 'ac_maketemp="$(MAKE)"'
3466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3467 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3468 if test -n "$ac_maketemp"; then
3469 eval ac_cv_prog_make_${ac_make}_set=yes
3471 eval ac_cv_prog_make_${ac_make}_set=no
3475 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3476 echo "$as_me:$LINENO: result: yes" >&5
3477 echo "${ECHO_T}yes" >&6
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 SET_MAKE="MAKE=${MAKE-make}"
3485 rm -rf .tst 2>/dev/null
3486 mkdir .tst 2>/dev/null
3487 if test -d .tst; then
3492 rmdir .tst 2>/dev/null
3494 DEPDIR="${am__leading_dot}deps"
3496 ac_config_commands="$ac_config_commands depfiles"
3499 am_make=${MAKE-make}
3500 cat > confinc << 'END'
3505 # If we don't find an include directive, just comment out the code.
3506 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3507 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3511 # First try GNU make style include.
3512 echo "include confinc" > confmf
3513 # We grep out `Entering directory' and `Leaving directory'
3514 # messages which can occur if `w' ends up in MAKEFLAGS.
3515 # In particular we don't look at `^make:' because GNU make might
3516 # be invoked under some other name (usually "gmake"), in which
3517 # case it prints its new name instead of `make'.
3518 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3523 # Now try BSD make style include.
3524 if test "$am__include" = "#"; then
3525 echo '.include "confinc"' > confmf
3526 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3527 am__include=.include
3534 echo "$as_me:$LINENO: result: $_am_result" >&5
3535 echo "${ECHO_T}$_am_result" >&6
3536 rm -f confinc confmf
3538 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3539 if test "${enable_dependency_tracking+set}" = set; then
3540 enableval="$enable_dependency_tracking"
3543 if test "x$enable_dependency_tracking" != xno; then
3544 am_depcomp="$ac_aux_dir/depcomp"
3549 if test "x$enable_dependency_tracking" != xno; then
3559 # test to see if srcdir already configured
3560 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3561 test -f $srcdir/config.status; then
3562 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3563 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3564 { (exit 1); exit 1; }; }
3567 # test whether we have cygpath
3568 if test -z "$CYGPATH_W"; then
3569 if (cygpath --version) >/dev/null 2>/dev/null; then
3570 CYGPATH_W='cygpath -w'
3577 # Define the identity of the package.
3579 VERSION='version-unused'
3582 cat >>confdefs.h <<_ACEOF
3583 #define PACKAGE "$PACKAGE"
3587 cat >>confdefs.h <<_ACEOF
3588 #define VERSION "$VERSION"
3591 # Some tools Automake needs.
3593 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3596 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3599 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3602 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3605 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3607 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3609 # Installed binaries are usually stripped using `strip' when the user
3610 # run `make install-strip'. However `strip' might not be the right
3611 # tool to use in cross-compilation environments, therefore Automake
3612 # will honor the `STRIP' environment variable to overrule this program.
3613 if test "$cross_compiling" != no; then
3614 if test -n "$ac_tool_prefix"; then
3615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3616 set dummy ${ac_tool_prefix}strip; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_prog_STRIP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 if test -n "$STRIP"; then
3623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 STRIP=$ac_cv_prog_STRIP
3642 if test -n "$STRIP"; then
3643 echo "$as_me:$LINENO: result: $STRIP" >&5
3644 echo "${ECHO_T}$STRIP" >&6
3646 echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3651 if test -z "$ac_cv_prog_STRIP"; then
3653 # Extract the first word of "strip", so it can be a program name with args.
3654 set dummy strip; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 if test -n "$ac_ct_STRIP"; then
3661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_ac_ct_STRIP="strip"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3681 if test -n "$ac_ct_STRIP"; then
3682 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3683 echo "${ECHO_T}$ac_ct_STRIP" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3691 STRIP="$ac_cv_prog_STRIP"
3695 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3697 # We need awk for the "check" target. The system "awk" is bad on
3699 # Always define AMTAR for backward compatibility.
3701 AMTAR=${AMTAR-"${am_missing_run}tar"}
3703 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3708 depcc="$CC" am_compiler_list=
3710 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3711 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3712 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3716 # We make a subdir and do the tests there. Otherwise we can end up
3717 # making bogus files that we don't know about and never remove. For
3718 # instance it was reported that on HP-UX the gcc test will end up
3719 # making a dummy file named `D' -- because `-MD' means `put the output
3722 # Copy depcomp to subdir because otherwise we won't find it if we're
3723 # using a relative directory.
3724 cp "$am_depcomp" conftest.dir
3726 # We will build objects and dependencies in a subdirectory because
3727 # it helps to detect inapplicable dependency modes. For instance
3728 # both Tru64's cc and ICC support -MD to output dependencies as a
3729 # side effect of compilation, but ICC will put the dependencies in
3730 # the current directory while Tru64 will put them in the object
3734 am_cv_CC_dependencies_compiler_type=none
3735 if test "$am_compiler_list" = ""; then
3736 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3738 for depmode in $am_compiler_list; do
3739 # Setup a source with many dependencies, because some compilers
3740 # like to wrap large dependency lists on column 80 (with \), and
3741 # we should not choose a depcomp mode which is confused by this.
3743 # We need to recreate these files for each test, as the compiler may
3744 # overwrite some of them when testing with obscure command lines.
3745 # This happens at least with the AIX C compiler.
3747 for i in 1 2 3 4 5 6; do
3748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750 # Solaris 8's {/usr,}/bin/sh.
3751 touch sub/conftst$i.h
3753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3757 # after this tag, mechanisms are not by side-effect, so they'll
3758 # only be used when explicitly requested
3759 if test "x$enable_dependency_tracking" = xyes; then
3767 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3768 # mode. It turns out that the SunPro C++ compiler does not properly
3769 # handle `-M -o', and we need to detect this.
3770 if depmode=$depmode \
3771 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3773 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3774 >/dev/null 2>conftest.err &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3796 am_cv_CC_dependencies_compiler_type=none
3800 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_FALSE='#'
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3817 depcc="$CXX" am_compiler_list=
3819 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3820 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3821 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825 # We make a subdir and do the tests there. Otherwise we can end up
3826 # making bogus files that we don't know about and never remove. For
3827 # instance it was reported that on HP-UX the gcc test will end up
3828 # making a dummy file named `D' -- because `-MD' means `put the output
3831 # Copy depcomp to subdir because otherwise we won't find it if we're
3832 # using a relative directory.
3833 cp "$am_depcomp" conftest.dir
3835 # We will build objects and dependencies in a subdirectory because
3836 # it helps to detect inapplicable dependency modes. For instance
3837 # both Tru64's cc and ICC support -MD to output dependencies as a
3838 # side effect of compilation, but ICC will put the dependencies in
3839 # the current directory while Tru64 will put them in the object
3843 am_cv_CXX_dependencies_compiler_type=none
3844 if test "$am_compiler_list" = ""; then
3845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847 for depmode in $am_compiler_list; do
3848 # Setup a source with many dependencies, because some compilers
3849 # like to wrap large dependency lists on column 80 (with \), and
3850 # we should not choose a depcomp mode which is confused by this.
3852 # We need to recreate these files for each test, as the compiler may
3853 # overwrite some of them when testing with obscure command lines.
3854 # This happens at least with the AIX C compiler.
3856 for i in 1 2 3 4 5 6; do
3857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3859 # Solaris 8's {/usr,}/bin/sh.
3860 touch sub/conftst$i.h
3862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866 # after this tag, mechanisms are not by side-effect, so they'll
3867 # only be used when explicitly requested
3868 if test "x$enable_dependency_tracking" = xyes; then
3876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3877 # mode. It turns out that the SunPro C++ compiler does not properly
3878 # handle `-M -o', and we need to detect this.
3879 if depmode=$depmode \
3880 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3883 >/dev/null 2>conftest.err &&
3884 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3885 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3886 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3887 # icc doesn't choke on unknown options, it will just issue warnings
3888 # or remarks (even with -Werror). So we grep stderr for any message
3889 # that says an option was ignored or not supported.
3890 # When given -MP, icc 7.0 and 7.1 complain thusly:
3891 # icc: Command line warning: ignoring option '-M'; no argument required
3892 # The diagnosis changed in icc 8.0:
3893 # icc: Command line remark: option '-MP' not supported
3894 if (grep 'ignoring option' conftest.err ||
3895 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3896 am_cv_CXX_dependencies_compiler_type=$depmode
3905 am_cv_CXX_dependencies_compiler_type=none
3909 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3910 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3911 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3916 test "x$enable_dependency_tracking" != xno \
3917 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3918 am__fastdepCXX_TRUE=
3919 am__fastdepCXX_FALSE='#'
3921 am__fastdepCXX_TRUE='#'
3922 am__fastdepCXX_FALSE=
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}as; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_AS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$AS"; then
3937 ac_cv_prog_AS="$AS" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_AS="${ac_tool_prefix}as"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 if test -n "$AS"; then
3957 echo "$as_me:$LINENO: result: $AS" >&5
3958 echo "${ECHO_T}$AS" >&6
3960 echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3965 if test -z "$ac_cv_prog_AS"; then
3967 # Extract the first word of "as", so it can be a program name with args.
3968 set dummy as; ac_word=$2
3969 echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$ac_ct_AS"; then
3975 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_AS="as"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3994 if test -n "$ac_ct_AS"; then
3995 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3996 echo "${ECHO_T}$ac_ct_AS" >&6
3998 echo "$as_me:$LINENO: result: no" >&5
3999 echo "${ECHO_T}no" >&6
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}ld; ac_word=$2
4010 echo "$as_me:$LINENO: checking for $ac_word" >&5
4011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4012 if test "${ac_cv_prog_LD+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 if test -n "$LD"; then
4016 ac_cv_prog_LD="$LD" # Let the user override the test.
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_LD="${ac_tool_prefix}ld"
4026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$LD"; then
4036 echo "$as_me:$LINENO: result: $LD" >&5
4037 echo "${ECHO_T}$LD" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4044 if test -z "$ac_cv_prog_LD"; then
4046 # Extract the first word of "ld", so it can be a program name with args.
4047 set dummy ld; ac_word=$2
4048 echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4050 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$ac_ct_LD"; then
4054 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_LD="ld"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4073 if test -n "$ac_ct_LD"; then
4074 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4075 echo "${ECHO_T}$ac_ct_LD" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4086 if test -n "$ac_tool_prefix"; then
4087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4088 set dummy ${ac_tool_prefix}ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_AR+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -n "$AR"; then
4095 ac_cv_prog_AR="$AR" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_AR="${ac_tool_prefix}ar"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 if test -n "$AR"; then
4115 echo "$as_me:$LINENO: result: $AR" >&5
4116 echo "${ECHO_T}$AR" >&6
4118 echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4123 if test -z "$ac_cv_prog_AR"; then
4125 # Extract the first word of "ar", so it can be a program name with args.
4126 set dummy ar; ac_word=$2
4127 echo "$as_me:$LINENO: checking for $ac_word" >&5
4128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 if test -n "$ac_ct_AR"; then
4133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_ac_ct_AR="ar"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4152 if test -n "$ac_ct_AR"; then
4153 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4154 echo "${ECHO_T}$ac_ct_AR" >&6
4156 echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4168 echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170 if test "${ac_cv_prog_RANLIB+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$RANLIB"; then
4174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 RANLIB=$ac_cv_prog_RANLIB
4193 if test -n "$RANLIB"; then
4194 echo "$as_me:$LINENO: result: $RANLIB" >&5
4195 echo "${ECHO_T}$RANLIB" >&6
4197 echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4202 if test -z "$ac_cv_prog_RANLIB"; then
4203 ac_ct_RANLIB=$RANLIB
4204 # Extract the first word of "ranlib", so it can be a program name with args.
4205 set dummy ranlib; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$ac_ct_RANLIB"; then
4212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221 ac_cv_prog_ac_ct_RANLIB="ranlib"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4231 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4232 if test -n "$ac_ct_RANLIB"; then
4233 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4234 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4236 echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6
4240 RANLIB=$ac_ct_RANLIB
4242 RANLIB="$ac_cv_prog_RANLIB"
4245 for ac_prog in gawk mawk nawk awk
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4251 if test "${ac_cv_prog_AWK+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 if test -n "$AWK"; then
4255 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_AWK="$ac_prog"
4265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 if test -n "$AWK"; then
4275 echo "$as_me:$LINENO: result: $AWK" >&5
4276 echo "${ECHO_T}$AWK" >&6
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4282 test -n "$AWK" && break
4285 for ac_prog in jar fastjar gjar
4287 # Extract the first word of "$ac_prog", so it can be a program name with args.
4288 set dummy $ac_prog; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_prog_JAR+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 if test -n "$JAR"; then
4295 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304 ac_cv_prog_JAR="$ac_prog"
4305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$JAR"; then
4315 echo "$as_me:$LINENO: result: $JAR" >&5
4316 echo "${ECHO_T}$JAR" >&6
4318 echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4322 test -n "$JAR" && break
4324 test -n "$JAR" || JAR="no"
4326 # Extract the first word of "zip", so it can be a program name with args.
4327 set dummy zip; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_ZIP+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4358 if test -n "$ZIP"; then
4359 echo "$as_me:$LINENO: result: $ZIP" >&5
4360 echo "${ECHO_T}$ZIP" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4366 # Extract the first word of "unzip", so it can be a program name with args.
4367 set dummy unzip; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_UNZIP+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4396 UNZIP=$ac_cv_path_UNZIP
4398 if test -n "$UNZIP"; then
4399 echo "$as_me:$LINENO: result: $UNZIP" >&5
4400 echo "${ECHO_T}$UNZIP" >&6
4402 echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4407 # We need a jar that supports -@. This is a GNU extension.
4408 if test "$JAR" != no; then
4409 rm -f config-test.jar
4410 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4411 if test -f config-test.jar; then
4412 rm -f config-test.jar
4418 # Prefer the jar we found, but fall back to our jar script.
4419 if test "$JAR" = no; then
4420 if test "$ZIP" = no; then
4421 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4422 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4423 { (exit 1); exit 1; }; }
4425 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4426 JAR=`pwd`/scripts/jar
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 # Reject install programs that cannot install multiple files.
4444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4446 if test -z "$INSTALL"; then
4447 if test "${ac_cv_path_install+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 # Account for people who put trailing slashes in PATH elements.
4457 ./ | .// | /cC/* | \
4458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4462 # OSF1 and SCO ODT 3.0 have their own names for install.
4463 # Don't use installbsd from OSF since it installs stuff as root
4465 for ac_prog in ginstall scoinst install; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4468 if test $ac_prog = install &&
4469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4470 # AIX install. It has an incompatible calling convention.
4472 elif test $ac_prog = install &&
4473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4474 # program-specific install script used by HP pwplus--don't use.
4477 rm -rf conftest.one conftest.two conftest.dir
4478 echo one > conftest.one
4479 echo two > conftest.two
4481 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4482 test -s conftest.one && test -s conftest.two &&
4483 test -s conftest.dir/conftest.one &&
4484 test -s conftest.dir/conftest.two
4486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4497 rm -rf conftest.one conftest.two conftest.dir
4500 if test "${ac_cv_path_install+set}" = set; then
4501 INSTALL=$ac_cv_path_install
4503 # As a last resort, use the slow shell script. Don't cache a
4504 # value for INSTALL within a source directory, because that will
4505 # break other packages using the cache if that directory is
4506 # removed, or if the value is a relative name.
4507 INSTALL=$ac_install_sh
4510 echo "$as_me:$LINENO: result: $INSTALL" >&5
4511 echo "${ECHO_T}$INSTALL" >&6
4513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4514 # It thinks the first close brace ends the variable substitution.
4515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4517 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4522 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4523 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4524 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4525 if test "${enable_maintainer_mode+set}" = set; then
4526 enableval="$enable_maintainer_mode"
4527 USE_MAINTAINER_MODE=$enableval
4529 USE_MAINTAINER_MODE=no
4531 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4532 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4535 if test $USE_MAINTAINER_MODE = yes; then
4536 MAINTAINER_MODE_TRUE=
4537 MAINTAINER_MODE_FALSE='#'
4539 MAINTAINER_MODE_TRUE='#'
4540 MAINTAINER_MODE_FALSE=
4543 MAINT=$MAINTAINER_MODE_TRUE
4549 # configure.host sets the following important variables
4550 # libgcj_cflags - host specific C compiler flags
4551 # libgcj_cxxflags - host specific C++ compiler flags
4552 # libgcj_javaflags - host specific Java compiler flags
4558 . ${srcdir}/configure.host
4560 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4561 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4562 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4566 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4567 acl_cv_prog_gnu_ld=yes
4569 acl_cv_prog_gnu_ld=no
4572 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4573 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4574 with_gnu_ld=$acl_cv_prog_gnu_ld
4576 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4577 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4578 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4582 acl_cv_prog_gnu_ld_symbolic=no
4584 if test x"$with_gnu_ld" = x"yes"; then
4585 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4586 acl_cv_prog_gnu_ld_symbolic=yes
4590 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4591 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4592 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4593 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4598 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4599 if test -z "$libgcj_ld_symbolic"; then
4600 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4603 LIBGCJ_CFLAGS="${libgcj_cflags}"
4604 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4605 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4606 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4607 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4614 # Only use libltdl for non-newlib builds.
4615 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4616 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4617 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4619 libname_spec='lib$name'
4627 shlibpath_overrides_runpath=unknown
4629 dynamic_linker="$host_os ld.so"
4630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4631 if test "$GCC" = yes; then
4632 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4633 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4634 # if the path contains ";" then we assume it to be the separator
4635 # otherwise default to the standard path separator (i.e. ":") - it is
4636 # assumed that no part of a normal pathname contains ";" but that should
4637 # okay in the real world where ";" in dirpaths is itself problematic.
4638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4645 need_lib_prefix=unknown
4646 hardcode_into_libs=no
4648 # when you set need_version to no, make sure it does not cause -set_version
4649 # flags to be left without arguments
4650 need_version=unknown
4655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4656 shlibpath_var=LIBPATH
4658 # AIX 3 has no versioning support, so we append a major version to the name.
4659 soname_spec='${libname}${release}${shared_ext}$major'
4666 hardcode_into_libs=yes
4667 if test "$host_cpu" = ia64; then
4668 # AIX 5 supports IA64
4669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4670 shlibpath_var=LD_LIBRARY_PATH
4672 # With GCC up to 2.95.x, collect2 would create an import file
4673 # for dependence libraries. The import file would start with
4674 # the line `#! .'. This would cause the generated library to
4675 # depend on `.', always an invalid library. This was fixed in
4676 # development snapshots of GCC prior to 3.0.
4678 aix4 | aix4.[01] | aix4.[01].*)
4679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4681 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4689 # soname into executable. Probably we can add versioning support to
4690 # collect2, so additional links can be useful in future.
4691 if test "$aix_use_runtimelinking" = yes; then
4692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4693 # instead of lib<name>.a to let people know that these are not
4694 # typical AIX shared libraries.
4695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4697 # We preserve .a as extension for shared libraries through AIX4.2
4698 # and later when we are not doing run time linking.
4699 library_names_spec='${libname}${release}.a $libname.a'
4700 soname_spec='${libname}${release}${shared_ext}$major'
4702 shlibpath_var=LIBPATH
4707 library_names_spec='$libname.ixlibrary $libname.a'
4708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4709 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'
4713 library_names_spec='${libname}${shared_ext}'
4714 dynamic_linker="$host_os ld.so"
4715 shlibpath_var=LIBRARY_PATH
4721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4722 soname_spec='${libname}${release}${shared_ext}$major'
4723 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4724 shlibpath_var=LD_LIBRARY_PATH
4725 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4726 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4727 # the default ld.so.conf also contains /usr/contrib/lib and
4728 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4729 # libtool to hard-code these into programs
4732 cygwin* | mingw* | pw32*)
4733 version_type=windows
4738 case $GCC,$host_os in
4739 yes,cygwin* | yes,mingw* | yes,pw32*)
4740 library_names_spec='$libname.dll.a'
4741 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4742 postinstall_cmds='base_file=`basename \${file}`~
4743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4744 dldir=$destdir/`dirname \$dlpath`~
4745 test -d \$dldir || mkdir -p \$dldir~
4746 $install_prog $dir/$dlname \$dldir/$dlname'
4747 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4748 dlpath=$dir/\$dldll~
4750 shlibpath_overrides_runpath=yes
4754 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4755 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4756 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4759 # MinGW DLLs use traditional 'lib' prefix
4760 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4762 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4763 # It is most probably a Windows format PATH printed by
4764 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4765 # path with ; separators, and with drive letters. We can handle the
4766 # drive letters (cygwin fileutils understands them), so leave them,
4767 # especially as we might pass files found there to a mingw objdump,
4768 # which wouldn't understand a cygwinified path. Ahh.
4769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4775 # pw32 DLLs use 'pw' prefix rather than 'lib'
4776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4782 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4785 dynamic_linker='Win32 ld.exe'
4786 # FIXME: first we should search . and the directory the executable is in
4790 darwin* | rhapsody*)
4791 dynamic_linker="$host_os dyld"
4795 # FIXME: Relying on posixy $() will cause problems for
4796 # cross-compilation, but unfortunately the echo tests do not
4797 # yet detect zsh echo's removal of \ escapes.
4798 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4799 soname_spec='${libname}${release}${major}$shared_ext'
4800 shlibpath_overrides_runpath=yes
4801 shlibpath_var=DYLD_LIBRARY_PATH
4802 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4803 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4804 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4805 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"`
4807 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4815 soname_spec='${libname}${release}${shared_ext}$major'
4816 shlibpath_var=LD_LIBRARY_PATH
4824 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4825 version_type=freebsd-$objformat
4826 case $version_type in
4828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4837 shlibpath_var=LD_LIBRARY_PATH
4840 shlibpath_overrides_runpath=yes
4842 freebsd3.01* | freebsdelf3.01*)
4843 shlibpath_overrides_runpath=yes
4844 hardcode_into_libs=yes
4847 shlibpath_overrides_runpath=no
4848 hardcode_into_libs=yes
4857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4858 soname_spec='${libname}${release}${shared_ext}$major'
4859 shlibpath_var=LD_LIBRARY_PATH
4860 hardcode_into_libs=yes
4863 hpux9* | hpux10* | hpux11*)
4864 # Give a soname corresponding to the major version so that dld.sl refuses to
4865 # link against other versions.
4872 hardcode_into_libs=yes
4873 dynamic_linker="$host_os dld.so"
4874 shlibpath_var=LD_LIBRARY_PATH
4875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4877 soname_spec='${libname}${release}${shared_ext}$major'
4878 if test "X$HPUX_IA64_MODE" = X32; then
4879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4887 hardcode_into_libs=yes
4888 dynamic_linker="$host_os dld.sl"
4889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4892 soname_spec='${libname}${release}${shared_ext}$major'
4893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4898 dynamic_linker="$host_os dld.sl"
4899 shlibpath_var=SHLIB_PATH
4900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902 soname_spec='${libname}${release}${shared_ext}$major'
4905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4906 postinstall_cmds='chmod 555 $lib'
4909 irix5* | irix6* | nonstopux*)
4911 nonstopux*) version_type=nonstopux ;;
4913 if test "$lt_cv_prog_gnu_ld" = yes; then
4921 soname_spec='${libname}${release}${shared_ext}$major'
4922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4924 irix5* | nonstopux*)
4928 case $LD in # libtool.m4 will add one of these switches to LD
4929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4930 libsuff= shlibsuff= libmagic=32-bit;;
4931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4932 libsuff=32 shlibsuff=N32 libmagic=N32;;
4933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4935 *) libsuff= shlibsuff= libmagic=never-match;;
4939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4940 shlibpath_overrides_runpath=no
4941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4943 hardcode_into_libs=yes
4946 # No shared lib support for Linux oldld, aout, or coff.
4947 linux*oldld* | linux*aout* | linux*coff*)
4951 # This must be Linux ELF.
4956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4957 soname_spec='${libname}${release}${shared_ext}$major'
4958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4959 shlibpath_var=LD_LIBRARY_PATH
4960 shlibpath_overrides_runpath=no
4961 # This implies no fast_install, which is unacceptable.
4962 # Some rework will be needed to allow for fast_install
4963 # before this can be enabled.
4964 hardcode_into_libs=yes
4966 # We used to test for /lib/ld.so.1 and disable shared libraries on
4967 # powerpc, because MkLinux only supported shared libraries with the
4968 # GNU dynamic linker. Since this was broken with cross compilers,
4969 # most powerpc-linux boxes support dynamic linking these days and
4970 # people can always --disable-shared, the test was removed, and we
4971 # assume the GNU/Linux dynamic linker is in use.
4972 dynamic_linker='GNU/Linux ld.so'
4979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4982 dynamic_linker='NetBSD (a.out) ld.so'
4984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4985 soname_spec='${libname}${release}${shared_ext}$major'
4986 dynamic_linker='NetBSD ld.elf_so'
4988 shlibpath_var=LD_LIBRARY_PATH
4989 shlibpath_overrides_runpath=yes
4990 hardcode_into_libs=yes
4995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4996 shlibpath_var=LD_LIBRARY_PATH
4997 shlibpath_overrides_runpath=yes
5004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5005 soname_spec='${libname}${release}${shared_ext}$major'
5006 shlibpath_var=LD_LIBRARY_PATH
5007 shlibpath_overrides_runpath=yes
5014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5016 shlibpath_var=LD_LIBRARY_PATH
5017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5019 openbsd2.[89] | openbsd2.[89].*)
5020 shlibpath_overrides_runpath=no
5023 shlibpath_overrides_runpath=yes
5027 shlibpath_overrides_runpath=yes
5032 libname_spec='$name'
5035 library_names_spec='$libname${shared_ext} $libname.a'
5036 dynamic_linker='OS/2 ld.exe'
5037 shlibpath_var=LIBPATH
5040 osf3* | osf4* | osf5*)
5044 soname_spec='${libname}${release}${shared_ext}$major'
5045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5046 shlibpath_var=LD_LIBRARY_PATH
5047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5048 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5053 soname_spec='${libname}${release}${shared_ext}$major'
5054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5055 shlibpath_var=LD_LIBRARY_PATH
5062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5063 soname_spec='${libname}${release}${shared_ext}$major'
5064 shlibpath_var=LD_LIBRARY_PATH
5065 shlibpath_overrides_runpath=yes
5066 hardcode_into_libs=yes
5067 # ldd complains unless libraries are executable
5068 postinstall_cmds='chmod +x $lib'
5073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5075 shlibpath_var=LD_LIBRARY_PATH
5076 shlibpath_overrides_runpath=yes
5077 if test "$with_gnu_ld" = yes; then
5083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5086 soname_spec='${libname}${release}${shared_ext}$major'
5087 shlibpath_var=LD_LIBRARY_PATH
5088 case $host_vendor in
5090 shlibpath_overrides_runpath=no
5092 export_dynamic_flag_spec='${wl}-Blargedynsym'
5093 runpath_var=LD_RUN_PATH
5101 shlibpath_overrides_runpath=no
5102 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5108 if test -d /usr/nec ;then
5110 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5111 soname_spec='$libname${shared_ext}.$major'
5112 shlibpath_var=LD_LIBRARY_PATH
5118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5119 soname_spec='${libname}${release}${shared_ext}$major'
5120 shlibpath_var=LD_LIBRARY_PATH
5127 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5128 echo "${ECHO_T}$dynamic_linker" >&6
5129 test "$dynamic_linker" = no && can_build_shared=no
5132 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5133 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5134 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 libltdl_cv_shlibpath_var="$shlibpath_var"
5139 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5140 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5141 if test -n "$libltdl_cv_shlibpath_var"; then
5143 cat >>confdefs.h <<_ACEOF
5144 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5151 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5154 # See if the user has requested runtime debugging.
5155 LIBGCJDEBUG="disable"
5157 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5158 if test "${enable_libgcj_debug+set}" = set; then
5159 enableval="$enable_libgcj_debug"
5160 if test "$enable_libgcj_debug" = yes; then
5162 cat >>confdefs.h <<\_ACEOF
5166 LIBGCJDEBUG="enable"
5171 # Check whether --with-escher or --without-escher was given.
5172 if test "${with_escher+set}" = set; then
5173 withval="$with_escher"
5176 case "$with_escher" in
5184 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5185 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5186 { (exit 1); exit 1; }; }
5193 # Determine which AWT peer libraries to build
5194 # Check whether --enable-java-awt or --disable-java-awt was given.
5195 if test "${enable_java_awt+set}" = set; then
5196 enableval="$enable_java_awt"
5200 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5205 # The default toolkit to use is the first one specified.
5209 for peer in $peerlibs ; do
5212 if test "$no_x" = yes; then
5213 echo "*** xlib peers requested but no X library available" 1>&2
5217 if test -z "$TOOLKIT"; then
5218 TOOLKIT=gnu.awt.xlib.XToolkit
5223 if test "$no_x" = yes; then
5224 echo "*** gtk peers requested but no X library available" 1>&2
5228 if test -z "$TOOLKIT"; then
5229 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5234 if test "$no_x" = yes; then
5235 # Perhaps we should admit the possibility of embedded Qt.
5236 echo "*** Qt peers requested but no X library available" 1>&2
5240 if test -z "$TOOLKIT"; then
5241 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5247 if test -z "$TOOLKIT"; then
5248 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5259 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5266 if test "$use_xlib_awt" = yes; then
5276 if test "$use_x_awt" = yes; then
5286 cat >>confdefs.h <<_ACEOF
5287 #define AWT_TOOLKIT "$TOOLKIT"
5292 cat >>confdefs.h <<_ACEOF
5293 #define LIBGCJ_PREFIX "$prefix"
5297 # Create standard.omit based on decisions we just made.
5298 cp $srcdir/standard.omit.in standard.omit
5299 if test "$use_xlib_awt" != yes; then
5300 echo gnu/awt/xlib >> standard.omit
5301 echo gnu/gcj/xlib >> standard.omit
5303 if test "$use_x_awt" != yes; then
5304 echo gnu/java/awt/peer/x >> standard.omit
5307 # Tools that need to be compiled against classpath's tools classes
5308 : > vm-tools-packages
5309 for package in gnu/gcj/tools/gc_analyze ; do
5310 echo $package >> standard.omit
5311 echo $package >> vm-tools-packages
5314 if test -z "${with_multisubdir}"; then
5317 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5322 # Which gcj and host gcj (for ecjx) do we use?
5324 host_exeext=${ac_exeext}
5326 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5327 if test -n "${with_cross_host}"; then
5328 # We are being configured with a cross compiler. We can't
5329 # use ac_exeext, because that is for the target platform.
5332 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5333 case "${with_cross_host}" in
5335 cross_host_exeext=.exe
5338 host_exeext=${cross_host_exeext}
5339 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5340 if test x"$build_noncanonical" = x"$with_cross_host"; then
5341 # Ordinary cross (host!=target and host=build)
5344 # Canadian cross (host!=target and host!=build)
5351 # We are being configured with a native or crossed-native compiler
5352 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5353 if test x"$build" = x"$host"; then
5354 # True native build (host=target and host=build)
5357 # Crossed-native build (host=target and host!=build)
5364 case "${which_gcj}" in
5366 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5367 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5370 if test "x${with_newlib}" = "xyes"; then
5371 # FIXME (comment): Why is this needed?
5373 GCJ="${target_noncanonical}-gcj"
5375 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5377 GCJH='$(target_noncanonical)-gcjh'
5380 GCJ="gcj -B`${PWDCMD-pwd}`/"
5391 # Create it, so that compile/link tests don't fail
5392 test -f libgcj.spec || touch libgcj.spec
5396 # Set up to configure Classpath.
5397 # FIXME: no supported way to pass args in autoconf.
5398 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5399 # Disable tool wrappers to avoid ltdl.h configure check.
5400 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5401 ac_configure_args="$ac_configure_args --disable-load-library"
5402 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5403 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5404 dir1=`cd $srcdir && pwd`
5406 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5407 ac_configure_args="$ac_configure_args --disable-core-jni"
5408 ac_configure_args="$ac_configure_args --disable-examples"
5409 ac_configure_args="$ac_configure_args --with-glibj=build"
5410 if test "$plugin_enabled" != yes; then
5411 ac_configure_args="$ac_configure_args --disable-plugin"
5413 if test "$gconf_enabled" != yes; then
5414 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5415 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5417 if test "$use_gtk_awt" != yes; then
5418 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5420 if test "$use_qt_awt" != yes; then
5421 ac_configure_args="$ac_configure_args --disable-qt-peer"
5423 # We need this as qt is disabled by default in classpath.
5424 ac_configure_args="$ac_configure_args --enable-qt-peer"
5426 if test "$use_x_awt" != yes; then
5427 ac_configure_args="$ac_configure_args --without-escher"
5429 # We need this as escher is disabled by default in classpath.
5430 if test "$use_escher" != true; then
5431 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5432 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5433 { (exit 1); exit 1; }; }
5435 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5438 # -Werror causes unavoidable problems in code using alsa.
5439 ac_configure_args="$ac_configure_args --disable-regen-headers"
5440 ac_configure_args="$ac_configure_args --disable-Werror"
5442 # Only use libltdl for non-newlib builds.
5443 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5444 case $enable_ltdl_convenience in
5445 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5446 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5447 { (exit 1); exit 1; }; } ;;
5448 "") enable_ltdl_convenience=yes
5449 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5451 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5452 LTDLINCL='-I${top_srcdir}/''libltdl'
5453 # For backwards non-gettext consistent compatibility...
5462 cat >>confdefs.h <<\_ACEOF
5466 # Sigh. Libtool's macro doesn't do the right thing.
5467 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5468 # FIXME: this is a hack.
5469 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5470 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5477 macro_version='2.1a'
5478 macro_revision='1.2435'
5491 ltmain="$ac_aux_dir/ltmain.sh"
5499 # Check whether --enable-shared or --disable-shared was given.
5500 if test "${enable_shared+set}" = set; then
5501 enableval="$enable_shared"
5502 p=${PACKAGE-default}
5504 yes) enable_shared=yes ;;
5505 no) enable_shared=no ;;
5508 # Look at the argument we got. We use all the common list separators.
5509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5510 for pkg in $enableval; do
5512 if test "X$pkg" = "X$p"; then
5530 # Check whether --enable-static or --disable-static was given.
5531 if test "${enable_static+set}" = set; then
5532 enableval="$enable_static"
5533 p=${PACKAGE-default}
5535 yes) enable_static=yes ;;
5536 no) enable_static=no ;;
5539 # Look at the argument we got. We use all the common list separators.
5540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5541 for pkg in $enableval; do
5543 if test "X$pkg" = "X$p"; then
5562 # Check whether --with-pic or --without-pic was given.
5563 if test "${with_pic+set}" = set; then
5570 test -z "$pic_mode" && pic_mode=default
5578 # Check whether --enable-fast-install or --disable-fast-install was given.
5579 if test "${enable_fast_install+set}" = set; then
5580 enableval="$enable_fast_install"
5581 p=${PACKAGE-default}
5583 yes) enable_fast_install=yes ;;
5584 no) enable_fast_install=no ;;
5586 enable_fast_install=no
5587 # Look at the argument we got. We use all the common list separators.
5588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5589 for pkg in $enableval; do
5591 if test "X$pkg" = "X$p"; then
5592 enable_fast_install=yes
5599 enable_fast_install=yes
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
5845 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5846 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5847 if test "${lt_cv_path_NM+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 if test -n "$NM"; then
5851 # Let the user override the test.
5854 lt_nm_to_check="${ac_tool_prefix}nm"
5855 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5856 lt_nm_to_check="$lt_nm_to_check nm"
5858 for lt_tmp_nm in $lt_nm_to_check; do
5859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5862 test -z "$ac_dir" && ac_dir=.
5863 tmp_nm="$ac_dir/$lt_tmp_nm"
5864 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5865 # Check to see if the nm accepts a BSD-compat flag.
5866 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5867 # nm: unknown option "B" ignored
5868 # Tru64's nm complains that /dev/null is an invalid object file
5869 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5870 */dev/null* | *'Invalid file or object type'*)
5871 lt_cv_path_NM="$tmp_nm -B"
5875 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5877 lt_cv_path_NM="$tmp_nm -p"
5881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5882 continue # so that we can try to find one that supports BSD flags
5891 : ${lt_cv_path_NM=no}
5894 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5895 echo "${ECHO_T}$lt_cv_path_NM" >&6
5896 if test "$lt_cv_path_NM" != "no"; then
5899 # Didn't find any BSD compatible name lister, look for dumpbin.
5900 if test -n "$ac_tool_prefix"; then
5901 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 if test -n "$DUMPBIN"; then
5911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 DUMPBIN=$ac_cv_prog_DUMPBIN
5930 if test -n "$DUMPBIN"; then
5931 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5932 echo "${ECHO_T}$DUMPBIN" >&6
5934 echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5938 test -n "$DUMPBIN" && break
5941 if test -z "$DUMPBIN"; then
5942 ac_ct_DUMPBIN=$DUMPBIN
5943 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5949 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 if test -n "$ac_ct_DUMPBIN"; then
5953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5972 if test -n "$ac_ct_DUMPBIN"; then
5973 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5974 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5976 echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5980 test -n "$ac_ct_DUMPBIN" && break
5982 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5984 DUMPBIN=$ac_ct_DUMPBIN
5988 if test "$DUMPBIN" != ":"; then
5992 test -z "$NM" && NM=nm
5999 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6000 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6001 if test "${lt_cv_nm_interface+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6004 lt_cv_nm_interface="BSD nm"
6005 echo "int some_variable = 0;" > conftest.$ac_ext
6006 (eval echo "\"\$as_me:6006: $ac_compile\"" >&5)
6007 (eval "$ac_compile" 2>conftest.err)
6008 cat conftest.err >&5
6009 (eval echo "\"\$as_me:6009: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6010 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6011 cat conftest.err >&5
6012 (eval echo "\"\$as_me:6012: output\"" >&5)
6013 cat conftest.out >&5
6014 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6015 lt_cv_nm_interface="MS dumpbin"
6019 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6020 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6022 # find the maximum length of command line arguments
6023 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6024 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6025 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 # On DJGPP, this test can blow up pretty badly due to problems in libc
6034 # (any single argument exceeding 2000 bytes causes a buffer overrun
6035 # during glob expansion). Even if it were fixed, the result of this
6036 # check would be larger than it should be.
6037 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6041 # Under GNU Hurd, this test is not required because there is
6042 # no limit to the length of command line arguments.
6043 # Libtool will interpret -1 as no limit whatsoever
6044 lt_cv_sys_max_cmd_len=-1;
6048 # On Win9x/ME, this test blows up -- it succeeds, but takes
6049 # about 5 minutes as the teststring grows exponentially.
6050 # Worse, since 9x/ME are not pre-emptively multitasking,
6051 # you end up with a "frozen" computer, even though with patience
6052 # the test eventually succeeds (with a max line length of 256k).
6053 # Instead, let's just punt: use the minimum linelength reported by
6054 # all of the supported platforms: 8192 (on NT/2K/XP).
6055 lt_cv_sys_max_cmd_len=8192;
6059 # On AmigaOS with pdksh, this test takes hours, literally.
6060 # So we just punt and use a minimum line length of 8192.
6061 lt_cv_sys_max_cmd_len=8192;
6064 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6065 # This has been around since 386BSD, at least. Likely further.
6066 if test -x /sbin/sysctl; then
6067 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6068 elif test -x /usr/sbin/sysctl; then
6069 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6071 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6073 # And add a safety zone
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6079 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6080 lt_cv_sys_max_cmd_len=196608
6084 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6085 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6086 # nice to cause kernel panics so lets avoid the loop below.
6087 # First set a reasonable default.
6088 lt_cv_sys_max_cmd_len=16384
6090 if test -x /sbin/sysconfig; then
6091 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6092 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6097 lt_cv_sys_max_cmd_len=102400
6099 sysv5* | sco5v6* | sysv4.2uw2*)
6100 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6101 if test -n "$kargmax"; then
6102 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6104 lt_cv_sys_max_cmd_len=32768
6108 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6109 if test -n $lt_cv_sys_max_cmd_len; then
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6113 # Make teststring a little bigger before we do anything with it.
6114 # a 1K string should be a reasonable start.
6115 for i in 1 2 3 4 5 6 7 8 ; do
6116 teststring=$teststring$teststring
6118 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6119 # If test is not a shell built-in, we'll probably end up computing a
6120 # maximum length that is only half of the actual maximum length, but
6122 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6123 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6124 test $i != 17 # 1/2 MB should be enough
6127 teststring=$teststring$teststring
6129 # Only check the string length outside the loop.
6130 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6132 # Add a significant safety factor because C++ compilers can tack on
6133 # massive amounts of additional arguments before passing them to the
6134 # linker. It appears as though 1/2 is a usable value.
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6142 if test -n $lt_cv_sys_max_cmd_len ; then
6143 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6144 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6146 echo "$as_me:$LINENO: result: none" >&5
6147 echo "${ECHO_T}none" >&6
6149 max_cmd_len=$lt_cv_sys_max_cmd_len
6160 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6161 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6162 # Try some XSI features
6165 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166 = c,a/b,, ) >/dev/null 2>&1 \
6168 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6169 echo "${ECHO_T}$xsi_shell" >&6
6172 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6173 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6175 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177 && lt_shell_append=yes
6178 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6179 echo "${ECHO_T}$lt_shell_append" >&6
6182 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6192 # test EBCDIC or ASCII
6193 case `echo X|tr X '\101'` in
6194 A) # ASCII based system
6195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6196 lt_SP2NL='tr \040 \012'
6197 lt_NL2SP='tr \015\012 \040\040'
6199 *) # EBCDIC based system
6200 lt_SP2NL='tr \100 \n'
6201 lt_NL2SP='tr \r\n \100\100'
6213 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6214 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6215 if test "${lt_cv_ld_reload_flag+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 lt_cv_ld_reload_flag='-r'
6220 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6221 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6222 reload_flag=$lt_cv_ld_reload_flag
6223 case $reload_flag in
6225 *) reload_flag=" $reload_flag" ;;
6227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6230 if test "$GCC" = yes; then
6231 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6248 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6249 if test "${lt_cv_deplibs_check_method+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 lt_cv_file_magic_cmd='$MAGIC_CMD'
6253 lt_cv_file_magic_test_file=
6254 lt_cv_deplibs_check_method='unknown'
6255 # Need to set the preceding variable on all platforms that support
6256 # interlibrary dependencies.
6257 # 'none' -- dependencies not supported.
6258 # `unknown' -- same as none, but documents that we really don't know.
6259 # 'pass_all' -- all dependencies passed with no checks.
6260 # 'test_compile' -- check by making test program.
6261 # 'file_magic [[regex]]' -- check by looking for files in library path
6262 # which responds to the $file_magic_cmd with a given extended regex.
6263 # If you have `file' or equivalent on your system and you're not sure
6264 # whether `pass_all' will *always* work, you probably want this one.
6268 lt_cv_deplibs_check_method=pass_all
6272 lt_cv_deplibs_check_method=pass_all
6276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6277 lt_cv_file_magic_cmd='/usr/bin/file -L'
6278 lt_cv_file_magic_test_file=/shlib/libc.so
6282 # func_win32_libid is a shell function defined in ltmain.sh
6283 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6284 lt_cv_file_magic_cmd='func_win32_libid'
6288 # Base MSYS/MinGW do not provide the 'file' command needed by
6289 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6290 # unless we find 'file', for example because we are cross-compiling.
6291 if ( file / ) >/dev/null 2>&1; then
6292 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6293 lt_cv_file_magic_cmd='func_win32_libid'
6295 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6296 lt_cv_file_magic_cmd='$OBJDUMP -f'
6300 darwin* | rhapsody*)
6301 lt_cv_deplibs_check_method=pass_all
6304 freebsd* | dragonfly*)
6305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6308 # Not sure whether the presence of OpenBSD here was a mistake.
6309 # Let's accept both of them until this is cleared up.
6310 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6311 lt_cv_file_magic_cmd=/usr/bin/file
6312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6316 lt_cv_deplibs_check_method=pass_all
6321 lt_cv_deplibs_check_method=pass_all
6324 hpux10.20* | hpux11*)
6325 lt_cv_file_magic_cmd=/usr/bin/file
6328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6329 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6332 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]'
6333 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6337 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6343 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6347 irix5* | irix6* | nonstopux*)
6349 *-32|*"-32 ") libmagic=32-bit;;
6350 *-n32|*"-n32 ") libmagic=N32;;
6351 *-64|*"-64 ") libmagic=64-bit;;
6352 *) libmagic=never-match;;
6354 lt_cv_deplibs_check_method=pass_all
6357 # This must be Linux ELF.
6358 linux* | k*bsd*-gnu)
6359 lt_cv_deplibs_check_method=pass_all
6363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6372 lt_cv_file_magic_cmd=/usr/bin/file
6373 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6377 lt_cv_deplibs_check_method=pass_all
6381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6382 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6388 osf3* | osf4* | osf5*)
6389 lt_cv_deplibs_check_method=pass_all
6393 lt_cv_deplibs_check_method=pass_all
6397 lt_cv_deplibs_check_method=pass_all
6400 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6401 lt_cv_deplibs_check_method=pass_all
6405 case $host_vendor in
6407 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]'
6408 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6411 lt_cv_deplibs_check_method=pass_all
6414 lt_cv_file_magic_cmd='/bin/file'
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6418 lt_cv_file_magic_cmd='/bin/file'
6419 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6420 lt_cv_file_magic_test_file=/lib/libc.so
6423 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6432 lt_cv_deplibs_check_method=pass_all
6437 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6438 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6439 file_magic_cmd=$lt_cv_file_magic_cmd
6440 deplibs_check_method=$lt_cv_deplibs_check_method
6441 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}ar; ac_word=$2
6457 echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6459 if test "${ac_cv_prog_AR+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 if test -n "$AR"; then
6463 ac_cv_prog_AR="$AR" # Let the user override the test.
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_AR="${ac_tool_prefix}ar"
6473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 if test -n "$AR"; then
6483 echo "$as_me:$LINENO: result: $AR" >&5
6484 echo "${ECHO_T}$AR" >&6
6486 echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6
6491 if test -z "$ac_cv_prog_AR"; then
6493 # Extract the first word of "ar", so it can be a program name with args.
6494 set dummy ar; ac_word=$2
6495 echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6497 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 if test -n "$ac_ct_AR"; then
6501 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_AR="ar"
6511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6520 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6521 if test -n "$ac_ct_AR"; then
6522 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6523 echo "${ECHO_T}$ac_ct_AR" >&6
6525 echo "$as_me:$LINENO: result: no" >&5
6526 echo "${ECHO_T}no" >&6
6534 test -z "$AR" && AR=ar
6535 test -z "$AR_FLAGS" && AR_FLAGS=cru
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}strip; ac_word=$2
6550 echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6552 if test "${ac_cv_prog_STRIP+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 if test -n "$STRIP"; then
6556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 STRIP=$ac_cv_prog_STRIP
6575 if test -n "$STRIP"; then
6576 echo "$as_me:$LINENO: result: $STRIP" >&5
6577 echo "${ECHO_T}$STRIP" >&6
6579 echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6584 if test -z "$ac_cv_prog_STRIP"; then
6586 # Extract the first word of "strip", so it can be a program name with args.
6587 set dummy strip; ac_word=$2
6588 echo "$as_me:$LINENO: checking for $ac_word" >&5
6589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 if test -n "$ac_ct_STRIP"; then
6594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603 ac_cv_prog_ac_ct_STRIP="strip"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614 if test -n "$ac_ct_STRIP"; then
6615 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6616 echo "${ECHO_T}$ac_ct_STRIP" >&6
6618 echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6624 STRIP="$ac_cv_prog_STRIP"
6627 test -z "$STRIP" && STRIP=:
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6637 echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6639 if test "${ac_cv_prog_RANLIB+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 if test -n "$RANLIB"; then
6643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 RANLIB=$ac_cv_prog_RANLIB
6662 if test -n "$RANLIB"; then
6663 echo "$as_me:$LINENO: result: $RANLIB" >&5
6664 echo "${ECHO_T}$RANLIB" >&6
6666 echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6
6671 if test -z "$ac_cv_prog_RANLIB"; then
6672 ac_ct_RANLIB=$RANLIB
6673 # Extract the first word of "ranlib", so it can be a program name with args.
6674 set dummy ranlib; ac_word=$2
6675 echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6677 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$ac_ct_RANLIB"; then
6681 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6690 ac_cv_prog_ac_ct_RANLIB="ranlib"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6700 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6701 if test -n "$ac_ct_RANLIB"; then
6702 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6703 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6705 echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6
6709 RANLIB=$ac_ct_RANLIB
6711 RANLIB="$ac_cv_prog_RANLIB"
6714 test -z "$RANLIB" && RANLIB=:
6721 # Determine commands to create old-style static archives.
6722 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6723 old_postinstall_cmds='chmod 644 $oldlib'
6724 old_postuninstall_cmds=
6726 if test -n "$RANLIB"; then
6729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6732 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6735 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6771 # If no C compiler was specified, use CC.
6774 # If no C compiler flags were specified, use CFLAGS.
6775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777 # Allow CC to be a program name with arguments.
6781 # Check for command to grab the raw symbol name followed by C symbol from nm.
6782 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6783 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6784 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 # These are sane defaults that work on at least a few old systems.
6789 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6791 # Character class describing NM global symbol codes.
6792 symcode='[BCDEGRST]'
6794 # Regexp to match symbols that can be accessed directly from C.
6795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797 # Define system-specific variables.
6802 cygwin* | mingw* | pw32*)
6803 symcode='[ABCDGISTW]'
6806 if test "$host_cpu" = ia64; then
6807 symcode='[ABCDEGRST]'
6811 symcode='[BCDEGRST]'
6814 symcode='[BCDEGQRST]'
6825 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6833 # If we're using GNU nm, then use its standard symbol codes.
6834 case `$NM -V 2>&1` in
6835 *GNU* | *'with BFD'*)
6836 symcode='[ABCDGIRSTW]' ;;
6839 # Transform an extracted symbol line into a proper C declaration.
6840 # Some systems (esp. on ia64) link data and code symbols differently,
6841 # so use this general approach.
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6847 # Handle CRLF in mingw tool chain
6851 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6855 # Try without a prefix underscore, then with it.
6856 for ac_symprfx in "" "_"; do
6858 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6859 symxfrm="\\1 $ac_symprfx\\2 \\2"
6861 # Write the raw and C identifiers.
6862 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6863 # Fake it for dumpbin and say T for any non-static function
6864 # and D for any global variable.
6865 # Also find C++ and __fastcall symbols from MSVC++,
6866 # which start with @ or ?.
6867 lt_cv_sys_global_symbol_pipe="$AWK '"\
6868 " {last_section=section; section=\$ 3};"\
6869 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6870 " \$ 0!~/External *\|/{next};"\
6871 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6872 " {if(hide[section]) next};"\
6873 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6874 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6875 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6876 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6877 " ' prfx=^$ac_symprfx"
6879 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882 # Check to see that the pipe works correctly.
6886 cat > conftest.$ac_ext <<_LT_EOF
6891 void nm_test_func(void);
6892 void nm_test_func(void){}
6896 int main(){nm_test_var='a';nm_test_func();return(0);}
6899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; then
6904 # Now try to grab the symbols.
6906 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6907 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && test -s "$nlist"; then
6911 # Try sorting and uniquifying the output.
6912 if sort "$nlist" | uniq > "$nlist"T; then
6913 mv -f "$nlist"T "$nlist"
6918 # Make sure that we snagged all the symbols we need.
6919 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6920 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6921 cat <<_LT_EOF > conftest.$ac_ext
6927 # Now generate the symbol file.
6928 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6930 cat <<_LT_EOF >> conftest.$ac_ext
6932 /* The mapping between symbol names and symbols. */
6937 lt__PROGRAM__LTX_preloaded_symbols[] =
6939 { "@PROGRAM@", (void *) 0 },
6941 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6942 cat <<\_LT_EOF >> conftest.$ac_ext
6946 /* This works around a problem in FreeBSD linker */
6947 #ifdef FREEBSD_WORKAROUND
6948 static const void *lt_preloaded_setup() {
6949 return lt__PROGRAM__LTX_preloaded_symbols;
6957 # Now try linking the two files.
6958 mv conftest.$ac_objext conftstm.$ac_objext
6959 lt_save_LIBS="$LIBS"
6960 lt_save_CFLAGS="$CFLAGS"
6961 LIBS="conftstm.$ac_objext"
6962 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6970 LIBS="$lt_save_LIBS"
6971 CFLAGS="$lt_save_CFLAGS"
6973 echo "cannot find nm_test_func in $nlist" >&5
6976 echo "cannot find nm_test_var in $nlist" >&5
6979 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982 echo "$progname: failed program was:" >&5
6983 cat conftest.$ac_ext >&5
6985 rm -f conftest* conftst*
6987 # Do not use the global_symbol_pipe unless it works.
6988 if test "$pipe_works" = yes; then
6991 lt_cv_sys_global_symbol_pipe=
6997 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6998 lt_cv_sys_global_symbol_to_cdecl=
7000 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7001 echo "$as_me:$LINENO: result: failed" >&5
7002 echo "${ECHO_T}failed" >&6
7004 echo "$as_me:$LINENO: result: ok" >&5
7005 echo "${ECHO_T}ok" >&6
7025 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7026 if test "${enable_libtool_lock+set}" = set; then
7027 enableval="$enable_libtool_lock"
7030 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7032 # Some flags need to be propagated to the compiler or linker for good
7036 # Find out which ABI we are using.
7037 echo 'int i;' > conftest.$ac_ext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; then
7043 case `/usr/bin/file conftest.$ac_objext` in
7055 # Find out which ABI we are using.
7056 echo '#line 7056 "configure"' > conftest.$ac_ext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; then
7062 if test "$lt_cv_prog_gnu_ld" = yes; then
7063 case `/usr/bin/file conftest.$ac_objext` in
7065 LD="${LD-ld} -melf32bsmip"
7068 LD="${LD-ld} -melf32bmipn32"
7071 LD="${LD-ld} -melf64bmip"
7075 case `/usr/bin/file conftest.$ac_objext` in
7091 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7092 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7093 # Find out which ABI we are using.
7094 echo 'int i;' > conftest.$ac_ext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096 (eval $ac_compile) 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; then
7100 case `/usr/bin/file conftest.o` in
7103 x86_64-*kfreebsd*-gnu)
7104 LD="${LD-ld} -m elf_i386_fbsd"
7107 LD="${LD-ld} -m elf_i386"
7109 ppc64-*linux*|powerpc64-*linux*)
7110 LD="${LD-ld} -m elf32ppclinux"
7113 LD="${LD-ld} -m elf_s390"
7116 LD="${LD-ld} -m elf32_sparc"
7122 x86_64-*kfreebsd*-gnu)
7123 LD="${LD-ld} -m elf_x86_64_fbsd"
7126 LD="${LD-ld} -m elf_x86_64"
7128 ppc*-*linux*|powerpc*-*linux*)
7129 LD="${LD-ld} -m elf64ppc"
7131 s390*-*linux*|s390*-*tpf*)
7132 LD="${LD-ld} -m elf64_s390"
7135 LD="${LD-ld} -m elf64_sparc"
7145 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7146 SAVE_CFLAGS="$CFLAGS"
7147 CFLAGS="$CFLAGS -belf"
7148 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7149 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7150 if test "${lt_cv_cc_needs_belf+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159 if test x$gcc_no_link = xyes; then
7160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7162 { (exit 1); exit 1; }; }
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7179 rm -f conftest.$ac_objext conftest$ac_exeext
7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7181 (eval $ac_link) 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } &&
7188 { ac_try='test -z "$ac_c_werror_flag"
7189 || test ! -s conftest.err'
7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); }; } &&
7195 { ac_try='test -s conftest$ac_exeext'
7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); }; }; then
7201 lt_cv_cc_needs_belf=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 lt_cv_cc_needs_belf=no
7208 rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7211 ac_cpp='$CPP $CPPFLAGS'
7212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7217 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7219 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7220 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7221 CFLAGS="$SAVE_CFLAGS"
7225 # Find out which ABI we are using.
7226 echo 'int i;' > conftest.$ac_ext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228 (eval $ac_compile) 2>&5
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; then
7232 case `/usr/bin/file conftest.o` in
7234 case $lt_cv_prog_gnu_ld in
7235 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7236 *) LD="${LD-ld} -64" ;;
7245 need_locks="$enable_libtool_lock"
7248 ac_cpp='$CPP $CPPFLAGS'
7249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7254 # On Suns, sometimes $CPP names a directory.
7255 if test -n "$CPP" && test -d "$CPP"; then
7258 if test -z "$CPP"; then
7259 if test "${ac_cv_prog_CPP+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 # Double quotes because CPP needs to be expanded
7263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7266 for ac_c_preproc_warn_flag in '' yes
7268 # Use a header file that comes with gcc, so configuring glibc
7269 # with a fresh cross-compiler works.
7270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271 # <limits.h> exists even on freestanding compilers.
7272 # On the NeXT, cc -E runs the code through the compiler's parser,
7273 # not just through cpp. "Syntax error" is here to catch this case.
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7281 # include <limits.h>
7283 # include <assert.h>
7287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } >/dev/null; then
7295 if test -s conftest.err; then
7296 ac_cpp_err=$ac_c_preproc_warn_flag
7297 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7304 if test -z "$ac_cpp_err"; then
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 # Broken: fails on valid input.
7313 rm -f conftest.err conftest.$ac_ext
7315 # OK, works on sane cases. Now check whether non-existent headers
7316 # can be detected and how.
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7323 #include <ac_nonexistent.h>
7325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } >/dev/null; then
7333 if test -s conftest.err; then
7334 ac_cpp_err=$ac_c_preproc_warn_flag
7335 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7342 if test -z "$ac_cpp_err"; then
7343 # Broken: success on invalid input.
7346 echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 # Passes both tests.
7353 rm -f conftest.err conftest.$ac_ext
7356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7357 rm -f conftest.err conftest.$ac_ext
7358 if $ac_preproc_ok; then
7370 echo "$as_me:$LINENO: result: $CPP" >&5
7371 echo "${ECHO_T}$CPP" >&6
7373 for ac_c_preproc_warn_flag in '' yes
7375 # Use a header file that comes with gcc, so configuring glibc
7376 # with a fresh cross-compiler works.
7377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7378 # <limits.h> exists even on freestanding compilers.
7379 # On the NeXT, cc -E runs the code through the compiler's parser,
7380 # not just through cpp. "Syntax error" is here to catch this case.
7381 cat >conftest.$ac_ext <<_ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 # include <limits.h>
7390 # include <assert.h>
7394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } >/dev/null; then
7402 if test -s conftest.err; then
7403 ac_cpp_err=$ac_c_preproc_warn_flag
7404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7411 if test -z "$ac_cpp_err"; then
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 # Broken: fails on valid input.
7420 rm -f conftest.err conftest.$ac_ext
7422 # OK, works on sane cases. Now check whether non-existent headers
7423 # can be detected and how.
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <ac_nonexistent.h>
7432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } >/dev/null; then
7440 if test -s conftest.err; then
7441 ac_cpp_err=$ac_c_preproc_warn_flag
7442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7449 if test -z "$ac_cpp_err"; then
7450 # Broken: success on invalid input.
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 # Passes both tests.
7460 rm -f conftest.err conftest.$ac_ext
7463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7464 rm -f conftest.err conftest.$ac_ext
7465 if $ac_preproc_ok; then
7468 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7470 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7471 See \`config.log' for more details." >&5
7472 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7473 See \`config.log' for more details." >&2;}
7474 { (exit 1); exit 1; }; }; }
7478 ac_cpp='$CPP $CPPFLAGS'
7479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7486 if test "${ac_cv_header_stdc+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7508 rm -f conftest.$ac_objext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1 >conftest.err
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest.$ac_objext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_header_stdc=yes
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7535 ac_cv_header_stdc=no
7537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7539 if test $ac_cv_header_stdc = yes; then
7540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7541 cat >conftest.$ac_ext <<_ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7551 $EGREP "memchr" >/dev/null 2>&1; then
7554 ac_cv_header_stdc=no
7560 if test $ac_cv_header_stdc = yes; then
7561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7572 $EGREP "free" >/dev/null 2>&1; then
7575 ac_cv_header_stdc=no
7581 if test $ac_cv_header_stdc = yes; then
7582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7583 if test "$cross_compiling" = yes; then
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7593 #if ((' ' & 0x0FF) == 0x020)
7594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7597 # define ISLOWER(c) \
7598 (('a' <= (c) && (c) <= 'i') \
7599 || ('j' <= (c) && (c) <= 'r') \
7600 || ('s' <= (c) && (c) <= 'z'))
7601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7609 for (i = 0; i < 256; i++)
7610 if (XOR (islower (i), ISLOWER (i))
7611 || toupper (i) != TOUPPER (i))
7616 rm -f conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); }; }; then
7629 echo "$as_me: program exited with status $ac_status" >&5
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7634 ac_cv_header_stdc=no
7636 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7642 if test $ac_cv_header_stdc = yes; then
7644 cat >>confdefs.h <<\_ACEOF
7645 #define STDC_HEADERS 1
7650 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7661 inttypes.h stdint.h unistd.h
7663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664 echo "$as_me:$LINENO: checking for $ac_header" >&5
7665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7677 #include <$ac_header>
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest.$ac_objext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 eval "$as_ac_Header=yes"
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7706 eval "$as_ac_Header=no"
7708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7713 cat >>confdefs.h <<_ACEOF
7714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 for ac_header in dlfcn.h
7725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7726 echo "$as_me:$LINENO: checking for $ac_header" >&5
7727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7739 #include <$ac_header>
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>conftest.er1
7745 grep -v '^ *+' conftest.er1 >conftest.err
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 eval "$as_ac_Header=yes"
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 eval "$as_ac_Header=no"
7770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7775 cat >>confdefs.h <<_ACEOF
7776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7786 ac_cpp='$CXXCPP $CPPFLAGS'
7787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7790 if test -n "$ac_tool_prefix"; then
7791 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7795 echo "$as_me:$LINENO: checking for $ac_word" >&5
7796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797 if test "${ac_cv_prog_CXX+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test -n "$CXX"; then
7801 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 test -z "$as_dir" && as_dir=.
7808 for ac_exec_ext in '' $ac_executable_extensions; do
7809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 if test -n "$CXX"; then
7821 echo "$as_me:$LINENO: result: $CXX" >&5
7822 echo "${ECHO_T}$CXX" >&6
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7828 test -n "$CXX" && break
7831 if test -z "$CXX"; then
7833 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy $ac_prog; ac_word=$2
7837 echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 if test -n "$ac_ct_CXX"; then
7843 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852 ac_cv_prog_ac_ct_CXX="$ac_prog"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7862 if test -n "$ac_ct_CXX"; then
7863 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7864 echo "${ECHO_T}$ac_ct_CXX" >&6
7866 echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6
7870 test -n "$ac_ct_CXX" && break
7872 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7878 # Provide some information about the compiler.
7879 echo "$as_me:$LINENO:" \
7880 "checking for C++ compiler version" >&5
7881 ac_compiler=`set X $ac_compile; echo $2`
7882 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7883 (eval $ac_compiler --version </dev/null >&5) 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }
7887 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7888 (eval $ac_compiler -v </dev/null >&5) 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }
7892 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7893 (eval $ac_compiler -V </dev/null >&5) 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }
7898 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } &&
7930 { ac_try='test -z "$ac_cxx_werror_flag"
7931 || test ! -s conftest.err'
7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; } &&
7937 { ac_try='test -s conftest.$ac_objext'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; }; then
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7951 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7954 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7955 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7956 GXX=`test $ac_compiler_gnu = yes && echo yes`
7957 ac_test_CXXFLAGS=${CXXFLAGS+set}
7958 ac_save_CXXFLAGS=$CXXFLAGS
7960 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7961 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7962 if test "${ac_cv_prog_cxx_g+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7980 rm -f conftest.$ac_objext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982 (eval $ac_compile) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1 >conftest.err
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try='test -z "$ac_cxx_werror_flag"
7990 || test ! -s conftest.err'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_cv_prog_cxx_g=yes
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8012 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8013 if test "$ac_test_CXXFLAGS" = set; then
8014 CXXFLAGS=$ac_save_CXXFLAGS
8015 elif test $ac_cv_prog_cxx_g = yes; then
8016 if test "$GXX" = yes; then
8022 if test "$GXX" = yes; then
8028 for ac_declaration in \
8030 'extern "C" void std::exit (int) throw (); using std::exit;' \
8031 'extern "C" void std::exit (int); using std::exit;' \
8032 'extern "C" void exit (int) throw ();' \
8033 'extern "C" void exit (int);' \
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8052 rm -f conftest.$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try='test -z "$ac_cxx_werror_flag"
8062 || test ! -s conftest.err'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; } &&
8068 { ac_try='test -s conftest.$ac_objext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try='test -z "$ac_cxx_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 if test -n "$ac_declaration"; then
8129 echo '#ifdef __cplusplus' >>confdefs.h
8130 echo $ac_declaration >>confdefs.h
8131 echo '#endif' >>confdefs.h
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8141 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8142 (test "X$CXX" != "Xg++"))) ; then
8144 ac_cpp='$CXXCPP $CPPFLAGS'
8145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8148 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8149 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8150 if test -z "$CXXCPP"; then
8151 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 # Double quotes because CXXCPP needs to be expanded
8155 for CXXCPP in "$CXX -E" "/lib/cpp"
8158 for ac_cxx_preproc_warn_flag in '' yes
8160 # Use a header file that comes with gcc, so configuring glibc
8161 # with a fresh cross-compiler works.
8162 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 # <limits.h> exists even on freestanding compilers.
8164 # On the NeXT, cc -E runs the code through the compiler's parser,
8165 # not just through cpp. "Syntax error" is here to catch this case.
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8173 # include <limits.h>
8175 # include <assert.h>
8179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } >/dev/null; then
8187 if test -s conftest.err; then
8188 ac_cpp_err=$ac_cxx_preproc_warn_flag
8189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8196 if test -z "$ac_cpp_err"; then
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 # Broken: fails on valid input.
8205 rm -f conftest.err conftest.$ac_ext
8207 # OK, works on sane cases. Now check whether non-existent headers
8208 # can be detected and how.
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #include <ac_nonexistent.h>
8217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8220 grep -v '^ *+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } >/dev/null; then
8225 if test -s conftest.err; then
8226 ac_cpp_err=$ac_cxx_preproc_warn_flag
8227 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8234 if test -z "$ac_cpp_err"; then
8235 # Broken: success on invalid input.
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 # Passes both tests.
8245 rm -f conftest.err conftest.$ac_ext
8248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8249 rm -f conftest.err conftest.$ac_ext
8250 if $ac_preproc_ok; then
8255 ac_cv_prog_CXXCPP=$CXXCPP
8258 CXXCPP=$ac_cv_prog_CXXCPP
8260 ac_cv_prog_CXXCPP=$CXXCPP
8262 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8263 echo "${ECHO_T}$CXXCPP" >&6
8265 for ac_cxx_preproc_warn_flag in '' yes
8267 # Use a header file that comes with gcc, so configuring glibc
8268 # with a fresh cross-compiler works.
8269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 # <limits.h> exists even on freestanding compilers.
8271 # On the NeXT, cc -E runs the code through the compiler's parser,
8272 # not just through cpp. "Syntax error" is here to catch this case.
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8280 # include <limits.h>
8282 # include <assert.h>
8286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8289 grep -v '^ *+' conftest.er1 >conftest.err
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } >/dev/null; then
8294 if test -s conftest.err; then
8295 ac_cpp_err=$ac_cxx_preproc_warn_flag
8296 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8303 if test -z "$ac_cpp_err"; then
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 # Broken: fails on valid input.
8312 rm -f conftest.err conftest.$ac_ext
8314 # OK, works on sane cases. Now check whether non-existent headers
8315 # can be detected and how.
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <ac_nonexistent.h>
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1 >conftest.err
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } >/dev/null; then
8332 if test -s conftest.err; then
8333 ac_cpp_err=$ac_cxx_preproc_warn_flag
8334 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8341 if test -z "$ac_cpp_err"; then
8342 # Broken: success on invalid input.
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 # Passes both tests.
8352 rm -f conftest.err conftest.$ac_ext
8355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8356 rm -f conftest.err conftest.$ac_ext
8357 if $ac_preproc_ok; then
8360 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8361 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8362 _lt_caught_CXX_error=yes; }
8366 ac_cpp='$CPP $CPPFLAGS'
8367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372 _lt_caught_CXX_error=yes
8379 # This can be used to rebuild libtool when needed
8380 LIBTOOL_DEPS="$ltmain"
8382 # Always use our own libtool.
8383 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8409 test -z "$LN_S" && LN_S="ln -s"
8424 if test -n "${ZSH_VERSION+set}" ; then
8425 setopt NO_GLOB_SUBST
8428 echo "$as_me:$LINENO: checking for objdir" >&5
8429 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8430 if test "${lt_cv_objdir+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 rm -f .libs 2>/dev/null
8434 mkdir .libs 2>/dev/null
8435 if test -d .libs; then
8438 # MS-DOS does not allow filenames that begin with a dot.
8441 rmdir .libs 2>/dev/null
8443 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8444 echo "${ECHO_T}$lt_cv_objdir" >&6
8445 objdir=$lt_cv_objdir
8451 cat >>confdefs.h <<_ACEOF
8452 #define LT_OBJDIR "$lt_cv_objdir/"
8473 # AIX sometimes has problems with the GCC collect2 program. For some
8474 # reason, if we set the COLLECT_NAMES environment variable, the problems
8475 # vanish in a puff of smoke.
8476 if test "X${COLLECT_NAMES+set}" != Xset; then
8478 export COLLECT_NAMES
8483 # Sed substitution that helps us do robust quoting. It backslashifies
8484 # metacharacters that are still active within double-quoted strings.
8485 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8487 # Same as above, but do not quote variable references.
8488 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8490 # Sed substitution to delay expansion of an escaped shell variable in a
8491 # double_quote_subst'ed string.
8492 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8494 # Sed substitution to delay expansion of an escaped single quote.
8495 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8497 # Sed substitution to avoid accidental globbing in evaled expressions
8498 no_glob_subst='s/\*/\\\*/g'
8502 can_build_shared=yes
8504 # All known linkers require a `.a' archive for static linking (except MSVC,
8505 # which needs '.lib').
8508 with_gnu_ld="$lt_cv_prog_gnu_ld"
8511 old_CFLAGS="$CFLAGS"
8513 # Set sane defaults for various variables
8514 test -z "$CC" && CC=cc
8515 test -z "$LTCC" && LTCC=$CC
8516 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8517 test -z "$LD" && LD=ld
8518 test -z "$ac_objext" && ac_objext=o
8520 for cc_temp in $compiler""; do
8522 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8523 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8528 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8531 # Only perform the check for file, if the check method requires it
8532 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8533 case $deplibs_check_method in
8535 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8536 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8537 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8538 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8546 lt_save_MAGIC_CMD="$MAGIC_CMD"
8547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8548 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8549 for ac_dir in $ac_dummy; do
8551 test -z "$ac_dir" && ac_dir=.
8552 if test -f $ac_dir/${ac_tool_prefix}file; then
8553 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8554 if test -n "$file_magic_test_file"; then
8555 case $deplibs_check_method in
8557 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8558 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8559 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8560 $EGREP "$file_magic_regex" > /dev/null; then
8565 *** Warning: the command libtool uses to detect shared libraries,
8566 *** $file_magic_cmd, produces output that libtool cannot recognize.
8567 *** The result is that libtool may fail to recognize shared libraries
8568 *** as such. This will affect the creation of libtool libraries that
8569 *** depend on shared libraries, but programs linked with such libtool
8570 *** libraries will work regardless of this problem. Nevertheless, you
8571 *** may want to report the problem to your system manager and/or to
8572 *** bug-libtool@gnu.org
8582 MAGIC_CMD="$lt_save_MAGIC_CMD"
8587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8588 if test -n "$MAGIC_CMD"; then
8589 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8590 echo "${ECHO_T}$MAGIC_CMD" >&6
8592 echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6
8600 if test -z "$lt_cv_path_MAGIC_CMD"; then
8601 if test -n "$ac_tool_prefix"; then
8602 echo "$as_me:$LINENO: checking for file" >&5
8603 echo $ECHO_N "checking for file... $ECHO_C" >&6
8604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8612 lt_save_MAGIC_CMD="$MAGIC_CMD"
8613 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8615 for ac_dir in $ac_dummy; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f $ac_dir/file; then
8619 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8620 if test -n "$file_magic_test_file"; then
8621 case $deplibs_check_method in
8623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8624 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8626 $EGREP "$file_magic_regex" > /dev/null; then
8631 *** Warning: the command libtool uses to detect shared libraries,
8632 *** $file_magic_cmd, produces output that libtool cannot recognize.
8633 *** The result is that libtool may fail to recognize shared libraries
8634 *** as such. This will affect the creation of libtool libraries that
8635 *** depend on shared libraries, but programs linked with such libtool
8636 *** libraries will work regardless of this problem. Nevertheless, you
8637 *** may want to report the problem to your system manager and/or to
8638 *** bug-libtool@gnu.org
8648 MAGIC_CMD="$lt_save_MAGIC_CMD"
8653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8654 if test -n "$MAGIC_CMD"; then
8655 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8656 echo "${ECHO_T}$MAGIC_CMD" >&6
8658 echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6
8672 # Use C for the default configuration in the libtool script
8676 ac_cpp='$CPP $CPPFLAGS'
8677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8682 # Source file extension for C test sources.
8685 # Object file extension for compiled C test sources.
8689 # Code to be used in simple compile tests
8690 lt_simple_compile_test_code="int some_variable = 0;"
8692 # Code to be used in simple link tests
8693 lt_simple_link_test_code='int main(){return(0);}'
8701 # If no C compiler was specified, use CC.
8704 # If no C compiler flags were specified, use CFLAGS.
8705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8707 # Allow CC to be a program name with arguments.
8710 # Save the default compiler, since it gets overwritten when the other
8711 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8712 compiler_DEFAULT=$CC
8714 # save warnings/boilerplate of simple test code
8715 ac_outfile=conftest.$ac_objext
8716 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8718 _lt_compiler_boilerplate=`cat conftest.err`
8721 ac_outfile=conftest.$ac_objext
8722 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8724 _lt_linker_boilerplate=`cat conftest.err`
8729 ## There is no encapsulation within the following macros, do not change
8730 ## the running order or otherwise move them around unless you know exactly
8731 ## what you are doing...
8732 if test -n "$compiler"; then
8734 lt_prog_compiler_no_builtin_flag=
8736 if test "$GCC" = yes; then
8737 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8739 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8740 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8741 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 lt_cv_prog_compiler_rtti_exceptions=no
8745 ac_outfile=conftest.$ac_objext
8746 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8747 lt_compiler_flag="-fno-rtti -fno-exceptions"
8748 # Insert the option either (1) after the last *FLAGS variable, or
8749 # (2) before a word containing "conftest.", or (3) at the end.
8750 # Note that $ac_compile itself does not contain backslashes and begins
8751 # with a dollar sign (not a hyphen), so the echo should work correctly.
8752 # The option is referenced via a variable to avoid confusing sed.
8753 lt_compile=`echo "$ac_compile" | $SED \
8754 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8755 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8756 -e 's:$: $lt_compiler_flag:'`
8757 (eval echo "\"\$as_me:8757: $lt_compile\"" >&5)
8758 (eval "$lt_compile" 2>conftest.err)
8760 cat conftest.err >&5
8761 echo "$as_me:8761: \$? = $ac_status" >&5
8762 if (exit $ac_status) && test -s "$ac_outfile"; then
8763 # The compiler can only warn and ignore the option if not recognized
8764 # So say no if there are warnings other than the usual output.
8765 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8767 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8768 lt_cv_prog_compiler_rtti_exceptions=yes
8774 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8775 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8777 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8778 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8790 lt_prog_compiler_wl=
8791 lt_prog_compiler_pic=
8792 lt_prog_compiler_static=
8794 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8795 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8797 if test "$GCC" = yes; then
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_static='-static'
8803 # All AIX code is PIC.
8804 if test "$host_cpu" = ia64; then
8805 # AIX 5 now supports IA64 processor
8806 lt_prog_compiler_static='-Bstatic'
8811 if test "$host_cpu" = m68k; then
8812 # FIXME: we need at least 68020 code to build shared libraries, but
8813 # adding the `-m68020' flag to GCC prevents building anything better,
8815 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820 # PIC is the default for these OSes.
8823 mingw* | cygwin* | pw32* | os2*)
8824 # This hack is so that the source file can tell whether it is being
8825 # built for inclusion in a dll (and should export symbols for example).
8826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827 # (--disable-auto-import) libraries
8828 lt_prog_compiler_pic='-DDLL_EXPORT'
8831 darwin* | rhapsody*)
8832 # PIC is the default on this platform
8833 # Common symbols not allowed in MH_DYLIB files
8834 lt_prog_compiler_pic='-fno-common'
8838 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8845 lt_prog_compiler_pic='-fPIC'
8851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8852 # Instead, we relocate shared libraries at runtime.
8856 # Just because we use GCC doesn't mean we suddenly get shared libraries
8857 # on systems that don't support them.
8858 lt_prog_compiler_can_build_shared=no
8863 # QNX uses GNU C++, but need to define -shared option too, otherwise
8865 lt_prog_compiler_pic='-fPIC -shared'
8869 if test -d /usr/nec; then
8870 lt_prog_compiler_pic=-Kconform_pic
8875 lt_prog_compiler_pic='-fPIC'
8879 # PORTME Check for flag to pass linker flags through the system compiler.
8882 lt_prog_compiler_wl='-Wl,'
8883 if test "$host_cpu" = ia64; then
8884 # AIX 5 now supports IA64 processor
8885 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8891 # PIC is the default on this platform
8892 # Common symbols not allowed in MH_DYLIB files
8893 case $cc_basename in
8895 lt_prog_compiler_pic='-qnocommon'
8896 lt_prog_compiler_wl='-Wl,'
8901 mingw* | cygwin* | pw32* | os2*)
8902 # This hack is so that the source file can tell whether it is being
8903 # built for inclusion in a dll (and should export symbols for example).
8904 lt_prog_compiler_pic='-DDLL_EXPORT'
8907 hpux9* | hpux10* | hpux11*)
8908 lt_prog_compiler_wl='-Wl,'
8909 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8916 lt_prog_compiler_pic='+Z'
8919 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8920 lt_prog_compiler_static='${wl}-a ${wl}archive'
8923 irix5* | irix6* | nonstopux*)
8924 lt_prog_compiler_wl='-Wl,'
8925 # PIC (with -KPIC) is the default.
8926 lt_prog_compiler_static='-non_shared'
8929 linux* | k*bsd*-gnu)
8930 case $cc_basename in
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-static'
8936 pgcc* | pgf77* | pgf90* | pgf95*)
8937 # Portland Group compilers (*not* the Pentium gcc compiler,
8938 # which looks to be a dead project)
8939 lt_prog_compiler_wl='-Wl,'
8940 lt_prog_compiler_pic='-fpic'
8941 lt_prog_compiler_static='-Bstatic'
8944 lt_prog_compiler_wl='-Wl,'
8945 # All Alpha code is PIC.
8946 lt_prog_compiler_static='-non_shared'
8949 case `$CC -V 2>&1 | sed 5q` in
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8954 lt_prog_compiler_wl='-Wl,'
8957 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958 lt_prog_compiler_pic='-KPIC'
8959 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_wl=''
8968 lt_prog_compiler_pic='-KPIC'
8969 lt_prog_compiler_static='-Bstatic'
8973 # QNX uses GNU C++, but need to define -shared option too, otherwise
8975 lt_prog_compiler_pic='-fPIC -shared'
8978 osf3* | osf4* | osf5*)
8979 lt_prog_compiler_wl='-Wl,'
8980 # All OSF/1 code is PIC.
8981 lt_prog_compiler_static='-non_shared'
8985 lt_prog_compiler_static='-non_shared'
8989 lt_prog_compiler_pic='-KPIC'
8990 lt_prog_compiler_static='-Bstatic'
8991 case $cc_basename in
8993 lt_prog_compiler_wl='-Qoption ld ';;
8995 lt_prog_compiler_wl='-Wl,';;
9000 lt_prog_compiler_wl='-Qoption ld '
9001 lt_prog_compiler_pic='-PIC'
9002 lt_prog_compiler_static='-Bstatic'
9005 sysv4 | sysv4.2uw2* | sysv4.3*)
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_pic='-KPIC'
9008 lt_prog_compiler_static='-Bstatic'
9012 if test -d /usr/nec ;then
9013 lt_prog_compiler_pic='-Kconform_pic'
9014 lt_prog_compiler_static='-Bstatic'
9018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9019 lt_prog_compiler_wl='-Wl,'
9020 lt_prog_compiler_pic='-KPIC'
9021 lt_prog_compiler_static='-Bstatic'
9025 lt_prog_compiler_wl='-Wl,'
9026 lt_prog_compiler_can_build_shared=no
9030 lt_prog_compiler_pic='-pic'
9031 lt_prog_compiler_static='-Bstatic'
9035 lt_prog_compiler_can_build_shared=no
9041 # For platforms which do not support PIC, -DPIC is meaningless:
9043 lt_prog_compiler_pic=
9046 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9049 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9050 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9058 # Check to make sure the PIC flag actually works.
9060 if test -n "$lt_prog_compiler_pic"; then
9061 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9062 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9063 if test "${lt_prog_compiler_pic_works+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 lt_prog_compiler_pic_works=no
9067 ac_outfile=conftest.$ac_objext
9068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9070 # Insert the option either (1) after the last *FLAGS variable, or
9071 # (2) before a word containing "conftest.", or (3) at the end.
9072 # Note that $ac_compile itself does not contain backslashes and begins
9073 # with a dollar sign (not a hyphen), so the echo should work correctly.
9074 # The option is referenced via a variable to avoid confusing sed.
9075 lt_compile=`echo "$ac_compile" | $SED \
9076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078 -e 's:$: $lt_compiler_flag:'`
9079 (eval echo "\"\$as_me:9079: $lt_compile\"" >&5)
9080 (eval "$lt_compile" 2>conftest.err)
9082 cat conftest.err >&5
9083 echo "$as_me:9083: \$? = $ac_status" >&5
9084 if (exit $ac_status) && test -s "$ac_outfile"; then
9085 # The compiler can only warn and ignore the option if not recognized
9086 # So say no if there are warnings other than the usual output.
9087 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9088 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090 lt_prog_compiler_pic_works=yes
9096 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9097 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9099 if test x"$lt_prog_compiler_pic_works" = xyes; then
9100 case $lt_prog_compiler_pic in
9102 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_can_build_shared=no
9117 # Check to make sure the static flag actually works.
9119 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9120 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9121 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9122 if test "${lt_prog_compiler_static_works+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 lt_prog_compiler_static_works=no
9126 save_LDFLAGS="$LDFLAGS"
9127 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9128 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9129 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9130 # The linker can only warn and ignore the option if not recognized
9131 # So say no if there are warnings
9132 if test -s conftest.err; then
9133 # Append any errors to the config.log.
9134 cat conftest.err 1>&5
9135 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137 if diff conftest.exp conftest.er2 >/dev/null; then
9138 lt_prog_compiler_static_works=yes
9141 lt_prog_compiler_static_works=yes
9145 LDFLAGS="$save_LDFLAGS"
9148 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9149 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9151 if test x"$lt_prog_compiler_static_works" = xyes; then
9154 lt_prog_compiler_static=
9163 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9165 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 lt_cv_prog_compiler_c_o=no
9169 $RM -r conftest 2>/dev/null
9173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9175 lt_compiler_flag="-o out/conftest2.$ac_objext"
9176 # Insert the option either (1) after the last *FLAGS variable, or
9177 # (2) before a word containing "conftest.", or (3) at the end.
9178 # Note that $ac_compile itself does not contain backslashes and begins
9179 # with a dollar sign (not a hyphen), so the echo should work correctly.
9180 lt_compile=`echo "$ac_compile" | $SED \
9181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9183 -e 's:$: $lt_compiler_flag:'`
9184 (eval echo "\"\$as_me:9184: $lt_compile\"" >&5)
9185 (eval "$lt_compile" 2>out/conftest.err)
9187 cat out/conftest.err >&5
9188 echo "$as_me:9188: \$? = $ac_status" >&5
9189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9191 # The compiler can only warn and ignore the option if not recognized
9192 # So say no if there are warnings
9193 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9196 lt_cv_prog_compiler_c_o=yes
9201 # SGI C++ compiler will create directory out/ii_files/ for
9202 # template instantiation
9203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9204 $RM out/* && rmdir out
9210 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9218 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9219 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9220 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 lt_cv_prog_compiler_c_o=no
9224 $RM -r conftest 2>/dev/null
9228 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230 lt_compiler_flag="-o out/conftest2.$ac_objext"
9231 # Insert the option either (1) after the last *FLAGS variable, or
9232 # (2) before a word containing "conftest.", or (3) at the end.
9233 # Note that $ac_compile itself does not contain backslashes and begins
9234 # with a dollar sign (not a hyphen), so the echo should work correctly.
9235 lt_compile=`echo "$ac_compile" | $SED \
9236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9238 -e 's:$: $lt_compiler_flag:'`
9239 (eval echo "\"\$as_me:9239: $lt_compile\"" >&5)
9240 (eval "$lt_compile" 2>out/conftest.err)
9242 cat out/conftest.err >&5
9243 echo "$as_me:9243: \$? = $ac_status" >&5
9244 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9246 # The compiler can only warn and ignore the option if not recognized
9247 # So say no if there are warnings
9248 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9249 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9250 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9251 lt_cv_prog_compiler_c_o=yes
9256 # SGI C++ compiler will create directory out/ii_files/ for
9257 # template instantiation
9258 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9259 $RM out/* && rmdir out
9265 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9266 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9271 hard_links="nottested"
9272 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9273 # do not overwrite the value of need_locks provided by the user
9274 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9275 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9278 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9280 ln conftest.a conftest.b 2>&5 || hard_links=no
9281 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9282 echo "$as_me:$LINENO: result: $hard_links" >&5
9283 echo "${ECHO_T}$hard_links" >&6
9284 if test "$hard_links" = no; then
9285 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9286 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9298 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9299 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9302 allow_undefined_flag=
9303 always_export_symbols=no
9305 archive_expsym_cmds=
9306 compiler_needs_object=no
9307 enable_shared_with_static_runtimes=no
9308 export_dynamic_flag_spec=
9309 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9310 hardcode_automatic=no
9312 hardcode_direct_absolute=no
9313 hardcode_libdir_flag_spec=
9314 hardcode_libdir_flag_spec_ld=
9315 hardcode_libdir_separator=
9317 hardcode_shlibpath_var=unsupported
9319 link_all_deplibs=unknown
9322 old_archive_from_new_cmds=
9323 old_archive_from_expsyms_cmds=
9324 thread_safe_flag_spec=
9325 whole_archive_flag_spec=
9326 # include_expsyms should be a list of space-separated symbols to be *always*
9327 # included in the symbol list
9329 # exclude_expsyms can be an extended regexp of symbols to exclude
9330 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9331 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9332 # as well as any symbol that contains `d'.
9333 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9334 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9335 # platforms (ab)use it in PIC code, but their linkers get confused if
9336 # the symbol is explicitly referenced. Since portable code cannot
9337 # rely on this symbol name, it's probably fine to never include it in
9338 # preloaded symbol tables.
9339 extract_expsyms_cmds=
9342 cygwin* | mingw* | pw32*)
9343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 if test "$GCC" != yes; then
9351 # we just hope/assume this is gcc and not c89 (= MSVC++)
9360 if test "$with_gnu_ld" = yes; then
9361 # If archive_cmds runs LD, not CC, wlarc should be empty
9364 # Set some defaults for GNU ld with shared library support. These
9365 # are reset later if shared libraries are not supported. Putting them
9366 # here allows them to be overridden if necessary.
9367 runpath_var=LD_RUN_PATH
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 export_dynamic_flag_spec='${wl}--export-dynamic'
9370 # ancient GNU ld didn't support --whole-archive et. al.
9371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9372 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9374 whole_archive_flag_spec=
9376 supports_anon_versioning=no
9377 case `$LD -v 2>&1` in
9378 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9379 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9380 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9381 *\ 2.11.*) ;; # other 2.11 versions
9382 *) supports_anon_versioning=yes ;;
9385 # See if GNU ld supports shared libraries.
9388 # On AIX/PPC, the GNU linker is very broken
9389 if test "$host_cpu" != ia64; then
9393 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9394 *** to be unable to reliably create shared libraries on AIX.
9395 *** Therefore, libtool is disabling shared libraries support. If you
9396 *** really care for shared libraries, you may want to modify your PATH
9397 *** so that a non-GNU linker is found, and then restart.
9404 if test "$host_cpu" = m68k; then
9405 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)'
9406 hardcode_libdir_flag_spec='-L$libdir'
9407 hardcode_minus_L=yes
9410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9411 # that the semantics of dynamic libraries on AmigaOS, at least up
9412 # to version 4, is to share data among multiple programs linked
9413 # with the same dynamic library. Since this doesn't match the
9414 # behavior of shared libraries on other platforms, we can't use
9420 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9421 allow_undefined_flag=unsupported
9422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9423 # support --undefined. This deserves some investigation. FIXME
9424 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 cygwin* | mingw* | pw32*)
9431 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9432 # as there is no search path for DLLs.
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 allow_undefined_flag=unsupported
9435 always_export_symbols=no
9436 enable_shared_with_static_runtimes=yes
9437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9439 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9441 # If the export-symbols file already is a .def file (1st line
9442 # is EXPORTS), use it as is; otherwise, prepend...
9443 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9444 cp $export_symbols $output_objdir/$soname.def;
9446 echo EXPORTS > $output_objdir/$soname.def;
9447 cat $export_symbols >> $output_objdir/$soname.def;
9449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9457 hardcode_shlibpath_var=no
9458 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9459 export_dynamic_flag_spec='${wl}-E'
9460 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9461 # Instead, shared libraries are loaded at an image base (0x10000000 by
9462 # default) and relocated if they conflict, which is a slow very memory
9463 # consuming and fragmenting process. To avoid this, we pick a random,
9464 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9465 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9467 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'
9470 gnu* | linux* | tpf* | k*bsd*-gnu)
9472 if test "$host_os" = linux-dietlibc; then
9473 case $cc_basename in
9474 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9477 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9478 && test "$tmp_diet" = no
9481 case $cc_basename,$host_cpu in
9482 pgcc*) # Portland Group C compiler
9483 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'
9484 tmp_addflag=' $pic_flag'
9486 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9487 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'
9488 tmp_addflag=' $pic_flag -Mnomain' ;;
9489 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9490 tmp_addflag=' -i_dynamic' ;;
9491 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9492 tmp_addflag=' -i_dynamic -nofor_main' ;;
9493 ifc* | ifort*) # Intel Fortran compiler
9494 tmp_addflag=' -nofor_main' ;;
9496 case `$CC -V 2>&1 | sed 5q` in
9497 *Sun\ C*) # Sun C 5.9
9498 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'
9499 compiler_needs_object=yes
9500 tmp_sharedflag='-G' ;;
9501 *Sun\ F*) # Sun Fortran 8.3
9502 tmp_sharedflag='-G' ;;
9504 tmp_sharedflag='-shared' ;;
9506 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508 if test "x$supports_anon_versioning" = xyes; then
9509 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9510 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9511 echo "local: *; };" >> $output_objdir/$libname.ver~
9512 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9521 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9530 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9535 *** create shared libraries on Solaris systems. Therefore, libtool
9536 *** is disabling shared libraries support. We urge you to upgrade GNU
9537 *** binutils to release 2.9.1 or newer. Another option is to modify
9538 *** your PATH or compiler configuration so that the native linker is
9539 *** used, and then restart.
9542 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9551 case `$LD -v 2>&1` in
9552 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9556 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9557 *** reliably create shared libraries on SCO systems. Therefore, libtool
9558 *** is disabling shared libraries support. We urge you to upgrade GNU
9559 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9560 *** your PATH or compiler configuration so that the native linker is
9561 *** used, and then restart.
9566 # For security reasons, it is highly recommended that you always
9567 # use absolute paths for naming shared libraries, and exclude the
9568 # DT_RUNPATH tag from executables and libraries. But doing so
9569 # requires that you compile everything twice, which is a pain.
9570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_shlibpath_var=no
9589 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598 if test "$ld_shlibs" = no; then
9600 hardcode_libdir_flag_spec=
9601 export_dynamic_flag_spec=
9602 whole_archive_flag_spec=
9605 # PORTME fill in a description of your system's linker (not GNU ld)
9608 allow_undefined_flag=unsupported
9609 always_export_symbols=yes
9610 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'
9611 # Note: this linker hardcodes the directories in LIBPATH if there
9612 # are no directories specified by -L.
9613 hardcode_minus_L=yes
9614 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9615 # Neither direct hardcoding nor static linking is supported with a
9617 hardcode_direct=unsupported
9622 if test "$host_cpu" = ia64; then
9623 # On IA64, the linker does run time linking by default, so we don't
9624 # have to do anything special.
9625 aix_use_runtimelinking=no
9626 exp_sym_flag='-Bexport'
9629 # If we're using GNU nm, then we don't want the "-C" option.
9630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9631 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9632 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'
9634 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'
9636 aix_use_runtimelinking=no
9638 # Test if we are trying to use run time linking or normal
9639 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9640 # need to do runtime linking.
9641 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9642 for ld_flag in $LDFLAGS; do
9643 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9644 aix_use_runtimelinking=yes
9651 exp_sym_flag='-bexport'
9652 no_entry_flag='-bnoentry'
9655 # When large executables or shared objects are built, AIX ld can
9656 # have problems creating the table of contents. If linking a library
9657 # or program results in "error TOC overflow" add -mminimal-toc to
9658 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9659 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9663 hardcode_direct_absolute=yes
9664 hardcode_libdir_separator=':'
9665 link_all_deplibs=yes
9666 file_list_spec='${wl}-f,'
9668 if test "$GCC" = yes; then
9669 case $host_os in aix4.[012]|aix4.[012].*)
9670 # We only want to do this on AIX 4.2 and lower, the check
9671 # below for broken collect2 doesn't work under 4.3+
9672 collect2name=`${CC} -print-prog-name=collect2`
9673 if test -f "$collect2name" &&
9674 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9676 # We have reworked collect2
9679 # We have old collect2
9680 hardcode_direct=unsupported
9681 # It fails to find uninstalled libraries when the uninstalled
9682 # path is not listed in the libpath. Setting hardcode_minus_L
9683 # to unsupported forces relinking
9684 hardcode_minus_L=yes
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_libdir_separator=
9690 shared_flag='-shared'
9691 if test "$aix_use_runtimelinking" = yes; then
9692 shared_flag="$shared_flag "'${wl}-G'
9696 if test "$host_cpu" = ia64; then
9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698 # chokes on -Wl,-G. The following line is correct:
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag='${wl}-G'
9704 shared_flag='${wl}-bM:SRE'
9709 # It seems that -bexpall does not export symbols beginning with
9710 # underscore (_), so it is better to generate a list of symbols to export.
9711 always_export_symbols=yes
9712 if test "$aix_use_runtimelinking" = yes; then
9713 # Warning - without using the other runtime loading flags (-brtl),
9714 # -berok will link without error, but may produce a broken library.
9715 allow_undefined_flag='-berok'
9716 # Determine the default libpath from the value encoded in an
9718 if test x$gcc_no_link = xyes; then
9719 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9721 { (exit 1); exit 1; }; }
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9761 lt_aix_libpath_sed='
9762 /Import File Strings/,/^$/ {
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$aix_libpath"; then
9771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9778 rm -f conftest.err conftest.$ac_objext \
9779 conftest$ac_exeext conftest.$ac_ext
9780 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9782 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9783 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"
9785 if test "$host_cpu" = ia64; then
9786 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9787 allow_undefined_flag="-z nodefs"
9788 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"
9790 # Determine the default libpath from the value encoded in an
9792 if test x$gcc_no_link = xyes; then
9793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9795 { (exit 1); exit 1; }; }
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -z "$ac_c_werror_flag"
9822 || test ! -s conftest.err'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; }; then
9835 lt_aix_libpath_sed='
9836 /Import File Strings/,/^$/ {
9842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9843 # Check for a 64-bit object if we didn't find anything.
9844 if test -z "$aix_libpath"; then
9845 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9852 rm -f conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9857 # Warning - without using the other run time loading flags,
9858 # -berok will link without error, but may produce a broken library.
9859 no_undefined_flag=' ${wl}-bernotok'
9860 allow_undefined_flag=' ${wl}-berok'
9861 # Exported symbols can be pulled into shared objects from archives
9862 whole_archive_flag_spec='$convenience'
9863 archive_cmds_need_lc=yes
9864 # This is similar to how AIX traditionally builds its shared libraries.
9865 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'
9871 if test "$host_cpu" = m68k; then
9872 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)'
9873 hardcode_libdir_flag_spec='-L$libdir'
9874 hardcode_minus_L=yes
9876 # see comment about different semantics on the GNU ld section
9881 export_dynamic_flag_spec=-rdynamic
9884 cygwin* | mingw* | pw32*)
9885 # When not using gcc, we currently assume that we are using
9886 # Microsoft Visual C++.
9887 # hardcode_libdir_flag_spec is actually meaningless, as there is
9888 # no search path for DLLs.
9889 hardcode_libdir_flag_spec=' '
9890 allow_undefined_flag=unsupported
9891 # Tell ltmain to make .lib files, not .a files.
9893 # Tell ltmain to make .dll files, not .so files.
9895 # FIXME: Setting linknames here is a bad hack.
9896 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9897 # The linker will automatically build a .lib file if we build a DLL.
9898 old_archive_from_new_cmds='true'
9899 # FIXME: Should let the user specify the lib program.
9900 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9901 fix_srcfile_path='`cygpath -w "$srcfile"`'
9902 enable_shared_with_static_runtimes=yes
9905 darwin* | rhapsody*)
9907 rhapsody* | darwin1.[012])
9908 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9911 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9913 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9916 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9921 archive_cmds_need_lc=no
9923 hardcode_automatic=yes
9924 hardcode_shlibpath_var=unsupported
9925 whole_archive_flag_spec=''
9926 link_all_deplibs=yes
9927 if test "$GCC" = yes ; then
9928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 lt_cv_apple_cc_single_mod=no
9932 if test -z "${LT_MULTI_MODULE}"; then
9933 # By default we will add the -single_module flag. You can override
9934 # by either setting the environment variable LT_MULTI_MODULE
9935 # non-empty at configure time, or by adding -multi-module to the
9937 echo "int foo(void){return 1;}" > conftest.c
9938 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9939 -dynamiclib ${wl}-single_module conftest.c
9940 if test -f libconftest.dylib; then
9941 lt_cv_apple_cc_single_mod=yes
9942 rm libconftest.dylib
9948 output_verbose_link_cmd=echo
9949 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9950 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9951 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9953 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9954 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9956 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9957 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9959 case $cc_basename in
9961 output_verbose_link_cmd=echo
9962 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9963 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9964 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9965 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9966 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_libdir_flag_spec='-L$libdir'
9978 hardcode_shlibpath_var=no
9985 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9986 # support. Future versions do this automatically, but an explicit c++rt0.o
9987 # does not break anything, and helps significantly (at the cost of a little
9990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9991 hardcode_libdir_flag_spec='-R$libdir'
9993 hardcode_shlibpath_var=no
9996 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_minus_L=yes
10001 hardcode_shlibpath_var=no
10004 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10005 freebsd* | dragonfly*)
10006 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10007 hardcode_libdir_flag_spec='-R$libdir'
10008 hardcode_direct=yes
10009 hardcode_shlibpath_var=no
10013 if test "$GCC" = yes; then
10014 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'
10016 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'
10018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10019 hardcode_libdir_separator=:
10020 hardcode_direct=yes
10022 # hardcode_minus_L: Not really in the search PATH,
10023 # but as the default location of the library.
10024 hardcode_minus_L=yes
10025 export_dynamic_flag_spec='${wl}-E'
10029 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10030 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10034 if test "$with_gnu_ld" = no; then
10035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10036 hardcode_libdir_flag_spec_ld='+b $libdir'
10037 hardcode_libdir_separator=:
10038 hardcode_direct=yes
10039 hardcode_direct_absolute=yes
10040 export_dynamic_flag_spec='${wl}-E'
10041 # hardcode_minus_L: Not really in the search PATH,
10042 # but as the default location of the library.
10043 hardcode_minus_L=yes
10048 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10051 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10073 if test "$with_gnu_ld" = no; then
10074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075 hardcode_libdir_separator=:
10080 hardcode_shlibpath_var=no
10083 hardcode_direct=yes
10084 hardcode_direct_absolute=yes
10085 export_dynamic_flag_spec='${wl}-E'
10087 # hardcode_minus_L: Not really in the search PATH,
10088 # but as the default location of the library.
10089 hardcode_minus_L=yes
10095 irix5* | irix6* | nonstopux*)
10096 if test "$GCC" = yes; then
10097 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'
10098 # Try to use the -exported_symbol ld option, if it does not
10099 # work, assume that -exports_file does not work either and
10100 # implicitly export all symbols.
10101 save_LDFLAGS="$LDFLAGS"
10102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103 if test x$gcc_no_link = xyes; then
10104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10106 { (exit 1); exit 1; }; }
10108 cat >conftest.$ac_ext <<_ACEOF
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>conftest.er1
10115 grep -v '^ *+' conftest.er1 >conftest.err
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -z "$ac_c_werror_flag"
10121 || test ! -s conftest.err'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try='test -s conftest$ac_exeext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 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'
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10140 rm -f conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LDFLAGS="$save_LDFLAGS"
10144 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'
10145 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'
10147 archive_cmds_need_lc='no'
10148 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10149 hardcode_libdir_separator=:
10151 link_all_deplibs=yes
10155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10158 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10160 hardcode_libdir_flag_spec='-R$libdir'
10161 hardcode_direct=yes
10162 hardcode_shlibpath_var=no
10166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167 hardcode_direct=yes
10168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10169 hardcode_libdir_separator=:
10170 hardcode_shlibpath_var=no
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10179 hardcode_direct_absolute=yes
10180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184 export_dynamic_flag_spec='${wl}-E'
10187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_libdir_flag_spec='-R$libdir'
10192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_minus_L=yes
10202 allow_undefined_flag=unsupported
10203 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'
10204 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10208 if test "$GCC" = yes; then
10209 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10210 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'
10212 allow_undefined_flag=' -expect_unresolved \*'
10213 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'
10215 archive_cmds_need_lc='no'
10216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator=:
10220 osf4* | osf5*) # as osf3* with the addition of -msym flag
10221 if test "$GCC" = yes; then
10222 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10223 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'
10224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226 allow_undefined_flag=' -expect_unresolved \*'
10227 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'
10228 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~
10229 $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'
10231 # Both c and cxx compiler support -rpath directly
10232 hardcode_libdir_flag_spec='-rpath $libdir'
10234 archive_cmds_need_lc='no'
10235 hardcode_libdir_separator=:
10239 no_undefined_flag=' -z defs'
10240 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10244 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10246 case `$CC -V 2>&1` in
10249 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10251 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10255 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10257 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10261 hardcode_libdir_flag_spec='-R$libdir'
10262 hardcode_shlibpath_var=no
10264 solaris2.[0-5] | solaris2.[0-5].*) ;;
10266 # The compiler driver will combine and reorder linker options,
10267 # but understands `-z linker_flag'. GCC discards it without `$wl',
10268 # but is careful enough not to reorder.
10269 # Supported since Solaris 2.6 (maybe 2.5.1?)
10270 if test "$GCC" = yes; then
10271 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10273 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10277 link_all_deplibs=yes
10281 if test "x$host_vendor" = xsequent; then
10282 # Use $CC to link under sequent, because it throws in some extra .o
10283 # files that make .init and .fini sections work.
10284 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10288 hardcode_libdir_flag_spec='-L$libdir'
10289 hardcode_direct=yes
10290 hardcode_minus_L=yes
10291 hardcode_shlibpath_var=no
10295 case $host_vendor in
10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=yes # is this really true???
10301 ## LD is ld it makes a PLAMLIB
10302 ## CC just makes a GrossModule.
10303 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10304 reload_cmds='$CC -r -o $output$reload_objs'
10308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10312 runpath_var='LD_RUN_PATH'
10313 hardcode_shlibpath_var=no
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318 hardcode_shlibpath_var=no
10319 export_dynamic_flag_spec='-Bexport'
10323 if test -d /usr/nec; then
10324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325 hardcode_shlibpath_var=no
10326 runpath_var=LD_RUN_PATH
10327 hardcode_runpath_var=yes
10332 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10333 no_undefined_flag='${wl}-z,text'
10334 archive_cmds_need_lc=no
10335 hardcode_shlibpath_var=no
10336 runpath_var='LD_RUN_PATH'
10338 if test "$GCC" = yes; then
10339 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 sysv5* | sco3.2v5* | sco5v6*)
10348 # Note: We can NOT use -z defs as we might desire, because we do not
10349 # link with -lc, and that would cause any symbols used from libc to
10350 # always be unresolved, which means just about no library would
10351 # ever link correctly. If we're not using GNU ld we use -z text
10352 # though, which does catch some bad symbols but isn't as heavy-handed
10354 no_undefined_flag='${wl}-z,text'
10355 allow_undefined_flag='${wl}-z,nodefs'
10356 archive_cmds_need_lc=no
10357 hardcode_shlibpath_var=no
10358 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10359 hardcode_libdir_separator=':'
10360 link_all_deplibs=yes
10361 export_dynamic_flag_spec='${wl}-Bexport'
10362 runpath_var='LD_RUN_PATH'
10364 if test "$GCC" = yes; then
10365 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10366 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_libdir_flag_spec='-L$libdir'
10376 hardcode_shlibpath_var=no
10384 if test x$host_vendor = xsni; then
10386 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387 export_dynamic_flag_spec='${wl}-Blargedynsym'
10393 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10394 echo "${ECHO_T}$ld_shlibs" >&6
10395 test "$ld_shlibs" = no && can_build_shared=no
10397 with_gnu_ld=$with_gnu_ld
10414 # Do we need to explicitly link libc?
10416 case "x$archive_cmds_need_lc" in
10418 # Assume -lc should be added
10419 archive_cmds_need_lc=yes
10421 if test "$enable_shared" = yes && test "$GCC" = yes; then
10422 case $archive_cmds in
10424 # FIXME: we may have to deal with multi-command sequences.
10427 # Test whether the compiler implicitly links with -lc since on some
10428 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10429 # to ld, don't add -lc before -lgcc.
10430 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10431 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } 2>conftest.err; then
10442 libobjs=conftest.$ac_objext
10444 wl=$lt_prog_compiler_wl
10445 pic_flag=$lt_prog_compiler_pic
10451 lt_save_allow_undefined_flag=$allow_undefined_flag
10452 allow_undefined_flag=
10453 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10454 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }
10459 archive_cmds_need_lc=no
10461 archive_cmds_need_lc=yes
10463 allow_undefined_flag=$lt_save_allow_undefined_flag
10465 cat conftest.err 1>&5
10468 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10469 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10632 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10633 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10635 if test "$withGCC" = yes; then
10637 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10638 *) lt_awk_arg="/^libraries:/" ;;
10640 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10641 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10642 # if the path contains ";" then we assume it to be the separator
10643 # otherwise default to the standard path separator (i.e. ":") - it is
10644 # assumed that no part of a normal pathname contains ";" but that should
10645 # okay in the real world where ";" in dirpaths is itself problematic.
10646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10648 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10650 # Ok, now we have the path, separated by spaces, we can step through it
10651 # and add multilib dir if necessary.
10652 lt_tmp_lt_search_path_spec=
10653 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10654 for lt_sys_path in $lt_search_path_spec; do
10655 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10658 test -d "$lt_sys_path" && \
10659 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10662 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10663 BEGIN {RS=" "; FS="/|\n";} {
10666 for (lt_i = NF; lt_i > 0; lt_i--) {
10667 if ($lt_i != "" && $lt_i != ".") {
10668 if ($lt_i == "..") {
10671 if (lt_count == 0) {
10672 lt_foo="/" $lt_i lt_foo;
10679 if (lt_foo != "") { lt_freq[lt_foo]++; }
10680 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10682 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10686 library_names_spec=
10687 libname_spec='lib$name'
10691 postuninstall_cmds=
10695 shlibpath_overrides_runpath=unknown
10697 dynamic_linker="$host_os ld.so"
10698 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10699 need_lib_prefix=unknown
10700 hardcode_into_libs=no
10702 # when you set need_version to no, make sure it does not cause -set_version
10703 # flags to be left without arguments
10704 need_version=unknown
10709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10710 shlibpath_var=LIBPATH
10712 # AIX 3 has no versioning support, so we append a major version to the name.
10713 soname_spec='${libname}${release}${shared_ext}$major'
10720 hardcode_into_libs=yes
10721 if test "$host_cpu" = ia64; then
10722 # AIX 5 supports IA64
10723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10724 shlibpath_var=LD_LIBRARY_PATH
10726 # With GCC up to 2.95.x, collect2 would create an import file
10727 # for dependence libraries. The import file would start with
10728 # the line `#! .'. This would cause the generated library to
10729 # depend on `.', always an invalid library. This was fixed in
10730 # development snapshots of GCC prior to 3.0.
10732 aix4 | aix4.[01] | aix4.[01].*)
10733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10735 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10738 can_build_shared=no
10742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10743 # soname into executable. Probably we can add versioning support to
10744 # collect2, so additional links can be useful in future.
10745 if test "$aix_use_runtimelinking" = yes; then
10746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10747 # instead of lib<name>.a to let people know that these are not
10748 # typical AIX shared libraries.
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 # We preserve .a as extension for shared libraries through AIX4.2
10752 # and later when we are not doing run time linking.
10753 library_names_spec='${libname}${release}.a $libname.a'
10754 soname_spec='${libname}${release}${shared_ext}$major'
10756 shlibpath_var=LIBPATH
10761 if test "$host_cpu" = m68k; then
10762 library_names_spec='$libname.ixlibrary $libname.a'
10763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764 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'
10771 library_names_spec='${libname}${shared_ext}'
10772 dynamic_linker="$host_os ld.so"
10773 shlibpath_var=LIBRARY_PATH
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10784 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10785 # the default ld.so.conf also contains /usr/contrib/lib and
10786 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10787 # libtool to hard-code these into programs
10790 cygwin* | mingw* | pw32*)
10791 version_type=windows
10796 case $withGCC,$host_os in
10797 yes,cygwin* | yes,mingw* | yes,pw32*)
10798 library_names_spec='$libname.dll.a'
10799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10800 postinstall_cmds='base_file=`basename \${file}`~
10801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10802 dldir=$destdir/`dirname \$dlpath`~
10803 test -d \$dldir || mkdir -p \$dldir~
10804 $install_prog $dir/$dlname \$dldir/$dlname~
10805 chmod a+x \$dldir/$dlname~
10806 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10807 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10809 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10810 dlpath=$dir/\$dldll~
10812 shlibpath_overrides_runpath=yes
10816 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10821 # MinGW DLLs use traditional 'lib' prefix
10822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10823 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10824 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10825 # It is most probably a Windows format PATH printed by
10826 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10827 # path with ; separators, and with drive letters. We can handle the
10828 # drive letters (cygwin fileutils understands them), so leave them,
10829 # especially as we might pass files found there to a mingw objdump,
10830 # which wouldn't understand a cygwinified path. Ahh.
10831 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10833 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10837 # pw32 DLLs use 'pw' prefix rather than 'lib'
10838 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10844 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10847 dynamic_linker='Win32 ld.exe'
10848 # FIXME: first we should search . and the directory the executable is in
10852 darwin* | rhapsody*)
10853 dynamic_linker="$host_os dyld"
10854 version_type=darwin
10857 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10858 soname_spec='${libname}${release}${major}$shared_ext'
10859 shlibpath_overrides_runpath=yes
10860 shlibpath_var=DYLD_LIBRARY_PATH
10861 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10863 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10880 freebsd* | dragonfly*)
10881 # DragonFly does not have aout. When/if they implement a new
10882 # versioning mechanism, adjust this.
10883 if test -x /usr/bin/objformat; then
10884 objformat=`/usr/bin/objformat`
10887 freebsd[123]*) objformat=aout ;;
10888 *) objformat=elf ;;
10891 version_type=freebsd-$objformat
10892 case $version_type in
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10903 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=yes
10908 freebsd3.[01]* | freebsdelf3.[01]*)
10909 shlibpath_overrides_runpath=yes
10910 hardcode_into_libs=yes
10912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10914 shlibpath_overrides_runpath=no
10915 hardcode_into_libs=yes
10917 *) # from 4.6 on, and DragonFly
10918 shlibpath_overrides_runpath=yes
10919 hardcode_into_libs=yes
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LD_LIBRARY_PATH
10931 hardcode_into_libs=yes
10934 hpux9* | hpux10* | hpux11*)
10935 # Give a soname corresponding to the major version so that dld.sl refuses to
10936 # link against other versions.
10943 hardcode_into_libs=yes
10944 dynamic_linker="$host_os dld.so"
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 if test "X$HPUX_IA64_MODE" = X32; then
10950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.sl"
10960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=SHLIB_PATH
10971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10977 postinstall_cmds='chmod 555 $lib'
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=no
10989 hardcode_into_libs=yes
10992 irix5* | irix6* | nonstopux*)
10994 nonstopux*) version_type=nonstopux ;;
10996 if test "$lt_cv_prog_gnu_ld" = yes; then
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 irix5* | nonstopux*)
11008 libsuff= shlibsuff=
11011 case $LD in # libtool.m4 will add one of these switches to LD
11012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013 libsuff= shlibsuff= libmagic=32-bit;;
11014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015 libsuff=32 shlibsuff=N32 libmagic=N32;;
11016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018 *) libsuff= shlibsuff= libmagic=never-match;;
11022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023 shlibpath_overrides_runpath=no
11024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11026 hardcode_into_libs=yes
11029 # No shared lib support for Linux oldld, aout, or coff.
11030 linux*oldld* | linux*aout* | linux*coff*)
11034 # This must be Linux ELF.
11035 linux* | k*bsd*-gnu)
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=no
11044 # Some binutils ld are patched to set DT_RUNPATH
11045 save_LDFLAGS=$LDFLAGS
11046 save_libdir=$libdir
11047 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11048 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11049 if test x$gcc_no_link = xyes; then
11050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11052 { (exit 1); exit 1; }; }
11054 cat >conftest.$ac_ext <<_ACEOF
11057 cat confdefs.h >>conftest.$ac_ext
11058 cat >>conftest.$ac_ext <<_ACEOF
11059 /* end confdefs.h. */
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11092 shlibpath_overrides_runpath=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11100 rm -f conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LDFLAGS=$save_LDFLAGS
11103 libdir=$save_libdir
11105 # This implies no fast_install, which is unacceptable.
11106 # Some rework will be needed to allow for fast_install
11107 # before this can be enabled.
11108 hardcode_into_libs=yes
11110 # Append ld.so.conf contents to the search path
11111 if test -f /etc/ld.so.conf; then
11112 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11113 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11116 # We used to test for /lib/ld.so.1 and disable shared libraries on
11117 # powerpc, because MkLinux only supported shared libraries with the
11118 # GNU dynamic linker. Since this was broken with cross compilers,
11119 # most powerpc-linux boxes support dynamic linking these days and
11120 # people can always --disable-shared, the test was removed, and we
11121 # assume the GNU/Linux dynamic linker is in use.
11122 dynamic_linker='GNU/Linux ld.so'
11129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11132 dynamic_linker='NetBSD (a.out) ld.so'
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 dynamic_linker='NetBSD ld.elf_so'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 shlibpath_overrides_runpath=yes
11140 hardcode_into_libs=yes
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 shlibpath_overrides_runpath=no
11158 hardcode_into_libs=yes
11159 dynamic_linker='ldqnx.so'
11164 sys_lib_dlsearch_path_spec="/usr/lib"
11166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11169 *) need_version=no ;;
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11176 openbsd2.[89] | openbsd2.[89].*)
11177 shlibpath_overrides_runpath=no
11180 shlibpath_overrides_runpath=yes
11184 shlibpath_overrides_runpath=yes
11189 libname_spec='$name'
11192 library_names_spec='$libname${shared_ext} $libname.a'
11193 dynamic_linker='OS/2 ld.exe'
11194 shlibpath_var=LIBPATH
11197 osf3* | osf4* | osf5*)
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11217 soname_spec='${libname}${release}${shared_ext}$major'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=yes
11220 hardcode_into_libs=yes
11221 # ldd complains unless libraries are executable
11222 postinstall_cmds='chmod +x $lib'
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 shlibpath_overrides_runpath=yes
11231 if test "$with_gnu_ld" = yes; then
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 case $host_vendor in
11244 shlibpath_overrides_runpath=no
11246 runpath_var=LD_RUN_PATH
11254 shlibpath_overrides_runpath=no
11255 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11261 if test -d /usr/nec ;then
11263 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11264 soname_spec='$libname${shared_ext}.$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11269 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11270 version_type=freebsd-elf
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=yes
11277 hardcode_into_libs=yes
11278 if test "$with_gnu_ld" = yes; then
11279 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11281 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11284 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11288 sys_lib_dlsearch_path_spec='/usr/lib'
11292 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11296 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=no
11299 hardcode_into_libs=yes
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11313 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11314 echo "${ECHO_T}$dynamic_linker" >&6
11315 test "$dynamic_linker" = no && can_build_shared=no
11317 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11318 if test "$GCC" = yes; then
11319 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11411 if test -n "$hardcode_libdir_flag_spec" ||
11412 test -n "$runpath_var" ||
11413 test "X$hardcode_automatic" = "Xyes" ; then
11415 # We can hardcode non-existent directories.
11416 if test "$hardcode_direct" != no &&
11417 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11418 # have to relink, otherwise we might link with an installed library
11419 # when we should be linking with a yet-to-be-installed one
11420 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11421 test "$hardcode_minus_L" != no; then
11422 # Linking always hardcodes the temporary library directory.
11423 hardcode_action=relink
11425 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11426 hardcode_action=immediate
11429 # We cannot hardcode anything, or else we can only hardcode existing
11431 hardcode_action=unsupported
11433 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11434 echo "${ECHO_T}$hardcode_action" >&6
11436 if test "$hardcode_action" = relink ||
11437 test "$inherit_rpath" = yes; then
11438 # Fast installation is not supported
11439 enable_fast_install=no
11440 elif test "$shlibpath_overrides_runpath" = yes ||
11441 test "$enable_shared" = no; then
11442 # Fast installation is not necessary
11443 enable_fast_install=needless
11451 if test "x$enable_dlopen" != xyes; then
11452 enable_dlopen=unknown
11453 enable_dlopen_self=unknown
11454 enable_dlopen_self_static=unknown
11461 lt_cv_dlopen="load_add_on"
11463 lt_cv_dlopen_self=yes
11467 lt_cv_dlopen="LoadLibrary"
11472 lt_cv_dlopen="dlopen"
11477 # if libdl is installed we need to link against it
11478 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11479 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11480 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_check_lib_save_LIBS=$LIBS
11485 if test x$gcc_no_link = xyes; then
11486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11488 { (exit 1); exit 1; }; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11497 /* Override any gcc2 internal prototype to avoid an error. */
11501 /* We use char because int might match the return type of a gcc2
11502 builtin and then its argument prototype would still apply. */
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11516 grep -v '^ *+' conftest.er1 >conftest.err
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_c_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest$ac_exeext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_lib_dl_dlopen=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_cv_lib_dl_dlopen=no
11541 rm -f conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11547 if test $ac_cv_lib_dl_dlopen = yes; then
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11551 lt_cv_dlopen="dyld"
11553 lt_cv_dlopen_self=yes
11560 echo "$as_me:$LINENO: checking for shl_load" >&5
11561 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11562 if test "${ac_cv_func_shl_load+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 if test x$gcc_no_link = xyes; then
11566 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11568 { (exit 1); exit 1; }; }
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578 #define shl_load innocuous_shl_load
11580 /* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char shl_load (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11586 # include <limits.h>
11588 # include <assert.h>
11593 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11607 char (*f) () = shl_load;
11616 return f != shl_load;
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_func_shl_load=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_cv_func_shl_load=no
11650 rm -f conftest.err conftest.$ac_objext \
11651 conftest$ac_exeext conftest.$ac_ext
11653 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11654 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11655 if test $ac_cv_func_shl_load = yes; then
11656 lt_cv_dlopen="shl_load"
11658 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11659 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11660 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 ac_check_lib_save_LIBS=$LIBS
11665 if test x$gcc_no_link = xyes; then
11666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11668 { (exit 1); exit 1; }; }
11670 cat >conftest.$ac_ext <<_ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h. */
11677 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -z "$ac_c_werror_flag"
11702 || test ! -s conftest.err'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_cv_lib_dld_shl_load=yes
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 ac_cv_lib_dld_shl_load=no
11721 rm -f conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11725 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11726 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11727 if test $ac_cv_lib_dld_shl_load = yes; then
11728 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11730 echo "$as_me:$LINENO: checking for dlopen" >&5
11731 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11732 if test "${ac_cv_func_dlopen+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 if test x$gcc_no_link = xyes; then
11736 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11738 { (exit 1); exit 1; }; }
11740 cat >conftest.$ac_ext <<_ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11748 #define dlopen innocuous_dlopen
11750 /* System header to define __stub macros and hopefully few prototypes,
11751 which can conflict with char dlopen (); below.
11752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11753 <limits.h> exists even on freestanding compilers. */
11756 # include <limits.h>
11758 # include <assert.h>
11763 /* Override any gcc2 internal prototype to avoid an error. */
11768 /* We use char because int might match the return type of a gcc2
11769 builtin and then its argument prototype would still apply. */
11771 /* The GNU C library defines this for functions which it implements
11772 to always fail with ENOSYS. Some functions are actually named
11773 something starting with __ and the normal name is an alias. */
11774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11777 char (*f) () = dlopen;
11786 return f != dlopen;
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11793 (eval $ac_link) 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest$ac_exeext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_func_dlopen=yes
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_cv_func_dlopen=no
11820 rm -f conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
11823 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11824 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11825 if test $ac_cv_func_dlopen = yes; then
11826 lt_cv_dlopen="dlopen"
11828 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11829 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11830 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 ac_check_lib_save_LIBS=$LIBS
11835 if test x$gcc_no_link = xyes; then
11836 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11838 { (exit 1); exit 1; }; }
11840 cat >conftest.$ac_ext <<_ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11847 /* Override any gcc2 internal prototype to avoid an error. */
11851 /* We use char because int might match the return type of a gcc2
11852 builtin and then its argument prototype would still apply. */
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag"
11872 || test ! -s conftest.err'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } &&
11878 { ac_try='test -s conftest$ac_exeext'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; }; then
11884 ac_cv_lib_dl_dlopen=yes
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_cv_lib_dl_dlopen=no
11891 rm -f conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11895 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11896 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11897 if test $ac_cv_lib_dl_dlopen = yes; then
11898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11900 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11901 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11902 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
11905 ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-lsvld $LIBS"
11907 if test x$gcc_no_link = xyes; then
11908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11910 { (exit 1); exit 1; }; }
11912 cat >conftest.$ac_ext <<_ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11919 /* Override any gcc2 internal prototype to avoid an error. */
11923 /* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936 (eval $ac_link) 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag"
11944 || test ! -s conftest.err'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }; then
11956 ac_cv_lib_svld_dlopen=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_lib_svld_dlopen=no
11963 rm -f conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11967 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11968 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11969 if test $ac_cv_lib_svld_dlopen = yes; then
11970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11972 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11973 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11974 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 ac_check_lib_save_LIBS=$LIBS
11979 if test x$gcc_no_link = xyes; then
11980 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11982 { (exit 1); exit 1; }; }
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11991 /* Override any gcc2 internal prototype to avoid an error. */
11995 /* We use char because int might match the return type of a gcc2
11996 builtin and then its argument prototype would still apply. */
12006 rm -f conftest.$ac_objext conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_lib_dld_dld_link=yes
12030 echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12033 ac_cv_lib_dld_dld_link=no
12035 rm -f conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12040 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12041 if test $ac_cv_lib_dld_dld_link = yes; then
12042 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12063 if test "x$lt_cv_dlopen" != xno; then
12069 case $lt_cv_dlopen in
12071 save_CPPFLAGS="$CPPFLAGS"
12072 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12074 save_LDFLAGS="$LDFLAGS"
12075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12078 LIBS="$lt_cv_dlopen_libs $LIBS"
12080 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12081 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12082 if test "${lt_cv_dlopen_self+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 if test "$cross_compiling" = yes; then :
12086 lt_cv_dlopen_self=cross
12088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12089 lt_status=$lt_dlunknown
12090 cat > conftest.$ac_ext <<_LT_EOF
12091 #line 12091 "configure"
12092 #include "confdefs.h"
12101 # define LT_DLGLOBAL RTLD_GLOBAL
12104 # define LT_DLGLOBAL DL_GLOBAL
12106 # define LT_DLGLOBAL 0
12110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12111 find out it does not work in some platform. */
12112 #ifndef LT_DLLAZY_OR_NOW
12114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12117 # define LT_DLLAZY_OR_NOW DL_LAZY
12120 # define LT_DLLAZY_OR_NOW RTLD_NOW
12123 # define LT_DLLAZY_OR_NOW DL_NOW
12125 # define LT_DLLAZY_OR_NOW 0
12133 extern "C" void exit (int);
12136 void fnord() { int i=42;}
12139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12140 int status = $lt_dlunknown;
12144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 /* dlclose (self); */
12154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12159 (./conftest; exit; ) >&5 2>/dev/null
12161 case x$lt_status in
12162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12167 # compilation failed
12168 lt_cv_dlopen_self=no
12175 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12176 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12178 if test "x$lt_cv_dlopen_self" = xyes; then
12179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12180 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12181 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12182 if test "${lt_cv_dlopen_self_static+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 if test "$cross_compiling" = yes; then :
12186 lt_cv_dlopen_self_static=cross
12188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12189 lt_status=$lt_dlunknown
12190 cat > conftest.$ac_ext <<_LT_EOF
12191 #line 12191 "configure"
12192 #include "confdefs.h"
12201 # define LT_DLGLOBAL RTLD_GLOBAL
12204 # define LT_DLGLOBAL DL_GLOBAL
12206 # define LT_DLGLOBAL 0
12210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12211 find out it does not work in some platform. */
12212 #ifndef LT_DLLAZY_OR_NOW
12214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12217 # define LT_DLLAZY_OR_NOW DL_LAZY
12220 # define LT_DLLAZY_OR_NOW RTLD_NOW
12223 # define LT_DLLAZY_OR_NOW DL_NOW
12225 # define LT_DLLAZY_OR_NOW 0
12233 extern "C" void exit (int);
12236 void fnord() { int i=42;}
12239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12240 int status = $lt_dlunknown;
12244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12245 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12246 /* dlclose (self); */
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255 (eval $ac_link) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12259 (./conftest; exit; ) >&5 2>/dev/null
12261 case x$lt_status in
12262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12267 # compilation failed
12268 lt_cv_dlopen_self_static=no
12275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12279 CPPFLAGS="$save_CPPFLAGS"
12280 LDFLAGS="$save_LDFLAGS"
12285 case $lt_cv_dlopen_self in
12286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12287 *) enable_dlopen_self=unknown ;;
12290 case $lt_cv_dlopen_self_static in
12291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12292 *) enable_dlopen_self_static=unknown ;;
12314 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12315 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12319 echo "$as_me:$LINENO: result: yes" >&5
12320 echo "${ECHO_T}yes" >&6
12322 # FIXME - insert some real tests, host_os isn't really good enough
12325 if test -n "$STRIP" ; then
12326 striplib="$STRIP -x"
12327 old_striplib="$STRIP -S"
12328 echo "$as_me:$LINENO: result: yes" >&5
12329 echo "${ECHO_T}yes" >&6
12331 echo "$as_me:$LINENO: result: no" >&5
12332 echo "${ECHO_T}no" >&6
12336 echo "$as_me:$LINENO: result: no" >&5
12337 echo "${ECHO_T}no" >&6
12353 # Report which library types will actually be built
12354 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12355 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12356 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12357 echo "${ECHO_T}$can_build_shared" >&6
12359 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12360 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12361 test "$can_build_shared" = "no" && enable_shared=no
12363 # On AIX, shared libraries and static libraries use the same namespace, and
12364 # are all built from PIC.
12367 test "$enable_shared" = yes && enable_static=no
12368 if test -n "$RANLIB"; then
12369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12370 postinstall_cmds='$RANLIB $lib'
12375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12376 test "$enable_shared" = yes && enable_static=no
12380 echo "$as_me:$LINENO: result: $enable_shared" >&5
12381 echo "${ECHO_T}$enable_shared" >&6
12383 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12384 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12385 # Make sure either enable_shared or enable_static is yes.
12386 test "$enable_shared" = yes || enable_static=yes
12387 echo "$as_me:$LINENO: result: $enable_static" >&5
12388 echo "${ECHO_T}$enable_static" >&6
12395 ac_cpp='$CPP $CPPFLAGS'
12396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12404 ac_cpp='$CXXCPP $CPPFLAGS'
12405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12409 archive_cmds_need_lc_CXX=no
12410 allow_undefined_flag_CXX=
12411 always_export_symbols_CXX=no
12412 archive_expsym_cmds_CXX=
12413 compiler_needs_object_CXX=no
12414 export_dynamic_flag_spec_CXX=
12415 hardcode_direct_CXX=no
12416 hardcode_direct_absolute_CXX=no
12417 hardcode_libdir_flag_spec_CXX=
12418 hardcode_libdir_flag_spec_ld_CXX=
12419 hardcode_libdir_separator_CXX=
12420 hardcode_minus_L_CXX=no
12421 hardcode_shlibpath_var_CXX=unsupported
12422 hardcode_automatic_CXX=no
12423 inherit_rpath_CXX=no
12425 module_expsym_cmds_CXX=
12426 link_all_deplibs_CXX=unknown
12427 old_archive_cmds_CXX=$old_archive_cmds
12428 no_undefined_flag_CXX=
12429 whole_archive_flag_spec_CXX=
12430 enable_shared_with_static_runtimes_CXX=no
12432 # Source file extension for C++ test sources.
12435 # Object file extension for compiled C++ test sources.
12439 # No sense in running all these tests if we already determined that
12440 # the CXX compiler isn't working. Some variables (like enable_shared)
12441 # are currently assumed to apply to all compilers on this platform,
12442 # and will be corrupted by setting them based on a non-working compiler.
12443 if test "$_lt_caught_CXX_error" != yes; then
12444 # Code to be used in simple compile tests
12445 lt_simple_compile_test_code="int some_variable = 0;"
12447 # Code to be used in simple link tests
12448 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12457 # If no C compiler was specified, use CC.
12460 # If no C compiler flags were specified, use CFLAGS.
12461 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12463 # Allow CC to be a program name with arguments.
12467 # save warnings/boilerplate of simple test code
12468 ac_outfile=conftest.$ac_objext
12469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12471 _lt_compiler_boilerplate=`cat conftest.err`
12474 ac_outfile=conftest.$ac_objext
12475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12477 _lt_linker_boilerplate=`cat conftest.err`
12481 # Allow CC to be a program name with arguments.
12486 lt_save_with_gnu_ld=$with_gnu_ld
12487 lt_save_path_LD=$lt_cv_path_LD
12488 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12489 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12491 $as_unset lt_cv_prog_gnu_ld
12493 if test -n "${lt_cv_path_LDCXX+set}"; then
12494 lt_cv_path_LD=$lt_cv_path_LDCXX
12496 $as_unset lt_cv_path_LD
12498 test -z "${LDCXX+set}" || LD=$LDCXX
12502 for cc_temp in $compiler""; do
12504 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12505 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12510 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12513 if test -n "$compiler"; then
12514 # We don't want -fno-exception when compiling C++ code, so set the
12515 # no_builtin_flag separately
12516 if test "$GXX" = yes; then
12517 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12519 lt_prog_compiler_no_builtin_flag_CXX=
12522 if test "$GXX" = yes; then
12523 # Set up default GNU C++ configuration
12527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12528 if test "${with_gnu_ld+set}" = set; then
12529 withval="$with_gnu_ld"
12530 test "$withval" = no || with_gnu_ld=yes
12535 if test "$GCC" = yes; then
12536 # Check if gcc -print-prog-name=ld gives a path.
12537 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12538 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12541 # gcc leaves a trailing carriage return which upsets mingw
12542 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12544 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12547 # Accept absolute paths.
12549 re_direlt='/[^/][^/]*/\.\./'
12550 # Canonicalize the pathname of ld
12551 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12552 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12553 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12555 test -z "$LD" && LD="$ac_prog"
12558 # If it fails, then pretend we aren't using GCC.
12562 # If it is relative, then search for the first ld in PATH.
12563 with_gnu_ld=unknown
12566 elif test "$with_gnu_ld" = yes; then
12567 echo "$as_me:$LINENO: checking for GNU ld" >&5
12568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12570 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12573 if test "${lt_cv_path_LD+set}" = set; then
12574 echo $ECHO_N "(cached) $ECHO_C" >&6
12576 if test -z "$LD"; then
12577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12578 for ac_dir in $PATH; do
12580 test -z "$ac_dir" && ac_dir=.
12581 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12582 lt_cv_path_LD="$ac_dir/$ac_prog"
12583 # Check to see if the program is GNU ld. I'd rather use --version,
12584 # but apparently some variants of GNU ld only accept -v.
12585 # Break only if it was the GNU/non-GNU ld that we prefer.
12586 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12587 *GNU* | *'with BFD'*)
12588 test "$with_gnu_ld" != no && break
12591 test "$with_gnu_ld" != yes && break
12598 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12602 LD="$lt_cv_path_LD"
12603 if test -n "$LD"; then
12604 echo "$as_me:$LINENO: result: $LD" >&5
12605 echo "${ECHO_T}$LD" >&6
12607 echo "$as_me:$LINENO: result: no" >&5
12608 echo "${ECHO_T}no" >&6
12610 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12611 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12612 { (exit 1); exit 1; }; }
12613 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12614 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12615 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12619 case `$LD -v 2>&1 </dev/null` in
12620 *GNU* | *'with BFD'*)
12621 lt_cv_prog_gnu_ld=yes
12624 lt_cv_prog_gnu_ld=no
12628 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12629 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12630 with_gnu_ld=$lt_cv_prog_gnu_ld
12638 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12639 # archiving commands below assume that GNU ld is being used.
12640 if test "$with_gnu_ld" = yes; then
12641 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12642 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'
12644 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12647 # If archive_cmds runs LD, not CC, wlarc should be empty
12648 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12649 # investigate it a little bit more. (MM)
12652 # ancient GNU ld didn't support --whole-archive et. al.
12653 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12654 $GREP 'no-whole-archive' > /dev/null; then
12655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12657 whole_archive_flag_spec_CXX=
12663 # A generic and very simple default shared library creation
12664 # command for GNU C++ for the case where it uses the native
12665 # linker, instead of GNU ld. If possible, this setting should
12666 # overridden to take advantage of the native linker features on
12667 # the platform it is being used on.
12668 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12671 # Commands to make compiler produce verbose output that lists
12672 # what "hidden" libraries, object files and flags are used when
12673 # linking a shared library.
12674 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12682 # PORTME: fill in a description of your system's C++ link characteristics
12683 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12688 # FIXME: insert proper C++ library support
12692 if test "$host_cpu" = ia64; then
12693 # On IA64, the linker does run time linking by default, so we don't
12694 # have to do anything special.
12695 aix_use_runtimelinking=no
12696 exp_sym_flag='-Bexport'
12699 aix_use_runtimelinking=no
12701 # Test if we are trying to use run time linking or normal
12702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12703 # need to do runtime linking.
12704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12705 for ld_flag in $LDFLAGS; do
12708 aix_use_runtimelinking=yes
12716 exp_sym_flag='-bexport'
12717 no_entry_flag='-bnoentry'
12720 # When large executables or shared objects are built, AIX ld can
12721 # have problems creating the table of contents. If linking a library
12722 # or program results in "error TOC overflow" add -mminimal-toc to
12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12726 archive_cmds_CXX=''
12727 hardcode_direct_CXX=yes
12728 hardcode_direct_absolute_CXX=yes
12729 hardcode_libdir_separator_CXX=':'
12730 link_all_deplibs_CXX=yes
12731 file_list_spec_CXX='${wl}-f,'
12733 if test "$GXX" = yes; then
12734 case $host_os in aix4.[012]|aix4.[012].*)
12735 # We only want to do this on AIX 4.2 and lower, the check
12736 # below for broken collect2 doesn't work under 4.3+
12737 collect2name=`${CC} -print-prog-name=collect2`
12738 if test -f "$collect2name" &&
12739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12741 # We have reworked collect2
12744 # We have old collect2
12745 hardcode_direct_CXX=unsupported
12746 # It fails to find uninstalled libraries when the uninstalled
12747 # path is not listed in the libpath. Setting hardcode_minus_L
12748 # to unsupported forces relinking
12749 hardcode_minus_L_CXX=yes
12750 hardcode_libdir_flag_spec_CXX='-L$libdir'
12751 hardcode_libdir_separator_CXX=
12754 shared_flag='-shared'
12755 if test "$aix_use_runtimelinking" = yes; then
12756 shared_flag="$shared_flag "'${wl}-G'
12760 if test "$host_cpu" = ia64; then
12761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12762 # chokes on -Wl,-G. The following line is correct:
12765 if test "$aix_use_runtimelinking" = yes; then
12766 shared_flag='${wl}-G'
12768 shared_flag='${wl}-bM:SRE'
12773 # It seems that -bexpall does not export symbols beginning with
12774 # underscore (_), so it is better to generate a list of symbols to
12776 always_export_symbols_CXX=yes
12777 if test "$aix_use_runtimelinking" = yes; then
12778 # Warning - without using the other runtime loading flags (-brtl),
12779 # -berok will link without error, but may produce a broken library.
12780 allow_undefined_flag_CXX='-berok'
12781 # Determine the default libpath from the value encoded in an empty
12783 if test x$gcc_no_link = xyes; then
12784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12786 { (exit 1); exit 1; }; }
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_cxx_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12826 lt_aix_libpath_sed='
12827 /Import File Strings/,/^$/ {
12833 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12834 # Check for a 64-bit object if we didn't find anything.
12835 if test -z "$aix_libpath"; then
12836 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12839 echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12843 rm -f conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12847 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12849 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"
12851 if test "$host_cpu" = ia64; then
12852 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12853 allow_undefined_flag_CXX="-z nodefs"
12854 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"
12856 # Determine the default libpath from the value encoded in an
12857 # empty executable.
12858 if test x$gcc_no_link = xyes; then
12859 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12861 { (exit 1); exit 1; }; }
12863 cat >conftest.$ac_ext <<_ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h. */
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12880 (eval $ac_link) 2>conftest.er1
12882 grep -v '^ *+' conftest.er1 >conftest.err
12884 cat conftest.err >&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } &&
12887 { ac_try='test -z "$ac_cxx_werror_flag"
12888 || test ! -s conftest.err'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; } &&
12894 { ac_try='test -s conftest$ac_exeext'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12901 lt_aix_libpath_sed='
12902 /Import File Strings/,/^$/ {
12908 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12909 # Check for a 64-bit object if we didn't find anything.
12910 if test -z "$aix_libpath"; then
12911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12918 rm -f conftest.err conftest.$ac_objext \
12919 conftest$ac_exeext conftest.$ac_ext
12920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12923 # Warning - without using the other run time loading flags,
12924 # -berok will link without error, but may produce a broken library.
12925 no_undefined_flag_CXX=' ${wl}-bernotok'
12926 allow_undefined_flag_CXX=' ${wl}-berok'
12927 # Exported symbols can be pulled into shared objects from archives
12928 whole_archive_flag_spec_CXX='$convenience'
12929 archive_cmds_need_lc_CXX=yes
12930 # This is similar to how AIX traditionally builds its shared
12932 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'
12938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12939 allow_undefined_flag_CXX=unsupported
12940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12941 # support --undefined. This deserves some investigation. FIXME
12942 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 case $cc_basename in
12951 # FIXME: insert proper C++ library support
12957 cygwin* | mingw* | pw32*)
12958 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12959 # as there is no search path for DLLs.
12960 hardcode_libdir_flag_spec_CXX='-L$libdir'
12961 allow_undefined_flag_CXX=unsupported
12962 always_export_symbols_CXX=no
12963 enable_shared_with_static_runtimes_CXX=yes
12965 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12966 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'
12967 # If the export-symbols file already is a .def file (1st line
12968 # is EXPORTS), use it as is; otherwise, prepend...
12969 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12970 cp $export_symbols $output_objdir/$soname.def;
12972 echo EXPORTS > $output_objdir/$soname.def;
12973 cat $export_symbols >> $output_objdir/$soname.def;
12975 $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'
12980 darwin* | rhapsody*)
12982 rhapsody* | darwin1.[012])
12983 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12986 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12988 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12991 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12996 archive_cmds_need_lc_CXX=no
12997 hardcode_direct_CXX=no
12998 hardcode_automatic_CXX=yes
12999 hardcode_shlibpath_var_CXX=unsupported
13000 whole_archive_flag_spec_CXX=''
13001 link_all_deplibs_CXX=yes
13003 if test "$GXX" = yes ; then
13004 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 lt_cv_apple_cc_single_mod=no
13008 if test -z "${LT_MULTI_MODULE}"; then
13009 # By default we will add the -single_module flag. You can override
13010 # by either setting the environment variable LT_MULTI_MODULE
13011 # non-empty at configure time, or by adding -multi-module to the
13013 echo "int foo(void){return 1;}" > conftest.c
13014 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13015 -dynamiclib ${wl}-single_module conftest.c
13016 if test -f libconftest.dylib; then
13017 lt_cv_apple_cc_single_mod=yes
13018 rm libconftest.dylib
13020 rm conftest.$ac_ext
13024 output_verbose_link_cmd=echo
13025 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13026 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13027 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13029 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'
13030 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13032 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13033 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13035 case $cc_basename in
13037 output_verbose_link_cmd=echo
13038 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
13039 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13040 # Don't fix this by using the ld -exported_symbols_list flag,
13041 # it doesn't exist in older darwin lds
13042 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13043 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13053 case $cc_basename in
13055 # FIXME: insert proper C++ library support
13059 # Green Hills C++ Compiler
13060 # FIXME: insert proper C++ library support
13064 # FIXME: insert proper C++ library support
13071 # C++ shared libraries reported to be fairly broken before
13077 archive_cmds_need_lc_CXX=no
13080 freebsd* | dragonfly*)
13081 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13090 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13091 hardcode_libdir_separator_CXX=:
13092 export_dynamic_flag_spec_CXX='${wl}-E'
13093 hardcode_direct_CXX=yes
13094 hardcode_minus_L_CXX=yes # Not in the search PATH,
13095 # but as the default
13096 # location of the library.
13098 case $cc_basename in
13100 # FIXME: insert proper C++ library support
13104 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'
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13113 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'
13116 if test "$GXX" = yes; then
13117 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'
13119 # FIXME: insert proper C++ library support
13127 if test $with_gnu_ld = no; then
13128 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13129 hardcode_libdir_separator_CXX=:
13135 export_dynamic_flag_spec_CXX='${wl}-E'
13141 hardcode_direct_CXX=no
13142 hardcode_shlibpath_var_CXX=no
13145 hardcode_direct_CXX=yes
13146 hardcode_direct_absolute_CXX=yes
13147 hardcode_minus_L_CXX=yes # Not in the search PATH,
13148 # but as the default
13149 # location of the library.
13153 case $cc_basename in
13155 # FIXME: insert proper C++ library support
13161 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13164 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170 # Commands to make compiler produce verbose output that lists
13171 # what "hidden" libraries, object files and flags are used when
13172 # linking a shared library.
13174 # There doesn't appear to be a way to prevent this compiler from
13175 # explicitly linking system object files so we need to strip them
13176 # from the output so that they don't get included in the library
13178 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'
13181 if test "$GXX" = yes; then
13182 if test $with_gnu_ld = no; then
13185 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13188 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 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'
13196 # FIXME: insert proper C++ library support
13204 hardcode_direct_CXX=no
13205 hardcode_shlibpath_var_CXX=no
13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13207 export_dynamic_flag_spec_CXX='${wl}-E'
13208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209 # Instead, shared libraries are loaded at an image base (0x10000000 by
13210 # default) and relocated if they conflict, which is a slow very memory
13211 # consuming and fragmenting process. To avoid this, we pick a random,
13212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13214 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'
13215 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'
13218 case $cc_basename in
13221 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'
13223 # Archives containing C++ object files must be created using
13224 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13225 # necessary to make sure instantiated templates are included
13227 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13230 if test "$GXX" = yes; then
13231 if test "$with_gnu_ld" = no; then
13232 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'
13234 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'
13237 link_all_deplibs_CXX=yes
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241 hardcode_libdir_separator_CXX=:
13242 inherit_rpath_CXX=yes
13245 linux* | k*bsd*-gnu)
13246 case $cc_basename in
13248 # Kuck and Associates, Inc. (KAI) C++ Compiler
13250 # KCC will only create a shared library if the output file
13251 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13252 # to its proper name (with version) after linking.
13253 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'
13254 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'
13255 # Commands to make compiler produce verbose output that lists
13256 # what "hidden" libraries, object files and flags are used when
13257 # linking a shared library.
13259 # There doesn't appear to be a way to prevent this compiler from
13260 # explicitly linking system object files so we need to strip them
13261 # from the output so that they don't get included in the library
13263 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'
13265 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13268 # Archives containing C++ object files must be created using
13269 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13270 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13275 # version 8.0 and above of icpc choke on multiply defined symbols
13276 # if we add $predep_objects and $postdep_objects, however 7.1 and
13277 # earlier do not add the objects themselves.
13278 case `$CC -V 2>&1` in
13280 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13281 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'
13283 *) # Version 8.0 or newer
13286 ia64*) tmp_idyn=' -i_dynamic';;
13288 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 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'
13292 archive_cmds_need_lc_CXX=no
13293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13298 # Portland Group C++ compiler
13301 prelink_cmds_CXX='tpldir=Template.dir~
13303 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13304 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13305 old_archive_cmds_CXX='tpldir=Template.dir~
13307 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13308 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13310 archive_cmds_CXX='tpldir=Template.dir~
13312 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13313 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13314 archive_expsym_cmds_CXX='tpldir=Template.dir~
13316 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13317 $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'
13319 *) # Version 6 will use weak symbols
13320 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13321 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'
13325 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13326 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13327 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'
13331 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13332 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'
13334 runpath_var=LD_RUN_PATH
13335 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13336 hardcode_libdir_separator_CXX=:
13338 # Commands to make compiler produce verbose output that lists
13339 # what "hidden" libraries, object files and flags are used when
13340 # linking a shared library.
13342 # There doesn't appear to be a way to prevent this compiler from
13343 # explicitly linking system object files so we need to strip them
13344 # from the output so that they don't get included in the library
13346 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'
13349 case `$CC -V 2>&1 | sed 5q` in
13352 no_undefined_flag_CXX=' -zdefs'
13353 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13354 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'
13355 hardcode_libdir_flag_spec_CXX='-R$libdir'
13356 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'
13357 compiler_needs_object_CXX=yes
13359 # Not sure whether something based on
13360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13362 output_verbose_link_cmd='echo'
13364 # Archives containing C++ object files must be created using
13365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13366 # necessary to make sure instantiated templates are included
13368 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13376 # FIXME: insert proper C++ library support
13381 # FIXME: insert proper C++ library support
13386 case $cc_basename in
13388 # FIXME: insert proper C++ library support
13392 # FIXME: insert proper C++ library support
13399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13402 hardcode_libdir_flag_spec_CXX='-R$libdir'
13403 hardcode_direct_CXX=yes
13404 hardcode_shlibpath_var_CXX=no
13406 # Workaround some broken pre-1.5 toolchains
13407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13415 # C++ shared libraries are fairly broken
13420 hardcode_direct_CXX=yes
13421 hardcode_shlibpath_var_CXX=no
13422 hardcode_direct_absolute_CXX=yes
13423 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13426 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13427 export_dynamic_flag_spec_CXX='${wl}-E'
13428 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13430 output_verbose_link_cmd=echo
13433 osf3* | osf4* | osf5*)
13434 case $cc_basename in
13436 # Kuck and Associates, Inc. (KAI) C++ Compiler
13438 # KCC will only create a shared library if the output file
13439 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13440 # to its proper name (with version) after linking.
13441 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'
13443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13444 hardcode_libdir_separator_CXX=:
13446 # Archives containing C++ object files must be created using
13447 # the KAI C++ compiler.
13449 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13450 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13454 # Rational C++ 2.4.1
13455 # FIXME: insert proper C++ library support
13461 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13462 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'
13463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13466 allow_undefined_flag_CXX=' -expect_unresolved \*'
13467 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'
13468 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13469 echo "-hidden">> $lib.exp~
13470 $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~
13472 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13476 hardcode_libdir_separator_CXX=:
13478 # Commands to make compiler produce verbose output that lists
13479 # what "hidden" libraries, object files and flags are used when
13480 # linking a shared library.
13482 # There doesn't appear to be a way to prevent this compiler from
13483 # explicitly linking system object files so we need to strip them
13484 # from the output so that they don't get included in the library
13486 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'
13489 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13490 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13493 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'
13496 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'
13500 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13501 hardcode_libdir_separator_CXX=:
13503 # Commands to make compiler produce verbose output that lists
13504 # what "hidden" libraries, object files and flags are used when
13505 # linking a shared library.
13506 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13509 # FIXME: insert proper C++ library support
13517 # FIXME: insert proper C++ library support
13522 case $cc_basename in
13525 # FIXME: insert proper C++ library support
13530 # FIXME: insert proper C++ library support
13534 # FIXME: insert proper C++ library support
13541 case $cc_basename in
13543 # Sun C++ 4.2, 5.x and Centerline C++
13544 archive_cmds_need_lc_CXX=yes
13545 no_undefined_flag_CXX=' -zdefs'
13546 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13548 $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'
13550 hardcode_libdir_flag_spec_CXX='-R$libdir'
13551 hardcode_shlibpath_var_CXX=no
13553 solaris2.[0-5] | solaris2.[0-5].*) ;;
13555 # The compiler driver will combine and reorder linker options,
13556 # but understands `-z linker_flag'.
13557 # Supported since Solaris 2.6 (maybe 2.5.1?)
13558 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13561 link_all_deplibs_CXX=yes
13563 output_verbose_link_cmd='echo'
13565 # Archives containing C++ object files must be created using
13566 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13567 # necessary to make sure instantiated templates are included
13569 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13572 # Green Hills C++ Compiler
13573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13575 # The C++ compiler must be used to create the archive.
13576 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13579 # GNU C++ compiler with Solaris linker
13580 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13581 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13582 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13583 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13584 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13585 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13587 # Commands to make compiler produce verbose output that lists
13588 # what "hidden" libraries, object files and flags are used when
13589 # linking a shared library.
13590 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13592 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13594 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13595 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13596 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13598 # Commands to make compiler produce verbose output that lists
13599 # what "hidden" libraries, object files and flags are used when
13600 # linking a shared library.
13601 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13604 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13606 solaris2.[0-5] | solaris2.[0-5].*) ;;
13608 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13616 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13617 no_undefined_flag_CXX='${wl}-z,text'
13618 archive_cmds_need_lc_CXX=no
13619 hardcode_shlibpath_var_CXX=no
13620 runpath_var='LD_RUN_PATH'
13622 case $cc_basename in
13624 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13628 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13629 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13634 sysv5* | sco3.2v5* | sco5v6*)
13635 # Note: We can NOT use -z defs as we might desire, because we do not
13636 # link with -lc, and that would cause any symbols used from libc to
13637 # always be unresolved, which means just about no library would
13638 # ever link correctly. If we're not using GNU ld we use -z text
13639 # though, which does catch some bad symbols but isn't as heavy-handed
13641 no_undefined_flag_CXX='${wl}-z,text'
13642 allow_undefined_flag_CXX='${wl}-z,nodefs'
13643 archive_cmds_need_lc_CXX=no
13644 hardcode_shlibpath_var_CXX=no
13645 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13646 hardcode_libdir_separator_CXX=':'
13647 link_all_deplibs_CXX=yes
13648 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13649 runpath_var='LD_RUN_PATH'
13651 case $cc_basename in
13653 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13658 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13664 case $cc_basename in
13666 # NonStop-UX NCC 3.20
13667 # FIXME: insert proper C++ library support
13671 # FIXME: insert proper C++ library support
13678 # FIXME: insert proper C++ library support
13683 # FIXME: insert proper C++ library support
13688 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13689 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13690 test "$ld_shlibs_CXX" = no && can_build_shared=no
13696 ## There is no encapsulation within the following macros, do not change
13697 ## the running order or otherwise move them around unless you know exactly
13698 ## what you are doing...
13699 # Dependencies to place before and after the object being linked:
13700 predep_objects_CXX=
13701 postdep_objects_CXX=
13704 compiler_lib_search_path_CXX=
13706 cat > conftest.$ac_ext <<_LT_EOF
13710 Foo (void) { a = 0; }
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; then
13721 # Parse the compiler output and extract the necessary
13722 # objects, libraries and library flags.
13724 # Sentinel used to keep track of whether or not we are before
13725 # the conftest object file.
13726 pre_test_object_deps_done=no
13728 # The `*' in the case matches for architectures that use `case' in
13729 # $output_verbose_cmd can trigger glob expansion during the loop
13730 # eval without this substitution.
13731 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13733 for p in `eval $output_verbose_link_cmd`; do
13737 # Some compilers place space between "-{L,R}" and the path.
13738 # Remove the space.
13739 if test $p = "-L" ||
13740 test $p = "-R"; then
13747 if test "$pre_test_object_deps_done" = no; then
13750 # Internal compiler library paths should come after those
13751 # provided the user. The postdeps already come after the
13752 # user supplied libs so there is no need to process them.
13753 if test -z "$compiler_lib_search_path_CXX"; then
13754 compiler_lib_search_path_CXX="${prev}${p}"
13756 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13759 # The "-l" case would never come before the object being
13760 # linked, so don't bother handling this case.
13763 if test -z "$postdeps_CXX"; then
13764 postdeps_CXX="${prev}${p}"
13766 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13772 # This assumes that the test object file only shows up
13773 # once in the compiler output.
13774 if test "$p" = "conftest.$objext"; then
13775 pre_test_object_deps_done=yes
13779 if test "$pre_test_object_deps_done" = no; then
13780 if test -z "$predep_objects_CXX"; then
13781 predep_objects_CXX="$p"
13783 predep_objects_CXX="$predep_objects_CXX $p"
13786 if test -z "$postdep_objects_CXX"; then
13787 postdep_objects_CXX="$p"
13789 postdep_objects_CXX="$postdep_objects_CXX $p"
13794 *) ;; # Ignore the rest.
13802 echo "libtool.m4: error: problem compiling CXX test program"
13805 $RM -f confest.$objext
13807 # PORTME: override above test on systems where it is broken
13810 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13811 # hack all around it, let's just trust "g++" to DTRT.
13812 predep_objects_CXX=
13813 postdep_objects_CXX=
13818 case `$CC -V 2>&1 | sed 5q` in
13822 # The more standards-conforming stlport4 library is
13823 # incompatible with the Cstd library. Avoid specifying
13824 # it if it's in CXXFLAGS. Ignore libCrun as
13825 # -library=stlport4 depends on it.
13826 case " $CXX $CXXFLAGS " in
13827 *" -library=stlport4 "*)
13828 solaris_use_stlport4=yes
13832 if test "$solaris_use_stlport4" != yes; then
13833 postdeps_CXX='-library=Cstd -library=Crun'
13840 case $cc_basename in
13842 # The more standards-conforming stlport4 library is
13843 # incompatible with the Cstd library. Avoid specifying
13844 # it if it's in CXXFLAGS. Ignore libCrun as
13845 # -library=stlport4 depends on it.
13846 case " $CXX $CXXFLAGS " in
13847 *" -library=stlport4 "*)
13848 solaris_use_stlport4=yes
13852 # Adding this requires a known-good setup of shared libraries for
13853 # Sun compiler versions before 5.6, else PIC objects from an old
13854 # archive will be linked into the output, leading to subtle bugs.
13855 if test "$solaris_use_stlport4" != yes; then
13856 postdeps_CXX='-library=Cstd -library=Crun'
13864 case " $postdeps_CXX " in
13865 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13893 lt_prog_compiler_wl_CXX=
13894 lt_prog_compiler_pic_CXX=
13895 lt_prog_compiler_static_CXX=
13897 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13900 # C++ specific cases for pic, static, wl, etc.
13901 if test "$GXX" = yes; then
13902 lt_prog_compiler_wl_CXX='-Wl,'
13903 lt_prog_compiler_static_CXX='-static'
13907 # All AIX code is PIC.
13908 if test "$host_cpu" = ia64; then
13909 # AIX 5 now supports IA64 processor
13910 lt_prog_compiler_static_CXX='-Bstatic'
13914 if test "$host_cpu" = m68k; then
13915 # FIXME: we need at least 68020 code to build shared libraries, but
13916 # adding the `-m68020' flag to GCC prevents building anything better,
13918 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13922 # PIC is the default for these OSes.
13924 mingw* | cygwin* | os2* | pw32*)
13925 # This hack is so that the source file can tell whether it is being
13926 # built for inclusion in a dll (and should export symbols for example).
13927 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13928 # (--disable-auto-import) libraries
13929 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13931 darwin* | rhapsody*)
13932 # PIC is the default on this platform
13933 # Common symbols not allowed in MH_DYLIB files
13934 lt_prog_compiler_pic_CXX='-fno-common'
13937 # DJGPP does not support shared libraries at all
13938 lt_prog_compiler_pic_CXX=
13941 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13942 # Instead, we relocate shared libraries at runtime.
13945 if test -d /usr/nec; then
13946 lt_prog_compiler_pic_CXX=-Kconform_pic
13950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13951 # not for PA HP-UX.
13956 lt_prog_compiler_pic_CXX='-fPIC'
13961 # QNX uses GNU C++, but need to define -shared option too, otherwise
13962 # it will coredump.
13963 lt_prog_compiler_pic_CXX='-fPIC -shared'
13966 lt_prog_compiler_pic_CXX='-fPIC'
13972 # All AIX code is PIC.
13973 if test "$host_cpu" = ia64; then
13974 # AIX 5 now supports IA64 processor
13975 lt_prog_compiler_static_CXX='-Bstatic'
13977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13981 case $cc_basename in
13983 # Green Hills C++ Compiler
13984 # _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"
13989 # PIC is the default on this platform
13990 # Common symbols not allowed in MH_DYLIB files
13991 case $cc_basename in
13993 lt_prog_compiler_pic_CXX='-qnocommon'
13994 lt_prog_compiler_wl_CXX='-Wl,'
13999 case $cc_basename in
14001 lt_prog_compiler_pic_CXX='-KPIC'
14004 # Green Hills C++ Compiler
14005 lt_prog_compiler_pic_CXX='-pic'
14011 freebsd* | dragonfly*)
14012 # FreeBSD uses GNU C++
14014 hpux9* | hpux10* | hpux11*)
14015 case $cc_basename in
14017 lt_prog_compiler_wl_CXX='-Wl,'
14018 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14019 if test "$host_cpu" != ia64; then
14020 lt_prog_compiler_pic_CXX='+Z'
14024 lt_prog_compiler_wl_CXX='-Wl,'
14025 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14031 lt_prog_compiler_pic_CXX='+Z'
14040 # This is c89, which is MS Visual C++ (no shared libs)
14041 # Anyone wants to do a port?
14043 irix5* | irix6* | nonstopux*)
14044 case $cc_basename in
14046 lt_prog_compiler_wl_CXX='-Wl,'
14047 lt_prog_compiler_static_CXX='-non_shared'
14048 # CC pic flag -KPIC is the default.
14054 linux* | k*bsd*-gnu)
14055 case $cc_basename in
14058 lt_prog_compiler_wl_CXX='--backend -Wl,'
14059 lt_prog_compiler_pic_CXX='-fPIC'
14063 lt_prog_compiler_wl_CXX='-Wl,'
14064 lt_prog_compiler_pic_CXX='-KPIC'
14065 lt_prog_compiler_static_CXX='-static'
14068 # Portland Group C++ compiler
14069 lt_prog_compiler_wl_CXX='-Wl,'
14070 lt_prog_compiler_pic_CXX='-fpic'
14071 lt_prog_compiler_static_CXX='-Bstatic'
14075 # Make sure the PIC flag is empty. It appears that all Alpha
14076 # Linux and Compaq Tru64 Unix objects are PIC.
14077 lt_prog_compiler_pic_CXX=
14078 lt_prog_compiler_static_CXX='-non_shared'
14081 case `$CC -V 2>&1 | sed 5q` in
14084 lt_prog_compiler_pic_CXX='-KPIC'
14085 lt_prog_compiler_static_CXX='-Bstatic'
14086 lt_prog_compiler_wl_CXX='-Qoption ld '
14097 case $cc_basename in
14099 lt_prog_compiler_pic_CXX='-W c,exportall'
14108 # QNX uses GNU C++, but need to define -shared option too, otherwise
14109 # it will coredump.
14110 lt_prog_compiler_pic_CXX='-fPIC -shared'
14112 osf3* | osf4* | osf5*)
14113 case $cc_basename in
14115 lt_prog_compiler_wl_CXX='--backend -Wl,'
14118 # Rational C++ 2.4.1
14119 lt_prog_compiler_pic_CXX='-pic'
14122 # Digital/Compaq C++
14123 lt_prog_compiler_wl_CXX='-Wl,'
14124 # Make sure the PIC flag is empty. It appears that all Alpha
14125 # Linux and Compaq Tru64 Unix objects are PIC.
14126 lt_prog_compiler_pic_CXX=
14127 lt_prog_compiler_static_CXX='-non_shared'
14136 case $cc_basename in
14138 # Sun C++ 4.2, 5.x and Centerline C++
14139 lt_prog_compiler_pic_CXX='-KPIC'
14140 lt_prog_compiler_static_CXX='-Bstatic'
14141 lt_prog_compiler_wl_CXX='-Qoption ld '
14144 # Green Hills C++ Compiler
14145 lt_prog_compiler_pic_CXX='-PIC'
14152 case $cc_basename in
14155 lt_prog_compiler_pic_CXX='-pic'
14156 lt_prog_compiler_static_CXX='-Bstatic'
14160 lt_prog_compiler_pic_CXX='-pic'
14166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14167 case $cc_basename in
14169 lt_prog_compiler_wl_CXX='-Wl,'
14170 lt_prog_compiler_pic_CXX='-KPIC'
14171 lt_prog_compiler_static_CXX='-Bstatic'
14176 case $cc_basename in
14178 # NonStop-UX NCC 3.20
14179 lt_prog_compiler_pic_CXX='-KPIC'
14188 lt_prog_compiler_can_build_shared_CXX=no
14194 # For platforms which do not support PIC, -DPIC is meaningless:
14196 lt_prog_compiler_pic_CXX=
14199 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14202 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14203 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14208 # Check to make sure the PIC flag actually works.
14210 if test -n "$lt_prog_compiler_pic_CXX"; then
14211 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14212 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14213 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 lt_prog_compiler_pic_works_CXX=no
14217 ac_outfile=conftest.$ac_objext
14218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14219 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14220 # Insert the option either (1) after the last *FLAGS variable, or
14221 # (2) before a word containing "conftest.", or (3) at the end.
14222 # Note that $ac_compile itself does not contain backslashes and begins
14223 # with a dollar sign (not a hyphen), so the echo should work correctly.
14224 # The option is referenced via a variable to avoid confusing sed.
14225 lt_compile=`echo "$ac_compile" | $SED \
14226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14228 -e 's:$: $lt_compiler_flag:'`
14229 (eval echo "\"\$as_me:14229: $lt_compile\"" >&5)
14230 (eval "$lt_compile" 2>conftest.err)
14232 cat conftest.err >&5
14233 echo "$as_me:14233: \$? = $ac_status" >&5
14234 if (exit $ac_status) && test -s "$ac_outfile"; then
14235 # The compiler can only warn and ignore the option if not recognized
14236 # So say no if there are warnings other than the usual output.
14237 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14240 lt_prog_compiler_pic_works_CXX=yes
14246 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14247 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14249 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14250 case $lt_prog_compiler_pic_CXX in
14252 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14255 lt_prog_compiler_pic_CXX=
14256 lt_prog_compiler_can_build_shared_CXX=no
14264 # Check to make sure the static flag actually works.
14266 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14267 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14268 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14269 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 lt_prog_compiler_static_works_CXX=no
14273 save_LDFLAGS="$LDFLAGS"
14274 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14277 # The linker can only warn and ignore the option if not recognized
14278 # So say no if there are warnings
14279 if test -s conftest.err; then
14280 # Append any errors to the config.log.
14281 cat conftest.err 1>&5
14282 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14284 if diff conftest.exp conftest.er2 >/dev/null; then
14285 lt_prog_compiler_static_works_CXX=yes
14288 lt_prog_compiler_static_works_CXX=yes
14292 LDFLAGS="$save_LDFLAGS"
14295 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14296 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14298 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14301 lt_prog_compiler_static_CXX=
14307 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14308 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14309 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 lt_cv_prog_compiler_c_o_CXX=no
14313 $RM -r conftest 2>/dev/null
14317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14319 lt_compiler_flag="-o out/conftest2.$ac_objext"
14320 # Insert the option either (1) after the last *FLAGS variable, or
14321 # (2) before a word containing "conftest.", or (3) at the end.
14322 # Note that $ac_compile itself does not contain backslashes and begins
14323 # with a dollar sign (not a hyphen), so the echo should work correctly.
14324 lt_compile=`echo "$ac_compile" | $SED \
14325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14327 -e 's:$: $lt_compiler_flag:'`
14328 (eval echo "\"\$as_me:14328: $lt_compile\"" >&5)
14329 (eval "$lt_compile" 2>out/conftest.err)
14331 cat out/conftest.err >&5
14332 echo "$as_me:14332: \$? = $ac_status" >&5
14333 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14335 # The compiler can only warn and ignore the option if not recognized
14336 # So say no if there are warnings
14337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14338 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14339 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14340 lt_cv_prog_compiler_c_o_CXX=yes
14345 # SGI C++ compiler will create directory out/ii_files/ for
14346 # template instantiation
14347 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14348 $RM out/* && rmdir out
14354 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14355 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14359 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14360 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14361 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 lt_cv_prog_compiler_c_o_CXX=no
14365 $RM -r conftest 2>/dev/null
14369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14371 lt_compiler_flag="-o out/conftest2.$ac_objext"
14372 # Insert the option either (1) after the last *FLAGS variable, or
14373 # (2) before a word containing "conftest.", or (3) at the end.
14374 # Note that $ac_compile itself does not contain backslashes and begins
14375 # with a dollar sign (not a hyphen), so the echo should work correctly.
14376 lt_compile=`echo "$ac_compile" | $SED \
14377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14379 -e 's:$: $lt_compiler_flag:'`
14380 (eval echo "\"\$as_me:14380: $lt_compile\"" >&5)
14381 (eval "$lt_compile" 2>out/conftest.err)
14383 cat out/conftest.err >&5
14384 echo "$as_me:14384: \$? = $ac_status" >&5
14385 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14387 # The compiler can only warn and ignore the option if not recognized
14388 # So say no if there are warnings
14389 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14390 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14391 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14392 lt_cv_prog_compiler_c_o_CXX=yes
14397 # SGI C++ compiler will create directory out/ii_files/ for
14398 # template instantiation
14399 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14400 $RM out/* && rmdir out
14406 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14407 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14412 hard_links="nottested"
14413 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14414 # do not overwrite the value of need_locks provided by the user
14415 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14416 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14419 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14421 ln conftest.a conftest.b 2>&5 || hard_links=no
14422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14423 echo "$as_me:$LINENO: result: $hard_links" >&5
14424 echo "${ECHO_T}$hard_links" >&6
14425 if test "$hard_links" = no; then
14426 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14427 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14436 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14437 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14439 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14442 # If we're using GNU nm, then we don't want the "-C" option.
14443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14444 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14445 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'
14447 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'
14451 export_symbols_cmds_CXX="$ltdll_cmds"
14454 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'
14457 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14461 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14462 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14463 test "$ld_shlibs_CXX" = no && can_build_shared=no
14465 with_gnu_ld_CXX=$with_gnu_ld
14473 # Do we need to explicitly link libc?
14475 case "x$archive_cmds_need_lc_CXX" in
14477 # Assume -lc should be added
14478 archive_cmds_need_lc_CXX=yes
14480 if test "$enable_shared" = yes && test "$GCC" = yes; then
14481 case $archive_cmds_CXX in
14483 # FIXME: we may have to deal with multi-command sequences.
14486 # Test whether the compiler implicitly links with -lc since on some
14487 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14488 # to ld, don't add -lc before -lgcc.
14489 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14490 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14495 (eval $ac_compile) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } 2>conftest.err; then
14501 libobjs=conftest.$ac_objext
14503 wl=$lt_prog_compiler_wl_CXX
14504 pic_flag=$lt_prog_compiler_pic_CXX
14510 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14511 allow_undefined_flag_CXX=
14512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14513 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); }
14518 archive_cmds_need_lc_CXX=no
14520 archive_cmds_need_lc_CXX=yes
14522 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14524 cat conftest.err 1>&5
14527 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14528 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14598 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14599 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14601 library_names_spec=
14602 libname_spec='lib$name'
14606 postuninstall_cmds=
14610 shlibpath_overrides_runpath=unknown
14612 dynamic_linker="$host_os ld.so"
14613 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14614 need_lib_prefix=unknown
14615 hardcode_into_libs=no
14617 # when you set need_version to no, make sure it does not cause -set_version
14618 # flags to be left without arguments
14619 need_version=unknown
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14625 shlibpath_var=LIBPATH
14627 # AIX 3 has no versioning support, so we append a major version to the name.
14628 soname_spec='${libname}${release}${shared_ext}$major'
14635 hardcode_into_libs=yes
14636 if test "$host_cpu" = ia64; then
14637 # AIX 5 supports IA64
14638 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14639 shlibpath_var=LD_LIBRARY_PATH
14641 # With GCC up to 2.95.x, collect2 would create an import file
14642 # for dependence libraries. The import file would start with
14643 # the line `#! .'. This would cause the generated library to
14644 # depend on `.', always an invalid library. This was fixed in
14645 # development snapshots of GCC prior to 3.0.
14647 aix4 | aix4.[01] | aix4.[01].*)
14648 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14650 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14653 can_build_shared=no
14657 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14658 # soname into executable. Probably we can add versioning support to
14659 # collect2, so additional links can be useful in future.
14660 if test "$aix_use_runtimelinking" = yes; then
14661 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14662 # instead of lib<name>.a to let people know that these are not
14663 # typical AIX shared libraries.
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 # We preserve .a as extension for shared libraries through AIX4.2
14667 # and later when we are not doing run time linking.
14668 library_names_spec='${libname}${release}.a $libname.a'
14669 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LIBPATH
14676 if test "$host_cpu" = m68k; then
14677 library_names_spec='$libname.ixlibrary $libname.a'
14678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14679 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'
14686 library_names_spec='${libname}${shared_ext}'
14687 dynamic_linker="$host_os ld.so"
14688 shlibpath_var=LIBRARY_PATH
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695 soname_spec='${libname}${release}${shared_ext}$major'
14696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14700 # the default ld.so.conf also contains /usr/contrib/lib and
14701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14702 # libtool to hard-code these into programs
14705 cygwin* | mingw* | pw32*)
14706 version_type=windows
14711 case $withGCC,$host_os in
14712 yes,cygwin* | yes,mingw* | yes,pw32*)
14713 library_names_spec='$libname.dll.a'
14714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14715 postinstall_cmds='base_file=`basename \${file}`~
14716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14717 dldir=$destdir/`dirname \$dlpath`~
14718 test -d \$dldir || mkdir -p \$dldir~
14719 $install_prog $dir/$dlname \$dldir/$dlname~
14720 chmod a+x \$dldir/$dlname~
14721 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14722 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14725 dlpath=$dir/\$dldll~
14727 shlibpath_overrides_runpath=yes
14731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14732 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14736 # MinGW DLLs use traditional 'lib' prefix
14737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14738 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14739 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14740 # It is most probably a Windows format PATH printed by
14741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14742 # path with ; separators, and with drive letters. We can handle the
14743 # drive letters (cygwin fileutils understands them), so leave them,
14744 # especially as we might pass files found there to a mingw objdump,
14745 # which wouldn't understand a cygwinified path. Ahh.
14746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14752 # pw32 DLLs use 'pw' prefix rather than 'lib'
14753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14762 dynamic_linker='Win32 ld.exe'
14763 # FIXME: first we should search . and the directory the executable is in
14767 darwin* | rhapsody*)
14768 dynamic_linker="$host_os dyld"
14769 version_type=darwin
14772 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14773 soname_spec='${libname}${release}${major}$shared_ext'
14774 shlibpath_overrides_runpath=yes
14775 shlibpath_var=DYLD_LIBRARY_PATH
14776 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14778 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14794 freebsd* | dragonfly*)
14795 # DragonFly does not have aout. When/if they implement a new
14796 # versioning mechanism, adjust this.
14797 if test -x /usr/bin/objformat; then
14798 objformat=`/usr/bin/objformat`
14801 freebsd[123]*) objformat=aout ;;
14802 *) objformat=elf ;;
14805 version_type=freebsd-$objformat
14806 case $version_type in
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14817 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14822 freebsd3.[01]* | freebsdelf3.[01]*)
14823 shlibpath_overrides_runpath=yes
14824 hardcode_into_libs=yes
14826 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14827 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14828 shlibpath_overrides_runpath=no
14829 hardcode_into_libs=yes
14831 *) # from 4.6 on, and DragonFly
14832 shlibpath_overrides_runpath=yes
14833 hardcode_into_libs=yes
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 hardcode_into_libs=yes
14848 hpux9* | hpux10* | hpux11*)
14849 # Give a soname corresponding to the major version so that dld.sl refuses to
14850 # link against other versions.
14857 hardcode_into_libs=yes
14858 dynamic_linker="$host_os dld.so"
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 if test "X$HPUX_IA64_MODE" = X32; then
14864 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14866 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14872 hardcode_into_libs=yes
14873 dynamic_linker="$host_os dld.sl"
14874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14883 dynamic_linker="$host_os dld.sl"
14884 shlibpath_var=SHLIB_PATH
14885 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14890 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14891 postinstall_cmds='chmod 555 $lib'
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=no
14903 hardcode_into_libs=yes
14906 irix5* | irix6* | nonstopux*)
14908 nonstopux*) version_type=nonstopux ;;
14910 if test "$lt_cv_prog_gnu_ld" = yes; then
14918 soname_spec='${libname}${release}${shared_ext}$major'
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14921 irix5* | nonstopux*)
14922 libsuff= shlibsuff=
14925 case $LD in # libtool.m4 will add one of these switches to LD
14926 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14927 libsuff= shlibsuff= libmagic=32-bit;;
14928 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14929 libsuff=32 shlibsuff=N32 libmagic=N32;;
14930 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14931 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14932 *) libsuff= shlibsuff= libmagic=never-match;;
14936 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14937 shlibpath_overrides_runpath=no
14938 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14939 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14940 hardcode_into_libs=yes
14943 # No shared lib support for Linux oldld, aout, or coff.
14944 linux*oldld* | linux*aout* | linux*coff*)
14948 # This must be Linux ELF.
14949 linux* | k*bsd*-gnu)
14953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954 soname_spec='${libname}${release}${shared_ext}$major'
14955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14956 shlibpath_var=LD_LIBRARY_PATH
14957 shlibpath_overrides_runpath=no
14958 # Some binutils ld are patched to set DT_RUNPATH
14959 save_LDFLAGS=$LDFLAGS
14960 save_libdir=$libdir
14961 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14962 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14963 if test x$gcc_no_link = xyes; then
14964 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14966 { (exit 1); exit 1; }; }
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>conftest.er1
14987 grep -v '^ *+' conftest.er1 >conftest.err
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -z "$ac_cxx_werror_flag"
14993 || test ! -s conftest.err'
14994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; } &&
14999 { ac_try='test -s conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15006 shlibpath_overrides_runpath=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15014 rm -f conftest.err conftest.$ac_objext \
15015 conftest$ac_exeext conftest.$ac_ext
15016 LDFLAGS=$save_LDFLAGS
15017 libdir=$save_libdir
15019 # This implies no fast_install, which is unacceptable.
15020 # Some rework will be needed to allow for fast_install
15021 # before this can be enabled.
15022 hardcode_into_libs=yes
15024 # Append ld.so.conf contents to the search path
15025 if test -f /etc/ld.so.conf; then
15026 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15030 # We used to test for /lib/ld.so.1 and disable shared libraries on
15031 # powerpc, because MkLinux only supported shared libraries with the
15032 # GNU dynamic linker. Since this was broken with cross compilers,
15033 # most powerpc-linux boxes support dynamic linking these days and
15034 # people can always --disable-shared, the test was removed, and we
15035 # assume the GNU/Linux dynamic linker is in use.
15036 dynamic_linker='GNU/Linux ld.so'
15043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15046 dynamic_linker='NetBSD (a.out) ld.so'
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 dynamic_linker='NetBSD ld.elf_so'
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=yes
15054 hardcode_into_libs=yes
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060 shlibpath_var=LD_LIBRARY_PATH
15061 shlibpath_overrides_runpath=yes
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 shlibpath_overrides_runpath=no
15072 hardcode_into_libs=yes
15073 dynamic_linker='ldqnx.so'
15078 sys_lib_dlsearch_path_spec="/usr/lib"
15080 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15082 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15083 *) need_version=no ;;
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15090 openbsd2.[89] | openbsd2.[89].*)
15091 shlibpath_overrides_runpath=no
15094 shlibpath_overrides_runpath=yes
15098 shlibpath_overrides_runpath=yes
15103 libname_spec='$name'
15106 library_names_spec='$libname${shared_ext} $libname.a'
15107 dynamic_linker='OS/2 ld.exe'
15108 shlibpath_var=LIBPATH
15111 osf3* | osf4* | osf5*)
15115 soname_spec='${libname}${release}${shared_ext}$major'
15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15119 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131 soname_spec='${libname}${release}${shared_ext}$major'
15132 shlibpath_var=LD_LIBRARY_PATH
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15135 # ldd complains unless libraries are executable
15136 postinstall_cmds='chmod +x $lib'
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15143 shlibpath_var=LD_LIBRARY_PATH
15144 shlibpath_overrides_runpath=yes
15145 if test "$with_gnu_ld" = yes; then
15153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 case $host_vendor in
15158 shlibpath_overrides_runpath=no
15160 runpath_var=LD_RUN_PATH
15168 shlibpath_overrides_runpath=no
15169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15175 if test -d /usr/nec ;then
15177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15178 soname_spec='$libname${shared_ext}.$major'
15179 shlibpath_var=LD_LIBRARY_PATH
15183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15184 version_type=freebsd-elf
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=yes
15191 hardcode_into_libs=yes
15192 if test "$with_gnu_ld" = yes; then
15193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15198 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15202 sys_lib_dlsearch_path_spec='/usr/lib'
15206 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15210 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 shlibpath_overrides_runpath=no
15213 hardcode_into_libs=yes
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 shlibpath_var=LD_LIBRARY_PATH
15227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15228 echo "${ECHO_T}$dynamic_linker" >&6
15229 test "$dynamic_linker" = no && can_build_shared=no
15231 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15232 if test "$GCC" = yes; then
15233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15271 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15273 hardcode_action_CXX=
15274 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15275 test -n "$runpath_var_CXX" ||
15276 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15278 # We can hardcode non-existent directories.
15279 if test "$hardcode_direct_CXX" != no &&
15280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15281 # have to relink, otherwise we might link with an installed library
15282 # when we should be linking with a yet-to-be-installed one
15283 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15284 test "$hardcode_minus_L_CXX" != no; then
15285 # Linking always hardcodes the temporary library directory.
15286 hardcode_action_CXX=relink
15288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15289 hardcode_action_CXX=immediate
15292 # We cannot hardcode anything, or else we can only hardcode existing
15294 hardcode_action_CXX=unsupported
15296 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15297 echo "${ECHO_T}$hardcode_action_CXX" >&6
15299 if test "$hardcode_action_CXX" = relink ||
15300 test "$inherit_rpath_CXX" = yes; then
15301 # Fast installation is not supported
15302 enable_fast_install=no
15303 elif test "$shlibpath_overrides_runpath" = yes ||
15304 test "$enable_shared" = no; then
15305 # Fast installation is not necessary
15306 enable_fast_install=needless
15315 fi # test -n "$compiler"
15321 with_gnu_ld=$lt_save_with_gnu_ld
15322 lt_cv_path_LDCXX=$lt_cv_path_LD
15323 lt_cv_path_LD=$lt_save_path_LD
15324 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15325 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15326 fi # test "$_lt_caught_CXX_error" != yes
15329 ac_cpp='$CPP $CPPFLAGS'
15330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15346 ac_config_commands="$ac_config_commands libtool"
15351 # Only expand once:
15357 # Extract the first word of "$ac_prog", so it can be a program name with args.
15358 set dummy $ac_prog; ac_word=$2
15359 echo "$as_me:$LINENO: checking for $ac_word" >&5
15360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15361 if test "${ac_cv_prog_GCJ+set}" = set; then
15362 echo $ECHO_N "(cached) $ECHO_C" >&6
15364 if test -n "$GCJ"; then
15365 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15368 for as_dir in $PATH
15371 test -z "$as_dir" && as_dir=.
15372 for ac_exec_ext in '' $ac_executable_extensions; do
15373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15374 ac_cv_prog_GCJ="$ac_prog"
15375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15383 GCJ=$ac_cv_prog_GCJ
15384 if test -n "$GCJ"; then
15385 echo "$as_me:$LINENO: result: $GCJ" >&5
15386 echo "${ECHO_T}$GCJ" >&6
15388 echo "$as_me:$LINENO: result: no" >&5
15389 echo "${ECHO_T}no" >&6
15392 test -n "$GCJ" && break
15394 test -n "$GCJ" || GCJ="gcj"
15396 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15397 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15398 { (exit 1); exit 1; }; }
15399 if test "x${GCJFLAGS-unset}" = xunset; then
15404 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15408 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15409 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15412 # We make a subdir and do the tests there. Otherwise we can end up
15413 # making bogus files that we don't know about and never remove. For
15414 # instance it was reported that on HP-UX the gcc test will end up
15415 # making a dummy file named `D' -- because `-MD' means `put the output
15418 # Copy depcomp to subdir because otherwise we won't find it if we're
15419 # using a relative directory.
15420 cp "$am_depcomp" conftest.dir
15422 # We will build objects and dependencies in a subdirectory because
15423 # it helps to detect inapplicable dependency modes. For instance
15424 # both Tru64's cc and ICC support -MD to output dependencies as a
15425 # side effect of compilation, but ICC will put the dependencies in
15426 # the current directory while Tru64 will put them in the object
15430 am_cv_GCJ_dependencies_compiler_type=none
15431 if test "$am_compiler_list" = ""; then
15432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15434 for depmode in $am_compiler_list; do
15435 # Setup a source with many dependencies, because some compilers
15436 # like to wrap large dependency lists on column 80 (with \), and
15437 # we should not choose a depcomp mode which is confused by this.
15439 # We need to recreate these files for each test, as the compiler may
15440 # overwrite some of them when testing with obscure command lines.
15441 # This happens at least with the AIX C compiler.
15443 for i in 1 2 3 4 5 6; do
15444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15446 # Solaris 8's {/usr,}/bin/sh.
15447 touch sub/conftst$i.h
15449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15453 # after this tag, mechanisms are not by side-effect, so they'll
15454 # only be used when explicitly requested
15455 if test "x$enable_dependency_tracking" = xyes; then
15463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15464 # mode. It turns out that the SunPro C++ compiler does not properly
15465 # handle `-M -o', and we need to detect this.
15466 if depmode=$depmode \
15467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15470 >/dev/null 2>conftest.err &&
15471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15474 # icc doesn't choke on unknown options, it will just issue warnings
15475 # or remarks (even with -Werror). So we grep stderr for any message
15476 # that says an option was ignored or not supported.
15477 # When given -MP, icc 7.0 and 7.1 complain thusly:
15478 # icc: Command line warning: ignoring option '-M'; no argument required
15479 # The diagnosis changed in icc 8.0:
15480 # icc: Command line remark: option '-MP' not supported
15481 if (grep 'ignoring option' conftest.err ||
15482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15483 am_cv_GCJ_dependencies_compiler_type=$depmode
15490 rm -rf conftest.dir
15492 am_cv_GCJ_dependencies_compiler_type=none
15496 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15497 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15498 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15503 test "x$enable_dependency_tracking" != xno \
15504 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15505 am__fastdepGCJ_TRUE=
15506 am__fastdepGCJ_FALSE='#'
15508 am__fastdepGCJ_TRUE='#'
15509 am__fastdepGCJ_FALSE=
15516 # Extract the first word of "$ac_prog", so it can be a program name with args.
15517 set dummy $ac_prog; ac_word=$2
15518 echo "$as_me:$LINENO: checking for $ac_word" >&5
15519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15520 if test "${ac_cv_prog_GCJ+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 if test -n "$GCJ"; then
15524 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15527 for as_dir in $PATH
15530 test -z "$as_dir" && as_dir=.
15531 for ac_exec_ext in '' $ac_executable_extensions; do
15532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15533 ac_cv_prog_GCJ="$ac_prog"
15534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15542 GCJ=$ac_cv_prog_GCJ
15543 if test -n "$GCJ"; then
15544 echo "$as_me:$LINENO: result: $GCJ" >&5
15545 echo "${ECHO_T}$GCJ" >&6
15547 echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6
15551 test -n "$GCJ" && break
15553 test -n "$GCJ" || GCJ="gcj"
15555 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15556 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15557 { (exit 1); exit 1; }; }
15558 if test "x${GCJFLAGS-unset}" = xunset; then
15563 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15565 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15566 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15567 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15571 # We make a subdir and do the tests there. Otherwise we can end up
15572 # making bogus files that we don't know about and never remove. For
15573 # instance it was reported that on HP-UX the gcc test will end up
15574 # making a dummy file named `D' -- because `-MD' means `put the output
15577 # Copy depcomp to subdir because otherwise we won't find it if we're
15578 # using a relative directory.
15579 cp "$am_depcomp" conftest.dir
15581 # We will build objects and dependencies in a subdirectory because
15582 # it helps to detect inapplicable dependency modes. For instance
15583 # both Tru64's cc and ICC support -MD to output dependencies as a
15584 # side effect of compilation, but ICC will put the dependencies in
15585 # the current directory while Tru64 will put them in the object
15589 am_cv_GCJ_dependencies_compiler_type=none
15590 if test "$am_compiler_list" = ""; then
15591 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15593 for depmode in $am_compiler_list; do
15594 # Setup a source with many dependencies, because some compilers
15595 # like to wrap large dependency lists on column 80 (with \), and
15596 # we should not choose a depcomp mode which is confused by this.
15598 # We need to recreate these files for each test, as the compiler may
15599 # overwrite some of them when testing with obscure command lines.
15600 # This happens at least with the AIX C compiler.
15602 for i in 1 2 3 4 5 6; do
15603 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15604 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15605 # Solaris 8's {/usr,}/bin/sh.
15606 touch sub/conftst$i.h
15608 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15612 # after this tag, mechanisms are not by side-effect, so they'll
15613 # only be used when explicitly requested
15614 if test "x$enable_dependency_tracking" = xyes; then
15622 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15623 # mode. It turns out that the SunPro C++ compiler does not properly
15624 # handle `-M -o', and we need to detect this.
15625 if depmode=$depmode \
15626 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15627 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15628 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15629 >/dev/null 2>conftest.err &&
15630 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15631 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15632 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15633 # icc doesn't choke on unknown options, it will just issue warnings
15634 # or remarks (even with -Werror). So we grep stderr for any message
15635 # that says an option was ignored or not supported.
15636 # When given -MP, icc 7.0 and 7.1 complain thusly:
15637 # icc: Command line warning: ignoring option '-M'; no argument required
15638 # The diagnosis changed in icc 8.0:
15639 # icc: Command line remark: option '-MP' not supported
15640 if (grep 'ignoring option' conftest.err ||
15641 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15642 am_cv_GCJ_dependencies_compiler_type=$depmode
15649 rm -rf conftest.dir
15651 am_cv_GCJ_dependencies_compiler_type=none
15655 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15656 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15657 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15662 test "x$enable_dependency_tracking" != xno \
15663 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15664 am__fastdepGCJ_TRUE=
15665 am__fastdepGCJ_FALSE='#'
15667 am__fastdepGCJ_TRUE='#'
15668 am__fastdepGCJ_FALSE=
15676 # Source file extension for Java test sources.
15679 # Object file extension for compiled Java test sources.
15683 # Code to be used in simple compile tests
15684 lt_simple_compile_test_code="int some_variable = 0;"
15686 # Code to be used in simple link tests
15687 lt_simple_link_test_code='int main(){return(0);}'
15689 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15696 # If no C compiler was specified, use CC.
15699 # If no C compiler flags were specified, use CFLAGS.
15700 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15702 # Allow CC to be a program name with arguments.
15706 # save warnings/boilerplate of simple test code
15707 ac_outfile=conftest.$ac_objext
15708 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15710 _lt_compiler_boilerplate=`cat conftest.err`
15713 ac_outfile=conftest.$ac_objext
15714 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15716 _lt_linker_boilerplate=`cat conftest.err`
15720 # Allow CC to be a program name with arguments.
15723 for cc_temp in $compiler""; do
15725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15731 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15734 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15735 archive_cmds_need_lc_GCJ=no
15737 old_archive_cmds_GCJ=$old_archive_cmds
15740 ## There is no encapsulation within the following macros, do not change
15741 ## the running order or otherwise move them around unless you know exactly
15742 ## what you are doing...
15743 if test -n "$compiler"; then
15745 lt_prog_compiler_no_builtin_flag_GCJ=
15747 if test "$GCC" = yes; then
15748 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15750 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15751 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15752 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 lt_cv_prog_compiler_rtti_exceptions=no
15756 ac_outfile=conftest.$ac_objext
15757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15758 lt_compiler_flag="-fno-rtti -fno-exceptions"
15759 # Insert the option either (1) after the last *FLAGS variable, or
15760 # (2) before a word containing "conftest.", or (3) at the end.
15761 # Note that $ac_compile itself does not contain backslashes and begins
15762 # with a dollar sign (not a hyphen), so the echo should work correctly.
15763 # The option is referenced via a variable to avoid confusing sed.
15764 lt_compile=`echo "$ac_compile" | $SED \
15765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15767 -e 's:$: $lt_compiler_flag:'`
15768 (eval echo "\"\$as_me:15768: $lt_compile\"" >&5)
15769 (eval "$lt_compile" 2>conftest.err)
15771 cat conftest.err >&5
15772 echo "$as_me:15772: \$? = $ac_status" >&5
15773 if (exit $ac_status) && test -s "$ac_outfile"; then
15774 # The compiler can only warn and ignore the option if not recognized
15775 # So say no if there are warnings other than the usual output.
15776 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15779 lt_cv_prog_compiler_rtti_exceptions=yes
15785 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15786 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15788 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15789 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15798 lt_prog_compiler_wl_GCJ=
15799 lt_prog_compiler_pic_GCJ=
15800 lt_prog_compiler_static_GCJ=
15802 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15803 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15805 if test "$GCC" = yes; then
15806 lt_prog_compiler_wl_GCJ='-Wl,'
15807 lt_prog_compiler_static_GCJ='-static'
15811 # All AIX code is PIC.
15812 if test "$host_cpu" = ia64; then
15813 # AIX 5 now supports IA64 processor
15814 lt_prog_compiler_static_GCJ='-Bstatic'
15819 if test "$host_cpu" = m68k; then
15820 # FIXME: we need at least 68020 code to build shared libraries, but
15821 # adding the `-m68020' flag to GCC prevents building anything better,
15823 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15827 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15828 # PIC is the default for these OSes.
15831 mingw* | cygwin* | pw32* | os2*)
15832 # This hack is so that the source file can tell whether it is being
15833 # built for inclusion in a dll (and should export symbols for example).
15834 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15835 # (--disable-auto-import) libraries
15839 darwin* | rhapsody*)
15840 # PIC is the default on this platform
15841 # Common symbols not allowed in MH_DYLIB files
15842 lt_prog_compiler_pic_GCJ='-fno-common'
15846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15847 # not for PA HP-UX.
15853 lt_prog_compiler_pic_GCJ='-fPIC'
15859 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15860 # Instead, we relocate shared libraries at runtime.
15864 # Just because we use GCC doesn't mean we suddenly get shared libraries
15865 # on systems that don't support them.
15866 lt_prog_compiler_can_build_shared_GCJ=no
15871 # QNX uses GNU C++, but need to define -shared option too, otherwise
15872 # it will coredump.
15873 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15877 if test -d /usr/nec; then
15878 lt_prog_compiler_pic_GCJ=-Kconform_pic
15883 lt_prog_compiler_pic_GCJ='-fPIC'
15887 # PORTME Check for flag to pass linker flags through the system compiler.
15890 lt_prog_compiler_wl_GCJ='-Wl,'
15891 if test "$host_cpu" = ia64; then
15892 # AIX 5 now supports IA64 processor
15893 lt_prog_compiler_static_GCJ='-Bstatic'
15895 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15899 # PIC is the default on this platform
15900 # Common symbols not allowed in MH_DYLIB files
15901 case $cc_basename in
15903 lt_prog_compiler_pic_GCJ='-qnocommon'
15904 lt_prog_compiler_wl_GCJ='-Wl,'
15909 mingw* | cygwin* | pw32* | os2*)
15910 # This hack is so that the source file can tell whether it is being
15911 # built for inclusion in a dll (and should export symbols for example).
15915 hpux9* | hpux10* | hpux11*)
15916 lt_prog_compiler_wl_GCJ='-Wl,'
15917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15918 # not for PA HP-UX.
15924 lt_prog_compiler_pic_GCJ='+Z'
15927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15928 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15931 irix5* | irix6* | nonstopux*)
15932 lt_prog_compiler_wl_GCJ='-Wl,'
15933 # PIC (with -KPIC) is the default.
15934 lt_prog_compiler_static_GCJ='-non_shared'
15937 linux* | k*bsd*-gnu)
15938 case $cc_basename in
15940 lt_prog_compiler_wl_GCJ='-Wl,'
15941 lt_prog_compiler_pic_GCJ='-KPIC'
15942 lt_prog_compiler_static_GCJ='-static'
15944 pgcc* | pgf77* | pgf90* | pgf95*)
15945 # Portland Group compilers (*not* the Pentium gcc compiler,
15946 # which looks to be a dead project)
15947 lt_prog_compiler_wl_GCJ='-Wl,'
15948 lt_prog_compiler_pic_GCJ='-fpic'
15949 lt_prog_compiler_static_GCJ='-Bstatic'
15952 lt_prog_compiler_wl_GCJ='-Wl,'
15953 # All Alpha code is PIC.
15954 lt_prog_compiler_static_GCJ='-non_shared'
15957 case `$CC -V 2>&1 | sed 5q` in
15960 lt_prog_compiler_pic_GCJ='-KPIC'
15961 lt_prog_compiler_static_GCJ='-Bstatic'
15962 lt_prog_compiler_wl_GCJ='-Wl,'
15965 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15966 lt_prog_compiler_pic_GCJ='-KPIC'
15967 lt_prog_compiler_static_GCJ='-Bstatic'
15968 lt_prog_compiler_wl_GCJ=''
15976 lt_prog_compiler_pic_GCJ='-KPIC'
15977 lt_prog_compiler_static_GCJ='-Bstatic'
15981 # QNX uses GNU C++, but need to define -shared option too, otherwise
15982 # it will coredump.
15983 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15986 osf3* | osf4* | osf5*)
15987 lt_prog_compiler_wl_GCJ='-Wl,'
15988 # All OSF/1 code is PIC.
15989 lt_prog_compiler_static_GCJ='-non_shared'
15993 lt_prog_compiler_static_GCJ='-non_shared'
15997 lt_prog_compiler_pic_GCJ='-KPIC'
15998 lt_prog_compiler_static_GCJ='-Bstatic'
15999 case $cc_basename in
16000 f77* | f90* | f95*)
16001 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16003 lt_prog_compiler_wl_GCJ='-Wl,';;
16008 lt_prog_compiler_wl_GCJ='-Qoption ld '
16009 lt_prog_compiler_pic_GCJ='-PIC'
16010 lt_prog_compiler_static_GCJ='-Bstatic'
16013 sysv4 | sysv4.2uw2* | sysv4.3*)
16014 lt_prog_compiler_wl_GCJ='-Wl,'
16015 lt_prog_compiler_pic_GCJ='-KPIC'
16016 lt_prog_compiler_static_GCJ='-Bstatic'
16020 if test -d /usr/nec ;then
16021 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16022 lt_prog_compiler_static_GCJ='-Bstatic'
16026 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16027 lt_prog_compiler_wl_GCJ='-Wl,'
16028 lt_prog_compiler_pic_GCJ='-KPIC'
16029 lt_prog_compiler_static_GCJ='-Bstatic'
16033 lt_prog_compiler_wl_GCJ='-Wl,'
16034 lt_prog_compiler_can_build_shared_GCJ=no
16038 lt_prog_compiler_pic_GCJ='-pic'
16039 lt_prog_compiler_static_GCJ='-Bstatic'
16043 lt_prog_compiler_can_build_shared_GCJ=no
16049 # For platforms which do not support PIC, -DPIC is meaningless:
16051 lt_prog_compiler_pic_GCJ=
16054 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16058 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16063 # Check to make sure the PIC flag actually works.
16065 if test -n "$lt_prog_compiler_pic_GCJ"; then
16066 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16067 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 lt_prog_compiler_pic_works_GCJ=no
16072 ac_outfile=conftest.$ac_objext
16073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16074 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16075 # Insert the option either (1) after the last *FLAGS variable, or
16076 # (2) before a word containing "conftest.", or (3) at the end.
16077 # Note that $ac_compile itself does not contain backslashes and begins
16078 # with a dollar sign (not a hyphen), so the echo should work correctly.
16079 # The option is referenced via a variable to avoid confusing sed.
16080 lt_compile=`echo "$ac_compile" | $SED \
16081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083 -e 's:$: $lt_compiler_flag:'`
16084 (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085 (eval "$lt_compile" 2>conftest.err)
16087 cat conftest.err >&5
16088 echo "$as_me:16088: \$? = $ac_status" >&5
16089 if (exit $ac_status) && test -s "$ac_outfile"; then
16090 # The compiler can only warn and ignore the option if not recognized
16091 # So say no if there are warnings other than the usual output.
16092 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095 lt_prog_compiler_pic_works_GCJ=yes
16101 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16102 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16104 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16105 case $lt_prog_compiler_pic_GCJ in
16107 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16110 lt_prog_compiler_pic_GCJ=
16111 lt_prog_compiler_can_build_shared_GCJ=no
16119 # Check to make sure the static flag actually works.
16121 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16122 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16123 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16124 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16125 echo $ECHO_N "(cached) $ECHO_C" >&6
16127 lt_prog_compiler_static_works_GCJ=no
16128 save_LDFLAGS="$LDFLAGS"
16129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16132 # The linker can only warn and ignore the option if not recognized
16133 # So say no if there are warnings
16134 if test -s conftest.err; then
16135 # Append any errors to the config.log.
16136 cat conftest.err 1>&5
16137 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16139 if diff conftest.exp conftest.er2 >/dev/null; then
16140 lt_prog_compiler_static_works_GCJ=yes
16143 lt_prog_compiler_static_works_GCJ=yes
16147 LDFLAGS="$save_LDFLAGS"
16150 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16151 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16153 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16156 lt_prog_compiler_static_GCJ=
16162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16164 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 lt_cv_prog_compiler_c_o_GCJ=no
16168 $RM -r conftest 2>/dev/null
16172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16174 lt_compiler_flag="-o out/conftest2.$ac_objext"
16175 # Insert the option either (1) after the last *FLAGS variable, or
16176 # (2) before a word containing "conftest.", or (3) at the end.
16177 # Note that $ac_compile itself does not contain backslashes and begins
16178 # with a dollar sign (not a hyphen), so the echo should work correctly.
16179 lt_compile=`echo "$ac_compile" | $SED \
16180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16182 -e 's:$: $lt_compiler_flag:'`
16183 (eval echo "\"\$as_me:16183: $lt_compile\"" >&5)
16184 (eval "$lt_compile" 2>out/conftest.err)
16186 cat out/conftest.err >&5
16187 echo "$as_me:16187: \$? = $ac_status" >&5
16188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16190 # The compiler can only warn and ignore the option if not recognized
16191 # So say no if there are warnings
16192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16195 lt_cv_prog_compiler_c_o_GCJ=yes
16200 # SGI C++ compiler will create directory out/ii_files/ for
16201 # template instantiation
16202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16203 $RM out/* && rmdir out
16209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 lt_cv_prog_compiler_c_o_GCJ=no
16220 $RM -r conftest 2>/dev/null
16224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16226 lt_compiler_flag="-o out/conftest2.$ac_objext"
16227 # Insert the option either (1) after the last *FLAGS variable, or
16228 # (2) before a word containing "conftest.", or (3) at the end.
16229 # Note that $ac_compile itself does not contain backslashes and begins
16230 # with a dollar sign (not a hyphen), so the echo should work correctly.
16231 lt_compile=`echo "$ac_compile" | $SED \
16232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16234 -e 's:$: $lt_compiler_flag:'`
16235 (eval echo "\"\$as_me:16235: $lt_compile\"" >&5)
16236 (eval "$lt_compile" 2>out/conftest.err)
16238 cat out/conftest.err >&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16242 # The compiler can only warn and ignore the option if not recognized
16243 # So say no if there are warnings
16244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16247 lt_cv_prog_compiler_c_o_GCJ=yes
16252 # SGI C++ compiler will create directory out/ii_files/ for
16253 # template instantiation
16254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16255 $RM out/* && rmdir out
16261 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16262 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16267 hard_links="nottested"
16268 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16269 # do not overwrite the value of need_locks provided by the user
16270 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16271 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16276 ln conftest.a conftest.b 2>&5 || hard_links=no
16277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278 echo "$as_me:$LINENO: result: $hard_links" >&5
16279 echo "${ECHO_T}$hard_links" >&6
16280 if test "$hard_links" = no; then
16281 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16282 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16291 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16292 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16295 allow_undefined_flag_GCJ=
16296 always_export_symbols_GCJ=no
16298 archive_expsym_cmds_GCJ=
16299 compiler_needs_object_GCJ=no
16300 enable_shared_with_static_runtimes_GCJ=no
16301 export_dynamic_flag_spec_GCJ=
16302 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16303 hardcode_automatic_GCJ=no
16304 hardcode_direct_GCJ=no
16305 hardcode_direct_absolute_GCJ=no
16306 hardcode_libdir_flag_spec_GCJ=
16307 hardcode_libdir_flag_spec_ld_GCJ=
16308 hardcode_libdir_separator_GCJ=
16309 hardcode_minus_L_GCJ=no
16310 hardcode_shlibpath_var_GCJ=unsupported
16311 inherit_rpath_GCJ=no
16312 link_all_deplibs_GCJ=unknown
16314 module_expsym_cmds_GCJ=
16315 old_archive_from_new_cmds_GCJ=
16316 old_archive_from_expsyms_cmds_GCJ=
16317 thread_safe_flag_spec_GCJ=
16318 whole_archive_flag_spec_GCJ=
16319 # include_expsyms should be a list of space-separated symbols to be *always*
16320 # included in the symbol list
16321 include_expsyms_GCJ=
16322 # exclude_expsyms can be an extended regexp of symbols to exclude
16323 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16324 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16325 # as well as any symbol that contains `d'.
16326 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16328 # platforms (ab)use it in PIC code, but their linkers get confused if
16329 # the symbol is explicitly referenced. Since portable code cannot
16330 # rely on this symbol name, it's probably fine to never include it in
16331 # preloaded symbol tables.
16332 extract_expsyms_cmds=
16335 cygwin* | mingw* | pw32*)
16336 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16337 # When not using gcc, we currently assume that we are using
16338 # Microsoft Visual C++.
16339 if test "$GCC" != yes; then
16344 # we just hope/assume this is gcc and not c89 (= MSVC++)
16353 if test "$with_gnu_ld" = yes; then
16354 # If archive_cmds runs LD, not CC, wlarc should be empty
16357 # Set some defaults for GNU ld with shared library support. These
16358 # are reset later if shared libraries are not supported. Putting them
16359 # here allows them to be overridden if necessary.
16360 runpath_var=LD_RUN_PATH
16361 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16362 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16363 # ancient GNU ld didn't support --whole-archive et. al.
16364 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16365 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16367 whole_archive_flag_spec_GCJ=
16369 supports_anon_versioning=no
16370 case `$LD -v 2>&1` in
16371 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16372 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16373 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16374 *\ 2.11.*) ;; # other 2.11 versions
16375 *) supports_anon_versioning=yes ;;
16378 # See if GNU ld supports shared libraries.
16381 # On AIX/PPC, the GNU linker is very broken
16382 if test "$host_cpu" != ia64; then
16386 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16387 *** to be unable to reliably create shared libraries on AIX.
16388 *** Therefore, libtool is disabling shared libraries support. If you
16389 *** really care for shared libraries, you may want to modify your PATH
16390 *** so that a non-GNU linker is found, and then restart.
16397 if test "$host_cpu" = m68k; then
16398 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)'
16399 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16400 hardcode_minus_L_GCJ=yes
16403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16404 # that the semantics of dynamic libraries on AmigaOS, at least up
16405 # to version 4, is to share data among multiple programs linked
16406 # with the same dynamic library. Since this doesn't match the
16407 # behavior of shared libraries on other platforms, we can't use
16413 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16414 allow_undefined_flag_GCJ=unsupported
16415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16416 # support --undefined. This deserves some investigation. FIXME
16417 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16423 cygwin* | mingw* | pw32*)
16424 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16425 # as there is no search path for DLLs.
16426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16427 allow_undefined_flag_GCJ=unsupported
16428 always_export_symbols_GCJ=no
16429 enable_shared_with_static_runtimes_GCJ=yes
16430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16432 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16434 # If the export-symbols file already is a .def file (1st line
16435 # is EXPORTS), use it as is; otherwise, prepend...
16436 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437 cp $export_symbols $output_objdir/$soname.def;
16439 echo EXPORTS > $output_objdir/$soname.def;
16440 cat $export_symbols >> $output_objdir/$soname.def;
16442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16449 hardcode_direct_GCJ=no
16450 hardcode_shlibpath_var_GCJ=no
16451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16452 export_dynamic_flag_spec_GCJ='${wl}-E'
16453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16454 # Instead, shared libraries are loaded at an image base (0x10000000 by
16455 # default) and relocated if they conflict, which is a slow very memory
16456 # consuming and fragmenting process. To avoid this, we pick a random,
16457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16459 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'
16460 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'
16463 gnu* | linux* | tpf* | k*bsd*-gnu)
16465 if test "$host_os" = linux-dietlibc; then
16466 case $cc_basename in
16467 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16470 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16471 && test "$tmp_diet" = no
16474 case $cc_basename,$host_cpu in
16475 pgcc*) # Portland Group C compiler
16476 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'
16477 tmp_addflag=' $pic_flag'
16479 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16480 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'
16481 tmp_addflag=' $pic_flag -Mnomain' ;;
16482 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16483 tmp_addflag=' -i_dynamic' ;;
16484 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16485 tmp_addflag=' -i_dynamic -nofor_main' ;;
16486 ifc* | ifort*) # Intel Fortran compiler
16487 tmp_addflag=' -nofor_main' ;;
16489 case `$CC -V 2>&1 | sed 5q` in
16490 *Sun\ C*) # Sun C 5.9
16491 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'
16492 compiler_needs_object_GCJ=yes
16493 tmp_sharedflag='-G' ;;
16494 *Sun\ F*) # Sun Fortran 8.3
16495 tmp_sharedflag='-G' ;;
16497 tmp_sharedflag='-shared' ;;
16499 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501 if test "x$supports_anon_versioning" = xyes; then
16502 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16504 echo "local: *; };" >> $output_objdir/$libname.ver~
16505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16514 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16523 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16528 *** create shared libraries on Solaris systems. Therefore, libtool
16529 *** is disabling shared libraries support. We urge you to upgrade GNU
16530 *** binutils to release 2.9.1 or newer. Another option is to modify
16531 *** your PATH or compiler configuration so that the native linker is
16532 *** used, and then restart.
16535 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16536 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16537 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16544 case `$LD -v 2>&1` in
16545 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16549 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16550 *** reliably create shared libraries on SCO systems. Therefore, libtool
16551 *** is disabling shared libraries support. We urge you to upgrade GNU
16552 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16553 *** your PATH or compiler configuration so that the native linker is
16554 *** used, and then restart.
16559 # For security reasons, it is highly recommended that you always
16560 # use absolute paths for naming shared libraries, and exclude the
16561 # DT_RUNPATH tag from executables and libraries. But doing so
16562 # requires that you compile everything twice, which is a pain.
16563 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16564 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16565 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16566 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16575 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16577 hardcode_direct_GCJ=yes
16578 hardcode_shlibpath_var_GCJ=no
16582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16583 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16584 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16591 if test "$ld_shlibs_GCJ" = no; then
16593 hardcode_libdir_flag_spec_GCJ=
16594 export_dynamic_flag_spec_GCJ=
16595 whole_archive_flag_spec_GCJ=
16598 # PORTME fill in a description of your system's linker (not GNU ld)
16601 allow_undefined_flag_GCJ=unsupported
16602 always_export_symbols_GCJ=yes
16603 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'
16604 # Note: this linker hardcodes the directories in LIBPATH if there
16605 # are no directories specified by -L.
16606 hardcode_minus_L_GCJ=yes
16607 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16608 # Neither direct hardcoding nor static linking is supported with a
16610 hardcode_direct_GCJ=unsupported
16615 if test "$host_cpu" = ia64; then
16616 # On IA64, the linker does run time linking by default, so we don't
16617 # have to do anything special.
16618 aix_use_runtimelinking=no
16619 exp_sym_flag='-Bexport'
16622 # If we're using GNU nm, then we don't want the "-C" option.
16623 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16624 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16625 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'
16627 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'
16629 aix_use_runtimelinking=no
16631 # Test if we are trying to use run time linking or normal
16632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16633 # need to do runtime linking.
16634 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16635 for ld_flag in $LDFLAGS; do
16636 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16637 aix_use_runtimelinking=yes
16644 exp_sym_flag='-bexport'
16645 no_entry_flag='-bnoentry'
16648 # When large executables or shared objects are built, AIX ld can
16649 # have problems creating the table of contents. If linking a library
16650 # or program results in "error TOC overflow" add -mminimal-toc to
16651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16654 archive_cmds_GCJ=''
16655 hardcode_direct_GCJ=yes
16656 hardcode_direct_absolute_GCJ=yes
16657 hardcode_libdir_separator_GCJ=':'
16658 link_all_deplibs_GCJ=yes
16659 file_list_spec_GCJ='${wl}-f,'
16661 if test "$GCC" = yes; then
16662 case $host_os in aix4.[012]|aix4.[012].*)
16663 # We only want to do this on AIX 4.2 and lower, the check
16664 # below for broken collect2 doesn't work under 4.3+
16665 collect2name=`${CC} -print-prog-name=collect2`
16666 if test -f "$collect2name" &&
16667 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16669 # We have reworked collect2
16672 # We have old collect2
16673 hardcode_direct_GCJ=unsupported
16674 # It fails to find uninstalled libraries when the uninstalled
16675 # path is not listed in the libpath. Setting hardcode_minus_L
16676 # to unsupported forces relinking
16677 hardcode_minus_L_GCJ=yes
16678 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16679 hardcode_libdir_separator_GCJ=
16683 shared_flag='-shared'
16684 if test "$aix_use_runtimelinking" = yes; then
16685 shared_flag="$shared_flag "'${wl}-G'
16689 if test "$host_cpu" = ia64; then
16690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16691 # chokes on -Wl,-G. The following line is correct:
16694 if test "$aix_use_runtimelinking" = yes; then
16695 shared_flag='${wl}-G'
16697 shared_flag='${wl}-bM:SRE'
16702 # It seems that -bexpall does not export symbols beginning with
16703 # underscore (_), so it is better to generate a list of symbols to export.
16704 always_export_symbols_GCJ=yes
16705 if test "$aix_use_runtimelinking" = yes; then
16706 # Warning - without using the other runtime loading flags (-brtl),
16707 # -berok will link without error, but may produce a broken library.
16708 allow_undefined_flag_GCJ='-berok'
16709 # Determine the default libpath from the value encoded in an
16710 # empty executable.
16711 if test x$gcc_no_link = xyes; then
16712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16714 { (exit 1); exit 1; }; }
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16731 rm -f conftest.$ac_objext conftest$ac_exeext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16733 (eval $ac_link) 2>conftest.er1
16735 grep -v '^ *+' conftest.er1 >conftest.err
16737 cat conftest.err >&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
16740 { ac_try='test -z "$ac_c_werror_flag"
16741 || test ! -s conftest.err'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; } &&
16747 { ac_try='test -s conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16754 lt_aix_libpath_sed='
16755 /Import File Strings/,/^$/ {
16761 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16762 # Check for a 64-bit object if we didn't find anything.
16763 if test -z "$aix_libpath"; then
16764 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16771 rm -f conftest.err conftest.$ac_objext \
16772 conftest$ac_exeext conftest.$ac_ext
16773 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16775 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16776 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"
16778 if test "$host_cpu" = ia64; then
16779 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16780 allow_undefined_flag_GCJ="-z nodefs"
16781 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"
16783 # Determine the default libpath from the value encoded in an
16784 # empty executable.
16785 if test x$gcc_no_link = xyes; then
16786 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16787 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16788 { (exit 1); exit 1; }; }
16790 cat >conftest.$ac_ext <<_ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807 (eval $ac_link) 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag"
16815 || test ! -s conftest.err'
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest$ac_exeext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16828 lt_aix_libpath_sed='
16829 /Import File Strings/,/^$/ {
16835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16836 # Check for a 64-bit object if we didn't find anything.
16837 if test -z "$aix_libpath"; then
16838 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16841 echo "$as_me: failed program was:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16845 rm -f conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16849 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16850 # Warning - without using the other run time loading flags,
16851 # -berok will link without error, but may produce a broken library.
16852 no_undefined_flag_GCJ=' ${wl}-bernotok'
16853 allow_undefined_flag_GCJ=' ${wl}-berok'
16854 # Exported symbols can be pulled into shared objects from archives
16855 whole_archive_flag_spec_GCJ='$convenience'
16856 archive_cmds_need_lc_GCJ=yes
16857 # This is similar to how AIX traditionally builds its shared libraries.
16858 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'
16864 if test "$host_cpu" = m68k; then
16865 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)'
16866 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867 hardcode_minus_L_GCJ=yes
16869 # see comment about different semantics on the GNU ld section
16874 export_dynamic_flag_spec_GCJ=-rdynamic
16877 cygwin* | mingw* | pw32*)
16878 # When not using gcc, we currently assume that we are using
16879 # Microsoft Visual C++.
16880 # hardcode_libdir_flag_spec is actually meaningless, as there is
16881 # no search path for DLLs.
16882 hardcode_libdir_flag_spec_GCJ=' '
16883 allow_undefined_flag_GCJ=unsupported
16884 # Tell ltmain to make .lib files, not .a files.
16886 # Tell ltmain to make .dll files, not .so files.
16888 # FIXME: Setting linknames here is a bad hack.
16889 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16890 # The linker will automatically build a .lib file if we build a DLL.
16891 old_archive_from_new_cmds_GCJ='true'
16892 # FIXME: Should let the user specify the lib program.
16893 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16894 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16895 enable_shared_with_static_runtimes_GCJ=yes
16898 darwin* | rhapsody*)
16900 rhapsody* | darwin1.[012])
16901 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16904 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16906 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16909 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16914 archive_cmds_need_lc_GCJ=no
16915 hardcode_direct_GCJ=no
16916 hardcode_automatic_GCJ=yes
16917 hardcode_shlibpath_var_GCJ=unsupported
16918 whole_archive_flag_spec_GCJ=''
16919 link_all_deplibs_GCJ=yes
16920 if test "$GCC" = yes ; then
16921 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 lt_cv_apple_cc_single_mod=no
16925 if test -z "${LT_MULTI_MODULE}"; then
16926 # By default we will add the -single_module flag. You can override
16927 # by either setting the environment variable LT_MULTI_MODULE
16928 # non-empty at configure time, or by adding -multi-module to the
16930 echo "int foo(void){return 1;}" > conftest.c
16931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16932 -dynamiclib ${wl}-single_module conftest.c
16933 if test -f libconftest.dylib; then
16934 lt_cv_apple_cc_single_mod=yes
16935 rm libconftest.dylib
16937 rm conftest.$ac_ext
16941 output_verbose_link_cmd=echo
16942 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16943 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16944 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16946 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16947 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16949 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16950 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16952 case $cc_basename in
16954 output_verbose_link_cmd=echo
16955 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16956 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16958 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16959 module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16971 hardcode_shlibpath_var_GCJ=no
16978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16979 # support. Future versions do this automatically, but an explicit c++rt0.o
16980 # does not break anything, and helps significantly (at the cost of a little
16983 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16984 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16985 hardcode_direct_GCJ=yes
16986 hardcode_shlibpath_var_GCJ=no
16989 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16992 hardcode_direct_GCJ=yes
16993 hardcode_minus_L_GCJ=yes
16994 hardcode_shlibpath_var_GCJ=no
16997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16998 freebsd* | dragonfly*)
16999 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17001 hardcode_direct_GCJ=yes
17002 hardcode_shlibpath_var_GCJ=no
17006 if test "$GCC" = yes; then
17007 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'
17009 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'
17011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17012 hardcode_libdir_separator_GCJ=:
17013 hardcode_direct_GCJ=yes
17015 # hardcode_minus_L: Not really in the search PATH,
17016 # but as the default location of the library.
17017 hardcode_minus_L_GCJ=yes
17018 export_dynamic_flag_spec_GCJ='${wl}-E'
17022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17023 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17025 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17027 if test "$with_gnu_ld" = no; then
17028 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17029 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17030 hardcode_libdir_separator_GCJ=:
17031 hardcode_direct_GCJ=yes
17032 hardcode_direct_absolute_GCJ=yes
17033 export_dynamic_flag_spec_GCJ='${wl}-E'
17034 # hardcode_minus_L: Not really in the search PATH,
17035 # but as the default location of the library.
17036 hardcode_minus_L_GCJ=yes
17041 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17044 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17059 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17062 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17066 if test "$with_gnu_ld" = no; then
17067 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17068 hardcode_libdir_separator_GCJ=:
17072 hardcode_direct_GCJ=no
17073 hardcode_shlibpath_var_GCJ=no
17076 hardcode_direct_GCJ=yes
17077 hardcode_direct_absolute_GCJ=yes
17078 export_dynamic_flag_spec_GCJ='${wl}-E'
17080 # hardcode_minus_L: Not really in the search PATH,
17081 # but as the default location of the library.
17082 hardcode_minus_L_GCJ=yes
17088 irix5* | irix6* | nonstopux*)
17089 if test "$GCC" = yes; then
17090 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'
17091 # Try to use the -exported_symbol ld option, if it does not
17092 # work, assume that -exports_file does not work either and
17093 # implicitly export all symbols.
17094 save_LDFLAGS="$LDFLAGS"
17095 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17096 if test x$gcc_no_link = xyes; then
17097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17099 { (exit 1); exit 1; }; }
17101 cat >conftest.$ac_ext <<_ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 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'
17129 echo "$as_me: failed program was:" >&5
17130 sed 's/^/| /' conftest.$ac_ext >&5
17133 rm -f conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LDFLAGS="$save_LDFLAGS"
17137 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'
17138 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'
17140 archive_cmds_need_lc_GCJ='no'
17141 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17142 hardcode_libdir_separator_GCJ=:
17143 inherit_rpath_GCJ=yes
17144 link_all_deplibs_GCJ=yes
17148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17149 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17151 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17153 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17154 hardcode_direct_GCJ=yes
17155 hardcode_shlibpath_var_GCJ=no
17159 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160 hardcode_direct_GCJ=yes
17161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17162 hardcode_libdir_separator_GCJ=:
17163 hardcode_shlibpath_var_GCJ=no
17170 hardcode_direct_GCJ=yes
17171 hardcode_shlibpath_var_GCJ=no
17172 hardcode_direct_absolute_GCJ=yes
17173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17174 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17175 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17176 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17177 export_dynamic_flag_spec_GCJ='${wl}-E'
17180 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17181 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17182 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17185 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17193 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17194 hardcode_minus_L_GCJ=yes
17195 allow_undefined_flag_GCJ=unsupported
17196 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'
17197 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17201 if test "$GCC" = yes; then
17202 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17203 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'
17205 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17206 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'
17208 archive_cmds_need_lc_GCJ='no'
17209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17210 hardcode_libdir_separator_GCJ=:
17213 osf4* | osf5*) # as osf3* with the addition of -msym flag
17214 if test "$GCC" = yes; then
17215 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17216 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'
17217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17219 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17220 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'
17221 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~
17222 $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'
17224 # Both c and cxx compiler support -rpath directly
17225 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17227 archive_cmds_need_lc_GCJ='no'
17228 hardcode_libdir_separator_GCJ=:
17232 no_undefined_flag_GCJ=' -z defs'
17233 if test "$GCC" = yes; then
17235 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17236 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17237 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17239 case `$CC -V 2>&1` in
17242 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17244 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17248 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17249 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17250 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17254 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17255 hardcode_shlibpath_var_GCJ=no
17257 solaris2.[0-5] | solaris2.[0-5].*) ;;
17259 # The compiler driver will combine and reorder linker options,
17260 # but understands `-z linker_flag'. GCC discards it without `$wl',
17261 # but is careful enough not to reorder.
17262 # Supported since Solaris 2.6 (maybe 2.5.1?)
17263 if test "$GCC" = yes; then
17264 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17266 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17270 link_all_deplibs_GCJ=yes
17274 if test "x$host_vendor" = xsequent; then
17275 # Use $CC to link under sequent, because it throws in some extra .o
17276 # files that make .init and .fini sections work.
17277 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 hardcode_direct_GCJ=yes
17283 hardcode_minus_L_GCJ=yes
17284 hardcode_shlibpath_var_GCJ=no
17288 case $host_vendor in
17290 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17291 hardcode_direct_GCJ=yes # is this really true???
17294 ## LD is ld it makes a PLAMLIB
17295 ## CC just makes a GrossModule.
17296 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17297 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17298 hardcode_direct_GCJ=no
17301 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17302 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17305 runpath_var='LD_RUN_PATH'
17306 hardcode_shlibpath_var_GCJ=no
17310 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17311 hardcode_shlibpath_var_GCJ=no
17312 export_dynamic_flag_spec_GCJ='-Bexport'
17316 if test -d /usr/nec; then
17317 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17318 hardcode_shlibpath_var_GCJ=no
17319 runpath_var=LD_RUN_PATH
17320 hardcode_runpath_var=yes
17325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17326 no_undefined_flag_GCJ='${wl}-z,text'
17327 archive_cmds_need_lc_GCJ=no
17328 hardcode_shlibpath_var_GCJ=no
17329 runpath_var='LD_RUN_PATH'
17331 if test "$GCC" = yes; then
17332 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17335 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17336 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17340 sysv5* | sco3.2v5* | sco5v6*)
17341 # Note: We can NOT use -z defs as we might desire, because we do not
17342 # link with -lc, and that would cause any symbols used from libc to
17343 # always be unresolved, which means just about no library would
17344 # ever link correctly. If we're not using GNU ld we use -z text
17345 # though, which does catch some bad symbols but isn't as heavy-handed
17347 no_undefined_flag_GCJ='${wl}-z,text'
17348 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17349 archive_cmds_need_lc_GCJ=no
17350 hardcode_shlibpath_var_GCJ=no
17351 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17352 hardcode_libdir_separator_GCJ=':'
17353 link_all_deplibs_GCJ=yes
17354 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17355 runpath_var='LD_RUN_PATH'
17357 if test "$GCC" = yes; then
17358 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17361 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17362 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17367 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_shlibpath_var_GCJ=no
17377 if test x$host_vendor = xsni; then
17379 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17380 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17386 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17387 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17388 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17390 with_gnu_ld_GCJ=$with_gnu_ld
17398 # Do we need to explicitly link libc?
17400 case "x$archive_cmds_need_lc_GCJ" in
17402 # Assume -lc should be added
17403 archive_cmds_need_lc_GCJ=yes
17405 if test "$enable_shared" = yes && test "$GCC" = yes; then
17406 case $archive_cmds_GCJ in
17408 # FIXME: we may have to deal with multi-command sequences.
17411 # Test whether the compiler implicitly links with -lc since on some
17412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17413 # to ld, don't add -lc before -lgcc.
17414 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17415 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17420 (eval $ac_compile) 2>&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } 2>conftest.err; then
17426 libobjs=conftest.$ac_objext
17428 wl=$lt_prog_compiler_wl_GCJ
17429 pic_flag=$lt_prog_compiler_pic_GCJ
17435 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17436 allow_undefined_flag_GCJ=
17437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17438 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }
17443 archive_cmds_need_lc_GCJ=no
17445 archive_cmds_need_lc_GCJ=yes
17447 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17449 cat conftest.err 1>&5
17452 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17453 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17523 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17526 library_names_spec=
17527 libname_spec='lib$name'
17531 postuninstall_cmds=
17535 shlibpath_overrides_runpath=unknown
17537 dynamic_linker="$host_os ld.so"
17538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17539 need_lib_prefix=unknown
17540 hardcode_into_libs=no
17542 # when you set need_version to no, make sure it does not cause -set_version
17543 # flags to be left without arguments
17544 need_version=unknown
17549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17550 shlibpath_var=LIBPATH
17552 # AIX 3 has no versioning support, so we append a major version to the name.
17553 soname_spec='${libname}${release}${shared_ext}$major'
17560 hardcode_into_libs=yes
17561 if test "$host_cpu" = ia64; then
17562 # AIX 5 supports IA64
17563 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17564 shlibpath_var=LD_LIBRARY_PATH
17566 # With GCC up to 2.95.x, collect2 would create an import file
17567 # for dependence libraries. The import file would start with
17568 # the line `#! .'. This would cause the generated library to
17569 # depend on `.', always an invalid library. This was fixed in
17570 # development snapshots of GCC prior to 3.0.
17572 aix4 | aix4.[01] | aix4.[01].*)
17573 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17575 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17578 can_build_shared=no
17582 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17583 # soname into executable. Probably we can add versioning support to
17584 # collect2, so additional links can be useful in future.
17585 if test "$aix_use_runtimelinking" = yes; then
17586 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17587 # instead of lib<name>.a to let people know that these are not
17588 # typical AIX shared libraries.
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 # We preserve .a as extension for shared libraries through AIX4.2
17592 # and later when we are not doing run time linking.
17593 library_names_spec='${libname}${release}.a $libname.a'
17594 soname_spec='${libname}${release}${shared_ext}$major'
17596 shlibpath_var=LIBPATH
17601 if test "$host_cpu" = m68k; then
17602 library_names_spec='$libname.ixlibrary $libname.a'
17603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17604 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'
17611 library_names_spec='${libname}${shared_ext}'
17612 dynamic_linker="$host_os ld.so"
17613 shlibpath_var=LIBRARY_PATH
17619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17620 soname_spec='${libname}${release}${shared_ext}$major'
17621 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17622 shlibpath_var=LD_LIBRARY_PATH
17623 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17624 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17625 # the default ld.so.conf also contains /usr/contrib/lib and
17626 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17627 # libtool to hard-code these into programs
17630 cygwin* | mingw* | pw32*)
17631 version_type=windows
17636 case $withGCC,$host_os in
17637 yes,cygwin* | yes,mingw* | yes,pw32*)
17638 library_names_spec='$libname.dll.a'
17639 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17640 postinstall_cmds='base_file=`basename \${file}`~
17641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17642 dldir=$destdir/`dirname \$dlpath`~
17643 test -d \$dldir || mkdir -p \$dldir~
17644 $install_prog $dir/$dlname \$dldir/$dlname~
17645 chmod a+x \$dldir/$dlname~
17646 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17647 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17649 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17650 dlpath=$dir/\$dldll~
17652 shlibpath_overrides_runpath=yes
17656 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17657 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17658 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17661 # MinGW DLLs use traditional 'lib' prefix
17662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17663 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17664 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17665 # It is most probably a Windows format PATH printed by
17666 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17667 # path with ; separators, and with drive letters. We can handle the
17668 # drive letters (cygwin fileutils understands them), so leave them,
17669 # especially as we might pass files found there to a mingw objdump,
17670 # which wouldn't understand a cygwinified path. Ahh.
17671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17673 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17677 # pw32 DLLs use 'pw' prefix rather than 'lib'
17678 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17684 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17687 dynamic_linker='Win32 ld.exe'
17688 # FIXME: first we should search . and the directory the executable is in
17692 darwin* | rhapsody*)
17693 dynamic_linker="$host_os dyld"
17694 version_type=darwin
17697 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17698 soname_spec='${libname}${release}${major}$shared_ext'
17699 shlibpath_overrides_runpath=yes
17700 shlibpath_var=DYLD_LIBRARY_PATH
17701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17719 freebsd* | dragonfly*)
17720 # DragonFly does not have aout. When/if they implement a new
17721 # versioning mechanism, adjust this.
17722 if test -x /usr/bin/objformat; then
17723 objformat=`/usr/bin/objformat`
17726 freebsd[123]*) objformat=aout ;;
17727 *) objformat=elf ;;
17730 version_type=freebsd-$objformat
17731 case $version_type in
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17742 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=yes
17747 freebsd3.[01]* | freebsdelf3.[01]*)
17748 shlibpath_overrides_runpath=yes
17749 hardcode_into_libs=yes
17751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17753 shlibpath_overrides_runpath=no
17754 hardcode_into_libs=yes
17756 *) # from 4.6 on, and DragonFly
17757 shlibpath_overrides_runpath=yes
17758 hardcode_into_libs=yes
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 shlibpath_var=LD_LIBRARY_PATH
17770 hardcode_into_libs=yes
17773 hpux9* | hpux10* | hpux11*)
17774 # Give a soname corresponding to the major version so that dld.sl refuses to
17775 # link against other versions.
17782 hardcode_into_libs=yes
17783 dynamic_linker="$host_os dld.so"
17784 shlibpath_var=LD_LIBRARY_PATH
17785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 if test "X$HPUX_IA64_MODE" = X32; then
17789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17797 hardcode_into_libs=yes
17798 dynamic_linker="$host_os dld.sl"
17799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802 soname_spec='${libname}${release}${shared_ext}$major'
17803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17808 dynamic_linker="$host_os dld.sl"
17809 shlibpath_var=SHLIB_PATH
17810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812 soname_spec='${libname}${release}${shared_ext}$major'
17815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17816 postinstall_cmds='chmod 555 $lib'
17823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17824 soname_spec='${libname}${release}${shared_ext}$major'
17825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17826 shlibpath_var=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath=no
17828 hardcode_into_libs=yes
17831 irix5* | irix6* | nonstopux*)
17833 nonstopux*) version_type=nonstopux ;;
17835 if test "$lt_cv_prog_gnu_ld" = yes; then
17843 soname_spec='${libname}${release}${shared_ext}$major'
17844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17846 irix5* | nonstopux*)
17847 libsuff= shlibsuff=
17850 case $LD in # libtool.m4 will add one of these switches to LD
17851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17852 libsuff= shlibsuff= libmagic=32-bit;;
17853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17854 libsuff=32 shlibsuff=N32 libmagic=N32;;
17855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17857 *) libsuff= shlibsuff= libmagic=never-match;;
17861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17862 shlibpath_overrides_runpath=no
17863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17865 hardcode_into_libs=yes
17868 # No shared lib support for Linux oldld, aout, or coff.
17869 linux*oldld* | linux*aout* | linux*coff*)
17873 # This must be Linux ELF.
17874 linux* | k*bsd*-gnu)
17878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879 soname_spec='${libname}${release}${shared_ext}$major'
17880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17881 shlibpath_var=LD_LIBRARY_PATH
17882 shlibpath_overrides_runpath=no
17883 # Some binutils ld are patched to set DT_RUNPATH
17884 save_LDFLAGS=$LDFLAGS
17885 save_libdir=$libdir
17886 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17887 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17888 if test x$gcc_no_link = xyes; then
17889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17891 { (exit 1); exit 1; }; }
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); } &&
17917 { ac_try='test -z "$ac_c_werror_flag"
17918 || test ! -s conftest.err'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; } &&
17924 { ac_try='test -s conftest$ac_exeext'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; }; then
17930 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17931 shlibpath_overrides_runpath=yes
17935 echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17939 rm -f conftest.err conftest.$ac_objext \
17940 conftest$ac_exeext conftest.$ac_ext
17941 LDFLAGS=$save_LDFLAGS
17942 libdir=$save_libdir
17944 # This implies no fast_install, which is unacceptable.
17945 # Some rework will be needed to allow for fast_install
17946 # before this can be enabled.
17947 hardcode_into_libs=yes
17949 # Append ld.so.conf contents to the search path
17950 if test -f /etc/ld.so.conf; then
17951 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17952 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17955 # We used to test for /lib/ld.so.1 and disable shared libraries on
17956 # powerpc, because MkLinux only supported shared libraries with the
17957 # GNU dynamic linker. Since this was broken with cross compilers,
17958 # most powerpc-linux boxes support dynamic linking these days and
17959 # people can always --disable-shared, the test was removed, and we
17960 # assume the GNU/Linux dynamic linker is in use.
17961 dynamic_linker='GNU/Linux ld.so'
17968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17971 dynamic_linker='NetBSD (a.out) ld.so'
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 dynamic_linker='NetBSD ld.elf_so'
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes
17979 hardcode_into_libs=yes
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=yes
17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994 soname_spec='${libname}${release}${shared_ext}$major'
17995 shlibpath_var=LD_LIBRARY_PATH
17996 shlibpath_overrides_runpath=no
17997 hardcode_into_libs=yes
17998 dynamic_linker='ldqnx.so'
18003 sys_lib_dlsearch_path_spec="/usr/lib"
18005 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18007 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18008 *) need_version=no ;;
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18012 shlibpath_var=LD_LIBRARY_PATH
18013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18015 openbsd2.[89] | openbsd2.[89].*)
18016 shlibpath_overrides_runpath=no
18019 shlibpath_overrides_runpath=yes
18023 shlibpath_overrides_runpath=yes
18028 libname_spec='$name'
18031 library_names_spec='$libname${shared_ext} $libname.a'
18032 dynamic_linker='OS/2 ld.exe'
18033 shlibpath_var=LIBPATH
18036 osf3* | osf4* | osf5*)
18040 soname_spec='${libname}${release}${shared_ext}$major'
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042 shlibpath_var=LD_LIBRARY_PATH
18043 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18044 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 shlibpath_var=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath=yes
18059 hardcode_into_libs=yes
18060 # ldd complains unless libraries are executable
18061 postinstall_cmds='chmod +x $lib'
18066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18067 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18068 shlibpath_var=LD_LIBRARY_PATH
18069 shlibpath_overrides_runpath=yes
18070 if test "$with_gnu_ld" = yes; then
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 case $host_vendor in
18083 shlibpath_overrides_runpath=no
18085 runpath_var=LD_RUN_PATH
18093 shlibpath_overrides_runpath=no
18094 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18100 if test -d /usr/nec ;then
18102 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18103 soname_spec='$libname${shared_ext}.$major'
18104 shlibpath_var=LD_LIBRARY_PATH
18108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18109 version_type=freebsd-elf
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 shlibpath_var=LD_LIBRARY_PATH
18115 shlibpath_overrides_runpath=yes
18116 hardcode_into_libs=yes
18117 if test "$with_gnu_ld" = yes; then
18118 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18120 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18127 sys_lib_dlsearch_path_spec='/usr/lib'
18131 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18135 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136 shlibpath_var=LD_LIBRARY_PATH
18137 shlibpath_overrides_runpath=no
18138 hardcode_into_libs=yes
18143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 shlibpath_var=LD_LIBRARY_PATH
18152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18153 echo "${ECHO_T}$dynamic_linker" >&6
18154 test "$dynamic_linker" = no && can_build_shared=no
18156 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18157 if test "$GCC" = yes; then
18158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18196 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18197 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18198 hardcode_action_GCJ=
18199 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18200 test -n "$runpath_var_GCJ" ||
18201 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18203 # We can hardcode non-existent directories.
18204 if test "$hardcode_direct_GCJ" != no &&
18205 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18206 # have to relink, otherwise we might link with an installed library
18207 # when we should be linking with a yet-to-be-installed one
18208 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18209 test "$hardcode_minus_L_GCJ" != no; then
18210 # Linking always hardcodes the temporary library directory.
18211 hardcode_action_GCJ=relink
18213 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18214 hardcode_action_GCJ=immediate
18217 # We cannot hardcode anything, or else we can only hardcode existing
18219 hardcode_action_GCJ=unsupported
18221 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18222 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18224 if test "$hardcode_action_GCJ" = relink ||
18225 test "$inherit_rpath_GCJ" = yes; then
18226 # Fast installation is not supported
18227 enable_fast_install=no
18228 elif test "$shlibpath_overrides_runpath" = yes ||
18229 test "$enable_shared" = no; then
18230 # Fast installation is not necessary
18231 enable_fast_install=needless
18242 compiler_GCJ=${GCJ-gcj}
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18250 if test "x$CC" != xcc; then
18251 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18252 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18254 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18255 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18257 set dummy $CC; ac_cc=`echo $2 |
18258 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18259 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 cat >conftest.$ac_ext <<_ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18277 # Make sure it works both with $CC and with simple cc.
18278 # We do the test twice because some compilers refuse to overwrite an
18279 # existing .o file with -o, though they will create one.
18280 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18281 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
18286 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); };
18292 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18293 if test "x$CC" != xcc; then
18294 # Test first that cc exists at all.
18295 if { ac_try='cc -c conftest.$ac_ext >&5'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18302 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); };
18316 # cc exists but doesn't like -o.
18317 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18322 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18327 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18328 echo "$as_me:$LINENO: result: yes" >&5
18329 echo "${ECHO_T}yes" >&6
18331 echo "$as_me:$LINENO: result: no" >&5
18332 echo "${ECHO_T}no" >&6
18334 cat >>confdefs.h <<\_ACEOF
18335 #define NO_MINUS_C_MINUS_O 1
18340 # FIXME: we rely on the cache variable name because
18341 # there is no other way.
18343 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18344 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18345 # Losing compiler, so override with the script.
18346 # FIXME: It is wrong to rewrite CC.
18347 # But if we don't then we get into trouble of one sort or another.
18348 # A longer-term fix would be to have automake use am__CC in this case,
18349 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18350 CC="$am_aux_dir/compile $CC"
18356 subdirs="$subdirs classpath libltdl"
18359 # The -no-testsuite modules omit the test subdir.
18362 if test -d $srcdir/testsuite; then
18364 TESTSUBDIR_FALSE='#'
18366 TESTSUBDIR_TRUE='#'
18371 # Should the runtime set system properties by examining the
18372 # environment variable GCJ_PROPERTIES?
18373 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18374 if test "${enable_getenv_properties+set}" = set; then
18375 enableval="$enable_getenv_properties"
18379 # Whether GCJ_PROPERTIES is used depends on the target.
18380 if test -z "$enable_getenv_properties"; then
18381 enable_getenv_properties=${enable_getenv_properties_default-yes}
18383 if test "$enable_getenv_properties" = no; then
18385 cat >>confdefs.h <<\_ACEOF
18386 #define DISABLE_GETENV_PROPERTIES 1
18391 # Whether we should use arguments to main()
18392 if test -z "$enable_main_args"; then
18393 enable_main_args=${enable_main_args_default-yes}
18395 if test "$enable_main_args" = no; then
18397 cat >>confdefs.h <<\_ACEOF
18398 #define DISABLE_MAIN_ARGS 1
18404 # Should we use hashtable-based synchronization?
18405 # Currently works only for Linux X86/ia64
18406 # Typically faster and more space-efficient
18407 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18408 if test "${enable_hash_synchronization+set}" = set; then
18409 enableval="$enable_hash_synchronization"
18413 if test -z "$enable_hash_synchronization"; then
18414 enable_hash_synchronization=$enable_hash_synchronization_default
18422 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18423 if test "${with_ecj_jar+set}" = set; then
18424 withval="$with_ecj_jar"
18427 if test -f $multi_basedir/ecj.jar; then
18428 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18429 ECJ_JAR='$(jardir)/ecj.jar'
18430 install_ecj_jar=yes
18437 if test "$ECJ_JAR" != ""; then
18439 BUILD_ECJ1_FALSE='#'
18441 BUILD_ECJ1_TRUE='#'
18447 if test $install_ecj_jar = yes; then
18448 INSTALL_ECJ_JAR_TRUE=
18449 INSTALL_ECJ_JAR_FALSE='#'
18451 INSTALL_ECJ_JAR_TRUE='#'
18452 INSTALL_ECJ_JAR_FALSE=
18457 # Check whether --with-java-home or --without-java-home was given.
18458 if test "${with_java_home+set}" = set; then
18459 withval="$with_java_home"
18460 JAVA_HOME="${withval}"
18466 if test ! -z "$JAVA_HOME"; then
18467 JAVA_HOME_SET_TRUE=
18468 JAVA_HOME_SET_FALSE='#'
18470 JAVA_HOME_SET_TRUE='#'
18471 JAVA_HOME_SET_FALSE=
18476 suppress_libgcj_bc=no
18477 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18478 if test "${enable_libgcj_bc+set}" = set; then
18479 enableval="$enable_libgcj_bc"
18480 if test "$enable_libgcj_bc" = "no"; then
18481 suppress_libgcj_bc=yes
18486 if test "$suppress_libgcj_bc" = "yes"; then
18487 SUPPRESS_LIBGCJ_BC_TRUE=
18488 SUPPRESS_LIBGCJ_BC_FALSE='#'
18490 SUPPRESS_LIBGCJ_BC_TRUE='#'
18491 SUPPRESS_LIBGCJ_BC_FALSE=
18495 # What is the native OS API for MinGW?
18497 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18498 if test "${with_win32_nlsapi+set}" = set; then
18499 withval="$with_win32_nlsapi"
18500 case "${withval}" in
18501 ansi) with_win32_nlsapi=ansi ;;
18502 unicows) with_win32_nlsapi=unicows ;;
18503 unicode) with_win32_nlsapi=unicode ;;
18504 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18505 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18506 { (exit 1); exit 1; }; } ;;
18509 with_win32_nlsapi=ansi
18512 case "${with_win32_nlsapi}" in
18515 cat >>confdefs.h <<\_ACEOF
18516 #define MINGW_LIBGCJ_UNICODE 1
18522 # configure.host sets slow_pthread_self if the synchronization code should
18523 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18524 if test "${slow_pthread_self}" = "yes"; then
18526 cat >>confdefs.h <<\_ACEOF
18527 #define SLOW_PTHREAD_SELF 1
18532 # Check for gc debugging. This option is handled both here and in the GC.
18533 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18534 if test "${enable_gc_debug+set}" = set; then
18535 enableval="$enable_gc_debug"
18536 if test "$enable_gc_debug" = "yes"; then
18538 cat >>confdefs.h <<\_ACEOF
18539 #define LIBGCJ_GC_DEBUG 1
18545 # See if the user has the interpreter included.
18546 # Check whether --enable-interpreter or --disable-interpreter was given.
18547 if test "${enable_interpreter+set}" = set; then
18548 enableval="$enable_interpreter"
18549 if test "$enable_interpreter" = yes; then
18550 # This can also be set in configure.host.
18551 libgcj_interpreter=yes
18552 elif test "$enable_interpreter" = no; then
18553 libgcj_interpreter=no
18557 if test "$libgcj_interpreter" = yes; then
18559 cat >>confdefs.h <<\_ACEOF
18560 #define INTERPRETER 1
18564 INTERPRETER="$libgcj_interpreter"
18568 if test "$libgcj_interpreter" = yes; then
18570 INTERPRETER_FALSE='#'
18572 INTERPRETER_TRUE='#'
18577 echo "$as_me:$LINENO: checking for exception model to use" >&5
18578 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18580 ac_cpp='$CXXCPP $CPPFLAGS'
18581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18585 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18586 if test "${enable_sjlj_exceptions+set}" = set; then
18587 enableval="$enable_sjlj_exceptions"
18590 cat > conftest.$ac_ext << EOF
18591 #line 18591 "configure"
18592 struct S { ~S(); };
18600 old_CXXFLAGS="$CXXFLAGS"
18602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603 (eval $ac_compile) 2>&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; then
18607 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18608 enable_sjlj_exceptions=yes
18609 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18610 enable_sjlj_exceptions=no
18613 CXXFLAGS="$old_CXXFLAGS"
18616 if test x$enable_sjlj_exceptions = xyes; then
18618 cat >>confdefs.h <<\_ACEOF
18619 #define SJLJ_EXCEPTIONS 1
18622 ac_exception_model_name=sjlj
18623 elif test x$enable_sjlj_exceptions = xno; then
18624 ac_exception_model_name="call frame"
18626 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18627 echo "$as_me: error: unable to detect exception model" >&2;}
18628 { (exit 1); exit 1; }; }
18631 ac_cpp='$CPP $CPPFLAGS'
18632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18637 echo "${ECHO_T}$ac_exception_model_name" >&6
18639 # If we are non using SJLJ exceptions, and this host does not have support
18640 # for unwinding from a signal handler, enable checked dereferences and divides.
18641 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18642 CHECKREFSPEC=-fcheck-references
18643 DIVIDESPEC=-fuse-divide-subroutine
18647 # See if the user wants to disable java.net. This is the mildly
18648 # ugly way that we admit that target-side configuration sucks.
18649 # Check whether --enable-java-net or --disable-java-net was given.
18650 if test "${enable_java_net+set}" = set; then
18651 enableval="$enable_java_net"
18655 # Whether java.net is built by default can depend on the target.
18656 if test -z "$enable_java_net"; then
18657 enable_java_net=${enable_java_net_default-yes}
18659 if test "$enable_java_net" = no; then
18661 cat >>confdefs.h <<\_ACEOF
18662 #define DISABLE_JAVA_NET 1
18667 # See if the user wants to configure without libffi. Some
18668 # architectures don't support it, and default values are set in
18671 # Check whether --with-libffi or --without-libffi was given.
18672 if test "${with_libffi+set}" = set; then
18673 withval="$with_libffi"
18676 with_libffi=${with_libffi_default-yes}
18681 if test "$with_libffi" != no; then
18683 cat >>confdefs.h <<\_ACEOF
18684 #define USE_LIBFFI 1
18687 LIBFFI=../libffi/libffi_convenience.la
18688 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18693 # See if the user wants to disable JVMPI support.
18694 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18695 if test "${enable_jvmpi+set}" = set; then
18696 enableval="$enable_jvmpi"
18700 if test "$enable_jvmpi" != no; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define ENABLE_JVMPI 1
18708 # If the target is an eCos system, use the appropriate eCos
18710 # FIXME: this should not be a local option but a global target
18711 # system; at present there is no eCos target.
18712 TARGET_ECOS=${PROCESS-"no"}
18714 # Check whether --with-ecos or --without-ecos was given.
18715 if test "${with_ecos+set}" = set; then
18716 withval="$with_ecos"
18717 TARGET_ECOS="$with_ecos"
18721 case "$TARGET_ECOS" in
18722 no) case "$host" in
18728 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18729 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18730 LD_PROG=`$CC --print-prog-name=ld`
18731 LD_VERSION=`$LD_PROG --version`
18732 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18733 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18734 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18737 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18741 if test "x$LD_OK" != x; then
18742 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18743 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18745 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18746 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18747 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18748 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18750 cat >>confdefs.h <<\_ACEOF
18751 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18767 cat >>confdefs.h <<\_ACEOF
18775 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 #include <stdint.h>
18787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18788 $EGREP "uint32_t" >/dev/null 2>&1; then
18790 cat >>confdefs.h <<\_ACEOF
18791 #define HAVE_INT32_DEFINED 1
18797 cat >conftest.$ac_ext <<_ACEOF
18800 cat confdefs.h >>conftest.$ac_ext
18801 cat >>conftest.$ac_ext <<_ACEOF
18802 /* end confdefs.h. */
18803 #include <inttypes.h>
18806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18807 $EGREP "uint32_t" >/dev/null 2>&1; then
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_INT32_DEFINED 1
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #include <sys/types.h>
18825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18826 $EGREP "u_int32_t" >/dev/null 2>&1; then
18828 cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_BSD_INT32_DEFINED 1
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <sys/config.h>
18844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18845 $EGREP "u_int32_t" >/dev/null 2>&1; then
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_BSD_INT32_DEFINED 1
18857 if test "$PLATFORM" = Win32; then
18858 USING_WIN32_PLATFORM_TRUE=
18859 USING_WIN32_PLATFORM_FALSE='#'
18861 USING_WIN32_PLATFORM_TRUE='#'
18862 USING_WIN32_PLATFORM_FALSE=
18867 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18868 USING_POSIX_PLATFORM_TRUE=
18869 USING_POSIX_PLATFORM_FALSE='#'
18871 USING_POSIX_PLATFORM_TRUE='#'
18872 USING_POSIX_PLATFORM_FALSE=
18877 *-darwin*) DARWIN_CRT=true ;;
18878 *) DARWIN_CRT=false ;;
18882 if $DARWIN_CRT; then
18883 USING_DARWIN_CRT_TRUE=
18884 USING_DARWIN_CRT_FALSE='#'
18886 USING_DARWIN_CRT_TRUE='#'
18887 USING_DARWIN_CRT_FALSE=
18891 # This may not be defined in a non-ANS conformant embedded system.
18892 # FIXME: Should these case a runtime exception in that case?
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18903 $EGREP "localtime" >/dev/null 2>&1; then
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_LOCALTIME 1
18913 # Create the subdirectory for natFile.cc, or the attempt
18914 # to create the link will fail.
18915 test -d java || mkdir java
18916 test -d java/io || mkdir java/io
18917 test -d gnu || mkdir gnu
18918 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18921 # Likewise for natConcreteProcess.cc.
18922 test -d java/lang || mkdir java/lang
18923 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18926 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18927 test -d java/net || mkdir java/net
18928 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18930 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18933 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18934 test -d gnu/java || mkdir gnu/java
18935 test -d gnu/java/net || mkdir gnu/java/net
18936 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18938 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18941 # Likewise for natVMPipe.cc and natVMSelector.cc.
18942 test -d gnu/java/nio || mkdir gnu/java/nio
18943 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18945 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18948 # Likewise for natFileChannelImpl.cc
18949 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18950 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18955 SYSTEMSPEC="-lgdi32 -lws2_32"
18956 if test "${with_win32_nlsapi}" = "unicows"; then
18957 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18967 # Check whether --with-system-zlib or --without-system-zlib was given.
18968 if test "${with_system_zlib+set}" = set; then
18969 withval="$with_system_zlib"
18977 echo "$as_me:$LINENO: checking for X" >&5
18978 echo $ECHO_N "checking for X... $ECHO_C" >&6
18981 # Check whether --with-x or --without-x was given.
18982 if test "${with_x+set}" = set; then
18986 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18987 if test "x$with_x" = xno; then
18988 # The user explicitly disabled X.
18991 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18992 # Both variables are already set.
18995 if test "${ac_cv_have_x+set}" = set; then
18996 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 # One or both of the vars are not set, and there is no cached value.
18999 ac_x_includes=no ac_x_libraries=no
19000 rm -fr conftest.dir
19001 if mkdir conftest.dir; then
19003 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19004 cat >Imakefile <<'_ACEOF'
19006 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19008 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19010 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19011 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19012 for ac_extension in a so sl; do
19013 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19014 test -f $ac_im_libdir/libX11.$ac_extension; then
19015 ac_im_usrlibdir=$ac_im_libdir; break
19018 # Screen out bogus values from the imake configuration. They are
19019 # bogus both because they are the default anyway, and because
19020 # using them would break gcc on systems where it needs fixed includes.
19021 case $ac_im_incroot in
19023 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19025 case $ac_im_usrlibdir in
19026 /usr/lib | /lib) ;;
19027 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19031 rm -fr conftest.dir
19034 # Standard set of common directories for X headers.
19035 # Check X11 before X11Rn because it is often a symlink to the current release.
19047 /usr/local/X11/include
19048 /usr/local/X11R6/include
19049 /usr/local/X11R5/include
19050 /usr/local/X11R4/include
19052 /usr/local/include/X11
19053 /usr/local/include/X11R6
19054 /usr/local/include/X11R5
19055 /usr/local/include/X11R4
19059 /usr/XFree86/include/X11
19063 /usr/unsupported/include
19064 /usr/athena/include
19065 /usr/local/x11r5/include
19066 /usr/lpp/Xamples/include
19068 /usr/openwin/include
19069 /usr/openwin/share/include'
19071 if test "$ac_x_includes" = no; then
19072 # Guess where to find include files, by looking for Intrinsic.h.
19073 # First, try using that file with no special directory specified.
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 #include <X11/Intrinsic.h>
19082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null; then
19090 if test -s conftest.err; then
19091 ac_cpp_err=$ac_c_preproc_warn_flag
19092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19099 if test -z "$ac_cpp_err"; then
19100 # We can compile using X headers with no special include directory.
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 for ac_dir in $ac_x_header_dirs; do
19107 if test -r "$ac_dir/X11/Intrinsic.h"; then
19108 ac_x_includes=$ac_dir
19113 rm -f conftest.err conftest.$ac_ext
19114 fi # $ac_x_includes = no
19116 if test "$ac_x_libraries" = no; then
19117 # Check for the libraries.
19118 # See if we find them without any special options.
19119 # Don't add to $LIBS permanently.
19122 if test x$gcc_no_link = xyes; then
19123 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19124 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19125 { (exit 1); exit 1; }; }
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <X11/Intrinsic.h>
19142 rm -f conftest.$ac_objext conftest$ac_exeext
19143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19144 (eval $ac_link) 2>conftest.er1
19146 grep -v '^ *+' conftest.er1 >conftest.err
19148 cat conftest.err >&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); } &&
19151 { ac_try='test -z "$ac_c_werror_flag"
19152 || test ! -s conftest.err'
19153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19154 (eval $ac_try) 2>&5
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
19159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160 (eval $ac_try) 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19165 # We can link X programs with no special library path.
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19174 # Don't even attempt the hair of trying to link an X program!
19175 for ac_extension in a so sl; do
19176 if test -r $ac_dir/libXt.$ac_extension; then
19177 ac_x_libraries=$ac_dir
19183 rm -f conftest.err conftest.$ac_objext \
19184 conftest$ac_exeext conftest.$ac_ext
19185 fi # $ac_x_libraries = no
19187 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19188 # Didn't find X anywhere. Cache the known absence of X.
19189 ac_cv_have_x="have_x=no"
19191 # Record where we found X for the cache.
19192 ac_cv_have_x="have_x=yes \
19193 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19198 eval "$ac_cv_have_x"
19201 if test "$have_x" != yes; then
19202 echo "$as_me:$LINENO: result: $have_x" >&5
19203 echo "${ECHO_T}$have_x" >&6
19206 # If each of the values was on the command line, it overrides each guess.
19207 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19208 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19209 # Update the cache value to reflect the command line values.
19210 ac_cv_have_x="have_x=yes \
19211 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19212 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19213 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19216 if test "$no_x" = yes; then
19217 # Not all programs may use this symbol, but it does not hurt to define it.
19219 cat >>confdefs.h <<\_ACEOF
19220 #define X_DISPLAY_MISSING 1
19223 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19225 if test -n "$x_includes"; then
19226 X_CFLAGS="$X_CFLAGS -I$x_includes"
19229 # It would also be nice to do this for all -L options, not just this one.
19230 if test -n "$x_libraries"; then
19231 X_LIBS="$X_LIBS -L$x_libraries"
19232 # For Solaris; some versions of Sun CC require a space after -R and
19233 # others require no space. Words are not sufficient . . . .
19234 case `(uname -sr) 2>/dev/null` in
19236 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19237 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19238 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19239 if test x$gcc_no_link = xyes; then
19240 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19242 { (exit 1); exit 1; }; }
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261 (eval $ac_link) 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_c_werror_flag"
19269 || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest$ac_exeext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19288 rm -f conftest.err conftest.$ac_objext \
19289 conftest$ac_exeext conftest.$ac_ext
19290 if test $ac_R_nospace = yes; then
19291 echo "$as_me:$LINENO: result: no" >&5
19292 echo "${ECHO_T}no" >&6
19293 X_LIBS="$X_LIBS -R$x_libraries"
19295 LIBS="$ac_xsave_LIBS -R $x_libraries"
19296 if test x$gcc_no_link = xyes; then
19297 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19298 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19299 { (exit 1); exit 1; }; }
19301 cat >conftest.$ac_ext <<_ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19316 rm -f conftest.$ac_objext conftest$ac_exeext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19318 (eval $ac_link) 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } &&
19325 { ac_try='test -z "$ac_c_werror_flag"
19326 || test ! -s conftest.err'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest$ac_exeext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19340 echo "$as_me: failed program was:" >&5
19341 sed 's/^/| /' conftest.$ac_ext >&5
19345 rm -f conftest.err conftest.$ac_objext \
19346 conftest$ac_exeext conftest.$ac_ext
19347 if test $ac_R_space = yes; then
19348 echo "$as_me:$LINENO: result: yes" >&5
19349 echo "${ECHO_T}yes" >&6
19350 X_LIBS="$X_LIBS -R $x_libraries"
19352 echo "$as_me:$LINENO: result: neither works" >&5
19353 echo "${ECHO_T}neither works" >&6
19356 LIBS=$ac_xsave_LIBS
19360 # Check for system-dependent libraries X programs must link with.
19361 # Do this before checking for the system-independent R6 libraries
19362 # (-lICE), since we may need -lsocket or whatever for X linking.
19364 if test "$ISC" = yes; then
19365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19367 # Martyn Johnson says this is needed for Ultrix, if the X
19368 # libraries were built with DECnet support. And Karl Berry says
19369 # the Alpha needs dnet_stub (dnet does not exist).
19370 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19371 if test x$gcc_no_link = xyes; then
19372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19374 { (exit 1); exit 1; }; }
19376 cat >conftest.$ac_ext <<_ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19383 /* Override any gcc2 internal prototype to avoid an error. */
19387 /* We use char because int might match the return type of a gcc2
19388 builtin and then its argument prototype would still apply. */
19389 char XOpenDisplay ();
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19400 (eval $ac_link) 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
19407 { ac_try='test -z "$ac_c_werror_flag"
19408 || test ! -s conftest.err'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; } &&
19414 { ac_try='test -s conftest$ac_exeext'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19426 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19427 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19428 echo $ECHO_N "(cached) $ECHO_C" >&6
19430 ac_check_lib_save_LIBS=$LIBS
19431 LIBS="-ldnet $LIBS"
19432 if test x$gcc_no_link = xyes; then
19433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19435 { (exit 1); exit 1; }; }
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19444 /* Override any gcc2 internal prototype to avoid an error. */
19448 /* We use char because int might match the return type of a gcc2
19449 builtin and then its argument prototype would still apply. */
19459 rm -f conftest.$ac_objext conftest$ac_exeext
19460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19461 (eval $ac_link) 2>conftest.er1
19463 grep -v '^ *+' conftest.er1 >conftest.err
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } &&
19468 { ac_try='test -z "$ac_c_werror_flag"
19469 || test ! -s conftest.err'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); }; } &&
19475 { ac_try='test -s conftest$ac_exeext'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
19481 ac_cv_lib_dnet_dnet_ntoa=yes
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 ac_cv_lib_dnet_dnet_ntoa=no
19488 rm -f conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
19490 LIBS=$ac_check_lib_save_LIBS
19492 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19493 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19494 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19498 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19499 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19500 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19501 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 ac_check_lib_save_LIBS=$LIBS
19505 LIBS="-ldnet_stub $LIBS"
19506 if test x$gcc_no_link = xyes; then
19507 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19508 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19509 { (exit 1); exit 1; }; }
19511 cat >conftest.$ac_ext <<_ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h. */
19518 /* Override any gcc2 internal prototype to avoid an error. */
19522 /* We use char because int might match the return type of a gcc2
19523 builtin and then its argument prototype would still apply. */
19533 rm -f conftest.$ac_objext conftest$ac_exeext
19534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19535 (eval $ac_link) 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } &&
19542 { ac_try='test -z "$ac_c_werror_flag"
19543 || test ! -s conftest.err'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest$ac_exeext'
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_lib_dnet_stub_dnet_ntoa=no
19562 rm -f conftest.err conftest.$ac_objext \
19563 conftest$ac_exeext conftest.$ac_ext
19564 LIBS=$ac_check_lib_save_LIBS
19566 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19567 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19568 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19569 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19574 rm -f conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS="$ac_xsave_LIBS"
19578 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19579 # to get the SysV transport functions.
19580 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19582 # The nsl library prevents programs from opening the X display
19583 # on Irix 5.2, according to T.E. Dickey.
19584 # The functions gethostbyname, getservbyname, and inet_addr are
19585 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19586 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19587 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19588 if test "${ac_cv_func_gethostbyname+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 if test x$gcc_no_link = xyes; then
19592 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19594 { (exit 1); exit 1; }; }
19596 cat >conftest.$ac_ext <<_ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19604 #define gethostbyname innocuous_gethostbyname
19606 /* System header to define __stub macros and hopefully few prototypes,
19607 which can conflict with char gethostbyname (); below.
19608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19609 <limits.h> exists even on freestanding compilers. */
19612 # include <limits.h>
19614 # include <assert.h>
19617 #undef gethostbyname
19619 /* Override any gcc2 internal prototype to avoid an error. */
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19626 char gethostbyname ();
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19633 char (*f) () = gethostbyname;
19642 return f != gethostbyname;
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19649 (eval $ac_link) 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } &&
19656 { ac_try='test -z "$ac_c_werror_flag"
19657 || test ! -s conftest.err'
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; } &&
19663 { ac_try='test -s conftest$ac_exeext'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; }; then
19669 ac_cv_func_gethostbyname=yes
19671 echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.$ac_ext >&5
19674 ac_cv_func_gethostbyname=no
19676 rm -f conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext conftest.$ac_ext
19679 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19680 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19682 if test $ac_cv_func_gethostbyname = no; then
19683 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19684 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19685 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 ac_check_lib_save_LIBS=$LIBS
19690 if test x$gcc_no_link = xyes; then
19691 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19692 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19693 { (exit 1); exit 1; }; }
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any gcc2 internal prototype to avoid an error. */
19706 /* We use char because int might match the return type of a gcc2
19707 builtin and then its argument prototype would still apply. */
19708 char gethostbyname ();
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19719 (eval $ac_link) 2>conftest.er1
19721 grep -v '^ *+' conftest.er1 >conftest.err
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } &&
19726 { ac_try='test -z "$ac_c_werror_flag"
19727 || test ! -s conftest.err'
19728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19729 (eval $ac_try) 2>&5
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); }; } &&
19733 { ac_try='test -s conftest$ac_exeext'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19739 ac_cv_lib_nsl_gethostbyname=yes
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_lib_nsl_gethostbyname=no
19746 rm -f conftest.err conftest.$ac_objext \
19747 conftest$ac_exeext conftest.$ac_ext
19748 LIBS=$ac_check_lib_save_LIBS
19750 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19751 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19752 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19756 if test $ac_cv_lib_nsl_gethostbyname = no; then
19757 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19758 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19759 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_check_lib_save_LIBS=$LIBS
19764 if test x$gcc_no_link = xyes; then
19765 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19767 { (exit 1); exit 1; }; }
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19776 /* Override any gcc2 internal prototype to avoid an error. */
19780 /* We use char because int might match the return type of a gcc2
19781 builtin and then its argument prototype would still apply. */
19782 char gethostbyname ();
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19793 (eval $ac_link) 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } &&
19800 { ac_try='test -z "$ac_c_werror_flag"
19801 || test ! -s conftest.err'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; } &&
19807 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19813 ac_cv_lib_bsd_gethostbyname=yes
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_cv_lib_bsd_gethostbyname=no
19820 rm -f conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19825 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19826 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19833 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19834 # socket/setsockopt and other routines are undefined under SCO ODT
19835 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19836 # on later versions), says Simon Leinen: it contains gethostby*
19837 # variants that don't use the name server (or something). -lsocket
19838 # must be given before -lnsl if both are needed. We assume that
19839 # if connect needs -lnsl, so does gethostbyname.
19840 echo "$as_me:$LINENO: checking for connect" >&5
19841 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19842 if test "${ac_cv_func_connect+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 if test x$gcc_no_link = xyes; then
19846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19848 { (exit 1); exit 1; }; }
19850 cat >conftest.$ac_ext <<_ACEOF
19853 cat confdefs.h >>conftest.$ac_ext
19854 cat >>conftest.$ac_ext <<_ACEOF
19855 /* end confdefs.h. */
19856 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19858 #define connect innocuous_connect
19860 /* System header to define __stub macros and hopefully few prototypes,
19861 which can conflict with char connect (); below.
19862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19863 <limits.h> exists even on freestanding compilers. */
19866 # include <limits.h>
19868 # include <assert.h>
19873 /* Override any gcc2 internal prototype to avoid an error. */
19878 /* We use char because int might match the return type of a gcc2
19879 builtin and then its argument prototype would still apply. */
19881 /* The GNU C library defines this for functions which it implements
19882 to always fail with ENOSYS. Some functions are actually named
19883 something starting with __ and the normal name is an alias. */
19884 #if defined (__stub_connect) || defined (__stub___connect)
19887 char (*f) () = connect;
19896 return f != connect;
19901 rm -f conftest.$ac_objext conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903 (eval $ac_link) 2>conftest.er1
19905 grep -v '^ *+' conftest.er1 >conftest.err
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_func_connect=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_cv_func_connect=no
19930 rm -f conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19933 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19934 echo "${ECHO_T}$ac_cv_func_connect" >&6
19936 if test $ac_cv_func_connect = no; then
19937 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19938 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19939 if test "${ac_cv_lib_socket_connect+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19942 ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19944 if test x$gcc_no_link = xyes; then
19945 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19947 { (exit 1); exit 1; }; }
19949 cat >conftest.$ac_ext <<_ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19956 /* Override any gcc2 internal prototype to avoid an error. */
19960 /* We use char because int might match the return type of a gcc2
19961 builtin and then its argument prototype would still apply. */
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973 (eval $ac_link) 2>conftest.er1
19975 grep -v '^ *+' conftest.er1 >conftest.err
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag"
19981 || test ! -s conftest.err'
19982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983 (eval $ac_try) 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest$ac_exeext'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); }; }; then
19993 ac_cv_lib_socket_connect=yes
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_lib_socket_connect=no
20000 rm -f conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20002 LIBS=$ac_check_lib_save_LIBS
20004 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20005 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20006 if test $ac_cv_lib_socket_connect = yes; then
20007 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20012 # Guillermo Gomez says -lposix is necessary on A/UX.
20013 echo "$as_me:$LINENO: checking for remove" >&5
20014 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20015 if test "${ac_cv_func_remove+set}" = set; then
20016 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 if test x$gcc_no_link = xyes; then
20019 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20021 { (exit 1); exit 1; }; }
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20031 #define remove innocuous_remove
20033 /* System header to define __stub macros and hopefully few prototypes,
20034 which can conflict with char remove (); below.
20035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20036 <limits.h> exists even on freestanding compilers. */
20039 # include <limits.h>
20041 # include <assert.h>
20046 /* Override any gcc2 internal prototype to avoid an error. */
20051 /* We use char because int might match the return type of a gcc2
20052 builtin and then its argument prototype would still apply. */
20054 /* The GNU C library defines this for functions which it implements
20055 to always fail with ENOSYS. Some functions are actually named
20056 something starting with __ and the normal name is an alias. */
20057 #if defined (__stub_remove) || defined (__stub___remove)
20060 char (*f) () = remove;
20069 return f != remove;
20074 rm -f conftest.$ac_objext conftest$ac_exeext
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } &&
20083 { ac_try='test -z "$ac_c_werror_flag"
20084 || test ! -s conftest.err'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_func_remove=yes
20098 echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20101 ac_cv_func_remove=no
20103 rm -f conftest.err conftest.$ac_objext \
20104 conftest$ac_exeext conftest.$ac_ext
20106 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20107 echo "${ECHO_T}$ac_cv_func_remove" >&6
20109 if test $ac_cv_func_remove = no; then
20110 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20111 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20112 if test "${ac_cv_lib_posix_remove+set}" = set; then
20113 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 ac_check_lib_save_LIBS=$LIBS
20116 LIBS="-lposix $LIBS"
20117 if test x$gcc_no_link = xyes; then
20118 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20119 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20120 { (exit 1); exit 1; }; }
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20129 /* Override any gcc2 internal prototype to avoid an error. */
20133 /* We use char because int might match the return type of a gcc2
20134 builtin and then its argument prototype would still apply. */
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146 (eval $ac_link) 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
20153 { ac_try='test -z "$ac_c_werror_flag"
20154 || test ! -s conftest.err'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; } &&
20160 { ac_try='test -s conftest$ac_exeext'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; }; then
20166 ac_cv_lib_posix_remove=yes
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_cv_lib_posix_remove=no
20173 rm -f conftest.err conftest.$ac_objext \
20174 conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20177 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20178 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20179 if test $ac_cv_lib_posix_remove = yes; then
20180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20185 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20186 echo "$as_me:$LINENO: checking for shmat" >&5
20187 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20188 if test "${ac_cv_func_shmat+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 if test x$gcc_no_link = xyes; then
20192 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20194 { (exit 1); exit 1; }; }
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20204 #define shmat innocuous_shmat
20206 /* System header to define __stub macros and hopefully few prototypes,
20207 which can conflict with char shmat (); below.
20208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209 <limits.h> exists even on freestanding compilers. */
20212 # include <limits.h>
20214 # include <assert.h>
20219 /* Override any gcc2 internal prototype to avoid an error. */
20224 /* We use char because int might match the return type of a gcc2
20225 builtin and then its argument prototype would still apply. */
20227 /* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230 #if defined (__stub_shmat) || defined (__stub___shmat)
20233 char (*f) () = shmat;
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20249 (eval $ac_link) 2>conftest.er1
20251 grep -v '^ *+' conftest.er1 >conftest.err
20253 cat conftest.err >&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); } &&
20256 { ac_try='test -z "$ac_c_werror_flag"
20257 || test ! -s conftest.err'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest$ac_exeext'
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_cv_func_shmat=yes
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_func_shmat=no
20276 rm -f conftest.err conftest.$ac_objext \
20277 conftest$ac_exeext conftest.$ac_ext
20279 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20280 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20282 if test $ac_cv_func_shmat = no; then
20283 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20284 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20285 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20286 echo $ECHO_N "(cached) $ECHO_C" >&6
20288 ac_check_lib_save_LIBS=$LIBS
20290 if test x$gcc_no_link = xyes; then
20291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20293 { (exit 1); exit 1; }; }
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 /* Override any gcc2 internal prototype to avoid an error. */
20306 /* We use char because int might match the return type of a gcc2
20307 builtin and then its argument prototype would still apply. */
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20319 (eval $ac_link) 2>conftest.er1
20321 grep -v '^ *+' conftest.er1 >conftest.err
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } &&
20326 { ac_try='test -z "$ac_c_werror_flag"
20327 || test ! -s conftest.err'
20328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20329 (eval $ac_try) 2>&5
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest$ac_exeext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_lib_ipc_shmat=yes
20341 echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20344 ac_cv_lib_ipc_shmat=no
20346 rm -f conftest.err conftest.$ac_objext \
20347 conftest$ac_exeext conftest.$ac_ext
20348 LIBS=$ac_check_lib_save_LIBS
20350 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20351 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20352 if test $ac_cv_lib_ipc_shmat = yes; then
20353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20359 # Check for libraries that X11R6 Xt/Xaw programs need.
20360 ac_save_LDFLAGS=$LDFLAGS
20361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20363 # check for ICE first), but we must link in the order -lSM -lICE or
20364 # we get undefined symbols. So assume we have SM if we have ICE.
20365 # These have to be linked with before -lX11, unlike the other
20366 # libraries we check for below, so use a different variable.
20367 # John Interrante, Karl Berry
20368 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20369 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20370 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 ac_check_lib_save_LIBS=$LIBS
20374 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20375 if test x$gcc_no_link = xyes; then
20376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20378 { (exit 1); exit 1; }; }
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20387 /* Override any gcc2 internal prototype to avoid an error. */
20391 /* We use char because int might match the return type of a gcc2
20392 builtin and then its argument prototype would still apply. */
20393 char IceConnectionNumber ();
20397 IceConnectionNumber ();
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20404 (eval $ac_link) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
20411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest$ac_exeext'
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_lib_ICE_IceConnectionNumber=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_lib_ICE_IceConnectionNumber=no
20431 rm -f conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20433 LIBS=$ac_check_lib_save_LIBS
20435 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20436 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20437 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20438 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20441 LDFLAGS=$ac_save_LDFLAGS
20446 # FIXME: this should be _libs on some hosts.
20449 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20452 # extra LD Flags which are required for targets
20455 # For now we have to disable it on darwin[8-9] because it slows down
20456 # the linking phase. A possible bug in ld?
20457 # on Darwin -single_module speeds up loading of the dynamic libraries.
20458 extra_ldflags_libjava=-Wl,-single_module
20461 extra_gij_ldflags=-Wl,-allow_stack_execute
20464 # Some of the ARM unwinder code is actually in libstdc++. We
20465 # could in principle replicate it in libgcj, but it's better to
20466 # have a dependency on libstdc++.
20467 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20468 LIBSTDCXXSPEC=-lstdc++
20469 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20479 # Allow the GC to be disabled. Can be useful when debugging.
20480 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20481 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20482 # Check whether --enable-java-gc or --disable-java-gc was given.
20483 if test "${enable_java_gc+set}" = set; then
20484 enableval="$enable_java_gc"
20497 echo "$as_me:$LINENO: result: boehm" >&5
20498 echo "${ECHO_T}boehm" >&6
20499 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20500 JC1GCSPEC='-fuse-boehm-gc'
20501 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20502 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20505 # The POSIX thread support needs to know this.
20507 cat >>confdefs.h <<\_ACEOF
20508 #define HAVE_BOEHM_GC 1
20513 echo "$as_me:$LINENO: result: none" >&5
20514 echo "${ECHO_T}none" >&6
20518 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20519 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20520 { (exit 1); exit 1; }; }
20529 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20533 if test "$GC" = boehm; then
20534 USING_BOEHMGC_TRUE=
20535 USING_BOEHMGC_FALSE='#'
20537 USING_BOEHMGC_TRUE='#'
20538 USING_BOEHMGC_FALSE=
20543 if test "$GC" = no; then
20545 USING_NOGC_FALSE='#'
20547 USING_NOGC_TRUE='#'
20553 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20554 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20555 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20556 echo "$as_me:$LINENO: result: $THREADS" >&5
20557 echo "${ECHO_T}$THREADS" >&6
20560 no | none | single)
20563 posix | posix95 | pthreads)
20568 cat >>confdefs.h <<\_ACEOF
20569 #define LINUX_THREADS 1
20577 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20578 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20579 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20580 { (exit 1); exit 1; }; }
20583 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20584 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20585 { (exit 1); exit 1; }; }
20596 THREADSTARTFILESPEC=
20601 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20603 *-*-freebsd[1234]*)
20604 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20605 # merely adds pthread_* functions) but it does have a -pthread switch
20606 # which is required at link-time to select -lc_r *instead* of -lc.
20607 THREADLDFLAGS=-pthread
20608 # Don't set THREADSPEC here as might be expected since -pthread is
20609 # not processed when found within a spec file, it must come from
20610 # the command line. For now, the user must provide the -pthread
20611 # switch to link code compiled with gcj. In future, consider adding
20612 # support for weak references to pthread_* functions ala gthr.h API.
20613 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20616 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20617 # systems which support threads and -lpthread.
20618 THREADLDFLAGS=-pthread
20619 THREADSPEC=-lpthread
20621 alpha*-dec-osf* | hppa*-hp-hpux*)
20622 THREADCXXFLAGS=-pthread
20623 # boehm-gc needs some functions from librt, so link that too.
20624 THREADLIBS='-lpthread -lrt'
20625 THREADSPEC='-lpthread -lrt'
20628 THREADLIBS=-lpthread
20629 THREADSPEC=-lpthread
20632 THREADH=posix-threads.h
20633 # MIT pthreads doesn't seem to have the mutexattr functions.
20634 # But for now we don't check for it. We just assume you aren't
20635 # using MIT pthreads.
20637 cat >>confdefs.h <<\_ACEOF
20638 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20642 # If we're using the Boehm GC, then we happen to know that it
20643 # defines _REENTRANT, so we don't bother. Eww.
20644 if test "$GC" != boehm; then
20646 cat >>confdefs.h <<\_ACEOF
20647 #define _REENTRANT 1
20652 cat >>confdefs.h <<\_ACEOF
20653 #define _POSIX_PTHREAD_SEMANTICS 1
20659 THREADH=win32-threads.h
20660 THREADCXXFLAGS=-mthreads
20661 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20662 # But we do not want the executables created to be dependent on
20663 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20664 # exception handling contexts. The following kludge achieves this effect
20665 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20666 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20667 # A workaround is to explicitly use -mthreads while linking Java programs.
20668 # See PR libgcj/28263.
20670 # FIXME: In Java we are able to detect thread death at the end of
20671 # Thread.run() so we should be able to clean up the exception handling
20672 # contexts ourselves.
20673 THREADSTARTFILESPEC='crtmt%O%s'
20677 THREADH=no-threads.h
20680 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20691 if test "$THREADS" = posix; then
20692 USING_POSIX_THREADS_TRUE=
20693 USING_POSIX_THREADS_FALSE='#'
20695 USING_POSIX_THREADS_TRUE='#'
20696 USING_POSIX_THREADS_FALSE=
20701 if test "$THREADS" = win32; then
20702 USING_WIN32_THREADS_TRUE=
20703 USING_WIN32_THREADS_FALSE='#'
20705 USING_WIN32_THREADS_TRUE='#'
20706 USING_WIN32_THREADS_FALSE=
20711 if test "$THREADS" = none; then
20712 USING_NO_THREADS_TRUE=
20713 USING_NO_THREADS_FALSE='#'
20715 USING_NO_THREADS_TRUE='#'
20716 USING_NO_THREADS_FALSE=
20721 if test "$use_libgcj_bc" = yes; then
20722 USE_LIBGCJ_BC_TRUE=
20723 USE_LIBGCJ_BC_FALSE='#'
20725 USE_LIBGCJ_BC_TRUE='#'
20726 USE_LIBGCJ_BC_FALSE=
20730 if test -d sysdep; then true; else mkdir sysdep; fi
20731 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20733 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20735 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20738 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20739 if test "$use_libgcj_bc" = yes; then
20740 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20745 # Hash synchronization is only useful with posix threads right now.
20746 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20747 HASH_SYNC_SPEC=-fhash-synchronization
20749 cat >>confdefs.h <<\_ACEOF
20750 #define JV_HASH_SYNCHRONIZATION 1
20758 if test "$GCC" = yes; then
20760 USING_GCC_FALSE='#'
20767 # We're in the tree with gcc, and need to include some of its headers.
20768 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20770 if test "x${with_newlib}" = "xyes"; then
20771 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20772 # may not work correctly, because the compiler may not be able to
20773 # link executables.
20775 # We assume newlib. This lets us hard-code the functions we know
20778 cat >>confdefs.h <<\_ACEOF
20779 #define HAVE_MEMMOVE 1
20783 cat >>confdefs.h <<\_ACEOF
20784 #define HAVE_MEMCPY 1
20788 cat >>confdefs.h <<\_ACEOF
20789 #define HAVE_TIME 1
20793 cat >>confdefs.h <<\_ACEOF
20794 #define HAVE_GMTIME_R 1
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_LOCALTIME_R 1
20803 cat >>confdefs.h <<\_ACEOF
20804 #define HAVE_USLEEP_DECL 1
20807 # This is only for POSIX threads.
20809 cat >>confdefs.h <<\_ACEOF
20810 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20814 # Assume we do not have getuid and friends.
20816 cat >>confdefs.h <<\_ACEOF
20817 #define NO_GETUID 1
20852 for ac_func in strerror_r select fstat open fsync sleep opendir \
20853 localtime_r getpwuid_r getcwd \
20854 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20855 nl_langinfo setlocale \
20856 inet_pton uname inet_ntoa \
20857 getrlimit sigaction ftruncate mmap \
20860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20861 echo "$as_me:$LINENO: checking for $ac_func" >&5
20862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20863 if eval "test \"\${$as_ac_var+set}\" = set"; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 if test x$gcc_no_link = xyes; then
20867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20869 { (exit 1); exit 1; }; }
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20879 #define $ac_func innocuous_$ac_func
20881 /* System header to define __stub macros and hopefully few prototypes,
20882 which can conflict with char $ac_func (); below.
20883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20884 <limits.h> exists even on freestanding compilers. */
20887 # include <limits.h>
20889 # include <assert.h>
20894 /* Override any gcc2 internal prototype to avoid an error. */
20899 /* We use char because int might match the return type of a gcc2
20900 builtin and then its argument prototype would still apply. */
20902 /* The GNU C library defines this for functions which it implements
20903 to always fail with ENOSYS. Some functions are actually named
20904 something starting with __ and the normal name is an alias. */
20905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20908 char (*f) () = $ac_func;
20917 return f != $ac_func;
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20924 (eval $ac_link) 2>conftest.er1
20926 grep -v '^ *+' conftest.er1 >conftest.err
20928 cat conftest.err >&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); } &&
20931 { ac_try='test -z "$ac_c_werror_flag"
20932 || test ! -s conftest.err'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest$ac_exeext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 eval "$as_ac_var=yes"
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 eval "$as_ac_var=no"
20951 rm -f conftest.err conftest.$ac_objext \
20952 conftest$ac_exeext conftest.$ac_ext
20954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20956 if test `eval echo '${'$as_ac_var'}'` = yes; then
20957 cat >>confdefs.h <<_ACEOF
20958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20966 for ac_func in inet_aton inet_addr
20968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20969 echo "$as_me:$LINENO: checking for $ac_func" >&5
20970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20971 if eval "test \"\${$as_ac_var+set}\" = set"; then
20972 echo $ECHO_N "(cached) $ECHO_C" >&6
20974 if test x$gcc_no_link = xyes; then
20975 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20977 { (exit 1); exit 1; }; }
20979 cat >conftest.$ac_ext <<_ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h. */
20985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20987 #define $ac_func innocuous_$ac_func
20989 /* System header to define __stub macros and hopefully few prototypes,
20990 which can conflict with char $ac_func (); below.
20991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20992 <limits.h> exists even on freestanding compilers. */
20995 # include <limits.h>
20997 # include <assert.h>
21002 /* Override any gcc2 internal prototype to avoid an error. */
21007 /* We use char because int might match the return type of a gcc2
21008 builtin and then its argument prototype would still apply. */
21010 /* The GNU C library defines this for functions which it implements
21011 to always fail with ENOSYS. Some functions are actually named
21012 something starting with __ and the normal name is an alias. */
21013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21016 char (*f) () = $ac_func;
21025 return f != $ac_func;
21030 rm -f conftest.$ac_objext conftest$ac_exeext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032 (eval $ac_link) 2>conftest.er1
21034 grep -v '^ *+' conftest.er1 >conftest.err
21036 cat conftest.err >&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -z "$ac_c_werror_flag"
21040 || test ! -s conftest.err'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; } &&
21046 { ac_try='test -s conftest$ac_exeext'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 eval "$as_ac_var=yes"
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 eval "$as_ac_var=no"
21059 rm -f conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21064 if test `eval echo '${'$as_ac_var'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21075 for ac_header in unistd.h dlfcn.h sys/resource.h
21077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21079 echo "$as_me:$LINENO: checking for $ac_header" >&5
21080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21082 echo $ECHO_N "(cached) $ECHO_C" >&6
21084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21087 # Is the header compilable?
21088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21097 #include <$ac_header>
21099 rm -f conftest.$ac_objext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21101 (eval $ac_compile) 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } &&
21108 { ac_try='test -z "$ac_c_werror_flag"
21109 || test ! -s conftest.err'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; } &&
21115 { ac_try='test -s conftest.$ac_objext'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; }; then
21121 ac_header_compiler=yes
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_compiler=no
21128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21130 echo "${ECHO_T}$ac_header_compiler" >&6
21132 # Is the header present?
21133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21135 cat >conftest.$ac_ext <<_ACEOF
21138 cat confdefs.h >>conftest.$ac_ext
21139 cat >>conftest.$ac_ext <<_ACEOF
21140 /* end confdefs.h. */
21141 #include <$ac_header>
21143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21146 grep -v '^ *+' conftest.er1 >conftest.err
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } >/dev/null; then
21151 if test -s conftest.err; then
21152 ac_cpp_err=$ac_c_preproc_warn_flag
21153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21160 if test -z "$ac_cpp_err"; then
21161 ac_header_preproc=yes
21163 echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ac_header_preproc=no
21168 rm -f conftest.err conftest.$ac_ext
21169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21170 echo "${ECHO_T}$ac_header_preproc" >&6
21172 # So? What about this header?
21173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21179 ac_header_preproc=yes
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21196 ## ---------------------------------- ##
21197 ## Report this to the libjava lists. ##
21198 ## ---------------------------------- ##
21201 sed "s/^/$as_me: WARNING: /" >&2
21204 echo "$as_me:$LINENO: checking for $ac_header" >&5
21205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21207 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 eval "$as_ac_Header=\$ac_header_preproc"
21211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21216 cat >>confdefs.h <<_ACEOF
21217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21224 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21225 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21226 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21227 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21228 echo $ECHO_N "(cached) $ECHO_C" >&6
21230 ac_check_lib_save_LIBS=$LIBS
21232 if test x$gcc_no_link = xyes; then
21233 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21235 { (exit 1); exit 1; }; }
21237 cat >conftest.$ac_ext <<_ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21244 /* Override any gcc2 internal prototype to avoid an error. */
21248 /* We use char because int might match the return type of a gcc2
21249 builtin and then its argument prototype would still apply. */
21259 rm -f conftest.$ac_objext conftest$ac_exeext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21261 (eval $ac_link) 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest$ac_exeext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_lib_dl_dladdr=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_lib_dl_dladdr=no
21288 rm -f conftest.err conftest.$ac_objext \
21289 conftest$ac_exeext conftest.$ac_ext
21290 LIBS=$ac_check_lib_save_LIBS
21292 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21293 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21294 if test $ac_cv_lib_dl_dladdr = yes; then
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_DLADDR 1
21303 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21304 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21305 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21308 ac_check_lib_save_LIBS=$LIBS
21310 if test x$gcc_no_link = xyes; then
21311 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21313 { (exit 1); exit 1; }; }
21315 cat >conftest.$ac_ext <<_ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21322 /* Override any gcc2 internal prototype to avoid an error. */
21326 /* We use char because int might match the return type of a gcc2
21327 builtin and then its argument prototype would still apply. */
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } &&
21346 { ac_try='test -z "$ac_c_werror_flag"
21347 || test ! -s conftest.err'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; } &&
21353 { ac_try='test -s conftest$ac_exeext'
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; }; then
21359 ac_cv_lib_dld_dladdr=yes
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21364 ac_cv_lib_dld_dladdr=no
21366 rm -f conftest.err conftest.$ac_objext \
21367 conftest$ac_exeext conftest.$ac_ext
21368 LIBS=$ac_check_lib_save_LIBS
21370 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21371 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21372 if test $ac_cv_lib_dld_dladdr = yes; then
21375 cat >>confdefs.h <<\_ACEOF
21376 #define HAVE_DLADDR 1
21384 if test x"$cross_compiling" = x"no"; then
21385 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21386 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21387 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21390 test "$cross_compiling" = yes &&
21391 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21392 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21393 { (exit 1); exit 1; }; }
21394 if test -r "/proc/self/exe"; then
21395 ac_cv_file__proc_self_exe=yes
21397 ac_cv_file__proc_self_exe=no
21400 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21401 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21402 if test $ac_cv_file__proc_self_exe = yes; then
21404 cat >>confdefs.h <<_ACEOF
21405 #define HAVE__PROC_SELF_EXE 1
21410 cat >>confdefs.h <<\_ACEOF
21411 #define HAVE_PROC_SELF_EXE 1
21416 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21417 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21418 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21419 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 test "$cross_compiling" = yes &&
21422 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21423 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21424 { (exit 1); exit 1; }; }
21425 if test -r "/proc/self/maps"; then
21426 ac_cv_file__proc_self_maps=yes
21428 ac_cv_file__proc_self_maps=no
21431 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21432 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21433 if test $ac_cv_file__proc_self_maps = yes; then
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE__PROC_SELF_MAPS 1
21441 cat >>confdefs.h <<\_ACEOF
21442 #define HAVE_PROC_SELF_MAPS 1
21451 cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_PROC_SELF_EXE 1
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_PROC_SELF_MAPS 1
21465 if test "X$prefix" = "XNONE"; then
21466 acl_final_prefix="$ac_default_prefix"
21468 acl_final_prefix="$prefix"
21470 if test "X$exec_prefix" = "XNONE"; then
21471 acl_final_exec_prefix='${prefix}'
21473 acl_final_exec_prefix="$exec_prefix"
21475 acl_save_prefix="$prefix"
21476 prefix="$acl_final_prefix"
21477 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21478 prefix="$acl_save_prefix"
21481 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21482 if test "${with_gnu_ld+set}" = set; then
21483 withval="$with_gnu_ld"
21484 test "$withval" = no || with_gnu_ld=yes
21488 # Prepare PATH_SEPARATOR.
21489 # The user is always right.
21490 if test "${PATH_SEPARATOR+set}" != set; then
21491 echo "#! /bin/sh" >conf$$.sh
21492 echo "exit 0" >>conf$$.sh
21494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21502 if test "$GCC" = yes; then
21503 # Check if gcc -print-prog-name=ld gives a path.
21504 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21505 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21508 # gcc leaves a trailing carriage return which upsets mingw
21509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21514 # Accept absolute paths.
21515 [\\/]* | [A-Za-z]:[\\/]*)
21516 re_direlt='/[^/][^/]*/\.\./'
21517 # Canonicalize the path of ld
21518 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21519 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21520 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21522 test -z "$LD" && LD="$ac_prog"
21525 # If it fails, then pretend we aren't using GCC.
21529 # If it is relative, then search for the first ld in PATH.
21530 with_gnu_ld=unknown
21533 elif test "$with_gnu_ld" = yes; then
21534 echo "$as_me:$LINENO: checking for GNU ld" >&5
21535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21537 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21540 if test "${acl_cv_path_LD+set}" = set; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 if test -z "$LD"; then
21544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21545 for ac_dir in $PATH; do
21546 test -z "$ac_dir" && ac_dir=.
21547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21548 acl_cv_path_LD="$ac_dir/$ac_prog"
21549 # Check to see if the program is GNU ld. I'd rather use --version,
21550 # but apparently some GNU ld's only accept -v.
21551 # Break only if it was the GNU/non-GNU ld that we prefer.
21552 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21553 test "$with_gnu_ld" != no && break
21555 test "$with_gnu_ld" != yes && break
21561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21565 LD="$acl_cv_path_LD"
21566 if test -n "$LD"; then
21567 echo "$as_me:$LINENO: result: $LD" >&5
21568 echo "${ECHO_T}$LD" >&6
21570 echo "$as_me:$LINENO: result: no" >&5
21571 echo "${ECHO_T}no" >&6
21573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21575 { (exit 1); exit 1; }; }
21576 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21579 echo $ECHO_N "(cached) $ECHO_C" >&6
21581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21582 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21583 acl_cv_prog_gnu_ld=yes
21585 acl_cv_prog_gnu_ld=no
21588 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21589 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21590 with_gnu_ld=$acl_cv_prog_gnu_ld
21594 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21595 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21596 if test "${acl_cv_rpath+set}" = set; then
21597 echo $ECHO_N "(cached) $ECHO_C" >&6
21600 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21601 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21603 rm -f ./conftest.sh
21607 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21608 echo "${ECHO_T}$acl_cv_rpath" >&6
21610 libext="$acl_cv_libext"
21611 shlibext="$acl_cv_shlibext"
21612 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21613 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21614 hardcode_direct="$acl_cv_hardcode_direct"
21615 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21616 # Check whether --enable-rpath or --disable-rpath was given.
21617 if test "${enable_rpath+set}" = set; then
21618 enableval="$enable_rpath"
21632 acl_save_prefix="$prefix"
21633 prefix="$acl_final_prefix"
21634 acl_save_exec_prefix="$exec_prefix"
21635 exec_prefix="$acl_final_exec_prefix"
21637 eval additional_includedir=\"$includedir\"
21638 eval additional_libdir=\"$libdir\"
21640 exec_prefix="$acl_save_exec_prefix"
21641 prefix="$acl_save_prefix"
21644 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21645 if test "${with_libiconv_prefix+set}" = set; then
21646 withval="$with_libiconv_prefix"
21648 if test "X$withval" = "Xno"; then
21651 if test "X$withval" = "X"; then
21653 acl_save_prefix="$prefix"
21654 prefix="$acl_final_prefix"
21655 acl_save_exec_prefix="$exec_prefix"
21656 exec_prefix="$acl_final_exec_prefix"
21658 eval additional_includedir=\"$includedir\"
21659 eval additional_libdir=\"$libdir\"
21661 exec_prefix="$acl_save_exec_prefix"
21662 prefix="$acl_save_prefix"
21665 additional_includedir="$withval/include"
21666 additional_libdir="$withval/lib"
21676 names_already_handled=
21677 names_next_round='iconv '
21678 while test -n "$names_next_round"; do
21679 names_this_round="$names_next_round"
21681 for name in $names_this_round; do
21683 for n in $names_already_handled; do
21684 if test "$n" = "$name"; then
21685 already_handled=yes
21689 if test -z "$already_handled"; then
21690 names_already_handled="$names_already_handled $name"
21691 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21692 eval value=\"\$HAVE_LIB$uppername\"
21693 if test -n "$value"; then
21694 if test "$value" = yes; then
21695 eval value=\"\$LIB$uppername\"
21696 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21697 eval value=\"\$LTLIB$uppername\"
21698 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21707 if test $use_additional = yes; then
21708 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21709 found_dir="$additional_libdir"
21710 found_so="$additional_libdir/lib$name.$shlibext"
21711 if test -f "$additional_libdir/lib$name.la"; then
21712 found_la="$additional_libdir/lib$name.la"
21715 if test -f "$additional_libdir/lib$name.$libext"; then
21716 found_dir="$additional_libdir"
21717 found_a="$additional_libdir/lib$name.$libext"
21718 if test -f "$additional_libdir/lib$name.la"; then
21719 found_la="$additional_libdir/lib$name.la"
21724 if test "X$found_dir" = "X"; then
21725 for x in $LDFLAGS $LTLIBICONV; do
21727 acl_save_prefix="$prefix"
21728 prefix="$acl_final_prefix"
21729 acl_save_exec_prefix="$exec_prefix"
21730 exec_prefix="$acl_final_exec_prefix"
21732 exec_prefix="$acl_save_exec_prefix"
21733 prefix="$acl_save_prefix"
21737 dir=`echo "X$x" | sed -e 's/^X-L//'`
21738 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21740 found_so="$dir/lib$name.$shlibext"
21741 if test -f "$dir/lib$name.la"; then
21742 found_la="$dir/lib$name.la"
21745 if test -f "$dir/lib$name.$libext"; then
21747 found_a="$dir/lib$name.$libext"
21748 if test -f "$dir/lib$name.la"; then
21749 found_la="$dir/lib$name.la"
21755 if test "X$found_dir" != "X"; then
21760 if test "X$found_dir" != "X"; then
21761 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21762 if test "X$found_so" != "X"; then
21763 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21767 for x in $ltrpathdirs; do
21768 if test "X$x" = "X$found_dir"; then
21773 if test -z "$haveit"; then
21774 ltrpathdirs="$ltrpathdirs $found_dir"
21776 if test "$hardcode_direct" = yes; then
21777 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21779 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21782 for x in $rpathdirs; do
21783 if test "X$x" = "X$found_dir"; then
21788 if test -z "$haveit"; then
21789 rpathdirs="$rpathdirs $found_dir"
21793 for x in $LDFLAGS $LIBICONV; do
21795 acl_save_prefix="$prefix"
21796 prefix="$acl_final_prefix"
21797 acl_save_exec_prefix="$exec_prefix"
21798 exec_prefix="$acl_final_exec_prefix"
21800 exec_prefix="$acl_save_exec_prefix"
21801 prefix="$acl_save_prefix"
21803 if test "X$x" = "X-L$found_dir"; then
21808 if test -z "$haveit"; then
21809 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21811 if test "$hardcode_minus_L" != no; then
21812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21814 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21820 if test "X$found_a" != "X"; then
21821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21823 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21826 additional_includedir=
21827 case "$found_dir" in
21829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21830 additional_includedir="$basedir/include"
21833 if test "X$additional_includedir" != "X"; then
21834 if test "X$additional_includedir" != "X/usr/include"; then
21836 if test "X$additional_includedir" = "X/usr/local/include"; then
21837 if test -n "$GCC"; then
21839 linux*) haveit=yes;;
21843 if test -z "$haveit"; then
21844 for x in $CPPFLAGS $INCICONV; do
21846 acl_save_prefix="$prefix"
21847 prefix="$acl_final_prefix"
21848 acl_save_exec_prefix="$exec_prefix"
21849 exec_prefix="$acl_final_exec_prefix"
21851 exec_prefix="$acl_save_exec_prefix"
21852 prefix="$acl_save_prefix"
21854 if test "X$x" = "X-I$additional_includedir"; then
21859 if test -z "$haveit"; then
21860 if test -d "$additional_includedir"; then
21861 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21867 if test -n "$found_la"; then
21868 save_libdir="$libdir"
21869 case "$found_la" in
21870 */* | *\\*) . "$found_la" ;;
21871 *) . "./$found_la" ;;
21873 libdir="$save_libdir"
21874 for dep in $dependency_libs; do
21877 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21878 if test "X$additional_libdir" != "X/usr/lib"; then
21880 if test "X$additional_libdir" = "X/usr/local/lib"; then
21881 if test -n "$GCC"; then
21883 linux*) haveit=yes;;
21887 if test -z "$haveit"; then
21889 for x in $LDFLAGS $LIBICONV; do
21891 acl_save_prefix="$prefix"
21892 prefix="$acl_final_prefix"
21893 acl_save_exec_prefix="$exec_prefix"
21894 exec_prefix="$acl_final_exec_prefix"
21896 exec_prefix="$acl_save_exec_prefix"
21897 prefix="$acl_save_prefix"
21899 if test "X$x" = "X-L$additional_libdir"; then
21904 if test -z "$haveit"; then
21905 if test -d "$additional_libdir"; then
21906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21910 for x in $LDFLAGS $LTLIBICONV; do
21912 acl_save_prefix="$prefix"
21913 prefix="$acl_final_prefix"
21914 acl_save_exec_prefix="$exec_prefix"
21915 exec_prefix="$acl_final_exec_prefix"
21917 exec_prefix="$acl_save_exec_prefix"
21918 prefix="$acl_save_prefix"
21920 if test "X$x" = "X-L$additional_libdir"; then
21925 if test -z "$haveit"; then
21926 if test -d "$additional_libdir"; then
21927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21934 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21935 if test "$enable_rpath" != no; then
21937 for x in $rpathdirs; do
21938 if test "X$x" = "X$dir"; then
21943 if test -z "$haveit"; then
21944 rpathdirs="$rpathdirs $dir"
21947 for x in $ltrpathdirs; do
21948 if test "X$x" = "X$dir"; then
21953 if test -z "$haveit"; then
21954 ltrpathdirs="$ltrpathdirs $dir"
21959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21965 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21972 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21979 if test "X$rpathdirs" != "X"; then
21980 if test -n "$hardcode_libdir_separator"; then
21982 for found_dir in $rpathdirs; do
21983 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21985 acl_save_libdir="$libdir"
21987 eval flag=\"$hardcode_libdir_flag_spec\"
21988 libdir="$acl_save_libdir"
21989 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21991 for found_dir in $rpathdirs; do
21992 acl_save_libdir="$libdir"
21993 libdir="$found_dir"
21994 eval flag=\"$hardcode_libdir_flag_spec\"
21995 libdir="$acl_save_libdir"
21996 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22000 if test "X$ltrpathdirs" != "X"; then
22001 for found_dir in $ltrpathdirs; do
22002 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22012 am_save_CPPFLAGS="$CPPFLAGS"
22014 for element in $INCICONV; do
22016 for x in $CPPFLAGS; do
22018 acl_save_prefix="$prefix"
22019 prefix="$acl_final_prefix"
22020 acl_save_exec_prefix="$exec_prefix"
22021 exec_prefix="$acl_final_exec_prefix"
22023 exec_prefix="$acl_save_exec_prefix"
22024 prefix="$acl_save_prefix"
22026 if test "X$x" = "X$element"; then
22031 if test -z "$haveit"; then
22032 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22037 echo "$as_me:$LINENO: checking for iconv" >&5
22038 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22039 if test "${am_cv_func_iconv+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22043 am_cv_func_iconv="no, consider installing GNU libiconv"
22045 if test x$gcc_no_link = xyes; then
22046 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22048 { (exit 1); exit 1; }; }
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <stdlib.h>
22061 iconv_t cd = iconv_open("","");
22062 iconv(cd,NULL,NULL,NULL,NULL);
22068 rm -f conftest.$ac_objext conftest$ac_exeext
22069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22070 (eval $ac_link) 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); } &&
22077 { ac_try='test -z "$ac_c_werror_flag"
22078 || test ! -s conftest.err'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } &&
22084 { ac_try='test -s conftest$ac_exeext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 am_cv_func_iconv=yes
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22096 rm -f conftest.err conftest.$ac_objext \
22097 conftest$ac_exeext conftest.$ac_ext
22098 if test "$am_cv_func_iconv" != yes; then
22099 am_save_LIBS="$LIBS"
22100 LIBS="$LIBS $LIBICONV"
22101 if test x$gcc_no_link = xyes; then
22102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22104 { (exit 1); exit 1; }; }
22106 cat >conftest.$ac_ext <<_ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h. */
22112 #include <stdlib.h>
22117 iconv_t cd = iconv_open("","");
22118 iconv(cd,NULL,NULL,NULL,NULL);
22124 rm -f conftest.$ac_objext conftest$ac_exeext
22125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22126 (eval $ac_link) 2>conftest.er1
22128 grep -v '^ *+' conftest.er1 >conftest.err
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); } &&
22133 { ac_try='test -z "$ac_c_werror_flag"
22134 || test ! -s conftest.err'
22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136 (eval $ac_try) 2>&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); }; } &&
22140 { ac_try='test -s conftest$ac_exeext'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; }; then
22146 am_cv_lib_iconv=yes
22147 am_cv_func_iconv=yes
22149 echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22153 rm -f conftest.err conftest.$ac_objext \
22154 conftest$ac_exeext conftest.$ac_ext
22155 LIBS="$am_save_LIBS"
22159 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22160 echo "${ECHO_T}$am_cv_func_iconv" >&6
22161 if test "$am_cv_func_iconv" = yes; then
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_ICONV 1
22168 if test "$am_cv_lib_iconv" = yes; then
22169 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22170 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22171 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22172 echo "${ECHO_T}$LIBICONV" >&6
22174 CPPFLAGS="$am_save_CPPFLAGS"
22181 if test "$am_cv_func_iconv" = yes; then
22182 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22183 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22184 if test "${am_cv_proto_iconv+set}" = set; then
22185 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22195 #include <stdlib.h>
22201 #if defined(__STDC__) || defined(__cplusplus)
22202 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22215 rm -f conftest.$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22219 grep -v '^ *+' conftest.er1 >conftest.err
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
22224 { ac_try='test -z "$ac_c_werror_flag"
22225 || test ! -s conftest.err'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } &&
22231 { ac_try='test -s conftest.$ac_objext'
22232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233 (eval $ac_try) 2>&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); }; }; then
22237 am_cv_proto_iconv_arg1=""
22239 echo "$as_me: failed program was:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 am_cv_proto_iconv_arg1="const"
22244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22245 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);"
22248 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22249 echo "$as_me:$LINENO: result: ${ac_t:-
22250 }$am_cv_proto_iconv" >&5
22251 echo "${ECHO_T}${ac_t:-
22252 }$am_cv_proto_iconv" >&6
22254 cat >>confdefs.h <<_ACEOF
22255 #define ICONV_CONST $am_cv_proto_iconv_arg1
22261 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22262 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22263 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22264 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 if test x$gcc_no_link = xyes; then
22267 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22269 { (exit 1); exit 1; }; }
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #include <locale.h>
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22288 (eval $ac_link) 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest$ac_exeext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 am_cv_val_LC_MESSAGES=yes
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 am_cv_val_LC_MESSAGES=no
22315 rm -f conftest.err conftest.$ac_objext \
22316 conftest$ac_exeext conftest.$ac_ext
22318 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22319 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22320 if test $am_cv_val_LC_MESSAGES = yes; then
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_LC_MESSAGES 1
22328 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22329 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22330 if test "${ac_cv_struct_tm+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 #include <sys/types.h>
22345 struct tm *tp; tp->tm_sec;
22350 rm -f conftest.$ac_objext
22351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22352 (eval $ac_compile) 2>conftest.er1
22354 grep -v '^ *+' conftest.er1 >conftest.err
22356 cat conftest.err >&5
22357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358 (exit $ac_status); } &&
22359 { ac_try='test -z "$ac_c_werror_flag"
22360 || test ! -s conftest.err'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest.$ac_objext'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372 ac_cv_struct_tm=time.h
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_struct_tm=sys/time.h
22379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22381 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22382 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22383 if test $ac_cv_struct_tm = sys/time.h; then
22385 cat >>confdefs.h <<\_ACEOF
22386 #define TM_IN_SYS_TIME 1
22391 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22392 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22393 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 #include <sys/types.h>
22403 #include <$ac_cv_struct_tm>
22409 static struct tm ac_aggr;
22410 if (ac_aggr.tm_zone)
22416 rm -f conftest.$ac_objext
22417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22418 (eval $ac_compile) 2>conftest.er1
22420 grep -v '^ *+' conftest.er1 >conftest.err
22422 cat conftest.err >&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); } &&
22425 { ac_try='test -z "$ac_c_werror_flag"
22426 || test ! -s conftest.err'
22427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428 (eval $ac_try) 2>&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); }; } &&
22432 { ac_try='test -s conftest.$ac_objext'
22433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22434 (eval $ac_try) 2>&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); }; }; then
22438 ac_cv_member_struct_tm_tm_zone=yes
22440 echo "$as_me: failed program was:" >&5
22441 sed 's/^/| /' conftest.$ac_ext >&5
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 #include <sys/types.h>
22450 #include <$ac_cv_struct_tm>
22456 static struct tm ac_aggr;
22457 if (sizeof ac_aggr.tm_zone)
22463 rm -f conftest.$ac_objext
22464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22465 (eval $ac_compile) 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } &&
22472 { ac_try='test -z "$ac_c_werror_flag"
22473 || test ! -s conftest.err'
22474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
22480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22481 (eval $ac_try) 2>&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); }; }; then
22485 ac_cv_member_struct_tm_tm_zone=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ac_cv_member_struct_tm_tm_zone=no
22492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22496 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22497 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22498 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22500 cat >>confdefs.h <<_ACEOF
22501 #define HAVE_STRUCT_TM_TM_ZONE 1
22507 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22509 cat >>confdefs.h <<\_ACEOF
22510 #define HAVE_TM_ZONE 1
22514 echo "$as_me:$LINENO: checking for tzname" >&5
22515 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22516 if test "${ac_cv_var_tzname+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 if test x$gcc_no_link = xyes; then
22520 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22522 { (exit 1); exit 1; }; }
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22531 #ifndef tzname /* For SGI. */
22532 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22543 rm -f conftest.$ac_objext conftest$ac_exeext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22545 (eval $ac_link) 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try='test -z "$ac_c_werror_flag"
22553 || test ! -s conftest.err'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try='test -s conftest$ac_exeext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ac_cv_var_tzname=yes
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ac_cv_var_tzname=no
22572 rm -f conftest.err conftest.$ac_objext \
22573 conftest$ac_exeext conftest.$ac_ext
22575 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22576 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22577 if test $ac_cv_var_tzname = yes; then
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_TZNAME 1
22588 for ac_func in gethostbyname_r
22590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22591 echo "$as_me:$LINENO: checking for $ac_func" >&5
22592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22593 if eval "test \"\${$as_ac_var+set}\" = set"; then
22594 echo $ECHO_N "(cached) $ECHO_C" >&6
22596 if test x$gcc_no_link = xyes; then
22597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22599 { (exit 1); exit 1; }; }
22601 cat >conftest.$ac_ext <<_ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22609 #define $ac_func innocuous_$ac_func
22611 /* System header to define __stub macros and hopefully few prototypes,
22612 which can conflict with char $ac_func (); below.
22613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22614 <limits.h> exists even on freestanding compilers. */
22617 # include <limits.h>
22619 # include <assert.h>
22624 /* Override any gcc2 internal prototype to avoid an error. */
22629 /* We use char because int might match the return type of a gcc2
22630 builtin and then its argument prototype would still apply. */
22632 /* The GNU C library defines this for functions which it implements
22633 to always fail with ENOSYS. Some functions are actually named
22634 something starting with __ and the normal name is an alias. */
22635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22638 char (*f) () = $ac_func;
22647 return f != $ac_func;
22652 rm -f conftest.$ac_objext conftest$ac_exeext
22653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22654 (eval $ac_link) 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } &&
22661 { ac_try='test -z "$ac_c_werror_flag"
22662 || test ! -s conftest.err'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; } &&
22668 { ac_try='test -s conftest$ac_exeext'
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }; then
22674 eval "$as_ac_var=yes"
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22679 eval "$as_ac_var=no"
22681 rm -f conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22686 if test `eval echo '${'$as_ac_var'}'` = yes; then
22687 cat >>confdefs.h <<_ACEOF
22688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_GETHOSTBYNAME_R 1
22696 # There are two different kinds of gethostbyname_r.
22697 # We look for the one that returns `int'.
22698 # Hopefully this check is robust enough.
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22709 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22712 cat >>confdefs.h <<\_ACEOF
22713 #define GETHOSTBYNAME_R_RETURNS_INT 1
22720 case " $GCINCS " in
22721 *" -D_REENTRANT "*) ;;
22723 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22724 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22725 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 ac_cpp='$CXXCPP $CPPFLAGS'
22730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22734 cat >conftest.$ac_ext <<_ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22744 gethostbyname_r("", 0, 0);
22749 rm -f conftest.$ac_objext
22750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22751 (eval $ac_compile) 2>conftest.er1
22753 grep -v '^ *+' conftest.er1 >conftest.err
22755 cat conftest.err >&5
22756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757 (exit $ac_status); } &&
22758 { ac_try='test -z "$ac_cxx_werror_flag"
22759 || test ! -s conftest.err'
22760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22761 (eval $ac_try) 2>&5
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; } &&
22765 { ac_try='test -s conftest.$ac_objext'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; }; then
22771 libjava_cv_gethostbyname_r_needs_reentrant=no
22773 echo "$as_me: failed program was:" >&5
22774 sed 's/^/| /' conftest.$ac_ext >&5
22776 CPPFLAGS_SAVE="$CPPFLAGS"
22777 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22788 gethostbyname_r("", 0, 0);
22793 rm -f conftest.$ac_objext
22794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22795 (eval $ac_compile) 2>conftest.er1
22797 grep -v '^ *+' conftest.er1 >conftest.err
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } &&
22802 { ac_try='test -z "$ac_cxx_werror_flag"
22803 || test ! -s conftest.err'
22804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; } &&
22809 { ac_try='test -s conftest.$ac_objext'
22810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); }; }; then
22815 libjava_cv_gethostbyname_r_needs_reentrant=yes
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 libjava_cv_gethostbyname_r_needs_reentrant=fail
22822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22823 CPPFLAGS="$CPPFLAGS_SAVE"
22826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22828 ac_cpp='$CPP $CPPFLAGS'
22829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22835 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22836 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22837 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22839 cat >>confdefs.h <<\_ACEOF
22840 #define _REENTRANT 1
22847 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22848 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22849 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22852 cat >conftest.$ac_ext <<_ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h. */
22859 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22860 # define _REENTRANT 1
22866 struct hostent_data data;
22871 rm -f conftest.$ac_objext
22872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22873 (eval $ac_compile) 2>conftest.er1
22875 grep -v '^ *+' conftest.er1 >conftest.err
22877 cat conftest.err >&5
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
22880 { ac_try='test -z "$ac_c_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 libjava_cv_struct_hostent_data=yes
22895 echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 libjava_cv_struct_hostent_data=no
22900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22902 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22903 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22904 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_STRUCT_HOSTENT_DATA 1
22916 # FIXME: libjava source code expects to find a prototype for
22917 # gethostbyaddr_r in netdb.h. The outer check ensures that
22918 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22919 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22920 # linkage check is enough, yet C++ code requires proper prototypes.)
22921 cat >conftest.$ac_ext <<_ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h. */
22930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22931 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22934 for ac_func in gethostbyaddr_r
22936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22937 echo "$as_me:$LINENO: checking for $ac_func" >&5
22938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22939 if eval "test \"\${$as_ac_var+set}\" = set"; then
22940 echo $ECHO_N "(cached) $ECHO_C" >&6
22942 if test x$gcc_no_link = xyes; then
22943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22945 { (exit 1); exit 1; }; }
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22955 #define $ac_func innocuous_$ac_func
22957 /* System header to define __stub macros and hopefully few prototypes,
22958 which can conflict with char $ac_func (); below.
22959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22960 <limits.h> exists even on freestanding compilers. */
22963 # include <limits.h>
22965 # include <assert.h>
22970 /* Override any gcc2 internal prototype to avoid an error. */
22975 /* We use char because int might match the return type of a gcc2
22976 builtin and then its argument prototype would still apply. */
22978 /* The GNU C library defines this for functions which it implements
22979 to always fail with ENOSYS. Some functions are actually named
22980 something starting with __ and the normal name is an alias. */
22981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22984 char (*f) () = $ac_func;
22993 return f != $ac_func;
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23000 (eval $ac_link) 2>conftest.er1
23002 grep -v '^ *+' conftest.er1 >conftest.err
23004 cat conftest.err >&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } &&
23007 { ac_try='test -z "$ac_c_werror_flag"
23008 || test ! -s conftest.err'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest$ac_exeext'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 eval "$as_ac_var=yes"
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23025 eval "$as_ac_var=no"
23027 rm -f conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23032 if test `eval echo '${'$as_ac_var'}'` = yes; then
23033 cat >>confdefs.h <<_ACEOF
23034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23038 cat >>confdefs.h <<\_ACEOF
23039 #define HAVE_GETHOSTBYADDR_R 1
23042 # There are two different kinds of gethostbyaddr_r.
23043 # We look for the one that returns `int'.
23044 # Hopefully this check is robust enough.
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23055 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23058 cat >>confdefs.h <<\_ACEOF
23059 #define GETHOSTBYADDR_R_RETURNS_INT 1
23073 for ac_func in gethostname
23075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23076 echo "$as_me:$LINENO: checking for $ac_func" >&5
23077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23078 if eval "test \"\${$as_ac_var+set}\" = set"; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23081 if test x$gcc_no_link = xyes; then
23082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23084 { (exit 1); exit 1; }; }
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23094 #define $ac_func innocuous_$ac_func
23096 /* System header to define __stub macros and hopefully few prototypes,
23097 which can conflict with char $ac_func (); below.
23098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23099 <limits.h> exists even on freestanding compilers. */
23102 # include <limits.h>
23104 # include <assert.h>
23109 /* Override any gcc2 internal prototype to avoid an error. */
23114 /* We use char because int might match the return type of a gcc2
23115 builtin and then its argument prototype would still apply. */
23117 /* The GNU C library defines this for functions which it implements
23118 to always fail with ENOSYS. Some functions are actually named
23119 something starting with __ and the normal name is an alias. */
23120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23123 char (*f) () = $ac_func;
23132 return f != $ac_func;
23137 rm -f conftest.$ac_objext conftest$ac_exeext
23138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23139 (eval $ac_link) 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145 (exit $ac_status); } &&
23146 { ac_try='test -z "$ac_c_werror_flag"
23147 || test ! -s conftest.err'
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; } &&
23153 { ac_try='test -s conftest$ac_exeext'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23159 eval "$as_ac_var=yes"
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 eval "$as_ac_var=no"
23166 rm -f conftest.err conftest.$ac_objext \
23167 conftest$ac_exeext conftest.$ac_ext
23169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23171 if test `eval echo '${'$as_ac_var'}'` = yes; then
23172 cat >>confdefs.h <<_ACEOF
23173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_GETHOSTNAME 1
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 #include <unistd.h>
23190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23191 $EGREP "gethostname" >/dev/null 2>&1; then
23194 cat >>confdefs.h <<\_ACEOF
23195 #define HAVE_GETHOSTNAME_DECL 1
23206 for ac_func in usleep
23208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23209 echo "$as_me:$LINENO: checking for $ac_func" >&5
23210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23211 if eval "test \"\${$as_ac_var+set}\" = set"; then
23212 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 if test x$gcc_no_link = xyes; then
23215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23217 { (exit 1); exit 1; }; }
23219 cat >conftest.$ac_ext <<_ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23227 #define $ac_func innocuous_$ac_func
23229 /* System header to define __stub macros and hopefully few prototypes,
23230 which can conflict with char $ac_func (); below.
23231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23232 <limits.h> exists even on freestanding compilers. */
23235 # include <limits.h>
23237 # include <assert.h>
23242 /* Override any gcc2 internal prototype to avoid an error. */
23247 /* We use char because int might match the return type of a gcc2
23248 builtin and then its argument prototype would still apply. */
23250 /* The GNU C library defines this for functions which it implements
23251 to always fail with ENOSYS. Some functions are actually named
23252 something starting with __ and the normal name is an alias. */
23253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23256 char (*f) () = $ac_func;
23265 return f != $ac_func;
23270 rm -f conftest.$ac_objext conftest$ac_exeext
23271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23272 (eval $ac_link) 2>conftest.er1
23274 grep -v '^ *+' conftest.er1 >conftest.err
23276 cat conftest.err >&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); } &&
23279 { ac_try='test -z "$ac_c_werror_flag"
23280 || test ! -s conftest.err'
23281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23282 (eval $ac_try) 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; } &&
23286 { ac_try='test -s conftest$ac_exeext'
23287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23288 (eval $ac_try) 2>&5
23290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); }; }; then
23292 eval "$as_ac_var=yes"
23294 echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 eval "$as_ac_var=no"
23299 rm -f conftest.err conftest.$ac_objext \
23300 conftest$ac_exeext conftest.$ac_ext
23302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23304 if test `eval echo '${'$as_ac_var'}'` = yes; then
23305 cat >>confdefs.h <<_ACEOF
23306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 #include <unistd.h>
23318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23319 $EGREP "usleep" >/dev/null 2>&1; then
23322 cat >>confdefs.h <<\_ACEOF
23323 #define HAVE_USLEEP_DECL 1
23333 # Look for these functions in the thread library, but only bother
23334 # if using POSIX threads.
23335 if test "$THREADS" = posix; then
23337 LIBS="$LIBS $THREADLIBS"
23339 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23340 # Solaris 7 the name librt is preferred.
23342 for ac_func in sched_yield
23344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23345 echo "$as_me:$LINENO: checking for $ac_func" >&5
23346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23347 if eval "test \"\${$as_ac_var+set}\" = set"; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 if test x$gcc_no_link = xyes; then
23351 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23353 { (exit 1); exit 1; }; }
23355 cat >conftest.$ac_ext <<_ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23363 #define $ac_func innocuous_$ac_func
23365 /* System header to define __stub macros and hopefully few prototypes,
23366 which can conflict with char $ac_func (); below.
23367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23368 <limits.h> exists even on freestanding compilers. */
23371 # include <limits.h>
23373 # include <assert.h>
23378 /* Override any gcc2 internal prototype to avoid an error. */
23383 /* We use char because int might match the return type of a gcc2
23384 builtin and then its argument prototype would still apply. */
23386 /* The GNU C library defines this for functions which it implements
23387 to always fail with ENOSYS. Some functions are actually named
23388 something starting with __ and the normal name is an alias. */
23389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23392 char (*f) () = $ac_func;
23401 return f != $ac_func;
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408 (eval $ac_link) 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 eval "$as_ac_var=yes"
23430 echo "$as_me: failed program was:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 eval "$as_ac_var=no"
23435 rm -f conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23440 if test `eval echo '${'$as_ac_var'}'` = yes; then
23441 cat >>confdefs.h <<_ACEOF
23442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23447 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23448 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23449 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23450 echo $ECHO_N "(cached) $ECHO_C" >&6
23452 ac_check_lib_save_LIBS=$LIBS
23454 if test x$gcc_no_link = xyes; then
23455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23457 { (exit 1); exit 1; }; }
23459 cat >conftest.$ac_ext <<_ACEOF
23462 cat confdefs.h >>conftest.$ac_ext
23463 cat >>conftest.$ac_ext <<_ACEOF
23464 /* end confdefs.h. */
23466 /* Override any gcc2 internal prototype to avoid an error. */
23470 /* We use char because int might match the return type of a gcc2
23471 builtin and then its argument prototype would still apply. */
23472 char sched_yield ();
23481 rm -f conftest.$ac_objext conftest$ac_exeext
23482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23483 (eval $ac_link) 2>conftest.er1
23485 grep -v '^ *+' conftest.er1 >conftest.err
23487 cat conftest.err >&5
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } &&
23490 { ac_try='test -z "$ac_c_werror_flag"
23491 || test ! -s conftest.err'
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; } &&
23497 { ac_try='test -s conftest$ac_exeext'
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_lib_rt_sched_yield=yes
23505 echo "$as_me: failed program was:" >&5
23506 sed 's/^/| /' conftest.$ac_ext >&5
23508 ac_cv_lib_rt_sched_yield=no
23510 rm -f conftest.err conftest.$ac_objext \
23511 conftest$ac_exeext conftest.$ac_ext
23512 LIBS=$ac_check_lib_save_LIBS
23514 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23515 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23516 if test $ac_cv_lib_rt_sched_yield = yes; then
23518 cat >>confdefs.h <<\_ACEOF
23519 #define HAVE_SCHED_YIELD 1
23522 THREADLIBS="$THREADLIBS -lrt"
23523 THREADSPEC="$THREADSPEC -lrt"
23526 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23527 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23528 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23529 echo $ECHO_N "(cached) $ECHO_C" >&6
23531 ac_check_lib_save_LIBS=$LIBS
23532 LIBS="-lposix4 $LIBS"
23533 if test x$gcc_no_link = xyes; then
23534 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23536 { (exit 1); exit 1; }; }
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23545 /* Override any gcc2 internal prototype to avoid an error. */
23549 /* We use char because int might match the return type of a gcc2
23550 builtin and then its argument prototype would still apply. */
23551 char sched_yield ();
23560 rm -f conftest.$ac_objext conftest$ac_exeext
23561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23562 (eval $ac_link) 2>conftest.er1
23564 grep -v '^ *+' conftest.er1 >conftest.err
23566 cat conftest.err >&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); } &&
23569 { ac_try='test -z "$ac_c_werror_flag"
23570 || test ! -s conftest.err'
23571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23572 (eval $ac_try) 2>&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); }; } &&
23576 { ac_try='test -s conftest$ac_exeext'
23577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23578 (eval $ac_try) 2>&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); }; }; then
23582 ac_cv_lib_posix4_sched_yield=yes
23584 echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23587 ac_cv_lib_posix4_sched_yield=no
23589 rm -f conftest.err conftest.$ac_objext \
23590 conftest$ac_exeext conftest.$ac_ext
23591 LIBS=$ac_check_lib_save_LIBS
23593 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23594 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23595 if test $ac_cv_lib_posix4_sched_yield = yes; then
23597 cat >>confdefs.h <<\_ACEOF
23598 #define HAVE_SCHED_YIELD 1
23601 THREADLIBS="$THREADLIBS -lposix4"
23602 THREADSPEC="$THREADSPEC -lposix4"
23611 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23612 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23613 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23614 echo $ECHO_N "(cached) $ECHO_C" >&6
23616 ac_check_lib_save_LIBS=$LIBS
23618 if test x$gcc_no_link = xyes; then
23619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23621 { (exit 1); exit 1; }; }
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23630 /* Override any gcc2 internal prototype to avoid an error. */
23634 /* We use char because int might match the return type of a gcc2
23635 builtin and then its argument prototype would still apply. */
23636 char clock_gettime ();
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_lib_rt_clock_gettime=yes
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23672 ac_cv_lib_rt_clock_gettime=no
23674 rm -f conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext conftest.$ac_ext
23676 LIBS=$ac_check_lib_save_LIBS
23678 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23679 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23680 if test $ac_cv_lib_rt_clock_gettime = yes; then
23683 cat >>confdefs.h <<\_ACEOF
23684 #define HAVE_CLOCK_GETTIME 1
23687 case "$THREADSPEC" in
23690 THREADSPEC="$THREADSPEC -lrt"
23691 THREADLIBS="$THREADLIBS -lrt"
23699 # We can save a little space at runtime if the mutex has m_count
23700 # or __m_count. This is a nice hack for Linux.
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23707 #include <pthread.h>
23712 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23718 rm -f conftest.$ac_objext
23719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23720 (eval $ac_compile) 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
23727 { ac_try='test -z "$ac_c_werror_flag"
23728 || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest.$ac_objext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23741 cat >>confdefs.h <<\_ACEOF
23742 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23746 echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <pthread.h>
23761 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23767 rm -f conftest.$ac_objext
23768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769 (eval $ac_compile) 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
23776 { ac_try='test -z "$ac_c_werror_flag"
23777 || test ! -s conftest.err'
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest.$ac_objext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23790 cat >>confdefs.h <<\_ACEOF
23791 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23795 echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23804 # We require a way to get the time.
23809 for ac_func in gettimeofday time ftime
23811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23812 echo "$as_me:$LINENO: checking for $ac_func" >&5
23813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23814 if eval "test \"\${$as_ac_var+set}\" = set"; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23817 if test x$gcc_no_link = xyes; then
23818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23820 { (exit 1); exit 1; }; }
23822 cat >conftest.$ac_ext <<_ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h. */
23828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23830 #define $ac_func innocuous_$ac_func
23832 /* System header to define __stub macros and hopefully few prototypes,
23833 which can conflict with char $ac_func (); below.
23834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23835 <limits.h> exists even on freestanding compilers. */
23838 # include <limits.h>
23840 # include <assert.h>
23845 /* Override any gcc2 internal prototype to avoid an error. */
23850 /* We use char because int might match the return type of a gcc2
23851 builtin and then its argument prototype would still apply. */
23853 /* The GNU C library defines this for functions which it implements
23854 to always fail with ENOSYS. Some functions are actually named
23855 something starting with __ and the normal name is an alias. */
23856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23859 char (*f) () = $ac_func;
23868 return f != $ac_func;
23873 rm -f conftest.$ac_objext conftest$ac_exeext
23874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23875 (eval $ac_link) 2>conftest.er1
23877 grep -v '^ *+' conftest.er1 >conftest.err
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } &&
23882 { ac_try='test -z "$ac_c_werror_flag"
23883 || test ! -s conftest.err'
23884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23885 (eval $ac_try) 2>&5
23887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); }; } &&
23889 { ac_try='test -s conftest$ac_exeext'
23890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23891 (eval $ac_try) 2>&5
23893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894 (exit $ac_status); }; }; then
23895 eval "$as_ac_var=yes"
23897 echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23900 eval "$as_ac_var=no"
23902 rm -f conftest.err conftest.$ac_objext \
23903 conftest$ac_exeext conftest.$ac_ext
23905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23907 if test `eval echo '${'$as_ac_var'}'` = yes; then
23908 cat >>confdefs.h <<_ACEOF
23909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23915 if test "$time_found" = no; then
23916 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23917 echo "$as_me: error: no function found to get the time" >&2;}
23918 { (exit 1); exit 1; }; }
23922 for ac_func in memmove
23924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23925 echo "$as_me:$LINENO: checking for $ac_func" >&5
23926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23927 if eval "test \"\${$as_ac_var+set}\" = set"; then
23928 echo $ECHO_N "(cached) $ECHO_C" >&6
23930 if test x$gcc_no_link = xyes; then
23931 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23933 { (exit 1); exit 1; }; }
23935 cat >conftest.$ac_ext <<_ACEOF
23938 cat confdefs.h >>conftest.$ac_ext
23939 cat >>conftest.$ac_ext <<_ACEOF
23940 /* end confdefs.h. */
23941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23943 #define $ac_func innocuous_$ac_func
23945 /* System header to define __stub macros and hopefully few prototypes,
23946 which can conflict with char $ac_func (); below.
23947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23948 <limits.h> exists even on freestanding compilers. */
23951 # include <limits.h>
23953 # include <assert.h>
23958 /* Override any gcc2 internal prototype to avoid an error. */
23963 /* We use char because int might match the return type of a gcc2
23964 builtin and then its argument prototype would still apply. */
23966 /* The GNU C library defines this for functions which it implements
23967 to always fail with ENOSYS. Some functions are actually named
23968 something starting with __ and the normal name is an alias. */
23969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23972 char (*f) () = $ac_func;
23981 return f != $ac_func;
23986 rm -f conftest.$ac_objext conftest$ac_exeext
23987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23988 (eval $ac_link) 2>conftest.er1
23990 grep -v '^ *+' conftest.er1 >conftest.err
23992 cat conftest.err >&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } &&
23995 { ac_try='test -z "$ac_c_werror_flag"
23996 || test ! -s conftest.err'
23997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998 (eval $ac_try) 2>&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); }; } &&
24002 { ac_try='test -s conftest$ac_exeext'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; }; then
24008 eval "$as_ac_var=yes"
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24013 eval "$as_ac_var=no"
24015 rm -f conftest.err conftest.$ac_objext \
24016 conftest$ac_exeext conftest.$ac_ext
24018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24020 if test `eval echo '${'$as_ac_var'}'` = yes; then
24021 cat >>confdefs.h <<_ACEOF
24022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24029 # We require memcpy.
24032 for ac_func in memcpy
24034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035 echo "$as_me:$LINENO: checking for $ac_func" >&5
24036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24037 if eval "test \"\${$as_ac_var+set}\" = set"; then
24038 echo $ECHO_N "(cached) $ECHO_C" >&6
24040 if test x$gcc_no_link = xyes; then
24041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24043 { (exit 1); exit 1; }; }
24045 cat >conftest.$ac_ext <<_ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24053 #define $ac_func innocuous_$ac_func
24055 /* System header to define __stub macros and hopefully few prototypes,
24056 which can conflict with char $ac_func (); below.
24057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24058 <limits.h> exists even on freestanding compilers. */
24061 # include <limits.h>
24063 # include <assert.h>
24068 /* Override any gcc2 internal prototype to avoid an error. */
24073 /* We use char because int might match the return type of a gcc2
24074 builtin and then its argument prototype would still apply. */
24076 /* The GNU C library defines this for functions which it implements
24077 to always fail with ENOSYS. Some functions are actually named
24078 something starting with __ and the normal name is an alias. */
24079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24082 char (*f) () = $ac_func;
24091 return f != $ac_func;
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24098 (eval $ac_link) 2>conftest.er1
24100 grep -v '^ *+' conftest.er1 >conftest.err
24102 cat conftest.err >&5
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } &&
24105 { ac_try='test -z "$ac_c_werror_flag"
24106 || test ! -s conftest.err'
24107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24108 (eval $ac_try) 2>&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); }; } &&
24112 { ac_try='test -s conftest$ac_exeext'
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; }; then
24118 eval "$as_ac_var=yes"
24120 echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24123 eval "$as_ac_var=no"
24125 rm -f conftest.err conftest.$ac_objext \
24126 conftest$ac_exeext conftest.$ac_ext
24128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24130 if test `eval echo '${'$as_ac_var'}'` = yes; then
24131 cat >>confdefs.h <<_ACEOF
24132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24138 if test "$memcpy_found" = no; then
24139 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24140 echo "$as_me: error: memcpy is required" >&2;}
24141 { (exit 1); exit 1; }; }
24143 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24144 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24145 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24146 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24149 ac_check_lib_save_LIBS=$LIBS
24151 if test x$gcc_no_link = xyes; then
24152 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24154 { (exit 1); exit 1; }; }
24156 cat >conftest.$ac_ext <<_ACEOF
24159 cat confdefs.h >>conftest.$ac_ext
24160 cat >>conftest.$ac_ext <<_ACEOF
24161 /* end confdefs.h. */
24163 /* Override any gcc2 internal prototype to avoid an error. */
24167 /* We use char because int might match the return type of a gcc2
24168 builtin and then its argument prototype would still apply. */
24178 rm -f conftest.$ac_objext conftest$ac_exeext
24179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24180 (eval $ac_link) 2>conftest.er1
24182 grep -v '^ *+' conftest.er1 >conftest.err
24184 cat conftest.err >&5
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); } &&
24187 { ac_try='test -z "$ac_c_werror_flag"
24188 || test ! -s conftest.err'
24189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24190 (eval $ac_try) 2>&5
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; } &&
24194 { ac_try='test -s conftest$ac_exeext'
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; }; then
24200 ac_cv_lib_dl_dlopen=yes
24202 echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_cv_lib_dl_dlopen=no
24207 rm -f conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24211 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24212 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24213 if test $ac_cv_lib_dl_dlopen = yes; then
24216 cat >>confdefs.h <<\_ACEOF
24217 #define HAVE_DLOPEN 1
24222 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24223 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24224 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 ac_check_lib_save_LIBS=$LIBS
24229 if test x$gcc_no_link = xyes; then
24230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24232 { (exit 1); exit 1; }; }
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24241 /* Override any gcc2 internal prototype to avoid an error. */
24245 /* We use char because int might match the return type of a gcc2
24246 builtin and then its argument prototype would still apply. */
24256 rm -f conftest.$ac_objext conftest$ac_exeext
24257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24258 (eval $ac_link) 2>conftest.er1
24260 grep -v '^ *+' conftest.er1 >conftest.err
24262 cat conftest.err >&5
24263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264 (exit $ac_status); } &&
24265 { ac_try='test -z "$ac_c_werror_flag"
24266 || test ! -s conftest.err'
24267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268 (eval $ac_try) 2>&5
24270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271 (exit $ac_status); }; } &&
24272 { ac_try='test -s conftest$ac_exeext'
24273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24274 (eval $ac_try) 2>&5
24276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277 (exit $ac_status); }; }; then
24278 ac_cv_lib_dld_dlopen=yes
24280 echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24283 ac_cv_lib_dld_dlopen=no
24285 rm -f conftest.err conftest.$ac_objext \
24286 conftest$ac_exeext conftest.$ac_ext
24287 LIBS=$ac_check_lib_save_LIBS
24289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24290 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24291 if test $ac_cv_lib_dld_dlopen = yes; then
24294 cat >>confdefs.h <<\_ACEOF
24295 #define HAVE_DLOPEN 1
24303 # Some library-finding code we stole from Tcl.
24304 #--------------------------------------------------------------------
24305 # Check for the existence of the -lsocket and -lnsl libraries.
24306 # The order here is important, so that they end up in the right
24307 # order in the command line generated by make. Here are some
24308 # special considerations:
24309 # 1. Use "connect" and "accept" to check for -lsocket, and
24310 # "gethostbyname" to check for -lnsl.
24311 # 2. Use each function name only once: can't redo a check because
24312 # autoconf caches the results of the last check and won't redo it.
24313 # 3. Use -lnsl and -lsocket only if they supply procedures that
24314 # aren't already present in the normal libraries. This is because
24315 # IRIX 5.2 has libraries, but they aren't needed and they're
24316 # bogus: they goof up name resolution if used.
24317 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24318 # To get around this problem, check for both libraries together
24319 # if -lsocket doesn't work by itself.
24320 #--------------------------------------------------------------------
24322 echo "$as_me:$LINENO: checking for socket libraries" >&5
24323 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24324 if test "${gcj_cv_lib_sockets+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 gcj_cv_lib_sockets=
24329 unset ac_cv_func_connect
24330 echo "$as_me:$LINENO: checking for connect" >&5
24331 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24332 if test "${ac_cv_func_connect+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24335 if test x$gcc_no_link = xyes; then
24336 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24338 { (exit 1); exit 1; }; }
24340 cat >conftest.$ac_ext <<_ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h. */
24346 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24348 #define connect innocuous_connect
24350 /* System header to define __stub macros and hopefully few prototypes,
24351 which can conflict with char connect (); below.
24352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24353 <limits.h> exists even on freestanding compilers. */
24356 # include <limits.h>
24358 # include <assert.h>
24363 /* Override any gcc2 internal prototype to avoid an error. */
24368 /* We use char because int might match the return type of a gcc2
24369 builtin and then its argument prototype would still apply. */
24371 /* The GNU C library defines this for functions which it implements
24372 to always fail with ENOSYS. Some functions are actually named
24373 something starting with __ and the normal name is an alias. */
24374 #if defined (__stub_connect) || defined (__stub___connect)
24377 char (*f) () = connect;
24386 return f != connect;
24391 rm -f conftest.$ac_objext conftest$ac_exeext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24393 (eval $ac_link) 2>conftest.er1
24395 grep -v '^ *+' conftest.er1 >conftest.err
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag"
24401 || test ! -s conftest.err'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ac_cv_func_connect=yes
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24418 ac_cv_func_connect=no
24420 rm -f conftest.err conftest.$ac_objext \
24421 conftest$ac_exeext conftest.$ac_ext
24423 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24424 echo "${ECHO_T}$ac_cv_func_connect" >&6
24425 if test $ac_cv_func_connect = yes; then
24431 if test "$gcj_checkSocket" = 1; then
24432 unset ac_cv_func_connect
24433 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24434 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24435 if test "${ac_cv_lib_socket_main+set}" = set; then
24436 echo $ECHO_N "(cached) $ECHO_C" >&6
24438 ac_check_lib_save_LIBS=$LIBS
24439 LIBS="-lsocket $LIBS"
24440 if test x$gcc_no_link = xyes; then
24441 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24442 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24443 { (exit 1); exit 1; }; }
24445 cat >conftest.$ac_ext <<_ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 (eval $ac_link) 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -z "$ac_c_werror_flag"
24471 || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest$ac_exeext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_lib_socket_main=yes
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_lib_socket_main=no
24490 rm -f conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24492 LIBS=$ac_check_lib_save_LIBS
24494 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24495 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24496 if test $ac_cv_lib_socket_main = yes; then
24497 gcj_cv_lib_sockets="-lsocket"
24503 if test "$gcj_checkBoth" = 1; then
24505 LIBS="$LIBS -lsocket -lnsl"
24506 unset ac_cv_func_accept
24507 echo "$as_me:$LINENO: checking for accept" >&5
24508 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24509 if test "${ac_cv_func_accept+set}" = set; then
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24512 if test x$gcc_no_link = xyes; then
24513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24515 { (exit 1); exit 1; }; }
24517 cat >conftest.$ac_ext <<_ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24523 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24525 #define accept innocuous_accept
24527 /* System header to define __stub macros and hopefully few prototypes,
24528 which can conflict with char accept (); below.
24529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24530 <limits.h> exists even on freestanding compilers. */
24533 # include <limits.h>
24535 # include <assert.h>
24540 /* Override any gcc2 internal prototype to avoid an error. */
24545 /* We use char because int might match the return type of a gcc2
24546 builtin and then its argument prototype would still apply. */
24548 /* The GNU C library defines this for functions which it implements
24549 to always fail with ENOSYS. Some functions are actually named
24550 something starting with __ and the normal name is an alias. */
24551 #if defined (__stub_accept) || defined (__stub___accept)
24554 char (*f) () = accept;
24563 return f != accept;
24568 rm -f conftest.$ac_objext conftest$ac_exeext
24569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24570 (eval $ac_link) 2>conftest.er1
24572 grep -v '^ *+' conftest.er1 >conftest.err
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } &&
24577 { ac_try='test -z "$ac_c_werror_flag"
24578 || test ! -s conftest.err'
24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580 (eval $ac_try) 2>&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); }; } &&
24584 { ac_try='test -s conftest$ac_exeext'
24585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 (eval $ac_try) 2>&5
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; }; then
24590 ac_cv_func_accept=yes
24592 echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.$ac_ext >&5
24595 ac_cv_func_accept=no
24597 rm -f conftest.err conftest.$ac_objext \
24598 conftest$ac_exeext conftest.$ac_ext
24600 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24601 echo "${ECHO_T}$ac_cv_func_accept" >&6
24602 if test $ac_cv_func_accept = yes; then
24604 gcj_cv_lib_sockets="-lsocket -lnsl"
24607 unset ac_cv_func_accept
24610 unset ac_cv_func_gethostbyname
24612 LIBS="$LIBS $gcj_cv_lib_sockets"
24613 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24614 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24615 if test "${ac_cv_func_gethostbyname+set}" = set; then
24616 echo $ECHO_N "(cached) $ECHO_C" >&6
24618 if test x$gcc_no_link = xyes; then
24619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24621 { (exit 1); exit 1; }; }
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24631 #define gethostbyname innocuous_gethostbyname
24633 /* System header to define __stub macros and hopefully few prototypes,
24634 which can conflict with char gethostbyname (); below.
24635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24636 <limits.h> exists even on freestanding compilers. */
24639 # include <limits.h>
24641 # include <assert.h>
24644 #undef gethostbyname
24646 /* Override any gcc2 internal prototype to avoid an error. */
24651 /* We use char because int might match the return type of a gcc2
24652 builtin and then its argument prototype would still apply. */
24653 char gethostbyname ();
24654 /* The GNU C library defines this for functions which it implements
24655 to always fail with ENOSYS. Some functions are actually named
24656 something starting with __ and the normal name is an alias. */
24657 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24660 char (*f) () = gethostbyname;
24669 return f != gethostbyname;
24674 rm -f conftest.$ac_objext conftest$ac_exeext
24675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24676 (eval $ac_link) 2>conftest.er1
24678 grep -v '^ *+' conftest.er1 >conftest.err
24680 cat conftest.err >&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); } &&
24683 { ac_try='test -z "$ac_c_werror_flag"
24684 || test ! -s conftest.err'
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest$ac_exeext'
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 ac_cv_func_gethostbyname=yes
24698 echo "$as_me: failed program was:" >&5
24699 sed 's/^/| /' conftest.$ac_ext >&5
24701 ac_cv_func_gethostbyname=no
24703 rm -f conftest.err conftest.$ac_objext \
24704 conftest$ac_exeext conftest.$ac_ext
24706 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24707 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24708 if test $ac_cv_func_gethostbyname = yes; then
24711 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24712 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24713 if test "${ac_cv_lib_nsl_main+set}" = set; then
24714 echo $ECHO_N "(cached) $ECHO_C" >&6
24716 ac_check_lib_save_LIBS=$LIBS
24718 if test x$gcc_no_link = xyes; then
24719 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24721 { (exit 1); exit 1; }; }
24723 cat >conftest.$ac_ext <<_ACEOF
24726 cat confdefs.h >>conftest.$ac_ext
24727 cat >>conftest.$ac_ext <<_ACEOF
24728 /* end confdefs.h. */
24739 rm -f conftest.$ac_objext conftest$ac_exeext
24740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24741 (eval $ac_link) 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); } &&
24748 { ac_try='test -z "$ac_c_werror_flag"
24749 || test ! -s conftest.err'
24750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24751 (eval $ac_try) 2>&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); }; } &&
24755 { ac_try='test -s conftest$ac_exeext'
24756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757 (eval $ac_try) 2>&5
24759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760 (exit $ac_status); }; }; then
24761 ac_cv_lib_nsl_main=yes
24763 echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 ac_cv_lib_nsl_main=no
24768 rm -f conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24772 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24773 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24774 if test $ac_cv_lib_nsl_main = yes; then
24775 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24780 unset ac_cv_func_gethostbyname
24784 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24785 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24786 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24788 if test "$with_system_zlib" = yes; then
24789 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24790 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24791 if test "${ac_cv_lib_z_deflate+set}" = set; then
24792 echo $ECHO_N "(cached) $ECHO_C" >&6
24794 ac_check_lib_save_LIBS=$LIBS
24796 if test x$gcc_no_link = xyes; then
24797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24799 { (exit 1); exit 1; }; }
24801 cat >conftest.$ac_ext <<_ACEOF
24804 cat confdefs.h >>conftest.$ac_ext
24805 cat >>conftest.$ac_ext <<_ACEOF
24806 /* end confdefs.h. */
24808 /* Override any gcc2 internal prototype to avoid an error. */
24812 /* We use char because int might match the return type of a gcc2
24813 builtin and then its argument prototype would still apply. */
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825 (eval $ac_link) 2>conftest.er1
24827 grep -v '^ *+' conftest.er1 >conftest.err
24829 cat conftest.err >&5
24830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } &&
24832 { ac_try='test -z "$ac_c_werror_flag"
24833 || test ! -s conftest.err'
24834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835 (eval $ac_try) 2>&5
24837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838 (exit $ac_status); }; } &&
24839 { ac_try='test -s conftest$ac_exeext'
24840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841 (eval $ac_try) 2>&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); }; }; then
24845 ac_cv_lib_z_deflate=yes
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ac_cv_lib_z_deflate=no
24852 rm -f conftest.err conftest.$ac_objext \
24853 conftest$ac_exeext conftest.$ac_ext
24854 LIBS=$ac_check_lib_save_LIBS
24856 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24857 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24858 if test $ac_cv_lib_z_deflate = yes; then
24866 # Test for Gtk stuff, if asked for.
24867 if test "$use_gtk_awt" = yes; then
24871 if test -z "$PKG_CONFIG"; then
24872 # Extract the first word of "pkg-config", so it can be a program name with args.
24873 set dummy pkg-config; ac_word=$2
24874 echo "$as_me:$LINENO: checking for $ac_word" >&5
24875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24876 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24877 echo $ECHO_N "(cached) $ECHO_C" >&6
24879 case $PKG_CONFIG in
24881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885 for as_dir in $PATH
24888 test -z "$as_dir" && as_dir=.
24889 for ac_exec_ext in '' $ac_executable_extensions; do
24890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24898 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24904 if test -n "$PKG_CONFIG"; then
24905 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24906 echo "${ECHO_T}$PKG_CONFIG" >&6
24908 echo "$as_me:$LINENO: result: no" >&5
24909 echo "${ECHO_T}no" >&6
24914 if test "$PKG_CONFIG" = "no" ; then
24915 echo "*** The pkg-config script could not be found. Make sure it is"
24916 echo "*** in your path, or set the PKG_CONFIG environment variable"
24917 echo "*** to the full path to pkg-config."
24918 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24920 PKG_CONFIG_MIN_VERSION=0.9.0
24921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24922 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24923 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24925 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24926 echo "$as_me:$LINENO: result: yes" >&5
24927 echo "${ECHO_T}yes" >&6
24930 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24931 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24932 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24933 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24934 echo "${ECHO_T}$GTK_CFLAGS" >&6
24936 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24937 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24938 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24939 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24940 echo "${ECHO_T}$GTK_LIBS" >&6
24944 ## If we have a custom action on failure, don't print errors, but
24945 ## do set a variable so people can do so.
24946 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24947 echo $GTK_PKG_ERRORS
24953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24958 if test $succeeded = yes; then
24961 { { 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
24962 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;}
24963 { (exit 1); exit 1; }; }
24972 if test -z "$PKG_CONFIG"; then
24973 # Extract the first word of "pkg-config", so it can be a program name with args.
24974 set dummy pkg-config; ac_word=$2
24975 echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 case $PKG_CONFIG in
24982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986 for as_dir in $PATH
24989 test -z "$as_dir" && as_dir=.
24990 for ac_exec_ext in '' $ac_executable_extensions; do
24991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25005 if test -n "$PKG_CONFIG"; then
25006 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25007 echo "${ECHO_T}$PKG_CONFIG" >&6
25009 echo "$as_me:$LINENO: result: no" >&5
25010 echo "${ECHO_T}no" >&6
25015 if test "$PKG_CONFIG" = "no" ; then
25016 echo "*** The pkg-config script could not be found. Make sure it is"
25017 echo "*** in your path, or set the PKG_CONFIG environment variable"
25018 echo "*** to the full path to pkg-config."
25019 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25021 PKG_CONFIG_MIN_VERSION=0.9.0
25022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25023 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25024 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25026 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25027 echo "$as_me:$LINENO: result: yes" >&5
25028 echo "${ECHO_T}yes" >&6
25031 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25032 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25033 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25034 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25035 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25037 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25038 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25039 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25040 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25041 echo "${ECHO_T}$GLIB_LIBS" >&6
25045 ## If we have a custom action on failure, don't print errors, but
25046 ## do set a variable so people can do so.
25047 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25048 echo $GLIB_PKG_ERRORS
25054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25059 if test $succeeded = yes; then
25062 { { 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
25063 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;}
25064 { (exit 1); exit 1; }; }
25073 if test -z "$PKG_CONFIG"; then
25074 # Extract the first word of "pkg-config", so it can be a program name with args.
25075 set dummy pkg-config; ac_word=$2
25076 echo "$as_me:$LINENO: checking for $ac_word" >&5
25077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25079 echo $ECHO_N "(cached) $ECHO_C" >&6
25081 case $PKG_CONFIG in
25083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25087 for as_dir in $PATH
25090 test -z "$as_dir" && as_dir=.
25091 for ac_exec_ext in '' $ac_executable_extensions; do
25092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25100 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25106 if test -n "$PKG_CONFIG"; then
25107 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25108 echo "${ECHO_T}$PKG_CONFIG" >&6
25110 echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6
25116 if test "$PKG_CONFIG" = "no" ; then
25117 echo "*** The pkg-config script could not be found. Make sure it is"
25118 echo "*** in your path, or set the PKG_CONFIG environment variable"
25119 echo "*** to the full path to pkg-config."
25120 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25122 PKG_CONFIG_MIN_VERSION=0.9.0
25123 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25124 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25125 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25127 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25128 echo "$as_me:$LINENO: result: yes" >&5
25129 echo "${ECHO_T}yes" >&6
25132 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25133 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25134 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25135 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25136 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25138 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25139 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25140 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25141 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25142 echo "${ECHO_T}$LIBART_LIBS" >&6
25146 ## If we have a custom action on failure, don't print errors, but
25147 ## do set a variable so people can do so.
25148 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25149 echo $LIBART_PKG_ERRORS
25155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25160 if test $succeeded = yes; then
25163 { { 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
25164 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;}
25165 { (exit 1); exit 1; }; }
25171 # We require the XTest Extension to support java.awt.Robot.
25172 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25173 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25174 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 ac_check_lib_save_LIBS=$LIBS
25178 LIBS="-lXtst ${X_LIBS} $LIBS"
25179 if test x$gcc_no_link = xyes; then
25180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25182 { (exit 1); exit 1; }; }
25184 cat >conftest.$ac_ext <<_ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25191 /* Override any gcc2 internal prototype to avoid an error. */
25195 /* We use char because int might match the return type of a gcc2
25196 builtin and then its argument prototype would still apply. */
25197 char XTestQueryExtension ();
25201 XTestQueryExtension ();
25206 rm -f conftest.$ac_objext conftest$ac_exeext
25207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25208 (eval $ac_link) 2>conftest.er1
25210 grep -v '^ *+' conftest.er1 >conftest.err
25212 cat conftest.err >&5
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } &&
25215 { ac_try='test -z "$ac_c_werror_flag"
25216 || test ! -s conftest.err'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; } &&
25222 { ac_try='test -s conftest$ac_exeext'
25223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224 (eval $ac_try) 2>&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); }; }; then
25228 ac_cv_lib_Xtst_XTestQueryExtension=yes
25230 echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25233 ac_cv_lib_Xtst_XTestQueryExtension=no
25235 rm -f conftest.err conftest.$ac_objext \
25236 conftest$ac_exeext conftest.$ac_ext
25237 LIBS=$ac_check_lib_save_LIBS
25239 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25240 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25241 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25244 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25245 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25246 { (exit 1); exit 1; }; }
25251 # On Solaris, and maybe other architectures, the Boehm collector
25253 if test "$GC" = boehm; then
25256 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25257 # libgcj.spec is used, so override here
25258 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25261 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25262 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25263 if test "${ac_cv_lib_dl_main+set}" = set; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 ac_check_lib_save_LIBS=$LIBS
25268 if test x$gcc_no_link = xyes; then
25269 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25271 { (exit 1); exit 1; }; }
25273 cat >conftest.$ac_ext <<_ACEOF
25276 cat confdefs.h >>conftest.$ac_ext
25277 cat >>conftest.$ac_ext <<_ACEOF
25278 /* end confdefs.h. */
25289 rm -f conftest.$ac_objext conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>conftest.er1
25293 grep -v '^ *+' conftest.er1 >conftest.err
25295 cat conftest.err >&5
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } &&
25298 { ac_try='test -z "$ac_c_werror_flag"
25299 || test ! -s conftest.err'
25300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301 (eval $ac_try) 2>&5
25303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304 (exit $ac_status); }; } &&
25305 { ac_try='test -s conftest$ac_exeext'
25306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307 (eval $ac_try) 2>&5
25309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310 (exit $ac_status); }; }; then
25311 ac_cv_lib_dl_main=yes
25313 echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25316 ac_cv_lib_dl_main=no
25318 rm -f conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25323 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25324 if test $ac_cv_lib_dl_main = yes; then
25325 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25333 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25335 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25336 *) CLASSPATH_SEPARATOR=':' ;;
25340 # We must search the source tree for java.lang, since we still don't
25341 # have libgcj.jar nor java/lang/*.class
25342 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25343 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25345 # Since some classes depend on this one, we need its source available
25346 # before we can do any GCJ compilation test :-(
25347 if test ! -f gnu/classpath/Configuration.java; then
25348 test -d gnu || mkdir gnu
25349 test -d gnu/classpath || mkdir gnu/classpath
25350 # Note that it is not crucial that all the values here be correct.
25351 sed -e "s,@prefix@,$prefix," \
25352 -e "s,@VERSION@,$VERSION," \
25353 -e "s,@LIBDEBUG@,false," \
25354 -e "s,@INIT_LOAD_LIBRARY@,false," \
25355 -e "s,@@,$LIBGCJDEBUG," \
25356 -e "s,@default_toolkit@,$TOOLKIT," \
25357 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25358 -e "s,@GTK_CAIRO_ENABLED@,false," \
25359 -e "s,@ECJ_JAR@,," \
25360 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25361 > gnu/classpath/Configuration.java
25362 # We do not want to redirect the output of the grep below to /dev/null,
25363 # but we add /dev/null to the input list so that grep will print the
25364 # filename of Configuration.java in case it finds any matches.
25365 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25366 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25367 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25368 { (exit 1); exit 1; }; }
25375 # Extract the first word of "$ac_prog", so it can be a program name with args.
25376 set dummy $ac_prog; ac_word=$2
25377 echo "$as_me:$LINENO: checking for $ac_word" >&5
25378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25379 if test "${ac_cv_prog_GCJ+set}" = set; then
25380 echo $ECHO_N "(cached) $ECHO_C" >&6
25382 if test -n "$GCJ"; then
25383 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25386 for as_dir in $PATH
25389 test -z "$as_dir" && as_dir=.
25390 for ac_exec_ext in '' $ac_executable_extensions; do
25391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25392 ac_cv_prog_GCJ="$ac_prog"
25393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25401 GCJ=$ac_cv_prog_GCJ
25402 if test -n "$GCJ"; then
25403 echo "$as_me:$LINENO: result: $GCJ" >&5
25404 echo "${ECHO_T}$GCJ" >&6
25406 echo "$as_me:$LINENO: result: no" >&5
25407 echo "${ECHO_T}no" >&6
25410 test -n "$GCJ" && break
25412 test -n "$GCJ" || GCJ="gcj"
25414 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25415 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25416 { (exit 1); exit 1; }; }
25417 if test "x${GCJFLAGS-unset}" = xunset; then
25422 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25424 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25426 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25430 # We make a subdir and do the tests there. Otherwise we can end up
25431 # making bogus files that we don't know about and never remove. For
25432 # instance it was reported that on HP-UX the gcc test will end up
25433 # making a dummy file named `D' -- because `-MD' means `put the output
25436 # Copy depcomp to subdir because otherwise we won't find it if we're
25437 # using a relative directory.
25438 cp "$am_depcomp" conftest.dir
25440 # We will build objects and dependencies in a subdirectory because
25441 # it helps to detect inapplicable dependency modes. For instance
25442 # both Tru64's cc and ICC support -MD to output dependencies as a
25443 # side effect of compilation, but ICC will put the dependencies in
25444 # the current directory while Tru64 will put them in the object
25448 am_cv_GCJ_dependencies_compiler_type=none
25449 if test "$am_compiler_list" = ""; then
25450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25452 for depmode in $am_compiler_list; do
25453 # Setup a source with many dependencies, because some compilers
25454 # like to wrap large dependency lists on column 80 (with \), and
25455 # we should not choose a depcomp mode which is confused by this.
25457 # We need to recreate these files for each test, as the compiler may
25458 # overwrite some of them when testing with obscure command lines.
25459 # This happens at least with the AIX C compiler.
25461 for i in 1 2 3 4 5 6; do
25462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25464 # Solaris 8's {/usr,}/bin/sh.
25465 touch sub/conftst$i.h
25467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25471 # after this tag, mechanisms are not by side-effect, so they'll
25472 # only be used when explicitly requested
25473 if test "x$enable_dependency_tracking" = xyes; then
25481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25482 # mode. It turns out that the SunPro C++ compiler does not properly
25483 # handle `-M -o', and we need to detect this.
25484 if depmode=$depmode \
25485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25488 >/dev/null 2>conftest.err &&
25489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25492 # icc doesn't choke on unknown options, it will just issue warnings
25493 # or remarks (even with -Werror). So we grep stderr for any message
25494 # that says an option was ignored or not supported.
25495 # When given -MP, icc 7.0 and 7.1 complain thusly:
25496 # icc: Command line warning: ignoring option '-M'; no argument required
25497 # The diagnosis changed in icc 8.0:
25498 # icc: Command line remark: option '-MP' not supported
25499 if (grep 'ignoring option' conftest.err ||
25500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25501 am_cv_GCJ_dependencies_compiler_type=$depmode
25508 rm -rf conftest.dir
25510 am_cv_GCJ_dependencies_compiler_type=none
25514 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25515 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25516 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25521 test "x$enable_dependency_tracking" != xno \
25522 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25523 am__fastdepGCJ_TRUE=
25524 am__fastdepGCJ_FALSE='#'
25526 am__fastdepGCJ_TRUE='#'
25527 am__fastdepGCJ_FALSE=
25534 rm -f gnu/classpath/Configuration.java
25536 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25538 echo "$as_me:$LINENO: checking for void *" >&5
25539 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25540 if test "${ac_cv_type_void_p+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 cat >conftest.$ac_ext <<_ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h. */
25549 $ac_includes_default
25555 if (sizeof (void *))
25561 rm -f conftest.$ac_objext
25562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25563 (eval $ac_compile) 2>conftest.er1
25565 grep -v '^ *+' conftest.er1 >conftest.err
25567 cat conftest.err >&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } &&
25570 { ac_try='test -z "$ac_c_werror_flag"
25571 || test ! -s conftest.err'
25572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573 (eval $ac_try) 2>&5
25575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); }; } &&
25577 { ac_try='test -s conftest.$ac_objext'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; }; then
25583 ac_cv_type_void_p=yes
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_cv_type_void_p=no
25590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25592 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25593 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25595 echo "$as_me:$LINENO: checking size of void *" >&5
25596 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25597 if test "${ac_cv_sizeof_void_p+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25600 if test "$ac_cv_type_void_p" = yes; then
25601 # The cast to unsigned long works around a bug in the HP C Compiler
25602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25604 # This bug is HP SR number 8606223364.
25605 if test "$cross_compiling" = yes; then
25606 # Depending upon the size, compute the lo and hi bounds.
25607 cat >conftest.$ac_ext <<_ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h. */
25613 $ac_includes_default
25617 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25624 rm -f conftest.$ac_objext
25625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25626 (eval $ac_compile) 2>conftest.er1
25628 grep -v '^ *+' conftest.er1 >conftest.err
25630 cat conftest.err >&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } &&
25633 { ac_try='test -z "$ac_c_werror_flag"
25634 || test ! -s conftest.err'
25635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25636 (eval $ac_try) 2>&5
25638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25639 (exit $ac_status); }; } &&
25640 { ac_try='test -s conftest.$ac_objext'
25641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25642 (eval $ac_try) 2>&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); }; }; then
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25654 $ac_includes_default
25658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25665 rm -f conftest.$ac_objext
25666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25667 (eval $ac_compile) 2>conftest.er1
25669 grep -v '^ *+' conftest.er1 >conftest.err
25671 cat conftest.err >&5
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } &&
25674 { ac_try='test -z "$ac_c_werror_flag"
25675 || test ! -s conftest.err'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; } &&
25681 { ac_try='test -s conftest.$ac_objext'
25682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25683 (eval $ac_try) 2>&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); }; }; then
25687 ac_hi=$ac_mid; break
25689 echo "$as_me: failed program was:" >&5
25690 sed 's/^/| /' conftest.$ac_ext >&5
25692 ac_lo=`expr $ac_mid + 1`
25693 if test $ac_lo -le $ac_mid; then
25697 ac_mid=`expr 2 '*' $ac_mid + 1`
25699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25702 echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.$ac_ext >&5
25705 cat >conftest.$ac_ext <<_ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25711 $ac_includes_default
25715 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25722 rm -f conftest.$ac_objext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25724 (eval $ac_compile) 2>conftest.er1
25726 grep -v '^ *+' conftest.er1 >conftest.err
25728 cat conftest.err >&5
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest.$ac_objext'
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25746 cat >conftest.$ac_ext <<_ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h. */
25752 $ac_includes_default
25756 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25763 rm -f conftest.$ac_objext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25765 (eval $ac_compile) 2>conftest.er1
25767 grep -v '^ *+' conftest.er1 >conftest.err
25769 cat conftest.err >&5
25770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } &&
25772 { ac_try='test -z "$ac_c_werror_flag"
25773 || test ! -s conftest.err'
25774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775 (eval $ac_try) 2>&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); }; } &&
25779 { ac_try='test -s conftest.$ac_objext'
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; }; then
25785 ac_lo=$ac_mid; break
25787 echo "$as_me: failed program was:" >&5
25788 sed 's/^/| /' conftest.$ac_ext >&5
25790 ac_hi=`expr '(' $ac_mid ')' - 1`
25791 if test $ac_mid -le $ac_hi; then
25795 ac_mid=`expr 2 '*' $ac_mid`
25797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25800 echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25808 # Binary search between lo and hi bounds.
25809 while test "x$ac_lo" != "x$ac_hi"; do
25810 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25811 cat >conftest.$ac_ext <<_ACEOF
25814 cat confdefs.h >>conftest.$ac_ext
25815 cat >>conftest.$ac_ext <<_ACEOF
25816 /* end confdefs.h. */
25817 $ac_includes_default
25821 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25828 rm -f conftest.$ac_objext
25829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25830 (eval $ac_compile) 2>conftest.er1
25832 grep -v '^ *+' conftest.er1 >conftest.err
25834 cat conftest.err >&5
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
25837 { ac_try='test -z "$ac_c_werror_flag"
25838 || test ! -s conftest.err'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest.$ac_objext'
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25852 echo "$as_me: failed program was:" >&5
25853 sed 's/^/| /' conftest.$ac_ext >&5
25855 ac_lo=`expr '(' $ac_mid ')' + 1`
25857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25860 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25861 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25862 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25864 See \`config.log' for more details." >&5
25865 echo "$as_me: error: cannot compute sizeof (void *), 77
25866 See \`config.log' for more details." >&2;}
25867 { (exit 1); exit 1; }; }; } ;;
25870 if test "$cross_compiling" = yes; then
25871 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25872 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25874 See \`config.log' for more details." >&5
25875 echo "$as_me: error: cannot run test program while cross compiling
25876 See \`config.log' for more details." >&2;}
25877 { (exit 1); exit 1; }; }; }
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 $ac_includes_default
25886 long longval () { return (long) (sizeof (void *)); }
25887 unsigned long ulongval () { return (long) (sizeof (void *)); }
25889 #include <stdlib.h>
25894 FILE *f = fopen ("conftest.val", "w");
25897 if (((long) (sizeof (void *))) < 0)
25899 long i = longval ();
25900 if (i != ((long) (sizeof (void *))))
25902 fprintf (f, "%ld\n", i);
25906 unsigned long i = ulongval ();
25907 if (i != ((long) (sizeof (void *))))
25909 fprintf (f, "%lu\n", i);
25911 exit (ferror (f) || fclose (f) != 0);
25917 rm -f conftest$ac_exeext
25918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25919 (eval $ac_link) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924 (eval $ac_try) 2>&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); }; }; then
25928 ac_cv_sizeof_void_p=`cat conftest.val`
25930 echo "$as_me: program exited with status $ac_status" >&5
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 ( exit $ac_status )
25935 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25936 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25937 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25938 See \`config.log' for more details." >&5
25939 echo "$as_me: error: cannot compute sizeof (void *), 77
25940 See \`config.log' for more details." >&2;}
25941 { (exit 1); exit 1; }; }; }
25943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25948 ac_cv_sizeof_void_p=0
25951 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25952 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25953 cat >>confdefs.h <<_ACEOF
25954 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25959 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25960 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25961 if test "${ac_cv_c_bigendian+set}" = set; then
25962 echo $ECHO_N "(cached) $ECHO_C" >&6
25964 # See if sys/param.h defines the BYTE_ORDER macro.
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 #include <sys/types.h>
25972 #include <sys/param.h>
25977 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25978 bogus endian macros
25985 rm -f conftest.$ac_objext
25986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25987 (eval $ac_compile) 2>conftest.er1
25989 grep -v '^ *+' conftest.er1 >conftest.err
25991 cat conftest.err >&5
25992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993 (exit $ac_status); } &&
25994 { ac_try='test -z "$ac_c_werror_flag"
25995 || test ! -s conftest.err'
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); }; } &&
26001 { ac_try='test -s conftest.$ac_objext'
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 # It does; now see whether it defined to BIG_ENDIAN or not.
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 #include <sys/types.h>
26015 #include <sys/param.h>
26020 #if BYTE_ORDER != BIG_ENDIAN
26028 rm -f conftest.$ac_objext
26029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26030 (eval $ac_compile) 2>conftest.er1
26032 grep -v '^ *+' conftest.er1 >conftest.err
26034 cat conftest.err >&5
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); } &&
26037 { ac_try='test -z "$ac_c_werror_flag"
26038 || test ! -s conftest.err'
26039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040 (eval $ac_try) 2>&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; } &&
26044 { ac_try='test -s conftest.$ac_objext'
26045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 (eval $ac_try) 2>&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); }; }; then
26050 ac_cv_c_bigendian=yes
26052 echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26055 ac_cv_c_bigendian=no
26057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 # It does not; compile a test program.
26063 if test "$cross_compiling" = yes; then
26064 # try to guess the endianness by grepping values into an object file
26065 ac_cv_c_bigendian=unknown
26066 cat >conftest.$ac_ext <<_ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26072 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26073 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26074 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26075 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26076 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26077 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26081 _ascii (); _ebcdic ();
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088 (eval $ac_compile) 2>conftest.er1
26090 grep -v '^ *+' conftest.er1 >conftest.err
26092 cat conftest.err >&5
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); } &&
26095 { ac_try='test -z "$ac_c_werror_flag"
26096 || test ! -s conftest.err'
26097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098 (eval $ac_try) 2>&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); }; } &&
26102 { ac_try='test -s conftest.$ac_objext'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26109 ac_cv_c_bigendian=yes
26111 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26112 if test "$ac_cv_c_bigendian" = unknown; then
26113 ac_cv_c_bigendian=no
26115 # finding both strings is unlikely to happen, but who knows?
26116 ac_cv_c_bigendian=unknown
26120 echo "$as_me: failed program was:" >&5
26121 sed 's/^/| /' conftest.$ac_ext >&5
26124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26135 /* Are we little or big endian? From Harbison&Steele. */
26139 char c[sizeof (long)];
26142 exit (u.c[sizeof (long) - 1] == 1);
26145 rm -f conftest$ac_exeext
26146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26147 (eval $ac_link) 2>&5
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; }; then
26156 ac_cv_c_bigendian=no
26158 echo "$as_me: program exited with status $ac_status" >&5
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26162 ( exit $ac_status )
26163 ac_cv_c_bigendian=yes
26165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26170 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26171 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26172 case $ac_cv_c_bigendian in
26175 cat >>confdefs.h <<\_ACEOF
26176 #define WORDS_BIGENDIAN 1
26182 { { echo "$as_me:$LINENO: error: unknown endianness
26183 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26184 echo "$as_me: error: unknown endianness
26185 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26186 { (exit 1); exit 1; }; } ;;
26194 if test -z "$ZLIBSPEC"; then
26195 # Use zlib from the GCC tree.
26196 ZINCS='-I$(top_srcdir)/../zlib'
26197 ZLIBS=../zlib/libzgcj_convenience.la
26200 SYS_ZLIBS="$ZLIBSPEC"
26213 if test "$NATIVE" = yes; then
26223 if test "$enable_shared" = yes; then
26224 ENABLE_SHARED_TRUE=
26225 ENABLE_SHARED_FALSE='#'
26227 ENABLE_SHARED_TRUE='#'
26228 ENABLE_SHARED_FALSE=
26233 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26234 NEEDS_DATA_START_TRUE=
26235 NEEDS_DATA_START_FALSE='#'
26237 NEEDS_DATA_START_TRUE='#'
26238 NEEDS_DATA_START_FALSE=
26243 # Process the option "--enable-version-specific-runtime-libs"
26244 # Calculate toolexeclibdir
26245 case ${version_specific_libs} in
26247 # Need the gcc compiler version to know where to install libraries
26248 # and header files if --enable-version-specific-runtime-libs option
26250 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26251 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26252 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26253 toolexeclibdir=$toolexecmainlibdir
26256 if test -n "$with_cross_host" &&
26257 test x"$with_cross_host" != x"no"; then
26258 # Install a library built with a cross compiler in tooldir, not libdir.
26259 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26260 toolexecmainlibdir='$(toolexecdir)/lib'
26262 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26263 toolexecmainlibdir='$(libdir)'
26265 multi_os_directory=`$CC -print-multi-os-directory`
26266 case $multi_os_directory in
26267 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26268 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26276 # Determine gcj and libgcj version number.
26277 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26278 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26279 GCJVERSION=$gcjversion
26282 cat >>confdefs.h <<_ACEOF
26283 #define GCJVERSION "$GCJVERSION"
26287 # Determine where the standard .db file and GNU Classpath JNI
26288 # libraries are found.
26289 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26290 multi_os_directory=`$CC -print-multi-os-directory`
26291 case $multi_os_directory in
26293 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26296 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26302 cat >>confdefs.h <<\_ACEOF
26303 #define JV_VERSION "1.5.0"
26307 cat >>confdefs.h <<\_ACEOF
26308 #define JV_API_VERSION "1.5"
26313 case "${with_gxx_include_dir}" in
26315 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26316 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26317 { (exit 1); exit 1; }; }
26320 case "${enable_version_specific_runtime_libs}" in
26321 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26323 libstdcxx_incdir='c++/$(gcc_version)'
26324 gxx_include_dir='include/$(libstdcxx_incdir)'
26325 if test -n "$with_cross_host" &&
26326 test x"$with_cross_host" != x"no"; then
26327 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26329 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26332 *) gxx_include_dir=${with_gxx_include_dir} ;;
26338 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26339 # On that system, sys/ioctl.h will not include sys/filio.h unless
26340 # BSD_COMP is defined; just including sys/filio.h is simpler.
26341 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26342 # for now. If you change this, you also must update natFile.cc.
26366 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26367 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26368 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26369 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26370 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26374 echo "$as_me:$LINENO: checking for $ac_header" >&5
26375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26382 # Is the header compilable?
26383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26385 cat >conftest.$ac_ext <<_ACEOF
26388 cat confdefs.h >>conftest.$ac_ext
26389 cat >>conftest.$ac_ext <<_ACEOF
26390 /* end confdefs.h. */
26391 $ac_includes_default
26392 #include <$ac_header>
26394 rm -f conftest.$ac_objext
26395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26396 (eval $ac_compile) 2>conftest.er1
26398 grep -v '^ *+' conftest.er1 >conftest.err
26400 cat conftest.err >&5
26401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402 (exit $ac_status); } &&
26403 { ac_try='test -z "$ac_c_werror_flag"
26404 || test ! -s conftest.err'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest.$ac_objext'
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
26416 ac_header_compiler=yes
26418 echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26421 ac_header_compiler=no
26423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26425 echo "${ECHO_T}$ac_header_compiler" >&6
26427 # Is the header present?
26428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26430 cat >conftest.$ac_ext <<_ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h. */
26436 #include <$ac_header>
26438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26441 grep -v '^ *+' conftest.er1 >conftest.err
26443 cat conftest.err >&5
26444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } >/dev/null; then
26446 if test -s conftest.err; then
26447 ac_cpp_err=$ac_c_preproc_warn_flag
26448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26455 if test -z "$ac_cpp_err"; then
26456 ac_header_preproc=yes
26458 echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26461 ac_header_preproc=no
26463 rm -f conftest.err conftest.$ac_ext
26464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26465 echo "${ECHO_T}$ac_header_preproc" >&6
26467 # So? What about this header?
26468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26474 ac_header_preproc=yes
26477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26484 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26491 ## ---------------------------------- ##
26492 ## Report this to the libjava lists. ##
26493 ## ---------------------------------- ##
26496 sed "s/^/$as_me: WARNING: /" >&2
26499 echo "$as_me:$LINENO: checking for $ac_header" >&5
26500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 eval "$as_ac_Header=\$ac_header_preproc"
26506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26511 cat >>confdefs.h <<_ACEOF
26512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26520 for ac_header in inttypes.h
26522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26524 echo "$as_me:$LINENO: checking for $ac_header" >&5
26525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26532 # Is the header compilable?
26533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 $ac_includes_default
26542 #include <$ac_header>
26544 rm -f conftest.$ac_objext
26545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26546 (eval $ac_compile) 2>conftest.er1
26548 grep -v '^ *+' conftest.er1 >conftest.err
26550 cat conftest.err >&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); } &&
26553 { ac_try='test -z "$ac_c_werror_flag"
26554 || test ! -s conftest.err'
26555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26556 (eval $ac_try) 2>&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); }; } &&
26560 { ac_try='test -s conftest.$ac_objext'
26561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26562 (eval $ac_try) 2>&5
26564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26565 (exit $ac_status); }; }; then
26566 ac_header_compiler=yes
26568 echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26571 ac_header_compiler=no
26573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26575 echo "${ECHO_T}$ac_header_compiler" >&6
26577 # Is the header present?
26578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26580 cat >conftest.$ac_ext <<_ACEOF
26583 cat confdefs.h >>conftest.$ac_ext
26584 cat >>conftest.$ac_ext <<_ACEOF
26585 /* end confdefs.h. */
26586 #include <$ac_header>
26588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26591 grep -v '^ *+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } >/dev/null; then
26596 if test -s conftest.err; then
26597 ac_cpp_err=$ac_c_preproc_warn_flag
26598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26605 if test -z "$ac_cpp_err"; then
26606 ac_header_preproc=yes
26608 echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26611 ac_header_preproc=no
26613 rm -f conftest.err conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26615 echo "${ECHO_T}$ac_header_preproc" >&6
26617 # So? What about this header?
26618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26624 ac_header_preproc=yes
26627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26641 ## ---------------------------------- ##
26642 ## Report this to the libjava lists. ##
26643 ## ---------------------------------- ##
26646 sed "s/^/$as_me: WARNING: /" >&2
26649 echo "$as_me:$LINENO: checking for $ac_header" >&5
26650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 eval "$as_ac_Header=\$ac_header_preproc"
26656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26661 cat >>confdefs.h <<_ACEOF
26662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26666 cat >>confdefs.h <<\_ACEOF
26667 #define HAVE_INTTYPES_H 1
26671 cat >>confdefs.h <<\_ACEOF
26672 #define JV_HAVE_INTTYPES_H 1
26681 echo "$as_me:$LINENO: checking for ssize_t" >&5
26682 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26683 if test "${ac_cv_type_ssize_t+set}" = set; then
26684 echo $ECHO_N "(cached) $ECHO_C" >&6
26686 cat >conftest.$ac_ext <<_ACEOF
26689 cat confdefs.h >>conftest.$ac_ext
26690 cat >>conftest.$ac_ext <<_ACEOF
26691 /* end confdefs.h. */
26692 $ac_includes_default
26698 if (sizeof (ssize_t))
26704 rm -f conftest.$ac_objext
26705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26706 (eval $ac_compile) 2>conftest.er1
26708 grep -v '^ *+' conftest.er1 >conftest.err
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
26713 { ac_try='test -z "$ac_c_werror_flag"
26714 || test ! -s conftest.err'
26715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26716 (eval $ac_try) 2>&5
26718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719 (exit $ac_status); }; } &&
26720 { ac_try='test -s conftest.$ac_objext'
26721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26722 (eval $ac_try) 2>&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); }; }; then
26726 ac_cv_type_ssize_t=yes
26728 echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26731 ac_cv_type_ssize_t=no
26733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26735 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26736 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26737 if test $ac_cv_type_ssize_t = yes; then
26741 cat >>confdefs.h <<_ACEOF
26742 #define ssize_t int
26747 echo "$as_me:$LINENO: checking for magic_t" >&5
26748 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26749 if test "${ac_cv_type_magic_t+set}" = set; then
26750 echo $ECHO_N "(cached) $ECHO_C" >&6
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26759 #ifdef HAVE_MAGIC_H
26768 if (sizeof (magic_t))
26774 rm -f conftest.$ac_objext
26775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26776 (eval $ac_compile) 2>conftest.er1
26778 grep -v '^ *+' conftest.er1 >conftest.err
26780 cat conftest.err >&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); } &&
26783 { ac_try='test -z "$ac_c_werror_flag"
26784 || test ! -s conftest.err'
26785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26786 (eval $ac_try) 2>&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); }; } &&
26790 { ac_try='test -s conftest.$ac_objext'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; }; then
26796 ac_cv_type_magic_t=yes
26798 echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801 ac_cv_type_magic_t=no
26803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26805 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26806 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26807 if test $ac_cv_type_magic_t = yes; then
26810 cat >>confdefs.h <<\_ACEOF
26811 #define HAVE_MAGIC_T 1
26817 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26818 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26819 cat >conftest.$ac_ext <<_ACEOF
26822 cat confdefs.h >>conftest.$ac_ext
26823 cat >>conftest.$ac_ext <<_ACEOF
26824 /* end confdefs.h. */
26825 #include <sys/types.h>
26827 #include <stdlib.h>
26828 #include <stddef.h>
26830 #if HAVE_NETINET_IN_H
26831 #include <netinet/in.h>
26841 rm -f conftest.$ac_objext
26842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843 (eval $ac_compile) 2>conftest.er1
26845 grep -v '^ *+' conftest.er1 >conftest.err
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } &&
26850 { ac_try='test -z "$ac_c_werror_flag"
26851 || test ! -s conftest.err'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
26864 cat >>confdefs.h <<\_ACEOF
26865 #define HAVE_IN_ADDR_T 1
26868 echo "$as_me:$LINENO: result: yes" >&5
26869 echo "${ECHO_T}yes" >&6
26871 echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26874 echo "$as_me:$LINENO: result: no" >&5
26875 echo "${ECHO_T}no" >&6
26877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26879 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26880 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26887 #include <netinet/in.h>
26891 struct ip_mreq mreq;
26896 rm -f conftest.$ac_objext
26897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26898 (eval $ac_compile) 2>conftest.er1
26900 grep -v '^ *+' conftest.er1 >conftest.err
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } &&
26905 { ac_try='test -z "$ac_c_werror_flag"
26906 || test ! -s conftest.err'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; } &&
26912 { ac_try='test -s conftest.$ac_objext'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; }; then
26919 cat >>confdefs.h <<\_ACEOF
26920 #define HAVE_STRUCT_IP_MREQ 1
26923 echo "$as_me:$LINENO: result: yes" >&5
26924 echo "${ECHO_T}yes" >&6
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26929 echo "$as_me:$LINENO: result: no" >&5
26930 echo "${ECHO_T}no" >&6
26932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26934 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26935 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 #include <netinet/in.h>
26946 struct ipv6_mreq mreq6;
26951 rm -f conftest.$ac_objext
26952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26953 (eval $ac_compile) 2>conftest.er1
26955 grep -v '^ *+' conftest.er1 >conftest.err
26957 cat conftest.err >&5
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); } &&
26960 { ac_try='test -z "$ac_c_werror_flag"
26961 || test ! -s conftest.err'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest.$ac_objext'
26968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26969 (eval $ac_try) 2>&5
26971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); }; }; then
26974 cat >>confdefs.h <<\_ACEOF
26975 #define HAVE_STRUCT_IPV6_MREQ 1
26978 echo "$as_me:$LINENO: result: yes" >&5
26979 echo "${ECHO_T}yes" >&6
26981 echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26984 echo "$as_me:$LINENO: result: no" >&5
26985 echo "${ECHO_T}no" >&6
26987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26989 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26990 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26997 #include <netinet/in.h>
27001 struct sockaddr_in6 addr6;
27006 rm -f conftest.$ac_objext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008 (eval $ac_compile) 2>conftest.er1
27010 grep -v '^ *+' conftest.er1 >conftest.err
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } &&
27015 { ac_try='test -z "$ac_c_werror_flag"
27016 || test ! -s conftest.err'
27017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27018 (eval $ac_try) 2>&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); }; } &&
27022 { ac_try='test -s conftest.$ac_objext'
27023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27024 (eval $ac_try) 2>&5
27026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); }; }; then
27029 cat >>confdefs.h <<\_ACEOF
27030 #define HAVE_INET6 1
27033 echo "$as_me:$LINENO: result: yes" >&5
27034 echo "${ECHO_T}yes" >&6
27036 echo "$as_me: failed program was:" >&5
27037 sed 's/^/| /' conftest.$ac_ext >&5
27039 echo "$as_me:$LINENO: result: no" >&5
27040 echo "${ECHO_T}no" >&6
27042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27044 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27045 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27046 cat >conftest.$ac_ext <<_ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h. */
27052 #define _POSIX_PII_SOCKET
27053 #include <sys/types.h>
27054 #include <sys/socket.h>
27063 rm -f conftest.$ac_objext
27064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27065 (eval $ac_compile) 2>conftest.er1
27067 grep -v '^ *+' conftest.er1 >conftest.err
27069 cat conftest.err >&5
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); } &&
27072 { ac_try='test -z "$ac_c_werror_flag"
27073 || test ! -s conftest.err'
27074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075 (eval $ac_try) 2>&5
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; } &&
27079 { ac_try='test -s conftest.$ac_objext'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; }; then
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_SOCKLEN_T 1
27090 echo "$as_me:$LINENO: result: yes" >&5
27091 echo "${ECHO_T}yes" >&6
27093 echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27096 echo "$as_me:$LINENO: result: no" >&5
27097 echo "${ECHO_T}no" >&6
27099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27101 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27102 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27103 cat >conftest.$ac_ext <<_ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27113 struct tm tim; tim.tm_gmtoff = 0;
27118 rm -f conftest.$ac_objext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27120 (eval $ac_compile) 2>conftest.er1
27122 grep -v '^ *+' conftest.er1 >conftest.err
27124 cat conftest.err >&5
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); } &&
27127 { ac_try='test -z "$ac_c_werror_flag"
27128 || test ! -s conftest.err'
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; } &&
27134 { ac_try='test -s conftest.$ac_objext'
27135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136 (eval $ac_try) 2>&5
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); }; }; then
27141 cat >>confdefs.h <<\_ACEOF
27142 #define STRUCT_TM_HAS_GMTOFF 1
27145 echo "$as_me:$LINENO: result: yes" >&5
27146 echo "${ECHO_T}yes" >&6
27148 echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27151 echo "$as_me:$LINENO: result: no" >&5
27152 echo "${ECHO_T}no" >&6
27153 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27154 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27155 cat >conftest.$ac_ext <<_ACEOF
27158 cat confdefs.h >>conftest.$ac_ext
27159 cat >>conftest.$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27165 void i(){long z2 = 2*timezone;}
27170 rm -f conftest.$ac_objext
27171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27172 (eval $ac_compile) 2>conftest.er1
27174 grep -v '^ *+' conftest.er1 >conftest.err
27176 cat conftest.err >&5
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
27179 { ac_try='test -z "$ac_c_werror_flag"
27180 || test ! -s conftest.err'
27181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27182 (eval $ac_try) 2>&5
27184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185 (exit $ac_status); }; } &&
27186 { ac_try='test -s conftest.$ac_objext'
27187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27188 (eval $ac_try) 2>&5
27190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191 (exit $ac_status); }; }; then
27193 cat >>confdefs.h <<\_ACEOF
27194 #define HAVE_TIMEZONE 1
27197 echo "$as_me:$LINENO: result: yes" >&5
27198 echo "${ECHO_T}yes" >&6
27200 echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27203 echo "$as_me:$LINENO: result: no" >&5
27204 echo "${ECHO_T}no" >&6
27205 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27206 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27217 long z2 = _timezone;
27222 rm -f conftest.$ac_objext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27224 (eval $ac_compile) 2>conftest.er1
27226 grep -v '^ *+' conftest.er1 >conftest.err
27228 cat conftest.err >&5
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); } &&
27231 { ac_try='test -z "$ac_c_werror_flag"
27232 || test ! -s conftest.err'
27233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234 (eval $ac_try) 2>&5
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240 (eval $ac_try) 2>&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); }; }; then
27245 cat >>confdefs.h <<\_ACEOF
27246 #define HAVE_UNDERSCORE_TIMEZONE 1
27249 echo "$as_me:$LINENO: result: yes" >&5
27250 echo "${ECHO_T}yes" >&6
27252 echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27255 echo "$as_me:$LINENO: result: no" >&5
27256 echo "${ECHO_T}no" >&6
27258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27264 for ac_prog in perl
27266 # Extract the first word of "$ac_prog", so it can be a program name with args.
27267 set dummy $ac_prog; ac_word=$2
27268 echo "$as_me:$LINENO: checking for $ac_word" >&5
27269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27270 if test "${ac_cv_prog_PERL+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 if test -n "$PERL"; then
27274 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27277 for as_dir in $PATH
27280 test -z "$as_dir" && as_dir=.
27281 for ac_exec_ext in '' $ac_executable_extensions; do
27282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27283 ac_cv_prog_PERL="$ac_prog"
27284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27292 PERL=$ac_cv_prog_PERL
27293 if test -n "$PERL"; then
27294 echo "$as_me:$LINENO: result: $PERL" >&5
27295 echo "${ECHO_T}$PERL" >&6
27297 echo "$as_me:$LINENO: result: no" >&5
27298 echo "${ECHO_T}no" >&6
27301 test -n "$PERL" && break
27303 test -n "$PERL" || PERL="false"
27307 SIGNAL_HANDLER_AUX=
27311 SIGNAL_HANDLER=include/i386-signal.h
27313 sparc*-sun-solaris*)
27314 SIGNAL_HANDLER=include/sparc-signal.h
27317 # SYSDEP_SOURCES=sysdep/ia64.c
27318 # test -d sysdep || mkdir sysdep
27321 SIGNAL_HANDLER=include/pa-signal.h
27324 SIGNAL_HANDLER=include/hppa-signal.h
27327 SIGNAL_HANDLER=include/dwarf2-signal.h
27330 SIGNAL_HANDLER=include/powerpc-signal.h
27333 SIGNAL_HANDLER=include/dwarf2-signal.h
27336 SIGNAL_HANDLER=include/s390-signal.h
27339 SIGNAL_HANDLER=include/x86_64-signal.h
27340 SIGNAL_HANDLER_AUX=include/i386-signal.h
27343 SIGNAL_HANDLER=include/dwarf2-signal.h
27346 SIGNAL_HANDLER=include/sh-signal.h
27349 SIGNAL_HANDLER=include/win32-signal.h
27352 SIGNAL_HANDLER=include/mips-signal.h
27355 SIGNAL_HANDLER=include/dwarf2-signal.h
27357 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27358 SIGNAL_HANDLER=include/darwin-signal.h
27361 SIGNAL_HANDLER=include/default-signal.h
27365 # If we're using sjlj exceptions, forget what we just learned.
27366 if test "$enable_sjlj_exceptions" = yes; then
27367 SIGNAL_HANDLER=include/default-signal.h
27368 SIGNAL_HANDLER_AUX=
27373 if test -z "$SIGNAL_HANDLER_AUX"; then
27374 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27377 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27380 if test "${multilib}" = "yes"; then
27381 multilib_arg="--enable-multilib"
27386 # See if we support thread-local storage.
27388 # Check whether --enable-tls or --disable-tls was given.
27389 if test "${enable_tls+set}" = set; then
27390 enableval="$enable_tls"
27392 case "$enableval" in
27394 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27395 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27396 { (exit 1); exit 1; }; } ;;
27403 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27404 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27405 if test "${gcc_cv_have_tls+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27409 if test "$cross_compiling" = yes; then
27410 if test x$gcc_no_link = xyes; then
27411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27413 { (exit 1); exit 1; }; }
27415 cat >conftest.$ac_ext <<_ACEOF
27416 __thread int a; int b; int main() { return a = b; }
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27420 (eval $ac_link) 2>conftest.er1
27422 grep -v '^ *+' conftest.er1 >conftest.err
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } &&
27427 { ac_try='test -z "$ac_c_werror_flag"
27428 || test ! -s conftest.err'
27429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430 (eval $ac_try) 2>&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); }; } &&
27434 { ac_try='test -s conftest$ac_exeext'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; }; then
27440 gcc_cv_have_tls=yes
27442 echo "$as_me: failed program was:" >&5
27443 sed 's/^/| /' conftest.$ac_ext >&5
27447 rm -f conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
27452 cat >conftest.$ac_ext <<_ACEOF
27453 __thread int a; int b; int main() { return a = b; }
27455 rm -f conftest$ac_exeext
27456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27457 (eval $ac_link) 2>&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462 (eval $ac_try) 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; }; then
27466 chktls_save_LDFLAGS="$LDFLAGS"
27467 LDFLAGS="-static $LDFLAGS"
27468 if test x$gcc_no_link = xyes; then
27469 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27470 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27471 { (exit 1); exit 1; }; }
27473 cat >conftest.$ac_ext <<_ACEOF
27474 int main() { return 0; }
27476 rm -f conftest.$ac_objext conftest$ac_exeext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478 (eval $ac_link) 2>conftest.er1
27480 grep -v '^ *+' conftest.er1 >conftest.err
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag"
27486 || test ! -s conftest.err'
27487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488 (eval $ac_try) 2>&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); }; } &&
27492 { ac_try='test -s conftest$ac_exeext'
27493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494 (eval $ac_try) 2>&5
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
27498 if test "$cross_compiling" = yes; then
27499 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27500 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27501 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27502 See \`config.log' for more details." >&5
27503 echo "$as_me: error: cannot run test program while cross compiling
27504 See \`config.log' for more details." >&2;}
27505 { (exit 1); exit 1; }; }; }
27507 cat >conftest.$ac_ext <<_ACEOF
27508 __thread int a; int b; int main() { return a = b; }
27510 rm -f conftest$ac_exeext
27511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27512 (eval $ac_link) 2>&5
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517 (eval $ac_try) 2>&5
27519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520 (exit $ac_status); }; }; then
27521 gcc_cv_have_tls=yes
27523 echo "$as_me: program exited with status $ac_status" >&5
27524 echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27527 ( exit $ac_status )
27530 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27533 echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27536 gcc_cv_have_tls=yes
27538 rm -f conftest.err conftest.$ac_objext \
27539 conftest$ac_exeext conftest.$ac_ext
27540 LDFLAGS="$chktls_save_LDFLAGS"
27541 if test $gcc_cv_have_tls = yes; then
27542 chktls_save_CFLAGS="$CFLAGS"
27543 thread_CFLAGS=failed
27544 for flag in '' '-pthread' '-lpthread'; do
27545 CFLAGS="$flag $chktls_save_CFLAGS"
27546 if test x$gcc_no_link = xyes; then
27547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27549 { (exit 1); exit 1; }; }
27551 cat >conftest.$ac_ext <<_ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h. */
27557 #include <pthread.h>
27558 void *g(void *d) { return NULL; }
27562 pthread_t t; pthread_create(&t,NULL,g,NULL);
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27569 (eval $ac_link) 2>conftest.er1
27571 grep -v '^ *+' conftest.er1 >conftest.err
27573 cat conftest.err >&5
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); } &&
27576 { ac_try='test -z "$ac_c_werror_flag"
27577 || test ! -s conftest.err'
27578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27579 (eval $ac_try) 2>&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); }; } &&
27583 { ac_try='test -s conftest$ac_exeext'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; }; then
27589 thread_CFLAGS="$flag"
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27595 rm -f conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
27597 if test "X$thread_CFLAGS" != Xfailed; then
27601 CFLAGS="$chktls_save_CFLAGS"
27602 if test "X$thread_CFLAGS" != Xfailed; then
27603 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27604 if test "$cross_compiling" = yes; then
27605 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27606 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27607 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27608 See \`config.log' for more details." >&5
27609 echo "$as_me: error: cannot run test program while cross compiling
27610 See \`config.log' for more details." >&2;}
27611 { (exit 1); exit 1; }; }; }
27613 cat >conftest.$ac_ext <<_ACEOF
27616 cat confdefs.h >>conftest.$ac_ext
27617 cat >>conftest.$ac_ext <<_ACEOF
27618 /* end confdefs.h. */
27619 #include <pthread.h>
27621 static int *a_in_other_thread;
27623 thread_func (void *arg)
27625 a_in_other_thread = &a;
27632 void *thread_retval;
27633 int *a_in_main_thread;
27634 if (pthread_create (&thread, (pthread_attr_t *)0,
27635 thread_func, (void *)0))
27637 a_in_main_thread = &a;
27638 if (pthread_join (thread, &thread_retval))
27640 return (a_in_other_thread == a_in_main_thread);
27645 rm -f conftest$ac_exeext
27646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27647 (eval $ac_link) 2>&5
27649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652 (eval $ac_try) 2>&5
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 gcc_cv_have_tls=yes
27658 echo "$as_me: program exited with status $ac_status" >&5
27659 echo "$as_me: failed program was:" >&5
27660 sed 's/^/| /' conftest.$ac_ext >&5
27662 ( exit $ac_status )
27665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27667 CFLAGS="$chktls_save_CFLAGS"
27671 echo "$as_me: program exited with status $ac_status" >&5
27672 echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27675 ( exit $ac_status )
27678 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27681 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27682 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27683 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27685 cat >>confdefs.h <<\_ACEOF
27691 # For _Unwind_GetIPInfo.
27696 ac_cpp='$CXXCPP $CPPFLAGS'
27697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27701 ac_save_CXXFLAGS="$CXXFLAGS"
27702 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27703 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27704 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27705 if test "${gcc_cv_getipinfo+set}" = set; then
27706 echo $ECHO_N "(cached) $ECHO_C" >&6
27709 if test x$gcc_no_link = xyes; then
27710 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27712 { (exit 1); exit 1; }; }
27714 cat >conftest.$ac_ext <<_ACEOF
27717 cat confdefs.h >>conftest.$ac_ext
27718 cat >>conftest.$ac_ext <<_ACEOF
27719 /* end confdefs.h. */
27720 extern "C" { extern void _Unwind_GetIPInfo(); }
27724 _Unwind_GetIPInfo();
27729 rm -f conftest.$ac_objext conftest$ac_exeext
27730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27731 (eval $ac_link) 2>conftest.er1
27733 grep -v '^ *+' conftest.er1 >conftest.err
27735 cat conftest.err >&5
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } &&
27738 { ac_try='test -z "$ac_cxx_werror_flag"
27739 || test ! -s conftest.err'
27740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27741 (eval $ac_try) 2>&5
27743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744 (exit $ac_status); }; } &&
27745 { ac_try='test -s conftest$ac_exeext'
27746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27747 (eval $ac_try) 2>&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); }; }; then
27751 gcc_cv_getipinfo=yes
27753 echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 gcc_cv_getipinfo=no
27758 rm -f conftest.err conftest.$ac_objext \
27759 conftest$ac_exeext conftest.$ac_ext
27763 if test $gcc_cv_getipinfo = yes; then
27765 cat >>confdefs.h <<\_ACEOF
27766 #define HAVE_GETIPINFO 1
27770 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27771 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27772 CXXFLAGS="$ac_save_CXXFLAGS"
27774 ac_cpp='$CPP $CPPFLAGS'
27775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27781 # See if linker supports anonymous version scripts.
27782 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27783 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27784 if test "${libjava_cv_anon_version_script+set}" = set; then
27785 echo $ECHO_N "(cached) $ECHO_C" >&6
27787 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27788 libjava_cv_anon_version_script=no
27789 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27790 echo '{ global: globalsymb*; local: *; };' > conftest.map
27791 if test x$gcc_no_link = xyes; then
27792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27794 { (exit 1); exit 1; }; }
27796 cat >conftest.$ac_ext <<_ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802 void globalsymbol (void) {} void localsymbol (void) {}
27811 rm -f conftest.$ac_objext conftest$ac_exeext
27812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27813 (eval $ac_link) 2>conftest.er1
27815 grep -v '^ *+' conftest.er1 >conftest.err
27817 cat conftest.err >&5
27818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819 (exit $ac_status); } &&
27820 { ac_try='test -z "$ac_c_werror_flag"
27821 || test ! -s conftest.err'
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; } &&
27827 { ac_try='test -s conftest$ac_exeext'
27828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829 (eval $ac_try) 2>&5
27831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); }; }; then
27833 libjava_cv_anon_version_script=yes
27835 echo "$as_me: failed program was:" >&5
27836 sed 's/^/| /' conftest.$ac_ext >&5
27839 rm -f conftest.err conftest.$ac_objext \
27840 conftest$ac_exeext conftest.$ac_ext
27841 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27844 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27845 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27848 if test "$libjava_cv_anon_version_script" = yes; then
27849 ANONVERSCRIPT_TRUE=
27850 ANONVERSCRIPT_FALSE='#'
27852 ANONVERSCRIPT_TRUE='#'
27853 ANONVERSCRIPT_FALSE=
27857 # Check if linker supports static linking on a per library basis
27858 LD_START_STATIC_SPEC=
27859 LD_FINISH_STATIC_SPEC=
27860 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27861 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27862 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27863 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27869 here=`${PWDCMD-pwd}`
27872 # We get this from the environment.
27875 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27878 if test ${multilib} = yes; then
27879 multilib_arg="--enable-multilib"
27884 ac_config_files="$ac_config_files scripts/jar"
27886 cat >confcache <<\_ACEOF
27887 # This file is a shell script that caches the results of configure
27888 # tests run on this system so they can be shared between configure
27889 # scripts and configure runs, see configure's option --config-cache.
27890 # It is not useful on other systems. If it contains results you don't
27891 # want to keep, you may remove or edit it.
27893 # config.status only pays attention to the cache file if you give it
27894 # the --recheck option to rerun configure.
27896 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27897 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27898 # following values.
27902 # The following way of writing the cache mishandles newlines in values,
27903 # but we know of no workaround that is simple, portable, and efficient.
27904 # So, don't put newlines in cache variables' values.
27905 # Ultrix sh set writes to stderr and can't be redirected directly,
27906 # and sets the high bit in the cache file unless we assign to the vars.
27909 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27911 # `set' does not quote correctly, so add quotes (double-quote
27912 # substitution turns \\\\ into \\, and sed turns \\ into \).
27915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27918 # `set' quotes correctly as required by POSIX, so do not add quotes.
27920 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27929 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27931 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27932 if test -w $cache_file; then
27933 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27934 cat confcache >$cache_file
27936 echo "not updating unwritable cache $cache_file"
27941 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27942 # Let make expand exec_prefix.
27943 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27945 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27946 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27947 # trailing colons and then remove the whole line if VPATH becomes empty
27948 # (actually we leave an empty line to preserve line numbers).
27949 if test "x$srcdir" = x.; then
27950 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27951 s/:*\$(srcdir):*/:/;
27952 s/:*\${srcdir}:*/:/;
27954 s/^\([^=]*=[ ]*\):*/\1/;
27960 DEFS=-DHAVE_CONFIG_H
27964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27965 # 1. Remove the extension, and $U if already installed.
27966 ac_i=`echo "$ac_i" |
27967 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27969 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27970 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27972 LIBOBJS=$ac_libobjs
27974 LTLIBOBJS=$ac_ltlibobjs
27977 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27978 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27979 Usually this means the macro was only invoked conditionally." >&5
27980 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27981 Usually this means the macro was only invoked conditionally." >&2;}
27982 { (exit 1); exit 1; }; }
27984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27985 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27986 Usually this means the macro was only invoked conditionally." >&5
27987 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27988 Usually this means the macro was only invoked conditionally." >&2;}
27989 { (exit 1); exit 1; }; }
27991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27992 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27993 Usually this means the macro was only invoked conditionally." >&5
27994 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27995 Usually this means the macro was only invoked conditionally." >&2;}
27996 { (exit 1); exit 1; }; }
27998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27999 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28000 Usually this means the macro was only invoked conditionally." >&5
28001 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28002 Usually this means the macro was only invoked conditionally." >&2;}
28003 { (exit 1); exit 1; }; }
28005 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28006 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28007 Usually this means the macro was only invoked conditionally." >&5
28008 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28009 Usually this means the macro was only invoked conditionally." >&2;}
28010 { (exit 1); exit 1; }; }
28012 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28013 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28014 Usually this means the macro was only invoked conditionally." >&5
28015 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28016 Usually this means the macro was only invoked conditionally." >&2;}
28017 { (exit 1); exit 1; }; }
28019 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28020 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28021 Usually this means the macro was only invoked conditionally." >&5
28022 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28023 Usually this means the macro was only invoked conditionally." >&2;}
28024 { (exit 1); exit 1; }; }
28026 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28027 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28028 Usually this means the macro was only invoked conditionally." >&5
28029 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28030 Usually this means the macro was only invoked conditionally." >&2;}
28031 { (exit 1); exit 1; }; }
28033 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28034 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28035 Usually this means the macro was only invoked conditionally." >&5
28036 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28037 Usually this means the macro was only invoked conditionally." >&2;}
28038 { (exit 1); exit 1; }; }
28040 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28041 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28042 Usually this means the macro was only invoked conditionally." >&5
28043 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28044 Usually this means the macro was only invoked conditionally." >&2;}
28045 { (exit 1); exit 1; }; }
28047 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28048 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28049 Usually this means the macro was only invoked conditionally." >&5
28050 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28051 Usually this means the macro was only invoked conditionally." >&2;}
28052 { (exit 1); exit 1; }; }
28054 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28055 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28056 Usually this means the macro was only invoked conditionally." >&5
28057 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28058 Usually this means the macro was only invoked conditionally." >&2;}
28059 { (exit 1); exit 1; }; }
28061 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28062 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28063 Usually this means the macro was only invoked conditionally." >&5
28064 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28065 Usually this means the macro was only invoked conditionally." >&2;}
28066 { (exit 1); exit 1; }; }
28068 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28069 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28070 Usually this means the macro was only invoked conditionally." >&5
28071 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28072 Usually this means the macro was only invoked conditionally." >&2;}
28073 { (exit 1); exit 1; }; }
28075 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28076 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28077 Usually this means the macro was only invoked conditionally." >&5
28078 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28079 Usually this means the macro was only invoked conditionally." >&2;}
28080 { (exit 1); exit 1; }; }
28082 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28083 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28084 Usually this means the macro was only invoked conditionally." >&5
28085 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28086 Usually this means the macro was only invoked conditionally." >&2;}
28087 { (exit 1); exit 1; }; }
28089 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28090 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28091 Usually this means the macro was only invoked conditionally." >&5
28092 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28093 Usually this means the macro was only invoked conditionally." >&2;}
28094 { (exit 1); exit 1; }; }
28096 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28097 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28098 Usually this means the macro was only invoked conditionally." >&5
28099 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28100 Usually this means the macro was only invoked conditionally." >&2;}
28101 { (exit 1); exit 1; }; }
28103 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28104 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28105 Usually this means the macro was only invoked conditionally." >&5
28106 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28107 Usually this means the macro was only invoked conditionally." >&2;}
28108 { (exit 1); exit 1; }; }
28110 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28111 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28112 Usually this means the macro was only invoked conditionally." >&5
28113 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28114 Usually this means the macro was only invoked conditionally." >&2;}
28115 { (exit 1); exit 1; }; }
28117 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28118 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28119 Usually this means the macro was only invoked conditionally." >&5
28120 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28121 Usually this means the macro was only invoked conditionally." >&2;}
28122 { (exit 1); exit 1; }; }
28124 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28125 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28126 Usually this means the macro was only invoked conditionally." >&5
28127 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28128 Usually this means the macro was only invoked conditionally." >&2;}
28129 { (exit 1); exit 1; }; }
28131 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28132 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28133 Usually this means the macro was only invoked conditionally." >&5
28134 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28135 Usually this means the macro was only invoked conditionally." >&2;}
28136 { (exit 1); exit 1; }; }
28138 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28139 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28140 Usually this means the macro was only invoked conditionally." >&5
28141 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28142 Usually this means the macro was only invoked conditionally." >&2;}
28143 { (exit 1); exit 1; }; }
28145 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28146 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28147 Usually this means the macro was only invoked conditionally." >&5
28148 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28149 Usually this means the macro was only invoked conditionally." >&2;}
28150 { (exit 1); exit 1; }; }
28152 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28153 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28154 Usually this means the macro was only invoked conditionally." >&5
28155 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28156 Usually this means the macro was only invoked conditionally." >&2;}
28157 { (exit 1); exit 1; }; }
28159 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28160 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28161 Usually this means the macro was only invoked conditionally." >&5
28162 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28163 Usually this means the macro was only invoked conditionally." >&2;}
28164 { (exit 1); exit 1; }; }
28166 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28167 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28168 Usually this means the macro was only invoked conditionally." >&5
28169 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28170 Usually this means the macro was only invoked conditionally." >&2;}
28171 { (exit 1); exit 1; }; }
28173 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28174 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28175 Usually this means the macro was only invoked conditionally." >&5
28176 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28177 Usually this means the macro was only invoked conditionally." >&2;}
28178 { (exit 1); exit 1; }; }
28180 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28181 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28182 Usually this means the macro was only invoked conditionally." >&5
28183 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28184 Usually this means the macro was only invoked conditionally." >&2;}
28185 { (exit 1); exit 1; }; }
28188 : ${CONFIG_STATUS=./config.status}
28189 ac_clean_files_save=$ac_clean_files
28190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28193 cat >$CONFIG_STATUS <<_ACEOF
28195 # Generated by $as_me.
28196 # Run this file to recreate the current configuration.
28197 # Compiler output produced by configure, useful for debugging
28198 # configure, is in config.log if it exists.
28201 ac_cs_recheck=false
28203 SHELL=\${CONFIG_SHELL-$SHELL}
28206 cat >>$CONFIG_STATUS <<\_ACEOF
28207 ## --------------------- ##
28208 ## M4sh Initialization. ##
28209 ## --------------------- ##
28211 # Be Bourne compatible
28212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28215 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28216 # is contrary to our usage. Disable this feature.
28217 alias -g '${1+"$@"}'='"$@"'
28218 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28221 DUALCASE=1; export DUALCASE # for MKS sh
28223 # Support unset when possible.
28224 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28231 # Work around bugs in pre-3.0 UWIN ksh.
28232 $as_unset ENV MAIL MAILPATH
28239 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28240 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28241 LC_TELEPHONE LC_TIME
28243 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28244 eval $as_var=C; export $as_var
28250 # Required to use basename.
28251 if expr a : '\(a\)' >/dev/null 2>&1; then
28257 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28258 as_basename=basename
28264 # Name of the executable.
28265 as_me=`$as_basename "$0" ||
28266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28267 X"$0" : 'X\(//\)$' \| \
28268 X"$0" : 'X\(/\)$' \| \
28269 . : '\(.\)' 2>/dev/null ||
28271 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28272 /^X\/\(\/\/\)$/{ s//\1/; q; }
28273 /^X\/\(\/\).*/{ s//\1/; q; }
28277 # PATH needs CR, and LINENO needs CR and PATH.
28278 # Avoid depending upon Character Ranges.
28279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28282 as_cr_digits='0123456789'
28283 as_cr_alnum=$as_cr_Letters$as_cr_digits
28285 # The user is always right.
28286 if test "${PATH_SEPARATOR+set}" != set; then
28287 echo "#! /bin/sh" >conf$$.sh
28288 echo "exit 0" >>conf$$.sh
28290 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28299 as_lineno_1=$LINENO
28300 as_lineno_2=$LINENO
28301 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28302 test "x$as_lineno_1" != "x$as_lineno_2" &&
28303 test "x$as_lineno_3" = "x$as_lineno_2" || {
28304 # Find who we are. Look in the path if we contain no path at all
28307 *[\\/]* ) as_myself=$0 ;;
28308 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28309 for as_dir in $PATH
28312 test -z "$as_dir" && as_dir=.
28313 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28318 # We did not find ourselves, most probably we were run as `sh COMMAND'
28319 # in which case we are not to be found in the path.
28320 if test "x$as_myself" = x; then
28323 if test ! -f "$as_myself"; then
28324 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28325 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28326 { (exit 1); exit 1; }; }
28328 case $CONFIG_SHELL in
28330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28331 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28334 test -z "$as_dir" && as_dir=.
28335 for as_base in sh bash ksh sh5; do
28338 if ("$as_dir/$as_base" -c '
28339 as_lineno_1=$LINENO
28340 as_lineno_2=$LINENO
28341 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28342 test "x$as_lineno_1" != "x$as_lineno_2" &&
28343 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28344 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28345 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28346 CONFIG_SHELL=$as_dir/$as_base
28347 export CONFIG_SHELL
28348 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28356 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28357 # uniformly replaced by the line number. The first 'sed' inserts a
28358 # line-number line before each line; the second 'sed' does the real
28359 # work. The second script uses 'N' to pair each line-number line
28360 # with the numbered line, and appends trailing '-' during
28361 # substitution so that $LINENO is not a special case at line end.
28362 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28363 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28364 sed '=' <$as_myself |
28369 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28372 s,^['$as_cr_digits']*\n,,
28373 ' >$as_me.lineno &&
28374 chmod +x $as_me.lineno ||
28375 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28376 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28377 { (exit 1); exit 1; }; }
28379 # Don't try to exec as it changes $[0], causing all sort of problems
28380 # (the dirname of $[0] is not the place where we might find the
28381 # original and so on. Autoconf is especially sensible to this).
28383 # Exit status is that of the last command.
28388 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28389 *c*,-n*) ECHO_N= ECHO_C='
28391 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28392 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28395 if expr a : '\(a\)' >/dev/null 2>&1; then
28401 rm -f conf$$ conf$$.exe conf$$.file
28403 if ln -s conf$$.file conf$$ 2>/dev/null; then
28404 # We could just check for DJGPP; but this test a) works b) is more generic
28405 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28406 if test -f conf$$.exe; then
28407 # Don't use ln at all; we don't have any links
28412 elif ln conf$$.file conf$$ 2>/dev/null; then
28417 rm -f conf$$ conf$$.exe conf$$.file
28419 if mkdir -p . 2>/dev/null; then
28422 test -d ./-p && rmdir ./-p
28426 as_executable_p="test -f"
28428 # Sed expression to map a string onto a valid CPP name.
28429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28431 # Sed expression to map a string onto a valid variable name.
28432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28436 # We need space, tab and new line, in precisely that order.
28446 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28447 # report actual input values of CONFIG_FILES etc. instead of their
28448 # values after options handling. Logging --version etc. is OK.
28452 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28453 ## Running $as_me. ##
28458 This file was extended by libjava $as_me version-unused, which was
28459 generated by GNU Autoconf 2.59. Invocation command line was
28461 CONFIG_FILES = $CONFIG_FILES
28462 CONFIG_HEADERS = $CONFIG_HEADERS
28463 CONFIG_LINKS = $CONFIG_LINKS
28464 CONFIG_COMMANDS = $CONFIG_COMMANDS
28468 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28472 # Files that config.status was made for.
28473 if test -n "$ac_config_files"; then
28474 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28477 if test -n "$ac_config_headers"; then
28478 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28481 if test -n "$ac_config_links"; then
28482 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28485 if test -n "$ac_config_commands"; then
28486 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28489 cat >>$CONFIG_STATUS <<\_ACEOF
28492 \`$as_me' instantiates files from templates according to the
28493 current configuration.
28495 Usage: $0 [OPTIONS] [FILE]...
28497 -h, --help print this help, then exit
28498 -V, --version print version number, then exit
28499 -q, --quiet do not print progress messages
28500 -d, --debug don't remove temporary files
28501 --recheck update $as_me by reconfiguring in the same conditions
28502 --file=FILE[:TEMPLATE]
28503 instantiate the configuration file FILE
28504 --header=FILE[:TEMPLATE]
28505 instantiate the configuration header FILE
28507 Configuration files:
28510 Configuration headers:
28513 Configuration links:
28516 Configuration commands:
28519 Report bugs to <bug-autoconf@gnu.org>."
28522 cat >>$CONFIG_STATUS <<_ACEOF
28524 libjava config.status version-unused
28525 configured by $0, generated by GNU Autoconf 2.59,
28526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28528 Copyright (C) 2003 Free Software Foundation, Inc.
28529 This config.status script is free software; the Free Software Foundation
28530 gives unlimited permission to copy, distribute and modify it."
28535 cat >>$CONFIG_STATUS <<\_ACEOF
28536 # If no file are specified by the user, then we need to provide default
28537 # value. By we need to know if files were specified by the user.
28543 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28552 *) # This is not an option, so the user has probably given explicit
28555 ac_need_defaults=false;;
28559 # Handling of the options.
28561 cat >>$CONFIG_STATUS <<\_ACEOF
28562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28564 --version | --vers* | -V )
28565 echo "$ac_cs_version"; exit 0 ;;
28567 # Conflict between --help and --header
28568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28569 Try \`$0 --help' for more information." >&5
28570 echo "$as_me: error: ambiguous option: $1
28571 Try \`$0 --help' for more information." >&2;}
28572 { (exit 1); exit 1; }; };;
28573 --help | --hel | -h )
28574 echo "$ac_cs_usage"; exit 0 ;;
28575 --debug | --d* | -d )
28577 --file | --fil | --fi | --f )
28579 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28580 ac_need_defaults=false;;
28581 --header | --heade | --head | --hea )
28583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28584 ac_need_defaults=false;;
28585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28589 # This is an error.
28590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28591 Try \`$0 --help' for more information." >&5
28592 echo "$as_me: error: unrecognized option: $1
28593 Try \`$0 --help' for more information." >&2;}
28594 { (exit 1); exit 1; }; } ;;
28596 *) ac_config_targets="$ac_config_targets $1" ;;
28602 ac_configure_extra_args=
28604 if $ac_cs_silent; then
28606 ac_configure_extra_args="$ac_configure_extra_args --silent"
28610 cat >>$CONFIG_STATUS <<_ACEOF
28611 if \$ac_cs_recheck; then
28612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28618 cat >>$CONFIG_STATUS <<_ACEOF
28620 # INIT-COMMANDS section.
28627 with_multisubdir="$with_multisubdir"
28628 with_multisrctop="$with_multisrctop"
28629 with_target_subdir="$with_target_subdir"
28630 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28631 multi_basedir="$multi_basedir"
28632 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28634 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28637 # The HP-UX ksh and POSIX shell print the target directory to stdout
28638 # if CDPATH is set.
28639 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28641 sed_quote_subst='$sed_quote_subst'
28642 double_quote_subst='$double_quote_subst'
28643 delay_variable_subst='$delay_variable_subst'
28644 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28645 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28646 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28647 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28648 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28649 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28650 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28651 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28652 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28653 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28654 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28655 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28656 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28657 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28658 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28659 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28660 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28661 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28662 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28663 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28664 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28665 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28666 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28667 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28668 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28669 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28670 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28671 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28672 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28673 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28674 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28675 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28676 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28677 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28678 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28679 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28680 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28681 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28682 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28683 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28684 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28685 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28686 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28687 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"`'
28688 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28689 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28690 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28691 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28692 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28693 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28694 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28695 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28696 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28697 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28698 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28699 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28700 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28701 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28702 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28703 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28704 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28705 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28706 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28707 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28708 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28709 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28710 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28711 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28712 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28713 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28714 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28715 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28716 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28717 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28718 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28719 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28720 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28721 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28722 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28723 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28724 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28725 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28726 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28727 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28728 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28729 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28730 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28731 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28732 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28733 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28734 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28735 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28736 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28737 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28738 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28739 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28740 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28741 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28742 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28743 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28744 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28745 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28746 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28747 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28748 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28749 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28750 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28751 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28752 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28753 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28754 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28755 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28756 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28757 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28758 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28759 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28760 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28761 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28762 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28763 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28764 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28765 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28766 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28767 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28768 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28769 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28770 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28771 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28772 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28773 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28774 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28775 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28776 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28777 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28778 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28779 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28780 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28781 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28782 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28783 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28784 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28785 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28786 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28787 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28788 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28789 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28790 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28791 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28792 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28793 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28794 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28795 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28796 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28797 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28798 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28799 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28800 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28801 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28802 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28803 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28804 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28805 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28806 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28807 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28808 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28809 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28810 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28811 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28812 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28813 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28814 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28815 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28816 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28817 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28818 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28819 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28820 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28821 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28822 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28823 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28824 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28825 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28826 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28827 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28828 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28829 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28830 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28831 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28832 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28833 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28834 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28835 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28836 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28837 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28838 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28839 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28840 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28841 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28842 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28843 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28844 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28845 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28846 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28847 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28848 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28849 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28850 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28851 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28854 LTCFLAGS='$LTCFLAGS'
28855 compiler='$compiler_DEFAULT'
28857 # Quote evaled strings.
28868 deplibs_check_method \
28877 lt_cv_sys_global_symbol_pipe \
28878 lt_cv_sys_global_symbol_to_cdecl \
28879 lt_cv_sys_global_symbol_to_c_name_address \
28882 lt_prog_compiler_no_builtin_flag \
28883 lt_prog_compiler_wl \
28884 lt_prog_compiler_pic \
28885 lt_prog_compiler_static \
28886 lt_cv_prog_compiler_c_o \
28889 export_dynamic_flag_spec \
28890 whole_archive_flag_spec \
28891 compiler_needs_object \
28893 allow_undefined_flag \
28894 no_undefined_flag \
28895 hardcode_libdir_flag_spec \
28896 hardcode_libdir_flag_spec_ld \
28897 hardcode_libdir_separator \
28902 variables_saved_for_relink \
28904 library_names_spec \
28913 compiler_lib_search_path \
28918 lt_prog_compiler_no_builtin_flag_CXX \
28919 lt_prog_compiler_no_builtin_flag_GCJ \
28920 lt_prog_compiler_wl_CXX \
28921 lt_prog_compiler_wl_GCJ \
28922 lt_prog_compiler_pic_CXX \
28923 lt_prog_compiler_pic_GCJ \
28924 lt_prog_compiler_static_CXX \
28925 lt_prog_compiler_static_GCJ \
28926 lt_cv_prog_compiler_c_o_CXX \
28927 lt_cv_prog_compiler_c_o_GCJ \
28928 export_dynamic_flag_spec_CXX \
28929 export_dynamic_flag_spec_GCJ \
28930 whole_archive_flag_spec_CXX \
28931 whole_archive_flag_spec_GCJ \
28932 compiler_needs_object_CXX \
28933 compiler_needs_object_GCJ \
28936 allow_undefined_flag_CXX \
28937 allow_undefined_flag_GCJ \
28938 no_undefined_flag_CXX \
28939 no_undefined_flag_GCJ \
28940 hardcode_libdir_flag_spec_CXX \
28941 hardcode_libdir_flag_spec_GCJ \
28942 hardcode_libdir_flag_spec_ld_CXX \
28943 hardcode_libdir_flag_spec_ld_GCJ \
28944 hardcode_libdir_separator_CXX \
28945 hardcode_libdir_separator_GCJ \
28946 fix_srcfile_path_CXX \
28947 fix_srcfile_path_GCJ \
28948 exclude_expsyms_CXX \
28949 exclude_expsyms_GCJ \
28950 include_expsyms_CXX \
28951 include_expsyms_GCJ \
28952 file_list_spec_CXX \
28953 file_list_spec_GCJ \
28954 predep_objects_CXX \
28955 predep_objects_GCJ \
28956 postdep_objects_CXX \
28957 postdep_objects_GCJ \
28962 compiler_lib_search_path_CXX \
28963 compiler_lib_search_path_GCJ; do
28964 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28965 *[\\\\\\\`\\"\\\$]*)
28966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28974 # Double-quote double-evaled strings.
28975 for var in reload_cmds \
28976 old_postinstall_cmds \
28977 old_postuninstall_cmds \
28979 extract_expsyms_cmds \
28980 old_archive_from_new_cmds \
28981 old_archive_from_expsyms_cmds \
28983 archive_expsym_cmds \
28985 module_expsym_cmds \
28986 export_symbols_cmds \
28989 postuninstall_cmds \
28991 sys_lib_search_path_spec \
28992 sys_lib_dlsearch_path_spec \
28993 old_archive_cmds_CXX \
28994 old_archive_cmds_GCJ \
28995 old_archive_from_new_cmds_CXX \
28996 old_archive_from_new_cmds_GCJ \
28997 old_archive_from_expsyms_cmds_CXX \
28998 old_archive_from_expsyms_cmds_GCJ \
29001 archive_expsym_cmds_CXX \
29002 archive_expsym_cmds_GCJ \
29005 module_expsym_cmds_CXX \
29006 module_expsym_cmds_GCJ \
29007 export_symbols_cmds_CXX \
29008 export_symbols_cmds_GCJ \
29010 prelink_cmds_GCJ; do
29011 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29012 *[\\\\\\\`\\"\\\$]*)
29013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29021 # Fix-up fallback echo if it was mangled by the above quoting rules.
29023 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29027 ac_aux_dir='$ac_aux_dir'
29028 xsi_shell='$xsi_shell'
29029 lt_shell_append='$lt_shell_append'
29031 # See if we are running on zsh, and set the options which allow our
29032 # commands through without removal of \ escapes INIT.
29033 if test -n "\${ZSH_VERSION+set}" ; then
29034 setopt NO_GLOB_SUBST
29040 TIMESTAMP='$TIMESTAMP'
29055 cat >>$CONFIG_STATUS <<\_ACEOF
29056 for ac_config_target in $ac_config_targets
29058 case "$ac_config_target" in
29059 # Handling of arguments.
29060 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29061 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29062 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29063 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29064 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29065 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29066 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29067 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29068 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29069 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29070 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29071 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29072 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29073 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29074 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29075 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29076 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29077 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29078 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29079 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29080 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29081 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29082 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29083 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29084 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29085 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29086 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29087 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29088 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29089 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29091 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29092 { (exit 1); exit 1; }; };;
29096 # If the user did not use the arguments to specify the items to instantiate,
29097 # then the envvar interface is used. Set only those that are not.
29098 # We use the long form for the default assignment because of an extremely
29099 # bizarre bug on SunOS 4.1.3.
29100 if $ac_need_defaults; then
29101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29103 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29107 # Have a temporary directory for convenience. Make it in the build tree
29108 # simply because there is no reason to put it here, and in addition,
29109 # creating and moving files from /tmp can sometimes cause problems.
29110 # Create a temporary directory, and hook for its removal unless debugging.
29113 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29114 trap '{ (exit 1); exit 1; }' 1 2 13 15
29117 # Create a (secure) tmp directory for tmp files.
29120 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29121 test -n "$tmp" && test -d "$tmp"
29124 tmp=./confstat$$-$RANDOM
29125 (umask 077 && mkdir $tmp)
29128 echo "$me: cannot create a temporary directory in ." >&2
29129 { (exit 1); exit 1; }
29134 cat >>$CONFIG_STATUS <<_ACEOF
29137 # CONFIG_FILES section.
29140 # No need to generate the scripts if there are no CONFIG_FILES.
29141 # This happens for instance when ./config.status config.h
29142 if test -n "\$CONFIG_FILES"; then
29143 # Protect against being on the right side of a sed subst in config.status.
29144 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29145 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29146 s,@SHELL@,$SHELL,;t t
29147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29153 s,@exec_prefix@,$exec_prefix,;t t
29154 s,@prefix@,$prefix,;t t
29155 s,@program_transform_name@,$program_transform_name,;t t
29156 s,@bindir@,$bindir,;t t
29157 s,@sbindir@,$sbindir,;t t
29158 s,@libexecdir@,$libexecdir,;t t
29159 s,@datadir@,$datadir,;t t
29160 s,@sysconfdir@,$sysconfdir,;t t
29161 s,@sharedstatedir@,$sharedstatedir,;t t
29162 s,@localstatedir@,$localstatedir,;t t
29163 s,@libdir@,$libdir,;t t
29164 s,@includedir@,$includedir,;t t
29165 s,@oldincludedir@,$oldincludedir,;t t
29166 s,@infodir@,$infodir,;t t
29167 s,@mandir@,$mandir,;t t
29168 s,@build_alias@,$build_alias,;t t
29169 s,@host_alias@,$host_alias,;t t
29170 s,@target_alias@,$target_alias,;t t
29171 s,@DEFS@,$DEFS,;t t
29172 s,@ECHO_C@,$ECHO_C,;t t
29173 s,@ECHO_N@,$ECHO_N,;t t
29174 s,@ECHO_T@,$ECHO_T,;t t
29175 s,@LIBS@,$LIBS,;t t
29176 s,@build@,$build,;t t
29177 s,@build_cpu@,$build_cpu,;t t
29178 s,@build_vendor@,$build_vendor,;t t
29179 s,@build_os@,$build_os,;t t
29180 s,@build_libsubdir@,$build_libsubdir,;t t
29181 s,@build_subdir@,$build_subdir,;t t
29182 s,@host_subdir@,$host_subdir,;t t
29183 s,@target_subdir@,$target_subdir,;t t
29184 s,@multi_basedir@,$multi_basedir,;t t
29185 s,@host@,$host,;t t
29186 s,@host_cpu@,$host_cpu,;t t
29187 s,@host_vendor@,$host_vendor,;t t
29188 s,@host_os@,$host_os,;t t
29189 s,@target@,$target,;t t
29190 s,@target_cpu@,$target_cpu,;t t
29191 s,@target_vendor@,$target_vendor,;t t
29192 s,@target_os@,$target_os,;t t
29193 s,@target_noncanonical@,$target_noncanonical,;t t
29194 s,@LN_S@,$LN_S,;t t
29195 s,@mkinstalldirs@,$mkinstalldirs,;t t
29196 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29197 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29199 s,@ac_ct_CC@,$ac_ct_CC,;t t
29200 s,@EXEEXT@,$EXEEXT,;t t
29201 s,@OBJEXT@,$OBJEXT,;t t
29203 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29204 s,@CFLAGS@,$CFLAGS,;t t
29205 s,@CXXFLAGS@,$CXXFLAGS,;t t
29206 s,@LDFLAGS@,$LDFLAGS,;t t
29207 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29208 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29209 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29210 s,@CYGPATH_W@,$CYGPATH_W,;t t
29211 s,@PACKAGE@,$PACKAGE,;t t
29212 s,@VERSION@,$VERSION,;t t
29213 s,@ACLOCAL@,$ACLOCAL,;t t
29214 s,@AUTOCONF@,$AUTOCONF,;t t
29215 s,@AUTOMAKE@,$AUTOMAKE,;t t
29216 s,@AUTOHEADER@,$AUTOHEADER,;t t
29217 s,@MAKEINFO@,$MAKEINFO,;t t
29218 s,@install_sh@,$install_sh,;t t
29219 s,@STRIP@,$STRIP,;t t
29220 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29221 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29222 s,@mkdir_p@,$mkdir_p,;t t
29224 s,@SET_MAKE@,$SET_MAKE,;t t
29225 s,@am__leading_dot@,$am__leading_dot,;t t
29226 s,@AMTAR@,$AMTAR,;t t
29227 s,@am__tar@,$am__tar,;t t
29228 s,@am__untar@,$am__untar,;t t
29229 s,@DEPDIR@,$DEPDIR,;t t
29230 s,@am__include@,$am__include,;t t
29231 s,@am__quote@,$am__quote,;t t
29232 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29233 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29234 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29235 s,@CCDEPMODE@,$CCDEPMODE,;t t
29236 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29237 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29238 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29239 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29240 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29242 s,@ac_ct_AS@,$ac_ct_AS,;t t
29244 s,@ac_ct_LD@,$ac_ct_LD,;t t
29246 s,@ac_ct_AR@,$ac_ct_AR,;t t
29247 s,@RANLIB@,$RANLIB,;t t
29248 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29251 s,@UNZIP@,$UNZIP,;t t
29252 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29253 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29254 s,@MAINT@,$MAINT,;t t
29255 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29256 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29257 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29258 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29259 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29260 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29261 s,@TOOLKIT@,$TOOLKIT,;t t
29262 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29263 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29264 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29265 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29266 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29267 s,@GCJH@,$GCJH,;t t
29268 s,@host_exeext@,$host_exeext,;t t
29269 s,@INCLTDL@,$INCLTDL,;t t
29270 s,@LIBLTDL@,$LIBLTDL,;t t
29271 s,@DIRLTDL@,$DIRLTDL,;t t
29272 s,@LIBTOOL@,$LIBTOOL,;t t
29274 s,@EGREP@,$EGREP,;t t
29275 s,@FGREP@,$FGREP,;t t
29276 s,@GREP@,$GREP,;t t
29277 s,@DUMPBIN@,$DUMPBIN,;t t
29278 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29280 s,@lt_ECHO@,$lt_ECHO,;t t
29282 s,@CPPFLAGS@,$CPPFLAGS,;t t
29283 s,@CXXCPP@,$CXXCPP,;t t
29285 s,@GCJFLAGS@,$GCJFLAGS,;t t
29286 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29287 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29288 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29289 s,@subdirs@,$subdirs,;t t
29290 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29291 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29292 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29293 s,@ECJ_JAR@,$ECJ_JAR,;t t
29294 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29295 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29296 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29297 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29298 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29299 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29300 s,@JAVA_HOME@,$JAVA_HOME,;t t
29301 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29302 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29303 s,@INTERPRETER@,$INTERPRETER,;t t
29304 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29305 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29306 s,@LIBFFI@,$LIBFFI,;t t
29307 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29308 s,@PLATFORM@,$PLATFORM,;t t
29309 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29310 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29311 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29312 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29313 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29314 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29315 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29316 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29317 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29318 s,@X_CFLAGS@,$X_CFLAGS,;t t
29319 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29320 s,@X_LIBS@,$X_LIBS,;t t
29321 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29322 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29323 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29324 s,@extra_ldflags@,$extra_ldflags,;t t
29325 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29326 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29327 s,@GCLIBS@,$GCLIBS,;t t
29328 s,@GCINCS@,$GCINCS,;t t
29329 s,@GCDEPS@,$GCDEPS,;t t
29330 s,@GCSPEC@,$GCSPEC,;t t
29331 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29332 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29333 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29334 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29335 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29336 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29337 s,@THREADLIBS@,$THREADLIBS,;t t
29338 s,@THREADINCS@,$THREADINCS,;t t
29339 s,@THREADDEPS@,$THREADDEPS,;t t
29340 s,@THREADSPEC@,$THREADSPEC,;t t
29341 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29342 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29343 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29344 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29345 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29346 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29347 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29348 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29349 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29350 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29351 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29352 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29353 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29354 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29355 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29356 s,@LIBICONV@,$LIBICONV,;t t
29357 s,@LTLIBICONV@,$LTLIBICONV,;t t
29358 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29359 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29360 s,@GTK_LIBS@,$GTK_LIBS,;t t
29361 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29362 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29363 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29364 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29365 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29366 s,@ZLIBS@,$ZLIBS,;t t
29367 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29368 s,@ZINCS@,$ZINCS,;t t
29369 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29370 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29371 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29372 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29373 s,@IEEESPEC@,$IEEESPEC,;t t
29374 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29375 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29376 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29377 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29378 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29379 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29380 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29381 s,@toolexecdir@,$toolexecdir,;t t
29382 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29383 s,@toolexeclibdir@,$toolexeclibdir,;t t
29384 s,@GCJVERSION@,$GCJVERSION,;t t
29385 s,@dbexecdir@,$dbexecdir,;t t
29386 s,@gxx_include_dir@,$gxx_include_dir,;t t
29387 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29388 s,@PERL@,$PERL,;t t
29389 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29390 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29391 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29392 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29393 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29394 s,@here@,$here,;t t
29395 s,@LIBOBJS@,$LIBOBJS,;t t
29396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29401 cat >>$CONFIG_STATUS <<\_ACEOF
29402 # Split the substitutions into bite-sized pieces for seds with
29403 # small command number limits, like on Digital OSF/1 and HP-UX.
29404 ac_max_sed_lines=48
29405 ac_sed_frag=1 # Number of current file.
29406 ac_beg=1 # First line for current file.
29407 ac_end=$ac_max_sed_lines # Line after last line for current file.
29410 while $ac_more_lines; do
29411 if test $ac_beg -gt 1; then
29412 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29414 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29416 if test ! -s $tmp/subs.frag; then
29417 ac_more_lines=false
29419 # The purpose of the label and of the branching condition is to
29420 # speed up the sed processing (if there are no `@' at all, there
29421 # is no need to browse any of the substitutions).
29422 # These are the two extra sed commands mentioned above.
29424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29425 if test -z "$ac_sed_cmds"; then
29426 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29428 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29430 ac_sed_frag=`expr $ac_sed_frag + 1`
29432 ac_end=`expr $ac_end + $ac_max_sed_lines`
29435 if test -z "$ac_sed_cmds"; then
29438 fi # test -n "$CONFIG_FILES"
29441 cat >>$CONFIG_STATUS <<\_ACEOF
29442 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29445 - | *:- | *:-:* ) # input from stdin
29447 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29448 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29449 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29451 * ) ac_file_in=$ac_file.in ;;
29454 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29455 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29456 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29457 X"$ac_file" : 'X\(//\)[^/]' \| \
29458 X"$ac_file" : 'X\(//\)$' \| \
29459 X"$ac_file" : 'X\(/\)' \| \
29460 . : '\(.\)' 2>/dev/null ||
29462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29464 /^X\(\/\/\)$/{ s//\1/; q; }
29465 /^X\(\/\).*/{ s//\1/; q; }
29467 { if $as_mkdir_p; then
29472 while test ! -d "$as_dir"; do
29473 as_dirs="$as_dir $as_dirs"
29474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29476 X"$as_dir" : 'X\(//\)[^/]' \| \
29477 X"$as_dir" : 'X\(//\)$' \| \
29478 X"$as_dir" : 'X\(/\)' \| \
29479 . : '\(.\)' 2>/dev/null ||
29481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29483 /^X\(\/\/\)$/{ s//\1/; q; }
29484 /^X\(\/\).*/{ s//\1/; q; }
29487 test ! -n "$as_dirs" || mkdir $as_dirs
29488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29490 { (exit 1); exit 1; }; }; }
29494 if test "$ac_dir" != .; then
29495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29496 # A "../" for each directory in $ac_dir_suffix.
29497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29499 ac_dir_suffix= ac_top_builddir=
29503 .) # No --srcdir option. We are building in place.
29505 if test -z "$ac_top_builddir"; then
29508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29510 [\\/]* | ?:[\\/]* ) # Absolute path.
29511 ac_srcdir=$srcdir$ac_dir_suffix;
29512 ac_top_srcdir=$srcdir ;;
29513 *) # Relative path.
29514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29518 # Do not use `cd foo && pwd` to compute absolute paths, because
29519 # the directories may not exist.
29521 .) ac_abs_builddir="$ac_dir";;
29524 .) ac_abs_builddir=`pwd`;;
29525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29529 case $ac_abs_builddir in
29530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29532 case ${ac_top_builddir}. in
29533 .) ac_abs_top_builddir=$ac_abs_builddir;;
29534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29538 case $ac_abs_builddir in
29539 .) ac_abs_srcdir=$ac_srcdir;;
29542 .) ac_abs_srcdir=$ac_abs_builddir;;
29543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29547 case $ac_abs_builddir in
29548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29550 case $ac_top_srcdir in
29551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29560 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29563 if test x"$ac_file" != x-; then
29564 { echo "$as_me:$LINENO: creating $ac_file" >&5
29565 echo "$as_me: creating $ac_file" >&6;}
29568 # Let's still pretend it is `configure' which instantiates (i.e., don't
29569 # use $as_me), people would be surprised to read:
29570 # /* config.h. Generated by config.status. */
29571 if test x"$ac_file" = x-; then
29574 configure_input="$ac_file. "
29576 configure_input=$configure_input"Generated from `echo $ac_file_in |
29577 sed 's,.*/,,'` by configure."
29579 # First look for the input files in the build tree, otherwise in the
29581 ac_file_inputs=`IFS=:
29582 for f in $ac_file_in; do
29584 -) echo $tmp/stdin ;;
29586 # Absolute (can't be DOS-style, as IFS=:)
29587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29588 echo "$as_me: error: cannot find input file: $f" >&2;}
29589 { (exit 1); exit 1; }; }
29592 if test -f "$f"; then
29595 elif test -f "$srcdir/$f"; then
29600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29601 echo "$as_me: error: cannot find input file: $f" >&2;}
29602 { (exit 1); exit 1; }; }
29605 done` || { (exit 1); exit 1; }
29607 cat >>$CONFIG_STATUS <<_ACEOF
29611 cat >>$CONFIG_STATUS <<\_ACEOF
29613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29614 s,@configure_input@,$configure_input,;t t
29615 s,@srcdir@,$ac_srcdir,;t t
29616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29617 s,@top_srcdir@,$ac_top_srcdir,;t t
29618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29619 s,@builddir@,$ac_builddir,;t t
29620 s,@abs_builddir@,$ac_abs_builddir,;t t
29621 s,@top_builddir@,$ac_top_builddir,;t t
29622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29623 s,@INSTALL@,$ac_INSTALL,;t t
29624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29626 if test x"$ac_file" != x-; then
29627 mv $tmp/out $ac_file
29633 # Run the commands associated with the file.
29635 scripts/jar ) chmod +x scripts/jar ;;
29639 cat >>$CONFIG_STATUS <<\_ACEOF
29642 # CONFIG_HEADER section.
29645 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29646 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29648 # ac_d sets the value in "#define NAME VALUE" lines.
29649 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29650 ac_dB='[ ].*$,\1#\2'
29653 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29654 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29655 ac_uB='$,\1#\2define\3'
29659 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29662 - | *:- | *:-:* ) # input from stdin
29664 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29666 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29668 * ) ac_file_in=$ac_file.in ;;
29671 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29672 echo "$as_me: creating $ac_file" >&6;}
29674 # First look for the input files in the build tree, otherwise in the
29676 ac_file_inputs=`IFS=:
29677 for f in $ac_file_in; do
29679 -) echo $tmp/stdin ;;
29681 # Absolute (can't be DOS-style, as IFS=:)
29682 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29683 echo "$as_me: error: cannot find input file: $f" >&2;}
29684 { (exit 1); exit 1; }; }
29685 # Do quote $f, to prevent DOS paths from being IFS'd.
29688 if test -f "$f"; then
29691 elif test -f "$srcdir/$f"; then
29696 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29697 echo "$as_me: error: cannot find input file: $f" >&2;}
29698 { (exit 1); exit 1; }; }
29701 done` || { (exit 1); exit 1; }
29702 # Remove the trailing spaces.
29703 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29707 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29708 # `conftest.undefs', that substitutes the proper values into
29709 # config.h.in to produce config.h. The first handles `#define'
29710 # templates, and the second `#undef' templates.
29711 # And first: Protect against being on the right side of a sed subst in
29712 # config.status. Protect against being in an unquoted here document
29713 # in config.status.
29714 rm -f conftest.defines conftest.undefs
29715 # Using a here document instead of a string reduces the quoting nightmare.
29716 # Putting comments in sed scripts is not portable.
29718 # `end' is used to avoid that the second main sed command (meant for
29719 # 0-ary CPP macros) applies to n-ary macro definitions.
29720 # See the Autoconf documentation for `clear'.
29721 cat >confdef2sed.sed <<\_ACEOF
29726 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29728 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29731 # If some macros were called several times there might be several times
29732 # the same #defines, which is useless. Nevertheless, we may not want to
29733 # sort them, since we want the *last* AC-DEFINE to be honored.
29734 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29735 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29736 rm -f confdef2sed.sed
29738 # This sed command replaces #undef with comments. This is necessary, for
29739 # example, in the case of _POSIX_SOURCE, which is predefined and required
29740 # on some systems where configure will not decide to define it.
29741 cat >>conftest.undefs <<\_ACEOF
29742 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29745 # Break up conftest.defines because some shells have a limit on the size
29746 # of here documents, and old seds have small limits too (100 cmds).
29747 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29748 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29749 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29750 echo ' :' >>$CONFIG_STATUS
29751 rm -f conftest.tail
29752 while grep . conftest.defines >/dev/null
29754 # Write a limited-size here document to $tmp/defines.sed.
29755 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29756 # Speed up: don't consider the non `#define' lines.
29757 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29758 # Work around the forget-to-reset-the-flag bug.
29759 echo 't clr' >>$CONFIG_STATUS
29760 echo ': clr' >>$CONFIG_STATUS
29761 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29763 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29765 mv $tmp/out $tmp/in
29767 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29768 rm -f conftest.defines
29769 mv conftest.tail conftest.defines
29771 rm -f conftest.defines
29772 echo ' fi # grep' >>$CONFIG_STATUS
29773 echo >>$CONFIG_STATUS
29775 # Break up conftest.undefs because some shells have a limit on the size
29776 # of here documents, and old seds have small limits too (100 cmds).
29777 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29778 rm -f conftest.tail
29779 while grep . conftest.undefs >/dev/null
29781 # Write a limited-size here document to $tmp/undefs.sed.
29782 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29783 # Speed up: don't consider the non `#undef'
29784 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29785 # Work around the forget-to-reset-the-flag bug.
29786 echo 't clr' >>$CONFIG_STATUS
29787 echo ': clr' >>$CONFIG_STATUS
29788 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29790 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29792 mv $tmp/out $tmp/in
29794 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29795 rm -f conftest.undefs
29796 mv conftest.tail conftest.undefs
29798 rm -f conftest.undefs
29800 cat >>$CONFIG_STATUS <<\_ACEOF
29801 # Let's still pretend it is `configure' which instantiates (i.e., don't
29802 # use $as_me), people would be surprised to read:
29803 # /* config.h. Generated by config.status. */
29804 if test x"$ac_file" = x-; then
29805 echo "/* Generated by configure. */" >$tmp/config.h
29807 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29809 cat $tmp/in >>$tmp/config.h
29811 if test x"$ac_file" != x-; then
29812 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29813 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29814 echo "$as_me: $ac_file is unchanged" >&6;}
29816 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29818 X"$ac_file" : 'X\(//\)[^/]' \| \
29819 X"$ac_file" : 'X\(//\)$' \| \
29820 X"$ac_file" : 'X\(/\)' \| \
29821 . : '\(.\)' 2>/dev/null ||
29823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29825 /^X\(\/\/\)$/{ s//\1/; q; }
29826 /^X\(\/\).*/{ s//\1/; q; }
29828 { if $as_mkdir_p; then
29833 while test ! -d "$as_dir"; do
29834 as_dirs="$as_dir $as_dirs"
29835 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29837 X"$as_dir" : 'X\(//\)[^/]' \| \
29838 X"$as_dir" : 'X\(//\)$' \| \
29839 X"$as_dir" : 'X\(/\)' \| \
29840 . : '\(.\)' 2>/dev/null ||
29842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29844 /^X\(\/\/\)$/{ s//\1/; q; }
29845 /^X\(\/\).*/{ s//\1/; q; }
29848 test ! -n "$as_dirs" || mkdir $as_dirs
29849 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29850 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29851 { (exit 1); exit 1; }; }; }
29854 mv $tmp/config.h $ac_file
29858 rm -f $tmp/config.h
29860 # Compute $ac_file's index in $config_headers.
29862 for _am_header in $config_headers :; do
29863 case $_am_header in
29864 $ac_file | $ac_file:* )
29867 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29870 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29871 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29872 X$ac_file : 'X\(//\)[^/]' \| \
29873 X$ac_file : 'X\(//\)$' \| \
29874 X$ac_file : 'X\(/\)' \| \
29875 . : '\(.\)' 2>/dev/null ||
29877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29879 /^X\(\/\/\)$/{ s//\1/; q; }
29880 /^X\(\/\).*/{ s//\1/; q; }
29881 s/.*/./; q'`/stamp-h$_am_stamp_count
29884 cat >>$CONFIG_STATUS <<\_ACEOF
29887 # CONFIG_LINKS section.
29890 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29891 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29892 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29894 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29895 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29897 if test ! -r $srcdir/$ac_source; then
29898 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29899 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29900 { (exit 1); exit 1; }; }
29904 # Make relative symlinks.
29905 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29906 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29907 X"$ac_dest" : 'X\(//\)[^/]' \| \
29908 X"$ac_dest" : 'X\(//\)$' \| \
29909 X"$ac_dest" : 'X\(/\)' \| \
29910 . : '\(.\)' 2>/dev/null ||
29912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29914 /^X\(\/\/\)$/{ s//\1/; q; }
29915 /^X\(\/\).*/{ s//\1/; q; }
29917 { if $as_mkdir_p; then
29918 mkdir -p "$ac_dest_dir"
29920 as_dir="$ac_dest_dir"
29922 while test ! -d "$as_dir"; do
29923 as_dirs="$as_dir $as_dirs"
29924 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29926 X"$as_dir" : 'X\(//\)[^/]' \| \
29927 X"$as_dir" : 'X\(//\)$' \| \
29928 X"$as_dir" : 'X\(/\)' \| \
29929 . : '\(.\)' 2>/dev/null ||
29931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29932 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29933 /^X\(\/\/\)$/{ s//\1/; q; }
29934 /^X\(\/\).*/{ s//\1/; q; }
29937 test ! -n "$as_dirs" || mkdir $as_dirs
29938 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29939 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29940 { (exit 1); exit 1; }; }; }
29944 if test "$ac_dest_dir" != .; then
29945 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29946 # A "../" for each directory in $ac_dir_suffix.
29947 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29949 ac_dir_suffix= ac_top_builddir=
29953 .) # No --srcdir option. We are building in place.
29955 if test -z "$ac_top_builddir"; then
29958 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29960 [\\/]* | ?:[\\/]* ) # Absolute path.
29961 ac_srcdir=$srcdir$ac_dir_suffix;
29962 ac_top_srcdir=$srcdir ;;
29963 *) # Relative path.
29964 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29965 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29968 # Do not use `cd foo && pwd` to compute absolute paths, because
29969 # the directories may not exist.
29971 .) ac_abs_builddir="$ac_dest_dir";;
29973 case "$ac_dest_dir" in
29974 .) ac_abs_builddir=`pwd`;;
29975 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29976 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29979 case $ac_abs_builddir in
29980 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29982 case ${ac_top_builddir}. in
29983 .) ac_abs_top_builddir=$ac_abs_builddir;;
29984 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29985 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29988 case $ac_abs_builddir in
29989 .) ac_abs_srcdir=$ac_srcdir;;
29992 .) ac_abs_srcdir=$ac_abs_builddir;;
29993 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29994 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29997 case $ac_abs_builddir in
29998 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30000 case $ac_top_srcdir in
30001 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30002 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30003 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30009 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30010 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30013 # Try a symlink, then a hard link, then a copy.
30014 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30015 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30016 cp -p $srcdir/$ac_source $ac_dest ||
30017 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30018 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30019 { (exit 1); exit 1; }; }
30022 cat >>$CONFIG_STATUS <<\_ACEOF
30025 # CONFIG_COMMANDS section.
30027 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30028 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30029 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30030 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30031 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30032 X"$ac_dest" : 'X\(//\)[^/]' \| \
30033 X"$ac_dest" : 'X\(//\)$' \| \
30034 X"$ac_dest" : 'X\(/\)' \| \
30035 . : '\(.\)' 2>/dev/null ||
30037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30039 /^X\(\/\/\)$/{ s//\1/; q; }
30040 /^X\(\/\).*/{ s//\1/; q; }
30042 { if $as_mkdir_p; then
30047 while test ! -d "$as_dir"; do
30048 as_dirs="$as_dir $as_dirs"
30049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30051 X"$as_dir" : 'X\(//\)[^/]' \| \
30052 X"$as_dir" : 'X\(//\)$' \| \
30053 X"$as_dir" : 'X\(/\)' \| \
30054 . : '\(.\)' 2>/dev/null ||
30056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30058 /^X\(\/\/\)$/{ s//\1/; q; }
30059 /^X\(\/\).*/{ s//\1/; q; }
30062 test ! -n "$as_dirs" || mkdir $as_dirs
30063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30065 { (exit 1); exit 1; }; }; }
30069 if test "$ac_dir" != .; then
30070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30071 # A "../" for each directory in $ac_dir_suffix.
30072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30074 ac_dir_suffix= ac_top_builddir=
30078 .) # No --srcdir option. We are building in place.
30080 if test -z "$ac_top_builddir"; then
30083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30085 [\\/]* | ?:[\\/]* ) # Absolute path.
30086 ac_srcdir=$srcdir$ac_dir_suffix;
30087 ac_top_srcdir=$srcdir ;;
30088 *) # Relative path.
30089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30093 # Do not use `cd foo && pwd` to compute absolute paths, because
30094 # the directories may not exist.
30096 .) ac_abs_builddir="$ac_dir";;
30099 .) ac_abs_builddir=`pwd`;;
30100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30104 case $ac_abs_builddir in
30105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30107 case ${ac_top_builddir}. in
30108 .) ac_abs_top_builddir=$ac_abs_builddir;;
30109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30113 case $ac_abs_builddir in
30114 .) ac_abs_srcdir=$ac_srcdir;;
30117 .) ac_abs_srcdir=$ac_abs_builddir;;
30118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30122 case $ac_abs_builddir in
30123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30125 case $ac_top_srcdir in
30126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30133 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30134 echo "$as_me: executing $ac_dest commands" >&6;}
30137 # Only add multilib support code if we just rebuilt the top-level
30139 case " $CONFIG_FILES " in
30141 ac_file=Makefile . ${multi_basedir}/config-ml.in
30144 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30145 # Strip MF so we end up with the name of the file.
30146 mf=`echo "$mf" | sed -e 's/:.*$//'`
30147 # Check whether this is an Automake generated Makefile or not.
30148 # We used to match only the files named `Makefile.in', but
30149 # some people rename them; so instead we look at the file content.
30150 # Grep'ing the first line is not enough: some people post-process
30151 # each Makefile.in and add a new line on top of each file to say so.
30152 # So let's grep whole file.
30153 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30154 dirpart=`(dirname "$mf") 2>/dev/null ||
30155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30156 X"$mf" : 'X\(//\)[^/]' \| \
30157 X"$mf" : 'X\(//\)$' \| \
30158 X"$mf" : 'X\(/\)' \| \
30159 . : '\(.\)' 2>/dev/null ||
30161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30163 /^X\(\/\/\)$/{ s//\1/; q; }
30164 /^X\(\/\).*/{ s//\1/; q; }
30169 # Extract the definition of DEPDIR, am__include, and am__quote
30170 # from the Makefile without running `make'.
30171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30172 test -z "$DEPDIR" && continue
30173 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30174 test -z "am__include" && continue
30175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30176 # When using ansi2knr, U may be empty or an underscore; expand it
30177 U=`sed -n 's/^U = //p' < "$mf"`
30178 # Find all dependency output files, they are included files with
30179 # $(DEPDIR) in their names. We invoke sed twice because it is the
30180 # simplest approach to changing $(DEPDIR) to its actual value in the
30182 for file in `sed -n "
30183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30185 # Make sure the directory exists.
30186 test -f "$dirpart/$file" && continue
30187 fdir=`(dirname "$file") 2>/dev/null ||
30188 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30189 X"$file" : 'X\(//\)[^/]' \| \
30190 X"$file" : 'X\(//\)$' \| \
30191 X"$file" : 'X\(/\)' \| \
30192 . : '\(.\)' 2>/dev/null ||
30194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30196 /^X\(\/\/\)$/{ s//\1/; q; }
30197 /^X\(\/\).*/{ s//\1/; q; }
30199 { if $as_mkdir_p; then
30200 mkdir -p $dirpart/$fdir
30202 as_dir=$dirpart/$fdir
30204 while test ! -d "$as_dir"; do
30205 as_dirs="$as_dir $as_dirs"
30206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30208 X"$as_dir" : 'X\(//\)[^/]' \| \
30209 X"$as_dir" : 'X\(//\)$' \| \
30210 X"$as_dir" : 'X\(/\)' \| \
30211 . : '\(.\)' 2>/dev/null ||
30213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30215 /^X\(\/\/\)$/{ s//\1/; q; }
30216 /^X\(\/\).*/{ s//\1/; q; }
30219 test ! -n "$as_dirs" || mkdir $as_dirs
30220 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30221 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30222 { (exit 1); exit 1; }; }; }
30224 # echo "creating $dirpart/$file"
30225 echo '# dummy' > "$dirpart/$file"
30231 # See if we are running on zsh, and set the options which allow our
30232 # commands through without removal of \ escapes.
30233 if test -n "${ZSH_VERSION+set}" ; then
30234 setopt NO_GLOB_SUBST
30237 cfgfile="${ofile}T"
30238 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30241 cat <<_LT_EOF >> "$cfgfile"
30244 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30245 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30247 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30249 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30250 # 2006, 2007 Free Software Foundation, Inc.
30252 # This file is part of GNU Libtool:
30253 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30255 # This program is free software; you can redistribute it and/or modify
30256 # it under the terms of the GNU General Public License as published by
30257 # the Free Software Foundation; either version 2 of the License, or
30258 # (at your option) any later version.
30260 # This program is distributed in the hope that it will be useful, but
30261 # WITHOUT ANY WARRANTY; without even the implied warranty of
30262 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30263 # General Public License for more details.
30265 # You should have received a copy of the GNU General Public License
30266 # along with this program; if not, a copy can be downloaded from
30267 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30268 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30269 # MA 02110-1301, USA.
30271 # As a special exception to the GNU General Public License, if you
30272 # distribute this file as part of a program that contains a
30273 # configuration script generated by Autoconf, you may include it under
30274 # the same distribution terms that you use for the rest of that program.
30277 # The names of the tagged configurations supported by this script.
30278 available_tags="CXX GCJ "
30280 # ### BEGIN LIBTOOL CONFIG
30282 # Which release of libtool.m4 was used?
30283 macro_version=$macro_version
30284 macro_revision=$macro_revision
30286 # Whether or not to build shared libraries.
30287 build_libtool_libs=$enable_shared
30289 # Whether or not to build static libraries.
30290 build_old_libs=$enable_static
30292 # What type of objects to build.
30295 # Whether or not to optimize for fast installation.
30296 fast_install=$enable_fast_install
30299 host_alias=$host_alias
30303 # The build system.
30304 build_alias=$build_alias
30308 # A sed program that does not truncate output.
30311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30312 Xsed="\$SED -e 1s/^X//"
30314 # A grep program that handles long lines.
30320 # A literal string matcher.
30323 # A BSD- or MS-compatible name lister.
30326 # Whether we need soft or hard links.
30329 # What is the maximum length of a command?
30330 max_cmd_len=$max_cmd_len
30332 # Object file suffix (normally "o").
30335 # Executable file suffix (normally "").
30338 # whether the shell understands "unset".
30341 # turn spaces into newlines.
30344 # turn newlines into spaces.
30347 # How to create reloadable object files.
30348 reload_flag=$lt_reload_flag
30349 reload_cmds=$lt_reload_cmds
30351 # Method to check whether dependent libraries are shared objects.
30352 deplibs_check_method=$lt_deplibs_check_method
30354 # Command to use when deplibs_check_method == "file_magic".
30355 file_magic_cmd=$lt_file_magic_cmd
30359 AR_FLAGS=$lt_AR_FLAGS
30361 # A symbol stripping program.
30364 # Commands used to install an old-style archive.
30366 old_postinstall_cmds=$lt_old_postinstall_cmds
30367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30372 # LTCC compiler flags.
30373 LTCFLAGS=$lt_CFLAGS
30375 # Take the output of nm and produce a listing of raw symbols and C names.
30376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30378 # Transform the output of nm in a proper C declaration.
30379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30381 # Transform the output of nm in a C name address pair.
30382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30384 # The name of the directory that contains temporary libtool files.
30387 # Shell to use when invoking shell scripts.
30390 # An echo program that does not interpret backslashes.
30393 # Used to examine libraries when file_magic_cmd begins with "file".
30394 MAGIC_CMD=$MAGIC_CMD
30396 # Must we lock files when doing compilation?
30397 need_locks=$lt_need_locks
30399 # Old archive suffix (normally "a").
30402 # Shared library suffix (normally ".so").
30403 shrext_cmds=$lt_shrext_cmds
30405 # The commands to extract the exported symbol list from a shared archive.
30406 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30408 # Variables whose values should be saved in libtool wrapper scripts and
30409 # restored at link time.
30410 variables_saved_for_relink=$lt_variables_saved_for_relink
30412 # Do we need the "lib" prefix for modules?
30413 need_lib_prefix=$need_lib_prefix
30415 # Do we need a version for libraries?
30416 need_version=$need_version
30418 # Library versioning type.
30419 version_type=$version_type
30421 # Shared library runtime path variable.
30422 runpath_var=$runpath_var
30424 # Shared library path variable.
30425 shlibpath_var=$shlibpath_var
30427 # Is shlibpath searched before the hard-coded library search path?
30428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30430 # Format of library name prefix.
30431 libname_spec=$lt_libname_spec
30433 # List of archive names. First name is the real one, the rest are links.
30434 # The last name is the one that the linker finds with -lNAME
30435 library_names_spec=$lt_library_names_spec
30437 # The coded name of the library, if different from the real name.
30438 soname_spec=$lt_soname_spec
30440 # Command to use after installation of a shared archive.
30441 postinstall_cmds=$lt_postinstall_cmds
30443 # Command to use after uninstallation of a shared archive.
30444 postuninstall_cmds=$lt_postuninstall_cmds
30446 # Commands used to finish a libtool library installation in a directory.
30447 finish_cmds=$lt_finish_cmds
30449 # As "finish_cmds", except a single script fragment to be evaled but
30451 finish_eval=$lt_finish_eval
30453 # Whether we should hardcode library paths into libraries.
30454 hardcode_into_libs=$hardcode_into_libs
30456 # Compile-time system search path for libraries.
30457 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30459 # Run-time system search path for libraries.
30460 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30462 # Whether dlopen is supported.
30463 dlopen_support=$enable_dlopen
30465 # Whether dlopen of programs is supported.
30466 dlopen_self=$enable_dlopen_self
30468 # Whether dlopen of statically linked programs is supported.
30469 dlopen_self_static=$enable_dlopen_self_static
30471 # Commands to strip libraries.
30472 old_striplib=$lt_old_striplib
30473 striplib=$lt_striplib
30476 # The linker used to build libraries.
30479 # Commands used to build an old-style archive.
30480 old_archive_cmds=$lt_old_archive_cmds
30482 # A language specific compiler.
30485 # Is the compiler the GNU compiler?
30488 # Compiler flag to turn off builtin functions.
30489 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30491 # How to pass a linker flag through the compiler.
30492 wl=$lt_lt_prog_compiler_wl
30494 # Additional compiler flags for building library objects.
30495 pic_flag=$lt_lt_prog_compiler_pic
30497 # Compiler flag to prevent dynamic linking.
30498 link_static_flag=$lt_lt_prog_compiler_static
30500 # Does compiler simultaneously support -c and -o options?
30501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30503 # Whether or not to add -lc for building shared libraries.
30504 build_libtool_need_lc=$archive_cmds_need_lc
30506 # Whether or not to disallow shared libs when runtime libs are static.
30507 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30509 # Compiler flag to allow reflexive dlopens.
30510 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30512 # Compiler flag to generate shared objects directly from archives.
30513 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30515 # Whether the compiler copes with passing no objects directly.
30516 compiler_needs_object=$lt_compiler_needs_object
30518 # Create an old-style archive from a shared archive.
30519 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30521 # Create a temporary old-style archive to link instead of a shared archive.
30522 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30524 # Commands used to build a shared archive.
30525 archive_cmds=$lt_archive_cmds
30526 archive_expsym_cmds=$lt_archive_expsym_cmds
30528 # Commands used to build a loadable module if different from building
30529 # a shared archive.
30530 module_cmds=$lt_module_cmds
30531 module_expsym_cmds=$lt_module_expsym_cmds
30533 # Whether we are building with GNU ld or not.
30534 with_gnu_ld=$lt_with_gnu_ld
30536 # Flag that allows shared libraries with undefined symbols to be built.
30537 allow_undefined_flag=$lt_allow_undefined_flag
30539 # Flag that enforces no undefined symbols.
30540 no_undefined_flag=$lt_no_undefined_flag
30542 # Flag to hardcode \$libdir into a binary during linking.
30543 # This must work even if \$libdir does not exist
30544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30546 # If ld is used when linking, flag to hardcode \$libdir into a binary
30547 # during linking. This must work even if \$libdir does not exist.
30548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30550 # Whether we need a single "-rpath" flag with a separated argument.
30551 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30553 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30554 # DIR into the resulting binary.
30555 hardcode_direct=$hardcode_direct
30557 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30558 # DIR into the resulting binary and the resulting library dependency is
30559 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30560 # library is relocated.
30561 hardcode_direct_absolute=$hardcode_direct_absolute
30563 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30564 # into the resulting binary.
30565 hardcode_minus_L=$hardcode_minus_L
30567 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30568 # into the resulting binary.
30569 hardcode_shlibpath_var=$hardcode_shlibpath_var
30571 # Set to "yes" if building a shared library automatically hardcodes DIR
30572 # into the library and all subsequent libraries and executables linked
30574 hardcode_automatic=$hardcode_automatic
30576 # Set to yes if linker adds runtime paths of dependent libraries
30577 # to runtime path list.
30578 inherit_rpath=$inherit_rpath
30580 # Whether libtool must link a program against all its dependency libraries.
30581 link_all_deplibs=$link_all_deplibs
30583 # Fix the shell variable \$srcfile for the compiler.
30584 fix_srcfile_path=$lt_fix_srcfile_path
30586 # Set to "yes" if exported symbols are required.
30587 always_export_symbols=$always_export_symbols
30589 # The commands to list exported symbols.
30590 export_symbols_cmds=$lt_export_symbols_cmds
30592 # Symbols that should not be listed in the preloaded symbols.
30593 exclude_expsyms=$lt_exclude_expsyms
30595 # Symbols that must always be exported.
30596 include_expsyms=$lt_include_expsyms
30598 # Commands necessary for linking programs (against libraries) with templates.
30599 prelink_cmds=$lt_prelink_cmds
30601 # Specify filename containing input files.
30602 file_list_spec=$lt_file_list_spec
30604 # How to hardcode a shared library path into an executable.
30605 hardcode_action=$hardcode_action
30607 # Dependencies to place before and after the objects being linked to
30608 # create a shared library.
30609 predep_objects=$lt_predep_objects
30610 postdep_objects=$lt_postdep_objects
30611 predeps=$lt_predeps
30612 postdeps=$lt_postdeps
30614 # The library search path used internally by the compiler when linking
30615 # a shared library.
30616 compiler_lib_search_path=$lt_compiler_lib_search_path
30618 # ### END LIBTOOL CONFIG
30624 cat <<\_LT_EOF >> "$cfgfile"
30625 # AIX sometimes has problems with the GCC collect2 program. For some
30626 # reason, if we set the COLLECT_NAMES environment variable, the problems
30627 # vanish in a puff of smoke.
30628 if test "X${COLLECT_NAMES+set}" != Xset; then
30630 export COLLECT_NAMES
30637 ltmain="$ac_aux_dir/ltmain.sh"
30640 # We use sed instead of cat because bash on DJGPP gets confused if
30641 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30642 # text mode, it properly converts lines to CR/LF. This bash problem
30643 # is reportedly fixed, but why not run on old versions too?
30644 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30645 || (rm -f "$cfgfile"; exit 1)
30649 cat << \_LT_EOF >> "$cfgfile"
30650 # func_dirname file append nondir_replacement
30651 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30652 # otherwise set result to NONDIR_REPLACEMENT.
30656 */*) func_dirname_result="${1%/*}${2}" ;;
30657 * ) func_dirname_result="${3}" ;;
30661 # func_basename file
30664 func_basename_result="${1##*/}"
30667 # func_stripname prefix suffix name
30668 # strip PREFIX and SUFFIX off of NAME.
30669 # PREFIX and SUFFIX must not contain globbing or regex special
30670 # characters, hashes, percent signs, but SUFFIX may contain a leading
30671 # dot (in which case that matches only a dot).
30674 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30675 # positional parameters, so assign one to ordinary parameter first.
30676 func_stripname_result=${3}
30677 func_stripname_result=${func_stripname_result#"${1}"}
30678 func_stripname_result=${func_stripname_result%"${2}"}
30684 func_opt_split_opt=${1%%=*}
30685 func_opt_split_arg=${1#*=}
30692 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30693 *) func_lo2o_result=${1} ;;
30698 *) # Bourne compatible functions.
30699 cat << \_LT_EOF >> "$cfgfile"
30700 # func_dirname file append nondir_replacement
30701 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30702 # otherwise set result to NONDIR_REPLACEMENT.
30705 # Extract subdirectory from the argument.
30706 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30707 if test "X$func_dirname_result" = "X${1}"; then
30708 func_dirname_result="${3}"
30710 func_dirname_result="$func_dirname_result${2}"
30714 # func_basename file
30717 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30720 # func_stripname prefix suffix name
30721 # strip PREFIX and SUFFIX off of NAME.
30722 # PREFIX and SUFFIX must not contain globbing or regex special
30723 # characters, hashes, percent signs, but SUFFIX may contain a leading
30724 # dot (in which case that matches only a dot).
30725 # func_strip_suffix prefix name
30729 .*) func_stripname_result=`$ECHO "X${3}" \
30730 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30731 *) func_stripname_result=`$ECHO "X${3}" \
30732 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30737 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30738 my_sed_long_arg='1s/^-[^=]*=//'
30743 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30744 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30750 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30755 case $lt_shell_append in
30757 cat << \_LT_EOF >> "$cfgfile"
30759 # func_append var value
30760 # Append VALUE to the end of shell variable VAR.
30768 cat << \_LT_EOF >> "$cfgfile"
30770 # func_append var value
30771 # Append VALUE to the end of shell variable VAR.
30781 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30782 || (rm -f "$cfgfile"; exit 1)
30784 mv -f "$cfgfile" "$ofile" ||
30785 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30789 cat <<_LT_EOF >> "$ofile"
30791 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30793 # The linker used to build libraries.
30796 # Commands used to build an old-style archive.
30797 old_archive_cmds=$lt_old_archive_cmds_CXX
30799 # A language specific compiler.
30800 CC=$lt_compiler_CXX
30802 # Is the compiler the GNU compiler?
30805 # Compiler flag to turn off builtin functions.
30806 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30808 # How to pass a linker flag through the compiler.
30809 wl=$lt_lt_prog_compiler_wl_CXX
30811 # Additional compiler flags for building library objects.
30812 pic_flag=$lt_lt_prog_compiler_pic_CXX
30814 # Compiler flag to prevent dynamic linking.
30815 link_static_flag=$lt_lt_prog_compiler_static_CXX
30817 # Does compiler simultaneously support -c and -o options?
30818 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30820 # Whether or not to add -lc for building shared libraries.
30821 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30823 # Whether or not to disallow shared libs when runtime libs are static.
30824 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30826 # Compiler flag to allow reflexive dlopens.
30827 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30829 # Compiler flag to generate shared objects directly from archives.
30830 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30832 # Whether the compiler copes with passing no objects directly.
30833 compiler_needs_object=$lt_compiler_needs_object_CXX
30835 # Create an old-style archive from a shared archive.
30836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30838 # Create a temporary old-style archive to link instead of a shared archive.
30839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30841 # Commands used to build a shared archive.
30842 archive_cmds=$lt_archive_cmds_CXX
30843 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30845 # Commands used to build a loadable module if different from building
30846 # a shared archive.
30847 module_cmds=$lt_module_cmds_CXX
30848 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30850 # Whether we are building with GNU ld or not.
30851 with_gnu_ld=$lt_with_gnu_ld_CXX
30853 # Flag that allows shared libraries with undefined symbols to be built.
30854 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30856 # Flag that enforces no undefined symbols.
30857 no_undefined_flag=$lt_no_undefined_flag_CXX
30859 # Flag to hardcode \$libdir into a binary during linking.
30860 # This must work even if \$libdir does not exist
30861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30863 # If ld is used when linking, flag to hardcode \$libdir into a binary
30864 # during linking. This must work even if \$libdir does not exist.
30865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30867 # Whether we need a single "-rpath" flag with a separated argument.
30868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30870 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30871 # DIR into the resulting binary.
30872 hardcode_direct=$hardcode_direct_CXX
30874 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30875 # DIR into the resulting binary and the resulting library dependency is
30876 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30877 # library is relocated.
30878 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30880 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30881 # into the resulting binary.
30882 hardcode_minus_L=$hardcode_minus_L_CXX
30884 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30885 # into the resulting binary.
30886 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30888 # Set to "yes" if building a shared library automatically hardcodes DIR
30889 # into the library and all subsequent libraries and executables linked
30891 hardcode_automatic=$hardcode_automatic_CXX
30893 # Set to yes if linker adds runtime paths of dependent libraries
30894 # to runtime path list.
30895 inherit_rpath=$inherit_rpath_CXX
30897 # Whether libtool must link a program against all its dependency libraries.
30898 link_all_deplibs=$link_all_deplibs_CXX
30900 # Fix the shell variable \$srcfile for the compiler.
30901 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30903 # Set to "yes" if exported symbols are required.
30904 always_export_symbols=$always_export_symbols_CXX
30906 # The commands to list exported symbols.
30907 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30909 # Symbols that should not be listed in the preloaded symbols.
30910 exclude_expsyms=$lt_exclude_expsyms_CXX
30912 # Symbols that must always be exported.
30913 include_expsyms=$lt_include_expsyms_CXX
30915 # Commands necessary for linking programs (against libraries) with templates.
30916 prelink_cmds=$lt_prelink_cmds_CXX
30918 # Specify filename containing input files.
30919 file_list_spec=$lt_file_list_spec_CXX
30921 # How to hardcode a shared library path into an executable.
30922 hardcode_action=$hardcode_action_CXX
30924 # Dependencies to place before and after the objects being linked to
30925 # create a shared library.
30926 predep_objects=$lt_predep_objects_CXX
30927 postdep_objects=$lt_postdep_objects_CXX
30928 predeps=$lt_predeps_CXX
30929 postdeps=$lt_postdeps_CXX
30931 # The library search path used internally by the compiler when linking
30932 # a shared library.
30933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30935 # ### END LIBTOOL TAG CONFIG: CXX
30939 cat <<_LT_EOF >> "$ofile"
30941 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30943 # The linker used to build libraries.
30946 # Commands used to build an old-style archive.
30947 old_archive_cmds=$lt_old_archive_cmds_GCJ
30949 # A language specific compiler.
30950 CC=$lt_compiler_GCJ
30952 # Is the compiler the GNU compiler?
30955 # Compiler flag to turn off builtin functions.
30956 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30958 # How to pass a linker flag through the compiler.
30959 wl=$lt_lt_prog_compiler_wl_GCJ
30961 # Additional compiler flags for building library objects.
30962 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30964 # Compiler flag to prevent dynamic linking.
30965 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30967 # Does compiler simultaneously support -c and -o options?
30968 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30970 # Whether or not to add -lc for building shared libraries.
30971 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30973 # Whether or not to disallow shared libs when runtime libs are static.
30974 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30976 # Compiler flag to allow reflexive dlopens.
30977 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30979 # Compiler flag to generate shared objects directly from archives.
30980 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30982 # Whether the compiler copes with passing no objects directly.
30983 compiler_needs_object=$lt_compiler_needs_object_GCJ
30985 # Create an old-style archive from a shared archive.
30986 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30988 # Create a temporary old-style archive to link instead of a shared archive.
30989 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30991 # Commands used to build a shared archive.
30992 archive_cmds=$lt_archive_cmds_GCJ
30993 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30995 # Commands used to build a loadable module if different from building
30996 # a shared archive.
30997 module_cmds=$lt_module_cmds_GCJ
30998 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31000 # Whether we are building with GNU ld or not.
31001 with_gnu_ld=$lt_with_gnu_ld_GCJ
31003 # Flag that allows shared libraries with undefined symbols to be built.
31004 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31006 # Flag that enforces no undefined symbols.
31007 no_undefined_flag=$lt_no_undefined_flag_GCJ
31009 # Flag to hardcode \$libdir into a binary during linking.
31010 # This must work even if \$libdir does not exist
31011 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31013 # If ld is used when linking, flag to hardcode \$libdir into a binary
31014 # during linking. This must work even if \$libdir does not exist.
31015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31017 # Whether we need a single "-rpath" flag with a separated argument.
31018 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31021 # DIR into the resulting binary.
31022 hardcode_direct=$hardcode_direct_GCJ
31024 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31025 # DIR into the resulting binary and the resulting library dependency is
31026 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31027 # library is relocated.
31028 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31030 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31031 # into the resulting binary.
31032 hardcode_minus_L=$hardcode_minus_L_GCJ
31034 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31035 # into the resulting binary.
31036 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31038 # Set to "yes" if building a shared library automatically hardcodes DIR
31039 # into the library and all subsequent libraries and executables linked
31041 hardcode_automatic=$hardcode_automatic_GCJ
31043 # Set to yes if linker adds runtime paths of dependent libraries
31044 # to runtime path list.
31045 inherit_rpath=$inherit_rpath_GCJ
31047 # Whether libtool must link a program against all its dependency libraries.
31048 link_all_deplibs=$link_all_deplibs_GCJ
31050 # Fix the shell variable \$srcfile for the compiler.
31051 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31053 # Set to "yes" if exported symbols are required.
31054 always_export_symbols=$always_export_symbols_GCJ
31056 # The commands to list exported symbols.
31057 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31059 # Symbols that should not be listed in the preloaded symbols.
31060 exclude_expsyms=$lt_exclude_expsyms_GCJ
31062 # Symbols that must always be exported.
31063 include_expsyms=$lt_include_expsyms_GCJ
31065 # Commands necessary for linking programs (against libraries) with templates.
31066 prelink_cmds=$lt_prelink_cmds_GCJ
31068 # Specify filename containing input files.
31069 file_list_spec=$lt_file_list_spec_GCJ
31071 # How to hardcode a shared library path into an executable.
31072 hardcode_action=$hardcode_action_GCJ
31074 # Dependencies to place before and after the objects being linked to
31075 # create a shared library.
31076 predep_objects=$lt_predep_objects_GCJ
31077 postdep_objects=$lt_postdep_objects_GCJ
31078 predeps=$lt_predeps_GCJ
31079 postdeps=$lt_postdeps_GCJ
31081 # The library search path used internally by the compiler when linking
31082 # a shared library.
31083 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31085 # ### END LIBTOOL TAG CONFIG: GCJ
31093 cat >>$CONFIG_STATUS <<\_ACEOF
31095 { (exit 0); exit 0; }
31097 chmod +x $CONFIG_STATUS
31098 ac_clean_files=$ac_clean_files_save
31101 # configure is writing to config.log, and then calls config.status.
31102 # config.status does its own redirection, appending to config.log.
31103 # Unfortunately, on DOS this fails, as config.log is still kept open
31104 # by configure, so config.status won't be able to write to it; its
31105 # output is simply discarded. So we exec the FD to /dev/null,
31106 # effectively closing config.log, so it can be properly (re)opened and
31107 # appended to by config.status. When coming back to configure, we
31108 # need to make the FD available again.
31109 if test "$no_create" != yes; then
31111 ac_config_status_args=
31112 test "$silent" = yes &&
31113 ac_config_status_args="$ac_config_status_args --quiet"
31115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31118 # would make configure fail if this is the last instruction.
31119 $ac_cs_success || { (exit 1); exit 1; }
31123 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31125 if test "$no_recursion" != yes; then
31127 # Remove --cache-file and --srcdir arguments so they do not pile up.
31128 ac_sub_configure_args=
31130 eval "set x $ac_configure_args"
31134 if test -n "$ac_prev"; then
31139 -cache-file | --cache-file | --cache-fil | --cache-fi \
31140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31141 ac_prev=cache_file ;;
31142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31146 --config-cache | -C)
31148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31158 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31160 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31164 # Always prepend --prefix to ensure using the same prefix
31165 # in subdir configurations.
31166 ac_arg="--prefix=$prefix"
31168 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31170 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31173 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31175 # Do not complain, so a configure script can configure whichever
31176 # parts of a large source tree are present.
31177 test -d "$srcdir/$ac_dir" || continue
31179 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31180 echo "$as_me: configuring in $ac_dir" >&6;}
31181 { if $as_mkdir_p; then
31186 while test ! -d "$as_dir"; do
31187 as_dirs="$as_dir $as_dirs"
31188 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31190 X"$as_dir" : 'X\(//\)[^/]' \| \
31191 X"$as_dir" : 'X\(//\)$' \| \
31192 X"$as_dir" : 'X\(/\)' \| \
31193 . : '\(.\)' 2>/dev/null ||
31195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31197 /^X\(\/\/\)$/{ s//\1/; q; }
31198 /^X\(\/\).*/{ s//\1/; q; }
31201 test ! -n "$as_dirs" || mkdir $as_dirs
31202 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31204 { (exit 1); exit 1; }; }; }
31208 if test "$ac_dir" != .; then
31209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31210 # A "../" for each directory in $ac_dir_suffix.
31211 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31213 ac_dir_suffix= ac_top_builddir=
31217 .) # No --srcdir option. We are building in place.
31219 if test -z "$ac_top_builddir"; then
31222 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31224 [\\/]* | ?:[\\/]* ) # Absolute path.
31225 ac_srcdir=$srcdir$ac_dir_suffix;
31226 ac_top_srcdir=$srcdir ;;
31227 *) # Relative path.
31228 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31229 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31232 # Do not use `cd foo && pwd` to compute absolute paths, because
31233 # the directories may not exist.
31235 .) ac_abs_builddir="$ac_dir";;
31238 .) ac_abs_builddir=`pwd`;;
31239 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31240 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31243 case $ac_abs_builddir in
31244 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31246 case ${ac_top_builddir}. in
31247 .) ac_abs_top_builddir=$ac_abs_builddir;;
31248 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31249 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31252 case $ac_abs_builddir in
31253 .) ac_abs_srcdir=$ac_srcdir;;
31256 .) ac_abs_srcdir=$ac_abs_builddir;;
31257 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31258 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31261 case $ac_abs_builddir in
31262 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31264 case $ac_top_srcdir in
31265 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31266 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31267 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31274 # Check for guested configure; otherwise get Cygnus style configure.
31275 if test -f "$ac_srcdir/configure.gnu"; then
31276 ac_sub_configure=$ac_srcdir/configure.gnu
31277 elif test -f "$ac_srcdir/configure"; then
31278 ac_sub_configure=$ac_srcdir/configure
31279 elif test -f "$ac_srcdir/configure.in"; then
31280 # This should be Cygnus configure.
31281 ac_sub_configure=$ac_aux_dir/configure
31283 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31284 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31288 # The recursion is here.
31289 if test -n "$ac_sub_configure"; then
31290 # Make the cache file name correct relative to the subdirectory.
31291 case $cache_file in
31292 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31293 *) # Relative path.
31294 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31297 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31298 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31299 # The eval makes quoting arguments work.
31300 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31301 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31302 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31303 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31304 { (exit 1); exit 1; }; }