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:
parent
9f19cc3d25
commit
e0b5680543
@ -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}])
|
||||||
|
Loading…
Reference in New Issue
Block a user