configure.ac: Require sdbus-c++ when building with D-Bus support.

This is a follow-up commit to
3dd5f4ebfd ("dbus: use sdbus-c++ for
dbus communications").  The build should abort if the sdbus-c++ module
is missing (it's "required" on the CMake side, so why shouldn't it be
on the Autotools one?).

* configure.ac: Fail when sdbus-c++ is not found.  Quote the
sdbus-c++-xml2cpp command.

Change-Id: I8268abec10ba5be0eb8b520988affc9c0345a4fb
This commit is contained in:
Maxim Cournoyer
2023-08-17 22:02:27 -04:00
committed by Sébastien Blin
parent 51b8738ed8
commit 85549fce49

View File

@ -413,12 +413,12 @@ AC_ARG_WITH([dbus],
[],
[with_dbus=yes])
AS_IF([test "x$with_dbus" = "xyes"],
[PKG_CHECK_MODULES(SDBUSCPP, sdbus-c++,,
AC_MSG_WARN([Missing dbus development files]))
[PKG_CHECK_MODULES(SDBUSCPP, [sdbus-c++],,
AC_MSG_ERROR([sdbus-c++ not found]))
AC_CONFIG_FILES([bin/dbus/Makefile])
AC_PATH_PROG([SDBUSCPP_XML2CPP], sdbus-c++-xml2cpp,
AC_PATH_PROG([SDBUSCPP_XML2CPP], [sdbus-c++-xml2cpp],
[AC_MSG_ERROR([dbusxx-xml2cpp not found])])
AM_CONDITIONAL(RING_DBUS, true)],