[Libguestfs] [PATCH] java: support OpenJDK 10+

Hilko Bengen bengen at hilluzination.de
Sun May 6 14:11:36 UTC 2018


* Pino Toscano:

> @@ -163,6 +161,7 @@ if test "x$with_java" != "xno"; then
>      AC_SUBST(JAR_INSTALL_DIR)
>      AC_SUBST(JNI_INSTALL_DIR)
>      AC_SUBST(JNI_VERSION_INFO)
> +    AM_CONDITIONAL([HAVE_JAVAH],[test -n "$JAVAH"])
>  fi
>  
>  AM_CONDITIONAL([HAVE_JAVA],[test "x$with_java" != "xno" && test -n "$JAVAC"])

The AM_CONDITIONAL must be moved outside the if ... fi shell
conditional, otherwise configure will fail if invoked with
--without-java.

Cheers,
-Hilko




More information about the Libguestfs mailing list