aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-11-17 14:22:24 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-01-06 10:21:20 +0100
commit90835c2b8127406615785a9d4348ffdf3c813c8a (patch)
tree8581be166dcf774a72b7b7d1b9e82f906e1305bf /tools
parentb1def33d191bf295b21c0dae9d17e0cf3d99255e (diff)
downloadqemu-90835c2b8127406615785a9d4348ffdf3c813c8a.zip
qemu-90835c2b8127406615785a9d4348ffdf3c813c8a.tar.gz
qemu-90835c2b8127406615785a9d4348ffdf3c813c8a.tar.bz2
seccomp: convert to meson
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/meson.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/meson.build b/tools/meson.build
index 76bf84d..5c52d79 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -1,6 +1,6 @@
have_virtiofsd = (targetos == 'linux' and
have_tools and
- 'CONFIG_SECCOMP' in config_host and
+ seccomp.found() and
'CONFIG_LIBCAP_NG' in config_host and
'CONFIG_VHOST_USER' in config_host)
@@ -8,7 +8,7 @@ if get_option('virtiofsd').enabled()
if not have_virtiofsd
if targetos != 'linux'
error('virtiofsd requires Linux')
- elif 'CONFIG_SECCOMP' not in config_host or 'CONFIG_LIBCAP_NG' not in config_host
+ elif not seccomp.found() or 'CONFIG_LIBCAP_NG' not in config_host
error('virtiofsd requires libcap-ng-devel and seccomp-devel')
elif not have_tools or 'CONFIG_VHOST_USER' not in config_host
error('virtiofsd needs tools and vhost-user support')