From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3691A6DE01F9 for ; Wed, 10 Aug 2016 23:17:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.563 X-Spam-Level: X-Spam-Status: No, score=0.563 tagged_above=-999 required=5 tests=[AWL=-0.089, SPF_NEUTRAL=0.652] 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 7nU-On6KzDXL for ; Wed, 10 Aug 2016 23:16:58 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 6595E6DE01C2 for ; Wed, 10 Aug 2016 23:16:57 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 46F0F10007F; Thu, 11 Aug 2016 09:16:29 +0300 (EEST) From: Tomi Ollila To: mp39590@gmail.com, notmuch@notmuchmail.org Subject: Re: [PATCH] configure: add --without-api-docs option In-Reply-To: <20160810130235.7108-1-mp39590@gmail.com> References: <87popijavz.fsf@maritornes.cs.unb.ca> <20160810130235.7108-1-mp39590@gmail.com> User-Agent: Notmuch/0.22+56~ge2391a7 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain 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: Thu, 11 Aug 2016 06:17:07 -0000 On Wed, Aug 10 2016, mp39590@gmail.com wrote: > 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 LGTM and worked fine on my manual ./configure command line testing Tomi > > 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 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch