mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
meson: Tweak XDR check
Keep all the platform-specific code in one place. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
626303c6fa
commit
cc883e1c0c
@ -1266,6 +1266,8 @@ if host_machine.system() == 'windows'
|
||||
xdr_dep = cc.find_library('portablexdr', required: false)
|
||||
elif host_machine.system() == 'linux'
|
||||
xdr_dep = dependency('libtirpc', required: false)
|
||||
elif host_machine.system() in [ 'freebsd', 'darwin' ]
|
||||
xdr_dep = cc.find_library('c', required: false)
|
||||
else
|
||||
xdr_dep = declare_dependency()
|
||||
endif
|
||||
@ -1375,7 +1377,7 @@ endif
|
||||
# build driver options
|
||||
|
||||
if get_option('driver_remote').enabled()
|
||||
if not xdr_dep.found() and host_machine.system() not in [ 'freebsd', 'darwin' ]
|
||||
if not xdr_dep.found()
|
||||
error('XDR is required for remote driver')
|
||||
endif
|
||||
conf.set('WITH_REMOTE', 1)
|
||||
|
Loading…
Reference in New Issue
Block a user