elogind-configure-fix.patch 1.0 KB

1234567891011121314151617181920212223242526272829
  1. From 08bb656496cd3d6213bbe9473f63f2d4a110da6e Mon Sep 17 00:00:00 2001
  2. From: Rasmus Thomsen <cogitri@exherbo.org>
  3. Date: Wed, 11 Apr 2018 13:14:14 +0200
  4. Subject: [PATCH] configure: fix elogind support
  5. HAVE_LIBSYSTEMD is used to determine which source files to use.
  6. We have to check if either have_libsystemd or have_libelogind is
  7. true, as both of these need the source files which are used when
  8. HAVE_LIBSYSTEMD is true.
  9. ---
  10. configure.ac | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/configure.ac b/configure.ac
  13. index 36df239..da47ecb 100644
  14. --- a/configure.ac
  15. +++ b/configure.ac
  16. @@ -221,7 +221,7 @@ AS_IF([test "x$cross_compiling" != "xyes" ], [
  17. AC_SUBST(LIBSYSTEMD_CFLAGS)
  18. AC_SUBST(LIBSYSTEMD_LIBS)
  19. -AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes"], [Using libsystemd])
  20. +AM_CONDITIONAL(HAVE_LIBSYSTEMD, [test "$have_libsystemd" = "yes" || test "$have_libelogind" = "yes" ], [Using libsystemd])
  21. dnl ---------------------------------------------------------------------------
  22. dnl - systemd unit / service files
  23. --
  24. 2.17.0