summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-01 22:09:49 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-06-01 22:09:49 +0000
commitc7ce17df07c8c8dd25698e25eec66d5e96895234 (patch)
tree6248f32743de25a8dbf29aa046032495dd0088cb
parent3be2182d1a4e4c2216405c62745b98daa2e7b0e2 (diff)
downloadclasspath-c7ce17df07c8c8dd25698e25eec66d5e96895234.tar.gz
2008-06-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
* configure.ac: Only run javac check if examples, tools and/or class library are being built. * scripts/check_jni_methods.sh.in: Remove duplicates in the list of JNI methods for when builddir==srcdir.
-rw-r--r--ChangeLog9
-rw-r--r--configure.ac12
-rw-r--r--scripts/check_jni_methods.sh.in2
3 files changed, 19 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 36d4cdeb6..7a17d4602 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2008-06-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
+ * configure.ac: Only run javac check
+ if examples, tools and/or class library are
+ being built.
+ * scripts/check_jni_methods.sh.in:
+ Remove duplicates in the list of JNI methods
+ for when builddir==srcdir.
+
+2008-06-01 Andrew John Hughes <gnu_andrew@member.fsf.org>
+
* lib/Makefile.am:
Replace explicit mkinstalldirs with $(mkinstalldirs).
diff --git a/configure.ac b/configure.ac
index 78ef7fb76..891d7d0d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -728,9 +728,6 @@ if test "x${COMPILE_JNI}" = xyes; then
AC_CONFIG_LINKS([$ac_config_links_1])
fi
-AC_PROG_JAVAC
-CLASSPATH_JAVAC_MEM_CHECK
-
CLASSPATH_WITH_CLASSLIB
dnl -----------------------------------------------------------
@@ -882,6 +879,15 @@ esac;
AM_CONDITIONAL(USE_PREBUILT_GLIBJ_ZIP, test x$use_glibj_zip = xtrue)
AC_SUBST(PATH_TO_GLIBJ_ZIP)
+# Check for javac if we need to build either the class library,
+# the examples or the tools
+if test "x${use_glibj_zip}" = xfalse || \
+ test "x${EXAMPLESDIR}" != x || \
+ test "x${TOOLSDIR}" != x; then
+ AC_PROG_JAVAC
+ CLASSPATH_JAVAC_MEM_CHECK
+fi
+
dnl -----------------------------------------------------------
dnl Build with Escher based X peers.
dnl -----------------------------------------------------------
diff --git a/scripts/check_jni_methods.sh.in b/scripts/check_jni_methods.sh.in
index 835f7b4b1..2a114d340 100644
--- a/scripts/check_jni_methods.sh.in
+++ b/scripts/check_jni_methods.sh.in
@@ -11,7 +11,7 @@ TMPFILE3=/tmp/check-jni-methods.$$.3
# from the java source files.
grep -h '^JNIEXPORT .* Java_' @abs_top_builddir@/include/*.h @abs_top_srcdir@/include/*.h | \
LC_ALL=C sed -e 's,.*JNICALL \(Java_[a-z_A-Z0-9]*\).*$,\1,' | \
- sort > $TMPFILE
+ sort -u > $TMPFILE
# Find all methods in the JNI C source files.
find @abs_top_srcdir@/native/jni -name \*.c | \