X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=396e3ec21345c10b6bb424e7ea8492332e397b75;hb=84b448ee060c9ca40ca9324c0df9a49f4f4bd32b;hp=d28306149760eabaddcd394f393d3cd2bab5056b;hpb=2f004b4bc15c891b474adcba59a2224f009828af;p=libsigrok.git diff --git a/configure.ac b/configure.ac index d2830614..396e3ec2 100644 --- a/configure.ac +++ b/configure.ac @@ -434,7 +434,7 @@ CXXFLAGS="$CXXFLAGS -Iinclude/libsigrok -I${srcdir}/include -Ibindings/cxx -Ibin # Find Java compiler and JNI includes for Java bindings. AC_CHECK_PROG([HAVE_JAVAC], [javac], [yes], [no]) -if test "x$HAVE_JAVAC" = "xyes"; then +if test "x$HAVE_JAVAC" = "xyes" && test "x$BINDINGS_JAVA" = "xyes"; then AX_PROG_JAVAC if test "x$JNI_INCLUDE_DIRS" = "xauto"; then if test "x$cross_compiling" = "xyes"; then