# HG changeset patch # User Rik # Date 1385226620 28800 # Node ID 4372645ff7e3af1cc8902ab3d1be1755e248d394 # Parent bcd49640ed0fe00b5db982045dab99a2d66b79d0 Add --disable-java option to configure. * Makefile.in: Add ENABLE_JAVA Makefile variable that is substituted by configure. * configure.ac: Add AC_ARG_ENABLE macro call with ENABLE_JAVA defaulted to yes. * src/octave.mk: Call Octave configure script with --disable-java if MXE option has been specified. diff -r bcd49640ed0f -r 4372645ff7e3 Makefile.in --- a/Makefile.in Sat Nov 23 09:05:40 2013 -0800 +++ b/Makefile.in Sat Nov 23 09:10:20 2013 -0800 @@ -41,6 +41,9 @@ # enabled (experimental; requires 64-bit system and compiler). ENABLE_64 := @ENABLE_64@ +# Attempt to build with support for Java. +ENABLE_JAVA := @ENABLE_JAVA@ + # Attempt to build LLVM and enable Octave's experimental JIT compiler. ENABLE_JIT := @ENABLE_JIT@ diff -r bcd49640ed0f -r 4372645ff7e3 configure.ac --- a/configure.ac Sat Nov 23 09:05:40 2013 -0800 +++ b/configure.ac Sat Nov 23 09:10:20 2013 -0800 @@ -80,6 +80,12 @@ [if test "$enableval" = no; then ENABLE_JIT=no; fi], []) AC_SUBST(ENABLE_JIT) +ENABLE_JAVA=yes +AC_ARG_ENABLE([java], + [AS_HELP_STRING([--disable-java], [Disable Java])], + [if test "$enableval" = no; then ENABLE_JAVA=no; fi], []) +AC_SUBST(ENABLE_JAVA) + MXE_NATIVE_BUILD=no AC_ARG_ENABLE([native-build], [AS_HELP_STRING([--enable-native-build], diff -r bcd49640ed0f -r 4372645ff7e3 src/octave.mk --- a/src/octave.mk Sat Nov 23 09:05:40 2013 -0800 +++ b/src/octave.mk Sat Nov 23 09:10:20 2013 -0800 @@ -13,9 +13,13 @@ $(PKG)_DEPS := arpack curl fftw fltk $($(PKG)_FONTCONFIG) gl2ps glpk gnuplot graphicsmagick hdf5 lapack pcre pstoedit qhull qrupdate qscintilla qt readline suitesparse texinfo zlib ifeq ($(ENABLE_JIT),yes) $(PKG)_DEPS += llvm -$(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --enable-jit + $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --enable-jit else -$(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --disable-jit + Remove $(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS := --disable-jit +endif + +ifeq ($(ENABLE_JAVA),no) + $(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS := --disable-java endif ifeq ($(ENABLE_OPENBLAS),yes) @@ -76,6 +80,7 @@ $($(PKG)_BLAS_OPTION) \ $($(PKG)_CROSS_CONFIG_OPTIONS) \ $($(PKG)_ENABLE_64_CONFIGURE_OPTIONS) \ + $($(PKG)_ENABLE_JAVA_CONFIGURE_OPTIONS) \ $($(PKG)_ENABLE_JIT_CONFIGURE_OPTIONS) \ $($(PKG)_EXTRA_CONFIGURE_OPTIONS) \ PKG_CONFIG='$(MXE_PKG_CONFIG)' \