aboutsummaryrefslogtreecommitdiff
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1999-10-02 00:19:01 +0000
committerTom Tromey <tromey@gcc.gnu.org>1999-10-02 00:19:01 +0000
commit4b68fe8a3665fc18f0c4774e00cbe440a4986c8b (patch)
tree46596da76866c4956605f9b7148762c76b027f00 /libjava/configure.in
parent95f1a0447f9be57101aa02ac8182a275c3ecb60c (diff)
downloadgcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.zip
gcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.tar.gz
gcc-4b68fe8a3665fc18f0c4774e00cbe440a4986c8b.tar.bz2
configure: Rebuilt.
* configure: Rebuilt. * configure.in: Set classpath when invoking gcj. Use changequote around sed invocation. * java/net/natPlainSocketImpl.cc: Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natPlainDatagramSocketImpl.cc (setTimeToLive): Fixed typo in exception string. (getTimeToLive): Likewise. Stub native functions if DISABLE_JAVA_NET is defined. * java/net/natInetAddress.cc: Stub native functions if DISABLE_JAVA_NET is defined. * configure.host: Disable java.net for mips-tx39. * configure, include/config.h.in: Rebuilt. * acconfig.h (DISABLE_JAVA_NET): Undefine. * configure.in: Added --disable-java-net and new define `DISABLE_JAVA_NET'. From-SVN: r29759
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in18
1 files changed, 17 insertions, 1 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index 6614370..375242b 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -50,6 +50,19 @@ AC_ARG_ENABLE(interpreter,
AC_DEFINE(INTERPRETER)
fi)
+dnl See if the user wants to disable java.net. This is the mildly
+dnl ugly way that we admit that target-side configuration sucks.
+AC_ARG_ENABLE(java-net,
+[ --disable-java-net disable java.net])
+
+dnl Whether java.net is built by default can depend on the target.
+if test -n "$enable_java_net"; then
+ enable_java_net=${enable_java_net_default-yes}
+fi
+if test "$enable_java_net" != yes; then
+ AC_DEFINE(DISABLE_JAVA_NET)
+fi
+
dnl If the target is an eCos system, use the appropriate eCos
dnl I/O routines.
dnl FIXME: this should not be a local option but a global target
@@ -516,7 +529,9 @@ if test "$GCJ" = ""; then
if test -z "${with_multisubdir}"; then
builddotdot=.
else
+changequote(<<,>>)
builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
+changequote([,])
fi
dir="`cd ${builddotdot}/../../gcc && pwd`"
GCJ="$dir/gcj -B$dir/"
@@ -533,7 +548,8 @@ cat > conftest.java << 'END'
public class conftest { }
END
use_fuse=yes
-$GCJ -fuse-divide-subroutine -fsyntax-only conftest.java > /dev/null 2>&1 \
+$GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
+ conftest.java > /dev/null 2>&1 \
|| use_fuse=no
rm -f conftest.java
if test "$use_fuse" = no; then