From 297e38905144d0cfeaacae073c945215c2910c55 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 10 Aug 2009 13:25:44 -0700 Subject: [PATCH] Add option to change D-Bus config directory --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 88488af..0bd32c3 100644 --- a/configure.ac +++ b/configure.ac @@ -246,11 +246,14 @@ AC_CHECK_LIB(dbus-1, dbus_watch_get_unix_fd, dummy=yes, [Define to 1 if you need the dbus_watch_get_unix_fd() function.])) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) -DBUS_DATADIR="`$PKG_CONFIG --variable=sysconfdir dbus-1`" -if (test -z "${DBUS_DATADIR}"); then + +AC_ARG_WITH(dbusconf, AC_HELP_STRING([--with-dbusconf=PATH], + [path to D-Bus config directory]), [path_dbusconf=${withval}], + [path_dbusconf="`$PKG_CONFIG --variable=sysconfdir dbus-1`"]) +if (test -z "${path_dbusconf}"); then DBUS_DATADIR="${sysconfdir}/dbus-1/system.d" else - DBUS_DATADIR="$DBUS_DATADIR/dbus-1/system.d" + DBUS_DATADIR="${path_dbusconf}/dbus-1/system.d" fi AC_SUBST(DBUS_DATADIR) -- 2.7.4