3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +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

@ -111,7 +111,10 @@ if (test "${enable_dbus_policy}" != "no" && test -z "${path_dbus_datadir}"); the
AC_MSG_CHECKING([D-Bus data directory])
path_dbus_datadir="`$PKG_CONFIG --variable=datadir dbus-1`"
if (test -z "${path_dbus_datadir}"); then
AC_MSG_ERROR([D-Bus data directory is required])
path_dbus_datadir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
if (test -z "${path_dbus_datadir}"); then
AC_MSG_ERROR([D-Bus data directory is required])
fi
fi
AC_MSG_RESULT([${path_dbus_datadir}])
fi