build: check for udev >=172

We need udev_device_has_tag() which was introduced in version 172.
Document that in README file.

Reported-by: Manuel Rüger <mrueg@rueg.eu>
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-12-10 16:21:32 +01:00
parent 03aab2b54b
commit eba5178643
2 changed files with 2 additions and 2 deletions

2
README
View File

@ -7,7 +7,7 @@ console. See kmscon(1) man-page for usage information.
== Requirements ==
Kmscon requires the following software:
- libudev: providing input, video, etc. device hotplug support
- libudev: providing input, video, etc. device hotplug support (>=v172)
- libxkbcommon: providing internationalized keyboard handling
Everything else is optional:

View File

@ -59,7 +59,7 @@ PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon libsystemd-login],
AC_SUBST(SYSTEMD_CFLAGS)
AC_SUBST(SYSTEMD_LIBS)
PKG_CHECK_MODULES([UDEV], [libudev],
PKG_CHECK_MODULES([UDEV], [libudev >= 172],
[have_udev=yes], [have_udev=no])
AC_SUBST(UDEV_CFLAGS)
AC_SUBST(UDEV_LIBS)