From: Ian Campbell Subject: Re: [PATCH 1 of 2 v3] tools: check for documentation generation tools at configure time Date: Tue, 11 Sep 2012 08:54:10 +0100 Message-ID: <1347350050.10570.100.camel@dagon.hellion.org.uk> References: <3b3582f4dc423daa8040.1346992558@u002268147cd4502c336d.ant.amazon.com> <1347293350.5305.113.camel@zakaz.uk.xensource.com> <20120910204635.GA32584@u002268147cd4502c336d.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120910204635.GA32584@u002268147cd4502c336d.ant.amazon.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matt Wilson Cc: Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-09-10 at 21:46 +0100, Matt Wilson wrote: > On Mon, Sep 10, 2012 at 05:09:10PM +0100, Ian Campbell wrote: > > > > > diff -r d7e4efa17fb0 -r 3b3582f4dc42 tools/m4/docs_tool.m4 > > > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > > > +++ b/tools/m4/docs_tool.m4 Thu Sep 06 21:31:51 2012 -0700 > > > @@ -0,0 +1,10 @@ > > > +# $1: autoconf variable name > > > +# $2: list of programs to check for > > > +AC_DEFUN([AX_DOCS_TOOL_PROGS], [ > > > +dnl > > > + AC_ARG_VAR([$1], [Path to ] m4_tolower($1) [ tool]) > > > + AC_PATH_PROGS([$1], [$2]) > > > + AS_IF([! test -x "$ac_cv_path_$1"], [ > > > + AC_MSG_WARN([$2 is not available so some documentation won't be built]) > > > > Did you mean m4_tolower($1) for this last $2 as well? Since $2 is the > > list of potential command names this will look a bit odd I think? > > Yea, that could be better. Though I kind of like that it shows the > programs that were checked. It'd look like: > > markdown markdown_py is not available so some documentation won't be built > > Maybe just drop 'is' to avoid the verb mismatch. Or "m4_tolower($1) ($2) is not available ..."? (properly m4 quoted by someone who knows what they are doing, of course ;-)) Ian.