From: Ian Jackson Subject: Re: [PATCH 20/20] libxl: ao: Convert libxl_run_bootloader Date: Thu, 22 Mar 2012 16:27:32 +0000 Message-ID: <20331.21236.854000.674853@mariner.uk.xensource.com> References: <1331915215-10477-1-git-send-email-ian.jackson@eu.citrix.com> <1331915215-10477-21-git-send-email-ian.jackson@eu.citrix.com> <1332251350.9223.295.camel@zakaz.uk.xensource.com> <20329.50926.196879.224633@mariner.uk.xensource.com> <20329.54643.131101.301011@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org Roger Pau Monn=E9 writes ("Re: [Xen-devel] [PATCH 20/20] libxl: ao: Convert= libxl_run_bootloader"): > > + =A0 =A0AC_CHECK_HEADER([libutil.h],[ > > + =A0 =A0 =A0AC_DEFINE([INCLUDE_LIBUTIL_H],[],[libutil heade= r file name]) > > + =A0 =A0]) ... > Shouldn't you add something like this (or perhaps add the necessary > AC_CHECK_HEADER for this headers, so we can get rid of the OS > conditional include dependency): > = > #if defined(__NetBSD__) || defined(__OpenBSD__) > #include > #elif defined(__linux__) > #include > #elif defined(__sun__) > #include > #endif > #include No, I don't think so. Currently the only two platforms we really support are *BSD and Linux, and I think what I have (include if it exists, and nothing non-portable otherwise) is correct. Does this test not work on *BSD ? Certainly we don't want these kind of os-specific #ifdefs. If there are multiple possible headers we should call AC_CHECK_HEADER for them. Ian.