3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

build: Fall back to D-Bus sysconfdir if datadir is not available

This commit is contained in:
Marcel Holtmann 2018-02-10 11:05:58 +01:00
parent 9f19cc3d25
commit e0b5680543

View File

@ -110,9 +110,12 @@ AC_ARG_WITH([dbus-datadir], AC_HELP_STRING([--with-dbus-datadir=DIR],
if (test "${enable_dbus_policy}" != "no" && test -z "${path_dbus_datadir}"); then if (test "${enable_dbus_policy}" != "no" && test -z "${path_dbus_datadir}"); then
AC_MSG_CHECKING([D-Bus data directory]) AC_MSG_CHECKING([D-Bus data directory])
path_dbus_datadir="`$PKG_CONFIG --variable=datadir dbus-1`" path_dbus_datadir="`$PKG_CONFIG --variable=datadir dbus-1`"
if (test -z "${path_dbus_datadir}"); then
path_dbus_datadir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
if (test -z "${path_dbus_datadir}"); then if (test -z "${path_dbus_datadir}"); then
AC_MSG_ERROR([D-Bus data directory is required]) AC_MSG_ERROR([D-Bus data directory is required])
fi fi
fi
AC_MSG_RESULT([${path_dbus_datadir}]) AC_MSG_RESULT([${path_dbus_datadir}])
fi fi
AC_SUBST(DBUS_DATADIR, [${path_dbus_datadir}]) AC_SUBST(DBUS_DATADIR, [${path_dbus_datadir}])