From: Ian Jackson Subject: Re: [PATCH 04/24] autoconf: trim the configure script; use autoheader Date: Tue, 17 Apr 2012 14:18:04 +0100 Message-ID: <20365.28044.149473.65854@mariner.uk.xensource.com> References: <1334596686-8479-1-git-send-email-ian.jackson@eu.citrix.com> <1334596686-8479-5-git-send-email-ian.jackson@eu.citrix.com> <1334654299.14560.268.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1334654299.14560.268.camel@zakaz.uk.xensource.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: Ian Campbell Cc: Roger Pau Monne , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 04/24] autoconf: trim the configure script; use autoheader"): > On Mon, 2012-04-16 at 18:17 +0100, Ian Jackson wrote: > > Remove a lot of unnecessary tests. Specifically, we no longer test > > for standard POSIX facilities which we expect to be provided > > everywhere and which we don't in any case have any alternative for. > > A good rule of thumb might be that if it isn't provided by "apt-get > install build-essential" (or the common set of stuff from the equivalent > meta-packages across common distros) then configure should check for it > in the interest of providing a useful upfront error message? Yes, I think so. > > Switch to generating config.h.in with autoheader. > > > @@ -132,7 +127,7 @@ AC_SUBST(libext2fs) > > AC_CHECK_LIB([gcrypt], [gcry_md_hash_buffer], [libgcrypt="y"], [libgcrypt="n"]) > > AC_SUBST(libgcrypt) > > AX_CHECK_PTHREAD > > -AC_CHECK_LIB([rt], [clock_gettime]) > > -lrt is always available? -l libraries seem to be > the ones which tend to differ across platforms, despite being > standardised... The current configure script throws away the result of this test, so it is definitely useless. The effect in configure is to perhaps add -lrt to LIBS but we do not export configure's LIBS to every tools build. > > +AX_CHECK_PTYFUNCS > > You don't actually add this until the next patch. Oops. Ian.