Received: from eggs.gnu.org ([2001:4830:134:3::10]:56889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbA9I-0003SV-HI for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbA9E-0000Yh-HB for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:56:48 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:33298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbA9E-0000YR-BZ for qemu-devel@nongnu.org; Thu, 26 Mar 2015 11:56:44 -0400 Received: by wgbcc7 with SMTP id cc7so68585229wgb.0 for ; Thu, 26 Mar 2015 08:56:43 -0700 (PDT) From: Eduardo Otubo Date: Thu, 26 Mar 2015 16:56:25 +0100 Message-Id: <1427385385-30571-1-git-send-email-eduardo.otubo@profitbricks.com> Subject: [Qemu-devel] [PATCH] seccomp: libseccomp version varying according to arch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, pmoore@redhat.com, peter.maydell@linaro.org, quintela@redhat.com Cc: Eduardo Otubo 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: Eduardo Otubo Reported-by: Juan Quintela --- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index cbe6495..09c9225 100755 --- a/configure +++ b/configure @@ -1848,13 +1848,19 @@ 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 -- 1.9.1