@@ -223,10 +223,8 @@ AM_CONDITIONAL(MONITOR, test "${enable_monitor}" != "no")
AC_ARG_ENABLE(udev, AS_HELP_STRING([--disable-udev],
[disable udev device support]), [enable_udev=${enableval}])
if (test "${enable_tools}" != "no" && test "${enable_udev}" != "no"); then
- PKG_CHECK_MODULES(UDEV, libudev >= 172)
- AC_CHECK_LIB(udev, udev_hwdb_new,
- AC_DEFINE(HAVE_UDEV_HWDB_NEW, 1,
- [Define to 1 if you have the udev_hwdb_new() function.]))
+ PKG_CHECK_MODULES(UDEV, libudev >= 196)
+ AC_DEFINE(HAVE_UDEV, 1, [Define to 1 if udev is required])
fi
AC_ARG_WITH([udevdir], AS_HELP_STRING([--with-udevdir=DIR],
@@ -19,7 +19,7 @@
#include "hwdb.h"
-#ifdef HAVE_UDEV_HWDB_NEW
+#ifdef HAVE_UDEV
#include <libudev.h>
bool hwdb_get_vendor_model(const char *modalias, char **vendor, char **model)
@@ -16,7 +16,7 @@
#include "lib/bluetooth.h"
#include "oui.h"
-#ifdef HAVE_UDEV_HWDB_NEW
+#ifdef HAVE_UDEV
#include <libudev.h>
char *batocomp(const bdaddr_t *ba)
From: Emil Velikov <emil.velikov@collabora.com> libudev 196 (systemd really) was released back in 2012, which introduces the hwdb API. Bump the requirement, since even long retired distributions like Debian oldold stable (aka Buster) include newer versions. --- configure.ac | 6 ++---- monitor/hwdb.c | 2 +- src/oui.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-)