)
AC_SUBST(dbuspolicydir)
-AC_ARG_WITH([dbussystembusdir], AS_HELP_STRING([--with-dbussystembusdir=DIR],
- [path to D-Bus system bus services directory]), [with_dbussystembusdir=${withval}])
-if test -z "${with_dbussystembusdir}"; then
- AC_MSG_CHECKING([D-Bus system bus services dir])
- with_dbussystembusdir="$($PKG_CONFIG --variable=system_bus_services_dir dbus-1)"
- if test -z "${with_dbussystembusdir}"; then
- AC_MSG_ERROR([D-Bus system bus services directory is required])
- fi
- AC_MSG_RESULT([${with_dbussystembusdir}])
-fi
-AC_SUBST(dbussystembusdir, [${with_dbussystembusdir}])
+AC_ARG_WITH(
+ [dbussystembusdir],
+ AS_HELP_STRING(
+ [--with-dbussystembusdir=arg],
+ [path to D-Bus system bus services directory]
+ ),
+ [dbussystembusdir="$withval"],
+ [PKG_CHECK_VAR([dbussystembusdir], [dbus-1], [system_bus_services_dir],, [dbussystembusdir="${datarootdir}"])]
+)
+AC_SUBST(dbuspolicydir)
# ------------------------------------------------------------------------------
AC_ARG_WITH([systemdsystemunitdir],
prefix: $prefix
+ dbuspolicydir: ${dbuspolicydir}
dbussystembusdir: ${dbussystembusdir}
systemdsystemunitdir: $systemdsystemunitdir
udevdir: $udevdir