From: dlezcano Date: Tue, 18 Nov 2008 14:03:57 +0000 (+0000) Subject: Generate only if docbook is installed X-Git-Tag: lxc_0_5_0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1de19abd0067f38bc08a4a3357de701a4e5571d;p=thirdparty%2Flxc.git Generate only if docbook is installed From: Daniel Lezcano Generate the man pages only if the docbook tool is available. Signed-off-by: Daniel Lezcano --- diff --git a/configure.in b/configure.in index 52e6cb32f..1859c9057 100644 --- a/configure.in +++ b/configure.in @@ -13,6 +13,8 @@ AM_PROG_CC_C_O AC_GNU_SOURCE AC_PROG_LIBTOOL AC_CHECK_PROG(SETCAP, setcap, yes, no) +AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no) +AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes) AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]), [#include @@ -72,6 +74,17 @@ AC_CONFIG_FILES([ AC_CONFIG_COMMANDS([default],[[]],[[]]) AC_OUTPUT +if test "x$DOCBOOK" = "xno"; then + AC_MSG_NOTICE([ + +Warning: +-------- +The docbook tool is not installed, the man pages won't be generated. + +]) + +fi + if test "x$SETCAP" = "xno"; then AC_MSG_NOTICE([ diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 000000000..451549b6e --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,18 @@ +if ENABLE_DOCBOOK +man_MANS = \ + lxc-create.1 \ + lxc-destroy.1 \ + lxc-execute.1 \ + lxc-start.1 \ + lxc-stop.1 \ + lxc-freeze.1 \ + lxc-unfreeze.1 \ + lxc-monitor.1 \ + lxc-wait.1 \ + lxc-ls.1 \ + lxc-ps.1 + + +%.1 : %.sgml + docbook2man $< +endif \ No newline at end of file