diff --git a/make/Docs.gmk b/make/Docs.gmk index 4ef887fda7..a9fb7e2f2b 100644 --- a/make/Docs.gmk +++ b/make/Docs.gmk @@ -517,7 +517,7 @@ $(foreach m, $(ALL_MODULES), \ ) \ ) -ifneq ($(PANDOC), ) +ifeq ($(ENABLE_PANDOC), true) # For all markdown files in $module/share/specs directories, convert them to # html, if we have pandoc (otherwise we'll just skip this). diff --git a/make/autoconf/basics.m4 b/make/autoconf/basics.m4 index 02925e9139..e4fa23acad 100644 --- a/make/autoconf/basics.m4 +++ b/make/autoconf/basics.m4 @@ -610,7 +610,14 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS], BASIC_PATH_PROGS(DF, df) BASIC_PATH_PROGS(CPIO, [cpio bsdcpio]) BASIC_PATH_PROGS(NICE, nice) + BASIC_PATH_PROGS(PANDOC, pandoc) + if test -n "$PANDOC"; then + ENABLE_PANDOC="true" + else + ENABLE_PANDOC="false" + fi + AC_SUBST(ENABLE_PANDOC) ]) ############################################################################### diff --git a/make/autoconf/spec.gmk.in b/make/autoconf/spec.gmk.in index f2b2e56bc7..445c7a49c3 100644 --- a/make/autoconf/spec.gmk.in +++ b/make/autoconf/spec.gmk.in @@ -761,6 +761,7 @@ MSVCR_DLL:=@MSVCR_DLL@ MSVCP_DLL:=@MSVCP_DLL@ UCRT_DLL_DIR:=@UCRT_DLL_DIR@ STLPORT_LIB:=@STLPORT_LIB@ +ENABLE_PANDOC:=@ENABLE_PANDOC@ #################################################### # diff --git a/make/launcher/LauncherCommon.gmk b/make/launcher/LauncherCommon.gmk index 0c77eda7b7..520f6feaa0 100644 --- a/make/launcher/LauncherCommon.gmk +++ b/make/launcher/LauncherCommon.gmk @@ -203,7 +203,7 @@ ifeq ($(OPENJDK_TARGET_OS_TYPE), unix) ifneq ($(MAN_FILES_MD), ) # If we got markdown files, ignore the troff files - ifeq ($(PANDOC), ) + ifeq ($(ENABLE_PANDOC), false) $(info Warning: pandoc not found. Not generating man pages) else # Create dynamic man pages from markdown using pandoc. We need