From fcc3fd253647d068e5a4cd3a354b0766fee6e75c Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Wed, 30 Apr 2008 20:47:48 +0200 Subject: [PATCH] Makefile.am, configure.ac: go down into java and tests, make java compilation somewhat conditional (needs improvements) --- Makefile.am | 6 +++++- configure.ac | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3993669a..cf6dfaa5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,8 +8,12 @@ if PYTHONFOUND PYTHONDIR = python endif endif +if JAVAFOUND +JAVADIR = java +endif + -SUBDIRS = src ext cpp examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(DOC) +SUBDIRS = src ext cpp examples sounds plugins $(PYTHONDIR) $(SWIGDIR) $(JAVADIR) $(DOC) tests EXTRA_DIST = bootstrap VERSION docs: diff --git a/configure.ac b/configure.ac index 2e2a8e43..3fcdf0ed 100644 --- a/configure.ac +++ b/configure.ac @@ -245,6 +245,10 @@ dnl Check for Puredata AC_CHECK_HEADER(m_pd.h,PUREDATA=y,AC_MSG_WARN([Puredata header not found.])) AM_CONDITIONAL(PUREDATAFOUND, test "${PUREDATA}" = "y") +dnl Check for Java +AC_CHECK_HEADER(jni.h,JAVAHEADERS=y,AC_MSG_WARN([Java header jni.h not found.])) +AM_CONDITIONAL(JAVAFOUND, test "${JAVAHEADERS}" = "y") + dnl Create Makefiles AC_OUTPUT([ Makefile -- 2.26.2