meson: Define HAVE_UDEV when udev is found
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Thu, 20 Sep 2018 11:57:17 +0000 (18:57 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 4 Oct 2018 03:14:18 +0000 (08:44 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build

index 8b95297..6e656ab 100644 (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)