endif
endif
- if not yajl_dep.found()
+ if not yajl_dep.found() or not json_c_dep.found()
use_ch = false
if get_option('driver_ch').enabled()
- error('YAJL 2 is required to build Cloud-Hypervisor driver')
+ error('YAJL 2 *AND* json-c is required to build Cloud-Hypervisor driver')
endif
endif
if not get_option('driver_qemu').disabled()
use_qemu = true
- if not yajl_dep.found()
+ if not yajl_dep.found() or not json_c_dep.found()
use_qemu = false
if get_option('driver_qemu').enabled()
- error('YAJL 2 is required to build QEMU driver')
+ error('YAJL 2 *AND* json-c is required to build QEMU driver')
endif
endif
if not get_option('nss').disabled()
use_nss = true
- if not yajl_dep.found()
+ if not yajl_dep.found() or not json_c_dep.found()
if get_option('nss').enabled()
- error('Can\'t build nss plugin without yajl')
+ error('Can\'t build nss plugin without YAJL 2 *AND* json-c')
else
use_nss = false
endif
option('driver_libxl', type: 'feature', value: 'auto', description: 'libxenlight driver')
# dep:driver_remote dep:driver_libvirtd
option('driver_lxc', type: 'feature', value: 'auto', description: 'Linux Container driver')
-# dep:curl dep:yajl dep:driver_remote dep:driver_libvirtd
+# dep:curl dep:json_c dep:driver_remote dep:driver_libvirtd
option('driver_ch', type: 'feature', value: 'auto', description: 'Cloud-Hypervisor driver')
option('ch_user', type: 'string', value: '', description: 'username to run Cloud-Hypervisor system instance as')
option('ch_group', type: 'string', value: '', description: 'groupname to run Cloud-Hypervisor system instance as')
# dep:driver_remote dep:driver_libvirtd
option('driver_network', type: 'feature', value: 'auto', description: 'virtual network driver')
option('driver_openvz', type: 'feature', value: 'auto', description: 'OpenVZ driver')
-# dep:yajl dep:driver_remote dep:driver_libvirtd
+# dep:json_c dep:driver_remote dep:driver_libvirtd
option('driver_qemu', type: 'feature', value: 'auto', description: 'QEMU/KVM driver')
option('qemu_user', type: 'string', value: '', description: 'username to run QEMU system instance as')
option('qemu_group', type: 'string', value: '', description: 'groupname to run QEMU system instance as')
option('init_script', type: 'combo', choices: ['systemd', 'openrc', 'check', 'none'], value: 'check', description: 'Style of init script to install')
option('loader_nvram', type: 'string', value: '', description: 'Pass list of pairs of <loader>:<nvram> paths. Both pairs and list items are separated by a colon.')
option('login_shell', type: 'feature', value: 'auto', description: 'build virt-login-shell')
-# dep:yajl dep:driver_network dep:libvirtd
+# dep:json_c dep:driver_network dep:libvirtd
option('nss', type: 'feature', value: 'auto', description: 'enable Name Service Switch plugin for resolving guest IP addresses')
# dep:numactl
option('numad', type: 'feature', value: 'auto', description: 'use numad to manage CPU placement dynamically')