summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2014-12-15 15:32:13 +0000
committerDaniel P. Berrange <berrange@redhat.com>2014-12-15 18:08:45 +0000
commita93a3b975cd0bad37ccae508d9b7a69aa72b6181 (patch)
tree1eb38ca22f2474f7885db9a56540293d61ddc0da /m4
parent34f03984a6f6d3e5a08a67e2fd844aa9aab6150c (diff)
downloadlibvirt-a93a3b975cd0bad37ccae508d9b7a69aa72b6181.tar.gz
avoid using deprecated udev logging functions
In systemd >= 218, the udev_set_log_fn method has been marked deprecated and turned into a no-op. Nothing in the udev client library will print to stderr by default anymore, so we can just stop installing a logging hook for new enough udev.
Diffstat (limited to 'm4')
-rw-r--r--m4/virt-udev.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/virt-udev.m4 b/m4/virt-udev.m4
index 55673bf207..29ab30a5e8 100644
--- a/m4/virt-udev.m4
+++ b/m4/virt-udev.m4
@@ -24,6 +24,13 @@ AC_DEFUN([LIBVIRT_CHECK_UDEV],[
if test "$with_udev" = "yes" && test "$with_pciaccess" != "yes" ; then
AC_MSG_ERROR([You must install the pciaccess module to build with udev])
fi
+
+ if test "$with_udev" = "yes" ; then
+ PKG_CHECK_EXISTS([libudev >= 218], [with_udev_logging=no], [with_udev_logging=yes])
+ if test "$with_udev_logging" = "yes" ; then
+ AC_DEFINE_UNQUOTED([HAVE_UDEV_LOGGING], 1, [whether libudev logging can be used])
+ fi
+ fi
])
AC_DEFUN([LIBVIRT_RESULT_UDEV],[