diff configure.in @ 92:35a3bb5c3ffd

Java bindings (with simple test) now working. Unified Python and Java bindings tests.
author Jamie Bullock <jamie@postlude.co.uk>
date Thu, 06 Sep 2007 14:05:37 +0000
parents 8553b27a5062
children a159098a759e
line wrap: on
line diff
--- a/configure.in	Wed Sep 05 17:57:09 2007 +0000
+++ b/configure.in	Thu Sep 06 14:05:37 2007 +0000
@@ -85,6 +85,15 @@
     echo
     ])
 
+dnl set a specific java compiler
+AC_ARG_WITH(javac,
+	[  --with-javac=compiler  set a specific java compiler (determined automatically if not set) ],
+	[JAVAC="$withval"
+	echo
+	echo "JAVAC is set to $withval"
+	echo
+	])
+
 dnl If --enable-swig, make with java bindings
 AC_ARG_WITH(java,
     [ --with-java If --enable-swig - make with java bindings (default=no) ],
@@ -150,12 +159,14 @@
 fi
 
 if [[ "$with_java" = "true" ]] ; then
-    AC_PROG_JAVAC
+    if test "$JAVAC" = ""
+    then
+	AC_PROG_JAVAC
+    fi
     if test "$JAVAC" = "javac"
     then
 	AC_JNI_INCLUDE_DIR
     
-
 	for JNI_INCLUDE_DIR in $JNI_INCLUDE_DIRS
 	do
 	    CFLAGS="$CFLAGS -I$JNI_INCLUDE_DIR"