meson: Define HAVE_UDEV when udev is found

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-09-20 18:57:17 +07:00 committed by Arun Raghavan
parent e013ac2a0e
commit 4be9e4ba54

View file

@ -221,6 +221,9 @@ cdata.set('DISABLE_ORC', 1)
# Module dependencies
udev_dep = dependency('libudev', version : '>= 143', required : false)
if udev_dep.found()
cdata.set('HAVE_UDEV', 1)
endif
# Now generate config.h from everything above
configure_file(output : 'config.h', configuration : cdata)