Revert "Revert seccomp tests that allow it to be used on non-x86 architectures"
This reverts commit ae6e8ef11e
.
Our Factory libseccomp is patched to support ppc, ppc64, armv7l and soon
ppc64le.
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
82465ccc24
commit
454fc5a3bc
9
configure
vendored
9
configure
vendored
@@ -1848,14 +1848,19 @@ fi
|
|||||||
# libseccomp check
|
# libseccomp check
|
||||||
|
|
||||||
if test "$seccomp" != "no" ; then
|
if test "$seccomp" != "no" ; then
|
||||||
if test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
|
if $pkg_config --atleast-version=2.2.0 libseccomp ||
|
||||||
$pkg_config --atleast-version=2.1.1 libseccomp; then
|
(test "$cpu" = "i386" || test "$cpu" = "x86_64" &&
|
||||||
|
$pkg_config --atleast-version=2.1.1 libseccomp); then
|
||||||
libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
|
libs_softmmu="$libs_softmmu `$pkg_config --libs libseccomp`"
|
||||||
QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
|
QEMU_CFLAGS="$QEMU_CFLAGS `$pkg_config --cflags libseccomp`"
|
||||||
seccomp="yes"
|
seccomp="yes"
|
||||||
else
|
else
|
||||||
if test "$seccomp" = "yes"; then
|
if test "$seccomp" = "yes"; then
|
||||||
|
if test "$cpu" = "i386" || test "$cpu" = "x86_64"; then
|
||||||
feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
|
feature_not_found "libseccomp" "Install libseccomp devel >= 2.1.1"
|
||||||
|
else
|
||||||
|
feature_not_found "libseccomp" "Install libseccomp devel >= 2.2.0"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
seccomp="no"
|
seccomp="no"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user