configure: fix seccomp check
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 6 Sep 2012 20:40:30 +0000 (22:40 +0200)
committerStefan Hajnoczi <stefanha@gmail.com>
Fri, 14 Sep 2012 07:46:27 +0000 (08:46 +0100)
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

index 7656c32..92c4076 100755 (executable)
--- 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
 ##########################################