From: mp39590 Date: Wed, 10 Aug 2016 13:02:35 +0000 (+0300) Subject: [PATCH] configure: add --without-api-docs option X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0aa7a07cf39a602a278af58c20b6436888a20756;p=notmuch-archives.git [PATCH] configure: add --without-api-docs option --- diff --git a/13/cb17b48219f7c1d104bdff1d6677fb5df894d7 b/13/cb17b48219f7c1d104bdff1d6677fb5df894d7 new file mode 100644 index 000000000..e86cea378 --- /dev/null +++ b/13/cb17b48219f7c1d104bdff1d6677fb5df894d7 @@ -0,0 +1,144 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id B9BC76DE01C2 + for ; Wed, 10 Aug 2016 06:02:55 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.477 +X-Spam-Level: +X-Spam-Status: No, score=-0.477 tagged_above=-999 required=5 tests=[AWL=0.093, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id WXcGEyxyUx5a for ; + Wed, 10 Aug 2016 06:02:47 -0700 (PDT) +Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com + [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 069756DE015B for + ; Wed, 10 Aug 2016 06:02:47 -0700 (PDT) +Received: by mail-wm0-f67.google.com with SMTP id o80so9413105wme.0 + for ; Wed, 10 Aug 2016 06:02:46 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:in-reply-to:references; + bh=mBOfnD1GinbSilZYFX+e2QnjY0G7jJyjB+HXqHfPV+Q=; + b=j2IK7lXvz3Zm+SrdJe5YCV10H/RbDWNPqxYBP1tA2S9rQhsXGFm7derwSHQTa68dVS + RbyAWReRnzl2pBPp+OdA3Cx1zvZbxEClgl6s82KGwyo1B+rMFV4Mtb55F7xbwYaKopqp + lfcMGjGiJnRaPKV8EPeAw7EzbSMjkJjtXwIVsJMDLZi+5Hy0UH6kT1DpH3cTd3VWCfKV + zFrhk8+f7cGwkXqDHBrjb8ZuwJNuM/SDSiq4uzwzWDaKpa8uzLhI8eQ3MtdRcs10AftH + GZE84K226ED3jP5wN+Krmty9jLEUVf1tY3dzcEqeVy7/agZiPagk2ARe2eargbRIopp5 + HbNg== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to + :references; + bh=mBOfnD1GinbSilZYFX+e2QnjY0G7jJyjB+HXqHfPV+Q=; + b=Zvdqy6dgAxuR9vdz2voHO/9pksDYWyPSJcpxu4zCZ0ajdkdESi1nLwyClfIMiwVpZ2 + HIqXN3y4xBayzg1HetQ4TEfzdids9+xVD6WnSZJW5vrlmD9/3mXAFDcxDtO1gPwxNV0p + SEwzmV7w3N+9oXkwLo0SJR4XS1cnr3JwRZljZp0R6Al6hLSFC6Tbns0dNLacOJAGOvE4 + ALFSTVbFSt4g0V9w2GArfcndwsMqP4istBG4dAkc9kfKf5D7nCG22svL4lI0toMncQEK + lu4QL/evFDhbfobERHF7L1brtCQu8WMP2b7JFL/Pqr5xZnqfPHKMtA18dzzMZewULsI3 + k1BQ== +X-Gm-Message-State: + AEkoouvZ+QAENvxNrnEXeqLbuvJh7RpMtho1ewjdeUOkD38MV5ajghqkiT732T3Nstp5tg== +X-Received: by 10.46.0.92 with SMTP id 89mr654567lja.37.1470834162781; + Wed, 10 Aug 2016 06:02:42 -0700 (PDT) +Received: from bsd1.my.domain ([84.51.98.95]) + by smtp.gmail.com with ESMTPSA id 67sm7553811ljj.8.2016.08.10.06.02.41 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Wed, 10 Aug 2016 06:02:42 -0700 (PDT) +From: mp39590@gmail.com +To: notmuch@notmuchmail.org +Cc: David Bremner , + Tomi Ollila +Subject: [PATCH] configure: add --without-api-docs option +Date: Wed, 10 Aug 2016 16:02:35 +0300 +Message-Id: <20160810130235.7108-1-mp39590@gmail.com> +X-Mailer: git-send-email 2.9.0 +In-Reply-To: <87popijavz.fsf@maritornes.cs.unb.ca> +References: <87popijavz.fsf@maritornes.cs.unb.ca> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 10 Aug 2016 13:02:55 -0000 + +From: Mikhail + +Add option to explicitly disable API man page build even if doxygen +binary is available. --without-docs also implies not building API +manpage. + +This change intended to add more distinctness into build system and +allow user not to build unwanted man pages. +--- + configure | 16 ++++++++++++++-- + 1 file changed, 14 insertions(+), 2 deletions(-) + +diff --git a/configure b/configure +index ae0a027..fa4c5b5 100755 +--- a/configure ++++ b/configure +@@ -68,6 +68,7 @@ PYTHON=${PYTHON:-} + PREFIX=/usr/local + LIBDIR= + WITH_DOCS=1 ++WITH_API_DOCS=1 + WITH_EMACS=1 + WITH_BASH=1 + WITH_RUBY=1 +@@ -137,7 +138,8 @@ Some features can be disabled (--with-feature=no is equivalent to + --without-feature) : + + --without-bash-completion Do not install bash completions files +- --without-docs Do not install documentation and man pages ++ --without-docs Do not install documentation ++ --without-api-docs Do not install API man page + --without-emacs Do not install lisp file + --without-ruby Do not install ruby bindings + --without-zsh-completion Do not install zsh completions files +@@ -184,11 +186,21 @@ for option; do + elif [ "${option%%=*}" = '--with-docs' ]; then + if [ "${option#*=}" = 'no' ]; then + WITH_DOCS=0 ++ WITH_API_DOCS=0 + else + WITH_DOCS=1 + fi + elif [ "${option}" = '--without-docs' ] ; then + WITH_DOCS=0 ++ WITH_API_DOCS=0 ++ elif [ "${option%%=*}" = '--with-api-docs' ]; then ++ if [ "${option#*=}" = 'no' ]; then ++ WITH_API_DOCS=0 ++ else ++ WITH_API_DOCS=1 ++ fi ++ elif [ "${option}" = '--without-api-docs' ] ; then ++ WITH_API_DOCS=0 + elif [ "${option%%=*}" = '--with-emacs' ]; then + if [ "${option#*=}" = 'no' ]; then + WITH_EMACS=0 +@@ -557,7 +569,7 @@ else + fi + + have_doxygen=0 +-if [ $WITH_DOCS = "1" ] ; then ++if [ $WITH_API_DOCS = "1" ] ; then + printf "Checking if doxygen is available... " + if command -v doxygen > /dev/null; then + printf "Yes.\n" +-- +2.9.0 +