From: Wei Liu Subject: Re: [PATCH v3 2/5] configure: make the libaio test conditional on blktap{1, 2} Date: Thu, 19 Jun 2014 18:35:31 +0100 Message-ID: <20140619173531.GR20819@zion.uk.xensource.com> References: <1403195568-19464-1-git-send-email-roger.pau@citrix.com> <1403195568-19464-3-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WxgFL-0007bO-8O for xen-devel@lists.xenproject.org; Thu, 19 Jun 2014 17:35:35 +0000 Content-Disposition: inline In-Reply-To: <1403195568-19464-3-git-send-email-roger.pau@citrix.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: Roger Pau Monne Cc: xen-devel@lists.xenproject.org, Ian Jackson , Ian Campbell , wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, Jun 19, 2014 at 06:32:45PM +0200, Roger Pau Monne wrote: > libaio is only required for blktap{1,2}, so make the check conditional > on whether the user has requested blktap{1,2} or not. > = > Signed-off-by: Roger Pau Monn=E9 > Cc: Ian Jackson > Cc: Ian Campbell > --- > Please re-run autoconf after applying this patch. > --- > Changes since v2: > - Make libaio test conditional on whether blktap2 is also enabled. > --- > tools/configure.ac | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > = > diff --git a/tools/configure.ac b/tools/configure.ac > index 836bbba..6d70f04 100644 > --- a/tools/configure.ac > +++ b/tools/configure.ac > @@ -262,7 +262,9 @@ AC_CHECK_HEADER([lzo/lzo1x.h], [ > AC_CHECK_LIB([lzo2], [lzo1x_decompress], [zlib=3D"$zlib -DHAVE_LZO1X -ll= zo2"]) > ]) > AC_SUBST(zlib) > +AS_IF([test "x$enable_blktap1" =3D "xyes" || test "x$enable_blktap2" =3D= "xyes"], [ > AC_CHECK_LIB([aio], [io_setup], [], [AC_MSG_ERROR([Could not find libaio= ])]) > +]) Libaio is needed by QEMU as well. Wei.