From fd8563328c4109529383babb0d7518ee6e49ba04 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 11 Sep 2009 15:55:07 +0000 Subject: [PATCH] Add libudev configuration check. --- WHATS_NEW | 1 + configure.in | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index b5f63a7e9..f9a263b9f 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.52 - ================================= + Add libudev configuration check. Add lvm2app.sh to nightly tests conditional upon configure --enable-applib. Update lvm_vg_remove to require lvm_vg_write to commit remove to disk. Enforce an alphabetical lock ordering for vgname locks. diff --git a/configure.in b/configure.in index cc461cf6c..525459079 100644 --- a/configure.in +++ b/configure.in @@ -650,6 +650,20 @@ AC_ARG_ENABLE(udev_rules, [ --enable-udev_rules Install rule files needed f UDEV_RULES=$enableval, UDEV_RULES=$UDEV_SYNC) AC_MSG_RESULT($UDEV_RULES) +################################################################################ +dnl -- Check for libudev's udev_queue_get_udev_is_active function when udev synchronisation is enabled + +if test x$UDEV_SYNC = xyes; then + AC_CHECK_LIB(udev, udev_queue_get_udev_is_active, HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=yes, + HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE=no) + + if test x$HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE = xyes; then + AC_DEFINE([HAVE_UDEV_QUEUE_GET_UDEV_IS_ACTIVE], 1, + [Define to 1 if libudev's udev_queue_get_udev_is_active function is available.]) + LIBS="-ludev $LIBS" + fi +fi + ################################################################################ dnl -- Compatibility mode AC_ARG_ENABLE(compat, [ --enable-compat Enable support for old device-mapper versions],