Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for elogind #253

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add support for elogind
Uses similar patch to the one already included in mate-screensaver.
oz123 committed Aug 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit bba02906307cb35e6331736d1e1246da5e451cd6
20 changes: 20 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -78,6 +78,25 @@ fi

AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_systemd" = "yes"])

AC_ARG_WITH(elogind,
AS_HELP_STRING([--with-elogind],
[Use libelogind instead of libsystemd-login]),
[with_elogind=$withval], [with_elogind=no])
oz123 marked this conversation as resolved.
Show resolved Hide resolved

use_elogind=no
if test "x$with_elogind" = "xyes"; then
PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], [use_elogind=no])
oz123 marked this conversation as resolved.
Show resolved Hide resolved

if test "x$use_elogind" = "xyes"; then
AC_DEFINE([WITH_ELOGIND], 1, [elogind support])
oz123 marked this conversation as resolved.
Show resolved Hide resolved
AC_DEFINE([WITH_SYSTEMD], 1, [Define to 1 to reduce ifdefs since elogind is a drop-in replacement for systemd])
AC_SUBST(LIBELOGIND_CFLAGS)
AC_SUBST(LIBELOGIND_LIBS)
oz123 marked this conversation as resolved.
Show resolved Hide resolved
fi
fi
AM_CONDITIONAL(WITH_ELOGIND, [test "x$use_elogind" = "xyes"])
AC_SUBST(WITH_ELOGIND)
oz123 marked this conversation as resolved.
Show resolved Hide resolved

# Compiler warnings
MATE_COMPILE_WARNINGS
MATE_CXX_WARNINGS
@@ -141,6 +160,7 @@ Configure summary:
WARN_CFLAGS: ${WARN_CFLAGS}
C++ Compiler: ${CXX}
CXXFLAGS: ${CXXFLAGS}
Elogind support: ${use_elogind}
oz123 marked this conversation as resolved.
Show resolved Hide resolved
WARN_CXXFLAGS: ${WARN_CXXFLAGS}
Maintainer mode: ${USE_MAINTAINER_MODE}
Systemd support: ${have_systemd}