--- a/common/autoconf/jdk-options.m4 Wed Apr 19 10:44:40 2017 +0200
+++ b/common/autoconf/jdk-options.m4 Wed Apr 19 10:58:18 2017 +0200
@@ -154,6 +154,41 @@
AC_SUBST(ENABLE_HEADLESS_ONLY)
+ # Should we build the complete docs, or just a lightweight version?
+ AC_ARG_ENABLE([full-docs], [AS_HELP_STRING([--enable-full-docs],
+ [build complete documentation @<:@disabled@:>@])])
+
+ # Verify dependencies
+ AC_MSG_CHECKING([for graphviz dot])
+ if test "x$DOT" != "x"; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no, cannot generate full docs])
+ FULL_DOCS_DEP_MISSING=true
+ fi
+
+ AC_MSG_CHECKING([full docs])
+ if test "x$enable_full_docs" = xyes; then
+ if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then
+ AC_MSG_RESULT([no, missing dependencies])
+ HELP_MSG_MISSING_DEPENDENCY([dot])
+ AC_MSG_ERROR([Cannot enable full docs with missing dependencies. See above. $HELP_MSG])
+ else
+ ENABLE_FULL_DOCS=true
+ AC_MSG_RESULT([yes, forced])
+ fi
+ elif test "x$enable_full_docs" = xno; then
+ ENABLE_FULL_DOCS=false
+ AC_MSG_RESULT([no, forced])
+ elif test "x$enable_full_docs" = x; then
+ ENABLE_FULL_DOCS=false
+ AC_MSG_RESULT([no, default])
+ else
+ AC_MSG_ERROR([--enable-full-docs can only take yes or no])
+ fi
+
+ AC_SUBST(ENABLE_FULL_DOCS)
+
# Choose cacerts source file
AC_ARG_WITH(cacerts-file, [AS_HELP_STRING([--with-cacerts-file],
[specify alternative cacerts file])])