summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-07 11:59:54 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-07-07 11:59:54 -0700
commit10ff6c2658957d0d57b4b5f110e4d401f167a4bb (patch)
tree385313dff73bb00f67d1287e28a4e941d9549d2d
parent471f4192023866e5fa3ff26ba49f33c9acf441b6 (diff)
downloadconnman-10ff6c2658957d0d57b4b5f110e4d401f167a4bb.tar.gz
connman-10ff6c2658957d0d57b4b5f110e4d401f167a4bb.tar.bz2
connman-10ff6c2658957d0d57b4b5f110e4d401f167a4bb.zip
Fix broken udev rules directory detection
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3ceecf22..66272486 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,8 @@ AM_MAINTAINER_MODE
AC_PREFIX_DEFAULT(/usr/local)
+PKG_PROG_PKG_CONFIG
+
COMPILER_FLAGS
AC_SUBST(abs_top_srcdir)
@@ -202,9 +204,11 @@ if (test "${enable_udev}" = "yes"); then
AC_DEFINE(NEED_UDEV_MONITOR_FILTER, 1,
[Define to 1 if you need the
udev_monitor_filter...() functions.]))
- UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`/rules.d"
+ UDEV_DATADIR="`$PKG_CONFIG --variable=udevdir udev`"
if (test -z "${UDEV_DATADIR}"); then
UDEV_DATADIR="${sysconfdir}/udev/rules.d"
+ else
+ UDEV_DATADIR="${UDEV_DATADIR}/rules.d"
fi
AC_SUBST(UDEV_DATADIR)
fi