]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Add option to disable generation of any documentation for GnuTLS.
authorJaak Ristioja <jaak.ristioja@cyber.ee>
Tue, 29 Jan 2013 09:27:23 +0000 (11:27 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 10 Feb 2013 10:32:22 +0000 (11:32 +0100)
Makefile.am
configure.ac

index a37e7e1c204b6c5d349a23c49ccf895025596c3c..e95f3e73adefcde29cd36a604b7bd847de6adfc8 100644 (file)
@@ -27,7 +27,11 @@ if ENABLE_DANE
 SUBDIRS += libdane
 endif
 
-SUBDIRS += po src doc tests
+SUBDIRS += po src
+if ENABLE_DOC
+SUBDIRS += doc
+endif
+SUBDIRS += tests
 
 if HAVE_GUILE
 SUBDIRS += guile
index 23b1d507918283be6c9291604f30ea087d1e941b..6921f64c9a86aacd192ad1d89b4997d7ce94dbf2 100644 (file)
@@ -115,7 +115,10 @@ dnl Try the hooks.m4
 LIBGNUTLS_HOOKS
 LIBGNUTLS_EXTRA_HOOKS
 
-
+AC_ARG_ENABLE(doc,
+  AS_HELP_STRING([--disable-doc], [don't generate any documentation]),
+    enable_doc=$enableval, enable_doc=yes)
+AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
 
 GTK_DOC_CHECK(1.1)
 AM_GNU_GETTEXT([external])