changeset: 6832:b45bfce1bb0e
user: Kevin McCarthy <[email protected]>
date: Mon Oct 31 20:30:44 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/b45bfce1bb0e
Add a --disable-doc configuration option.
This allows mutt to be built without the documentation.
Thanks to Sylvain Bertrand for the original patch.
diffs (38 lines):
diff -r f46ed1718cb4 -r b45bfce1bb0e Makefile.am
--- a/Makefile.am Sun Oct 23 15:11:56 2016 -0700
+++ b/Makefile.am Mon Oct 31 20:30:44 2016 -0700
@@ -5,12 +5,16 @@
AUTOMAKE_OPTIONS = 1.6 foreign
EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap mutt_md5
+if BUILD_DOC
+DOC_SUBDIR = doc
+endif
+
if BUILD_IMAP
IMAP_SUBDIR = imap
IMAP_INCLUDES = -I$(top_srcdir)/imap
endif
-SUBDIRS = m4 po intl doc contrib $(IMAP_SUBDIR)
+SUBDIRS = m4 po intl $(DOC_SUBDIR) contrib $(IMAP_SUBDIR)
bin_SCRIPTS = muttbug flea $(SMIMEAUX_TARGET)
diff -r f46ed1718cb4 -r b45bfce1bb0e configure.ac
--- a/configure.ac Sun Oct 23 15:11:56 2016 -0700
+++ b/configure.ac Mon Oct 31 20:30:44 2016 -0700
@@ -1347,6 +1347,13 @@
fi
AC_SUBST(DSLROOT)
+AC_ARG_ENABLE(doc, AS_HELP_STRING([--disable-doc],[Do not build the
documentation]),
+[ if test x$enableval = xno ; then
+ do_build_doc=no
+ fi
+])
+AM_CONDITIONAL(BUILD_DOC, test x$do_build_doc != xno)
+
AC_ARG_ENABLE(full_doc,
AS_HELP_STRING([--disable-full-doc],[Omit disabled variables]),
[ if test x$enableval = xno ; then