1From 250bee9e02546846d70dbe88ac36bb83c6a7ebdf Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sun, 22 Sep 2019 09:27:24 +0200 4Subject: [PATCH] configure.ac: add --disable-doc option 5 6Add --disable-doc option to allow the user to disable documentation 7 8Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 9[Sent upstream: https://savannah.gnu.org/bugs/index.php?56931] 10--- 11 Makefile.am | 6 +++++- 12 configure.ac | 7 +++++++ 13 2 files changed, 12 insertions(+), 1 deletion(-) 14 15diff --git a/Makefile.am b/Makefile.am 16index dbb5719..2db307a 100644 17--- a/Makefile.am 18+++ b/Makefile.am 19@@ -18,6 +18,10 @@ 20 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 21 22 EXTRA_DIST = configure TODO LICENSE gl/m4/gnulib-cache.m4 23-SUBDIRS = gl src doc tests 24+SUBDIRS = gl src tests 25+ 26+if ENABLE_DOC 27+SUBDIRS += doc 28+endif 29 30 gengetoptdoc_DATA = ChangeLog COPYING NEWS THANKS INSTALL README LICENSE 31diff --git a/configure.ac b/configure.ac 32index 0ee89db..915706c 100644 33--- a/configure.ac 34+++ b/configure.ac 35@@ -61,6 +61,13 @@ AC_ARG_ENABLE( 36 AC_COMPILE_WARNINGS 37 ) 38 39+AC_ARG_ENABLE( 40+ [doc], 41+ [--enable-doc enable documentation], 42+ [enable_doc=$enableval], 43+ [enable_doc=yes]) 44+AM_CONDITIONAL(ENABLE_DOC, test x"$enable_doc" = xyes) 45+ 46 AC_ARG_WITH( 47 [gengen], 48 [ --with-gengen=mygengen gengen to use], 49-- 502.23.0 51 52