From 66e95be41e025398e2b8650888e37d759faa830c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Thu, 13 Oct 2011 15:56:46 -0400 Subject: BUILDSYS: Fix --without-manpages We weren't honoring the --without-manpages option, and this was causing builds to break. Note: 'make dist[check]' will not work if you have configured with --without-manpages because it will not be able to pre-generate the translation files necessary for tarball release. --- Makefile.am | 8 +++++++- configure.ac | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index c2f1a483..b9ad9899 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,10 @@ DISTCHECK_CONFIGURE_FLAGS = --with-ldb-lib-dir="$$dc_install_base"/lib/ldb -SUBDIRS = po src/man +SUBDIRS = po + +if HAVE_MANPAGES +SUBDIRS += src/man +endif # Some old versions of automake don't define builddir builddir ?= . @@ -1018,7 +1022,9 @@ endif # TRANSLATIONS # ################ update-po: +if HAVE_MANPAGES $(MAKE) -C src/man update-po +endif $(MAKE) -C po update-po ####################### diff --git a/configure.ac b/configure.ac index 6ae664a6..d86b16a7 100644 --- a/configure.ac +++ b/configure.ac @@ -147,6 +147,7 @@ if test x$HAVE_MANPAGES != x; then [Docbook XSL templates]) AC_CHECK_PROG([PO4A],[po4a],[po4a],[no]) fi +AM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"]) AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"]) if test x$HAVE_PYTHON_BINDINGS != x; then -- cgit