All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: [PATCH v3 2/5] configure: make the libaio test conditional on blktap{1, 2}
Date: Thu, 19 Jun 2014 18:32:45 +0200	[thread overview]
Message-ID: <1403195568-19464-3-git-send-email-roger.pau@citrix.com> (raw)
In-Reply-To: <1403195568-19464-1-git-send-email-roger.pau@citrix.com>

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é <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
---
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="$zlib -DHAVE_LZO1X -llzo2"])
 ])
 AC_SUBST(zlib)
+AS_IF([test "x$enable_blktap1" = "xyes" || test "x$enable_blktap2" = "xyes"], [
 AC_CHECK_LIB([aio], [io_setup], [], [AC_MSG_ERROR([Could not find libaio])])
+])
 AC_SUBST(system_aio)
 AC_CHECK_LIB([crypto], [MD5], [], [AC_MSG_ERROR([Could not find libcrypto])])
 AX_CHECK_EXTFS
-- 
1.7.7.5 (Apple Git-26)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2014-06-19 16:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 16:32 [PATCH v3 0/5] tools: add support for FreeBSD Roger Pau Monne
2014-06-19 16:32 ` [PATCH v3 1/5] configure: set blktap2 availability on configure Roger Pau Monne
2014-06-19 16:41   ` David Vrabel
2014-06-19 16:46     ` Roger Pau Monné
2014-06-19 16:47       ` David Vrabel
2014-06-19 16:32 ` Roger Pau Monne [this message]
2014-06-19 17:35   ` [PATCH v3 2/5] configure: make the libaio test conditional on blktap{1, 2} Wei Liu
2014-06-19 17:46     ` Roger Pau Monné
2014-06-27 11:44       ` Ian Campbell
2014-06-19 16:32 ` [PATCH v3 3/5] libxl: add support for FreeBSD uuid implementation Roger Pau Monne
2014-06-19 16:42   ` Andrew Cooper
2014-06-19 16:32 ` [PATCH v3 4/5] libxl: remove the gate that only allows block or regular backing images Roger Pau Monne
2014-06-19 16:32 ` [PATCH v3 5/5] libxc: fix printf formatting error surfaced by 66f8c6 Roger Pau Monne
2014-06-27 13:38 ` [PATCH v3 0/5] tools: add support for FreeBSD Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1403195568-19464-3-git-send-email-roger.pau@citrix.com \
    --to=roger.pau@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.