[PATCH util-macros 2/3] XORG_CHECK_SGML_DOCTOOLS: add interface for xorg stylesheet

Gaetan Nadon memsize at videotron.ca
Fri Jun 25 12:36:11 PDT 2010


Add STYLESHEET_SRCDIR for directory location
and XSL_STLESHEET for the name of the xorg style sheet

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 xorg-macros.m4.in |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 2dbf615..151c517 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -216,13 +216,20 @@ PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
          fi])
     ])
 
+# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
+# the path and the name of the doc stylesheet
 if test "x$XORG_SGML_PATH" != "x" ; then
    AC_MSG_RESULT([$XORG_SGML_PATH])
+   STYLESHEET_SRCDIR = $XORG_SGML_PATH/X11
+   XSL_STYLESHEET = $STYLESHEET_SRCDIR/xorg.xsl
 else
    AC_MSG_RESULT([no])
 fi
 
 AC_SUBST(XORG_SGML_PATH)
+AC_SUBST(STYLESHEET_SRCDIR)
+AC_SUBST(XSL_STYLESHEET)
+AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"])
 ]) # XORG_CHECK_SGML_DOCTOOLS
 
 # XORG_CHECK_LINUXDOC
-- 
1.6.0.4



More information about the xorg-devel mailing list