configure.ac: make DocBook processing optional

Disable the HTML documentation generator by default.  Most users will
pick it from the web site.
This commit is contained in:
Max Kellermann 2009-02-04 15:25:57 +01:00
parent 824d299eb1
commit cd98a72ca6
2 changed files with 13 additions and 8 deletions

View File

@ -1006,16 +1006,21 @@ dnl
dnl Documentation dnl Documentation
dnl dnl
AC_MSG_CHECKING([for xmlto (DocBook processing)]) AC_ARG_ENABLE(documentation,
AS_HELP_STRING([--enable-documentation],
[build documentation (default: disable)]),,
[enable_documentation=no])
if test x$enable_documentation = xyes; then
AC_PATH_PROG(XMLTO, xmlto) AC_PATH_PROG(XMLTO, xmlto)
if test x$XMLTO != x; then if test x$XMLTO = x; then
AC_SUBST(XMLTO) AC_MSG_ERROR([xmlto not found])
AC_MSG_RESULT($XMLTO)
else
AC_MSG_RESULT(no)
fi fi
AM_CONDITIONAL(HAVE_XMLTO, test x$XMLTO != x) AC_SUBST(XMLTO)
fi
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)
dnl dnl

View File

@ -5,7 +5,7 @@ man_MANS = mpd.1 mpd.conf.5
doc_DATA = mpdconf.example doc_DATA = mpdconf.example
EXTRA_DIST = $(man_MANS) $(DOCBOOK_FILES) mpdconf.example EXTRA_DIST = $(man_MANS) $(DOCBOOK_FILES) mpdconf.example
if HAVE_XMLTO if ENABLE_DOCUMENTATION
protocoldir = $(docdir)/protocol protocoldir = $(docdir)/protocol
protocol_DATA = $(wildcard protocol/*.html) protocol_DATA = $(wildcard protocol/*.html)