orion / rpms / qemu

Forked from rpms/qemu 4 years ago
Clone
fa00e1e
From 349beca15e6a3284c5d44d81be48277dbbca4ae1 Mon Sep 17 00:00:00 2001
5544c1b
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
5544c1b
Date: Thu, 6 Sep 2012 22:40:30 +0200
5544c1b
Subject: [PATCH] configure: fix seccomp check
5544c1b
MIME-Version: 1.0
5544c1b
Content-Type: text/plain; charset=UTF-8
5544c1b
Content-Transfer-Encoding: 8bit
5544c1b
5544c1b
Currently, if libseccomp is missing but the user explicitly requested
5544c1b
seccomp support using --enable-seccomp, configure silently ignores the
5544c1b
situation and disables seccomp support.
5544c1b
5544c1b
This is unlike all other tests that explicitly fail in such situation.
5544c1b
5544c1b
Fix that.
5544c1b
5544c1b
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
5544c1b
Reviewed-by: Andreas Färber <afaerber@suse.de>
5544c1b
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
5544c1b
(cherry picked from commit e84d5956cc6215d2f098e7b6090fc5ec4cba1be3)
5544c1b
5544c1b
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1b
---
5544c1b
 configure | 2 +-
5544c1b
 1 file changed, 1 insertion(+), 1 deletion(-)
5544c1b
5544c1b
diff --git a/configure b/configure
5544c1b
index dcd8e7b..9e53cc2 100755
5544c1b
--- a/configure
5544c1b
+++ b/configure
5544c1b
@@ -1405,10 +1405,10 @@ if test "$seccomp" != "no" ; then
5544c1b
         LIBS=`$pkg_config --libs libseccomp`
5544c1b
 	seccomp="yes"
5544c1b
     else
5544c1b
-	seccomp="no"
5544c1b
 	if test "$seccomp" = "yes"; then
5544c1b
             feature_not_found "libseccomp"
5544c1b
 	fi
5544c1b
+	seccomp="no"
5544c1b
     fi
5544c1b
 fi
5544c1b
 ##########################################