summaryrefslogtreecommitdiff
blob: a58703bc1bf3aef7b196c5a481bc2e23515e6eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/configure.ac b/configure.ac
index c46b35f..5bde44a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,7 +113,7 @@ AC_ARG_ENABLE([logind],
 
 have_logind=no
 if test x$enable_logind != xno ; then
-  PKG_CHECK_MODULES(LOGIND, [gio-unix-2.0], [have_logind=yes], [have_logind=no])
+  PKG_CHECK_MODULES(LOGIND, [gio-unix-2.0 libsystemd], [have_logind=yes], [have_logind=no])
 fi
 
 if test x$have_logind = xyes; then
@@ -124,6 +124,7 @@ have_elogind=no
 PKG_CHECK_MODULES(ELOGIND, [libelogind], [have_elogind=yes], [have_elogind=no])
 if test x$have_elogind = xyes; then
         AC_DEFINE(HAVE_ELOGIND, 1, [Define if elogind is supported])
+	AC_DEFINE(HAVE_LOGIND, 1, [Define if logind is supported])
 fi
 
 AC_SUBST(LOGIND_CFLAGS)