From 37bbe1b9487e6ce1526a34b25c7d8ff6b5f7c0cb Mon Sep 17 00:00:00 2001 From: prascle Date: Mon, 13 Mar 2006 19:09:01 +0000 Subject: [PATCH] PR: conditional definition --- doc/Makefile.am | 6 +++++- salome_adm/unix/config_files/check_htmlgen.m4 | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 30c621e67..4a75f2797 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -9,12 +9,16 @@ include $(top_srcdir)/salome_adm/unix/make_common_starter.am SUBDIRS = salome -doc_DATA = \ +doc_DATA = + +if RST2HTML_IS_OK + doc_DATA += \ index.html \ UnitTests.html \ SALOME_Application.html \ INSTALL.html \ kernel_resources.html +endif EXTRA_DIST=$(doc_DATA) diff --git a/salome_adm/unix/config_files/check_htmlgen.m4 b/salome_adm/unix/config_files/check_htmlgen.m4 index d8bcb0cdc..6f46e9fba 100644 --- a/salome_adm/unix/config_files/check_htmlgen.m4 +++ b/salome_adm/unix/config_files/check_htmlgen.m4 @@ -54,5 +54,7 @@ if test "x$RST2HTML" = "x"; then fi AC_SUBST(RST2HTML) +AM_CONDITIONAL(RST2HTML_IS_OK, [test x"$rst2html_ok" = xyes]) + ])dnl dnl -- 2.39.2