Commit 896848f0 authored by Eduardo Otubo's avatar Eduardo Otubo Committed by Peter Maydell
Browse files

seccomp: libseccomp version varying according to arch



Libseccomp dependency was mandating version 2.2.0 on all architectures
and this was causing configure and virt-test to break on non-updates
distros. This patch works-around it and give a more flexible way to
check the version, giving more time for other distros to update
libseccomp version.

Signed-off-by: default avatarEduardo Otubo <eduardo.otubo@profitbricks.com>
Reported-by: default avatarJuan Quintela <quintela@redhat.com>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>
Tested-by: default avatarJuan Quintela <quintela@redhat.com>
Message-id: 1427385385-30571-1-git-send-email-eduardo.otubo@profitbricks.com
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
parent 99b7f47c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1848,14 +1848,20 @@ fi
# libseccomp check

if test "$seccomp" != "no" ; then
    if $pkg_config --atleast-version=2.2.0 libseccomp; then
    if $pkg_config --atleast-version=2.2.0 libseccomp ||
        (test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
        $pkg_config --atleast-version=2.1.1 libseccomp); then
        libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
        QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
	seccomp="yes"
    else
	if test "$seccomp" = "yes"; then
        if test "$cpu" = "i386" || test "$cpu" = "x86_64"; then
            feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
        else
            feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
        fi
	fi
	seccomp="no"
    fi
fi