[PATCH libXmu 1/2] config: use HAVE_STYLESHEET now defined in XORG_CHECK_SGML_DOCTOOLS

Gaetan Nadon memsize at videotron.ca
Fri Jun 25 12:38:16 PDT 2010


Also use STYLESHEET_SRCDIR XSL_STYLESHEET

This requires version 1.10 of util-macros

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 configure.ac    |    7 +++----
 doc/Makefile.am |    3 ---
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index 936e0ae..5ed4864 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,16 +15,15 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
 
 AM_MAINTAINER_MODE
 
-# Require xorg-macros minimum of 1.7 for XORG_CHECK_SGML_DOCTOOLS
+# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
 m4_ifndef([XORG_MACROS_VERSION],
-          [m4_fatal([must install xorg-macros 1.7 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.7)
+          [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.10)
 XORG_DEFAULT_OPTIONS
 XORG_ENABLE_DOCS
 XORG_WITH_XMLTO(0.0.20)
 XORG_WITH_FOP
 XORG_CHECK_SGML_DOCTOOLS(1.5)
-AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XORG_SGML_PATH" != "x"])
 
 AM_CONFIG_HEADER([config.h])
 
diff --git a/doc/Makefile.am b/doc/Makefile.am
index cd2392e..05f61f7 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -34,9 +34,6 @@ endif
 CLEANFILES = Xmu.txt Xmu.html Xmu.pdf Xmu.ps xorg.css
 
 if HAVE_STYLESHEETS
-STYLESHEET_SRCDIR = $(XORG_SGML_PATH)/X11
-
-XSL_STYLESHEET = $(STYLESHEET_SRCDIR)/xorg.xsl
 XMLTO_FLAGS = -m $(XSL_STYLESHEET)
 
 doc_DATA += xorg.css
-- 
1.6.0.4

It was not sufficient to check for a non-zero SGML path.
The style sheet may still be missing (old package version)




More information about the xorg-devel mailing list