]> granicus.if.org Git - neomutt/commitdiff
Add --disable-full-doc flag to only build documentation for enabled features
authorTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
Mon, 17 Nov 2008 04:34:19 +0000 (20:34 -0800)
committerTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
Mon, 17 Nov 2008 04:34:19 +0000 (20:34 -0800)
configure.ac
doc/makedoc-defs.h

index 4322bf2044cb57b5e24491a662ee2d557d43f752..80566d0d8c9219304aae3f3e18200938d02d808c 100644 (file)
@@ -1289,6 +1289,16 @@ then
 fi
 AC_SUBST(DSLROOT)
 
+AC_ARG_ENABLE(full_doc,
+             AC_HELP_STRING([--disable-full-doc], [Omit disabled variables]),
+[       if test x$enableval = xno ; then
+                full_doc=no
+        fi
+])
+if test x$full_doc != xno ; then
+  AC_DEFINE(MAKEDOC_FULL,1, [Define if you want complete documentation.])
+fi
+
 AC_OUTPUT(Makefile contrib/Makefile doc/Makefile imap/Makefile
         intl/Makefile m4/Makefile po/Makefile.in
         hcachever.sh muttbug.sh doc/instdoc.sh)
index 3c2df6a0188d61f2c56876539d8a6d7a74372ecd..8f1a349ec1963902643d0bff5c4ce1c154f9be76 100644 (file)
@@ -1,5 +1,6 @@
 /* build complete documentation */
 
+#ifdef MAKEDOC_FULL
 # ifndef CRYPT_BACKEND_GPGME
 #  define CRYPT_BACKEND_GPGME
 # endif
@@ -54,3 +55,4 @@
 # ifndef USE_SASL
 #  define USE_SASL
 # endif
+#endif