diff options
author | Stefan Seyfried <seife@suse.de> | 2009-07-07 09:57:10 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-07 10:17:45 -0700 |
commit | d61145f83ad5ee5a6e847ffd2c68b076fe2695c3 (patch) | |
tree | 8525e68da082bfc6e2c3d5a05b9ebdc889ac7572 /acinclude.m4 | |
parent | 5da3f2e2bbd420a2cdb40f8b36abfaf19fb228aa (diff) |
fix UDEV_DATADIR fallback if pkg-config fails
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 48728e8c1..20181697e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -111,9 +111,11 @@ AC_DEFUN([AC_INIT_BLUEZ], [ AC_SUBST(CONFIGDIR, "${configdir}") AC_SUBST(STORAGEDIR, "${storagedir}") - 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) ]) |