[gnutls-devel] [PATCH] build: configure.ac: manpages cleanups

Alon Bar-Lev alon.barlev at gmail.com
Fri Dec 18 16:34:01 CET 2015


Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
---
 configure.ac | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 23d7cd5..4efb937 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,16 +54,13 @@ AM_CONDITIONAL(ENABLE_DOC, test "$enable_doc" != "no")
 AC_ARG_ENABLE(manpages,
   AS_HELP_STRING([--enable-manpages], [install manpages even if disable-doc is given]),
     enable_manpages=$enableval,enable_manpages=auto)
-AM_CONDITIONAL(ENABLE_MANPAGES, test "$enable_manpages" != "no")
 
 if test "${enable_manpages}" = "auto";then
-  if test "$enable_doc" != "no";then
-    enable_manpages=yes
-  else
-    enable_manpages=no
-  fi
+  enable_manpages="${enable_doc}"
 fi
 
+AM_CONDITIONAL(ENABLE_MANPAGES, test "$enable_manpages" != "no")
+
 AC_ARG_ENABLE(tools,
   AS_HELP_STRING([--disable-tools], [don't compile any tools]),
     enable_tools=$enableval, enable_tools=yes)
-- 
2.4.10




More information about the Gnutls-devel mailing list