diff --git a/configure.ac.in b/configure.ac.in index 31e813b..b8a3576 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -139,6 +139,7 @@ AM_CONDITIONAL([HAVE_DBUS], [test "x$enable_dbus" = "xyes"]) AS_IF([test "x$enable_dbus" = "xyes"], [ + XDT_CHECK_PACKAGE([GIO_UNIX], [gio-unix-2.0], [2.42.0]) AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen]) AC_DEFINE([HAVE_DBUS], [1], [Define if DBUS support is enabled]) ]) diff --git a/mousepad/Makefile.am b/mousepad/Makefile.am index 7bd0f8c..0265fc0 100644 --- a/mousepad/Makefile.am +++ b/mousepad/Makefile.am @@ -97,10 +97,12 @@ mousepad_dbus_sources = \ mousepad_CFLAGS += \ -DDBUS_API_SUBJECT_TO_CHANGE \ - $(DBUS_CFLAGS) + $(DBUS_CFLAGS) \ + $(GIO_UNIX_CFLAGS) mousepad_LDADD += \ - $(DBUS_LIBS) + $(DBUS_LIBS) \ + $(GIO_UNIX_LIBS) endif if WITH_KEYFILE_SETTINGS