From 2423a1e43e6913bf219634576b2bfe55d5289fab Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 11 Mar 2013 10:10:54 +0100 Subject: [PATCH] build-sys: check for docbook xsl-stylesheets Reported-by: C Hanish Menon --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2bbc235..90573e2 100644 --- a/configure.ac +++ b/configure.ac @@ -106,7 +106,14 @@ AS_IF([test "x$enable_manpages" != xno], [ AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [ AC_MSG_ERROR([*** Manpages requested but xsltproc not found]) ]) - AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes]) + AC_CHECK_FILES([ + /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl + /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl + ],[have_docbook=yes]) + AS_IF([test "x$enable_manpages" = xyes -a "x$have_docbook" = x], [ + AC_MSG_ERROR([*** Manpages requested but docbook not found]) + ]) + AS_IF([test "x$XSLTPROC" != x -a "x$have_docbook" != x], [have_manpages=yes]) ]) AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"]) -- 2.7.4