From 88949694db78dfe50ce11dfade7301d66e890b0a Mon Sep 17 00:00:00 2001 From: Pieter Hintjens Date: Mon, 18 Jan 2016 21:25:22 +0100 Subject: [PATCH] Problem: configure --without-documentation is clumsy It's inconsistent, and should be --with-something=yes/no. Also the term 'documentation' is long and clumy. Solution: use --with-docs instead. --- acinclude.m4 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 456740de..a82fe20e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -88,11 +88,15 @@ dnl # LIBZMQ_CHECK_DOC_BUILD dnl # Check whether to build documentation and install man-pages # dnl ############################################################################## AC_DEFUN([LIBZMQ_CHECK_DOC_BUILD], [{ - # Allow user to disable doc build - AC_ARG_WITH([documentation], [AS_HELP_STRING([--without-documentation], - [disable documentation build even if asciidoc and xmlto are present [default=no]])]) - if test "x$with_documentation" = "xno"; then + # Man pages are built/installed if asciidoc and xmlto are present + # --with-docs=no overrides this + AC_ARG_WITH([docs], + AS_HELP_STRING([--with-docs], + [Build and install man pages [default=yes]]), + [with_docs=$withval]) + + if test "x$with_docs" = "xno"; then libzmq_build_doc="no" libzmq_install_man="no" else