From: Ian Campbell Subject: Re: [PATCH 1 of 2 v3] tools: check for documentation generation tools at configure time Date: Tue, 18 Sep 2012 08:46:30 +0100 Message-ID: <1347954390.25803.95.camel@dagon.hellion.org.uk> References: <3b3582f4dc423daa8040.1346992558@u002268147cd4502c336d.ant.amazon.com> <1347874964.14977.34.camel@zakaz.uk.xensource.com> <20120917170814.GA22382@u002268147cd4502c336d.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120917170814.GA22382@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-17 at 18:08 +0100, Matt Wilson wrote: > On Mon, Sep 17, 2012 at 10:42:44AM +0100, Ian Campbell wrote: > > configure: error: in `/home/xendocs/cronjobs/working/docs/unstable/tree/tools': > > configure: error: no acceptable C compiler found in $PATH > > See `config.log' for more details > > > > Which is a bit annoying if all you wanted was to build docs. I'm not > > sure I really want to advocate putting gcc on xenbits. I suppose I could > > put a dummy shell script in $PATH. > > ./configure is probably going to need a compiler that produces > executables. True. > > > AIUI autoconf allows you to define that a configure script calls a > > sub-configure script. Could we use this at the toplevel to call both > > tools/configure and a new docs/configure? Then my docs scripts could > > just call docs/configure? > > This sounds like a better idea. > > > FWIW the unrelated issue was: > > $ make -C docs/ clean > > /bin/sh: gcc: not found > > /bin/sh: arithmetic expression: expecting primary: "" > > which I think is down to the gcc version check in Config.mk. > > While we're discussing expanding the coverage of ./configure, I > wonder: what (if any) is the resistance to requiring ./configure to > build the xen/ tree? The hypervisor maintainers were pretty much unanimously against it. There's some discussion in the archives around the time autoconf was added and even a patch (applied and now reverted IIRC) to do as you suggest. Ian.