Patchwork [12/12] configure: fix seccomp check

login
register
mail settings
Submitter Stefan Hajnoczi
Date Sept. 14, 2012, 8:42 a.m.
Message ID <1347612146-5407-13-git-send-email-stefanha@gmail.com>
Download mbox | patch
Permalink /patch/183861/
State New
Headers show

Comments

Stefan Hajnoczi - Sept. 14, 2012, 8:42 a.m.
From: "Yann E. MORIN" <yann.morin.1998@free.fr>

Currently, if libseccomp is missing but the user explicitly requested
seccomp support using --enable-seccomp, configure silently ignores the
situation and disables seccomp support.

This is unlike all other tests that explicitly fail in such situation.

Fix that.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/configure b/configure
index 7656c32b..92c4076 100755
--- a/configure
+++ b/configure
@@ -1431,10 +1431,10 @@  if test "$seccomp" != "no" ; then
         LIBS=`$pkg_config --libs libseccomp`
 	seccomp="yes"
     else
-	seccomp="no"
 	if test "$seccomp" = "yes"; then
             feature_not_found "libseccomp"
 	fi
+	seccomp="no"
     fi
 fi
 ##########################################