[m-rev.] diff: set explicit classpath in configure

Peter Wang novalazy at gmail.com
Thu Sep 2 11:37:09 AEST 2010


Branches: main

aclocal.m4:
        Set CLASSPATH=. when checking the Java interpreter works, in case the
        user is silly enough to have a CLASSPATH which doesn't contain the
        current directory.  The conftest.class file would not be found then.

diff --git a/aclocal.m4 b/aclocal.m4
index 5c6566e..6fc261e 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -382,7 +382,7 @@ EOF
 		echo "$JAVAC" conftest.java >&AC_FD_CC 2>&1 &&
 		"$JAVAC" conftest.java >&AC_FD_CC 2>&1 &&
 		echo "$JAVA_INTERPRETER" conftest > conftest.out 2>&AC_FD_CC &&
-		"$JAVA_INTERPRETER" conftest > conftest.out 2>&AC_FD_CC &&
+		CLASSPATH=. "$JAVA_INTERPRETER" conftest > conftest.out 2>&AC_FD_CC &&
 		test "`tr -d '\015' < conftest.out`" = "Hello, world"
 	then
 		mercury_cv_java="yes"

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list