From e0b5680543248fb80038ec1d91d866a8bd426514 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 10 Feb 2018 11:05:58 +0100 Subject: [PATCH] build: Fall back to D-Bus sysconfdir if datadir is not available --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5c7ca365..8aa7e929 100644 --- a/configure.ac +++ b/configure.ac @@ -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