[m-rev.] For review: Have configure decide whether to install the Java grade
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Feb 9 18:47:11 AEDT 2004
On 09-Feb-2004, James Goddard <goddardjames at yahoo.com> wrote:
> Have the configure script decide whether to install the Java grade.
...
> +++ aclocal.m4 9 Feb 2004 07:12:48 -0000
> #-----------------------------------------------------------------------------#
> +#
> +# Java configuration
> +#
> +AC_DEFUN(MERCURY_CHECK_JAVA,
> +[
> +AC_PATH_PROG(JAVAC, javac)
> +
> +AC_MSG_CHECKING(for Java SDK)
> +AC_CACHE_VAL(mercury_cv_java, [
> +if test "$JAVAC" != ""; then
> + mercury_cv_java="yes"
> +else
> + mercury_cv_java="no"
> +fi
> +])
We currently rely on some features of J2SE 1.2, right?
I think it would be a good idea for configure to test
that you can compile and run a simple test program conftest.java
which uses those features, similar to the way we check $BOOTSTRAP_MC.
Otherwise that looks fine.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list