diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-08 21:17:41 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-08 21:17:41 +0100 |
commit | 6b0565ed922f60d121a73f04444e58bc171e1a55 (patch) | |
tree | d5e84d3b5d602ede5def2e49d79b406159f739ab /configure.ac | |
parent | 049eae8ec20f0b3dd37d6f4b843da318966d4346 (diff) | |
download | connman-6b0565ed922f60d121a73f04444e58bc171e1a55.tar.gz connman-6b0565ed922f60d121a73f04444e58bc171e1a55.tar.bz2 connman-6b0565ed922f60d121a73f04444e58bc171e1a55.zip |
Add support for reading config directory from dbus-1.pc
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a6cc07cc..96d37589 100644 --- a/configure.ac +++ b/configure.ac @@ -167,6 +167,13 @@ PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes, AC_MSG_ERROR(libdbus is required)) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) +DBUS_DATADIR="`pkg-config --variable=sysconfdir dbus-1`" +if (test -z "{DBUS_DATADIR}"); then + DBUS_DATADIR="${sysconfdir}/dbus-1/system.d" +else + DBUS_DATADIR="$DBUS_DATADIR/dbus-1/system.d" +fi +AC_SUBST(DBUS_DATADIR) AC_SUBST([GDBUS_CFLAGS], ['$(DBUS_CFLAGS) -I$(top_srcdir)/gdbus']) AC_SUBST([GDBUS_LIBS], ['$(top_builddir)/gdbus/libgdbus.la $(DBUS_LIBS)']) |