build: add --enable/--disable-libudev
commit5c53015a480b3fe137ebd8b3b584a595c65e8f21
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Oct 2020 10:09:27 +0000 (15 06:09 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Oct 2020 14:45:51 +0000 (17 10:45 -0400)
tree7df39b1dc2ff0be23d84686d057e61b62159e61b
parent09e93326e448ab43fa26a9e2d9cc20ecf951f32b
build: add --enable/--disable-libudev

Initially, libudev detection was bundled with --enable-mpath because
qemu-pr-helper was the only user of libudev.  Recently however the USB
U2F emulation has also started using libudev, so add a separate
option.  This also allows 1) disabling libudev if desired for static
builds and 2) for non-static builds, requiring libudev even if
multipath support is undesirable.

The multipath test is adjusted, because it is now possible to enter it
with configurations that should fail, such as --static --enable-mpath
--disable-libudev.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
meson.build
meson_options.txt