mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-24 09:06:21 -04:00
docs: Abort configure if docbook-xsl package is missing
The docbook-xsl package includes all the stylesheets required to build the docs without internet access. Test: One way to emulate missing style sheets is to move /etc/xml/catalog file to a different location. Doing so should cause configure to fail with "checking for docbook stylesheets... no" v2: add AC_MSG_RESULT (Pekka) Signed-off-by: Harish Krupo <harishkrupo@gmail.com>
This commit is contained in:
parent
de64489b95
commit
b77cf86290
2 changed files with 14 additions and 16 deletions
26
configure.ac
26
configure.ac
|
|
@ -129,19 +129,6 @@ fi
|
|||
AC_PATH_PROG(XSLTPROC, xsltproc)
|
||||
AM_CONDITIONAL([HAVE_XSLTPROC], [test "x$XSLTPROC" != "x"])
|
||||
|
||||
AC_MSG_CHECKING([for docbook manpages stylesheet])
|
||||
MANPAGES_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
||||
AC_PATH_PROGS_FEATURE_CHECK([XSLTPROC_TMP], [xsltproc],
|
||||
AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$MANPAGES_STYLESHEET" > /dev/null 2>&1`],
|
||||
[HAVE_MANPAGES_STYLESHEET=yes]))
|
||||
if test "x$HAVE_MANPAGES_STYLESHEET" = "xyes"; then
|
||||
AM_CONDITIONAL([HAVE_MANPAGES_STYLESHEET], true)
|
||||
AC_SUBST(MANPAGES_STYLESHEET)
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AM_CONDITIONAL([HAVE_MANPAGES_STYLESHEET], false)
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL(BUILD_DOCS, [test x$enable_documentation = xyes])
|
||||
if test "x$enable_documentation" = "xyes"; then
|
||||
|
|
@ -177,6 +164,19 @@ if test "x$enable_documentation" = "xyes"; then
|
|||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([yes])])
|
||||
|
||||
AC_MSG_CHECKING([for docbook stylesheets])
|
||||
DOCS_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
||||
AC_PATH_PROGS_FEATURE_CHECK([XSLTPROC_TMP], [xsltproc],
|
||||
AS_IF([`"$ac_path_XSLTPROC_TMP" --nonet "$DOCS_STYLESHEET" > /dev/null 2>&1`],
|
||||
[HAVE_DOCS_STYLESHEET=yes]))
|
||||
if test "x$HAVE_DOCS_STYLESHEET" != "xyes"; then
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_ERROR([Documentation build requested but docbook-xsl stylesheets are not found. Install the docbook-xsl package or disable the documentation using --disable-documentation])
|
||||
fi
|
||||
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_SUBST(DOCS_STYLESHEET)
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
doc/doxygen/wayland.doxygen
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue