summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac10
2 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index cb377ca9..a49bc59e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,6 +39,10 @@ if DATAFILES
dbusconfdir = @DBUS_CONFDIR@
dbusconf_DATA = src/connman.conf
+
+dbusdatadir = @DBUS_DATADIR@
+
+dbusdata_DATA = src/connman.service
endif
plugin_LTLIBRARIES =
diff --git a/configure.ac b/configure.ac
index 4620a8cb..dca40b04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,6 +306,16 @@ else
fi
AC_SUBST(DBUS_CONFDIR)
+AC_ARG_WITH(dbusdatadir, AC_HELP_STRING([--with-dbusdatadir=PATH],
+ [path to D-Bus data directory]), [path_dbusdata=${withval}],
+ [path_dbusdata="`$PKG_CONFIG --variable=datadir dbus-1`"])
+if (test -z "${path_dbusdata}"); then
+ DBUS_DATADIR="${datadir}/dbus-1/system-services"
+else
+ DBUS_DATADIR="${path_dbusdata}/dbus-1/system-services"
+fi
+AC_SUBST(DBUS_DATADIR)
+
AC_ARG_ENABLE(polkit,
AC_HELP_STRING([--enable-polkit], [enable PolicyKit support]),
[enable_polkit=${enableval}], [enable_polkit="no"])