From: "Jan Beulich" Subject: Re: [PATCH RFC] build: add autoconf to replace custom checks in tools/check Date: Mon, 09 Jan 2012 09:45:34 +0000 Message-ID: <4F0AC54E020000780006B1F3@nat28.tlf.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roger Pau Monne Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 07.01.12 at 04:20, Roger Pau Monne wrote: > # HG changeset patch > # User Roger Pau Monne > # Date 1325906230 -3600 > # Node ID e12ec1071410c946367cb0508cf218a0c3b596ca > # Parent 4086e4811547ddffb9a53fbf2efb6c2fa436b70a > build: add autoconf to replace custom checks in tools/check > > Added autotools magic to replace custom check scripts. The previous > checks have been ported to autoconf, and some additional ones have > been added (plus the suggestions from running autoscan). Two files are > created as a result from executing configure script, > config/Autoconf.mk and config.h. > > Autoconf.mk is included by Config.mk, and contains most of the > options previously defined in .config, that can now be set passing > parameters or defining environment variables when executing configure > script. > > config.h is still not used anywhere, and is automatically created by > autoheader, altough this migh change when we start to include this > file. > > Just a first release, and since Iit's my first autoconf script I guess > there will be many things to polish here... Please review and comment. > > Signed-off-by: Roger Pau Monne > > diff -r 4086e4811547 -r e12ec1071410 Config.mk > --- a/Config.mk Thu Jan 05 17:25:23 2012 +0000 > +++ b/Config.mk Sat Jan 07 04:17:10 2012 +0100 > @@ -9,8 +9,6 @@ realpath = $(wildcard $(foreach file,$(1 > > -include $(XEN_ROOT)/.config > > -# A debug build of Xen and tools? > -debug ?= y I think this should be kept here (possibly override-able by the autoconf determined setting, i.e. it may need moving past the inclusion below). > > XEN_COMPILE_ARCH ?= $(shell uname -m | sed -e s/i.86/x86_32/ \ > -e s/i86pc/x86_32/ -e s/amd64/x86_64/) > @@ -43,6 +41,7 @@ endif > > include $(XEN_ROOT)/config/$(XEN_OS).mk > include $(XEN_ROOT)/config/$(XEN_TARGET_ARCH).mk > +include $(XEN_ROOT)/config/Autoconf.mk And I would really like to avoid having hypervisor (and perhaps also stubdom) builds to require running the autoconfig thing first - this ought to be limited to the tools (as were the check scripts). Jan > SHAREDIR ?= $(PREFIX)/share > DOCDIR ?= $(SHAREDIR)/doc/xen