devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5eac1ebf28e7dacb7b29787610f69ae67814d775
commit 5eac1ebf28e7dacb7b29787610f69ae67814d775 Author: Chris Michael <[email protected]> Date: Tue Sep 30 08:37:41 2014 -0400 eeze: Add configure check for older libudev version Summary: This adds a check in configure to test the libudev version > 199. Older versions of udev do not provide udev_device_set_sysattr_value function and thus compile of efl would break with older versions. @fix Signed-off-by: Chris Michael <[email protected]> --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 990fa07..99046cb 100644 --- a/configure.ac +++ b/configure.ac @@ -2947,6 +2947,12 @@ EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}], [EEZE_MOUNT], [mount >= 2.18.0]) EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}]) +PKG_CHECK_EXISTS([libudev < 199], + [have_libudev_old="yes"], + [have_libudev_old="no"]) +AC_MSG_CHECKING([Use old libudev API (before 199)]) +AC_MSG_RESULT([${have_libudev_old}]) + PKG_CHECK_EXISTS([mount < 2.19.0], [have_libmount_old="yes"], [have_libmount_old="no"]) @@ -2965,6 +2971,10 @@ PKG_CHECK_EXISTS([mount > 2.19.0], AC_MSG_CHECKING([Use new libmount API (newer than 2.19.0)]) AC_MSG_RESULT([${have_libmount_new}]) +if test "x${have_libudev_old}" = "xyes"; then + AC_DEFINE_UNQUOTED([OLD_LIBUDEV], [1], [using older version of libudev]) +fi + if test "x${have_libmount_old}" = "xyes"; then AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount]) fi --
