summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-05 09:48:24 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-07-05 09:48:24 -0700
commit0bc778f1b23d66e92f59206690929f48941f60d6 (patch)
treeb1fbb783a97ca6e29c202cfe301203f5147fc972
parent4f6c27de965e433d9e4acb963a5e02ac04ef35f5 (diff)
Use UDEV_DATADIR variable for rules directory
-rw-r--r--acinclude.m43
-rw-r--r--scripts/Makefile.am2
2 files changed, 4 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 47a94533..8b5b3695 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -110,6 +110,9 @@ AC_DEFUN([AC_INIT_BLUEZ], [
AC_SUBST(CONFIGDIR, "${configdir}")
AC_SUBST(STORAGEDIR, "${storagedir}")
+
+ UDEV_DATADIR="${sysconfdir}/udev/rules.d"
+ AC_SUBST(UDEV_DATADIR)
])
AC_DEFUN([AC_PATH_DBUS], [
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index c3230737..1f4e5c28 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,6 +1,6 @@
if UDEVRULES
-rulesdir = $(sysconfdir)/udev
+rulesdir = @UDEV_DATADIR@
rules_DATA = 97-bluetooth.rules