mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
cap_ng: convert to meson
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
69202b406e
commit
727c8bb809
4 changed files with 30 additions and 35 deletions
|
@ -1,14 +1,14 @@
|
|||
have_virtiofsd = (targetos == 'linux' and
|
||||
have_tools and
|
||||
seccomp.found() and
|
||||
'CONFIG_LIBCAP_NG' in config_host and
|
||||
libcap_ng.found() and
|
||||
'CONFIG_VHOST_USER' in config_host)
|
||||
|
||||
if get_option('virtiofsd').enabled()
|
||||
if not have_virtiofsd
|
||||
if targetos != 'linux'
|
||||
error('virtiofsd requires Linux')
|
||||
elif not seccomp.found() or 'CONFIG_LIBCAP_NG' not in config_host
|
||||
elif not seccomp.found() or not libcap_ng.found()
|
||||
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue