diff options
author | Victor Kareh <[email protected]> | 2019-03-27 10:52:03 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-04-18 11:09:48 +0200 |
commit | 3e6353aba38bbb204ecb3b712a49d97cf774347f (patch) | |
tree | 6c0f13dc831f01bdd9b1da6c7f3bf32c978c565c /configure.ac | |
parent | c820bcf2531e0c597727ec0904606b2a9af65bb1 (diff) | |
download | mate-session-manager-3e6353aba38bbb204ecb3b712a49d97cf774347f.tar.bz2 mate-session-manager-3e6353aba38bbb204ecb3b712a49d97cf774347f.tar.xz |
Remove duplicate check for libelogind
Also default to no, since elogind is not officially supported.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 1390ba0..a71617f 100644 --- a/configure.ac +++ b/configure.ac @@ -119,13 +119,11 @@ dnl ==================================================================== AC_ARG_WITH(elogind, AS_HELP_STRING([--with-elogind], [Use libelogind instead of libsystemd-login]),, - with_elogind=auto) + with_elogind=no) use_elogind=no -if test "x$with_elogind" != "xno"; then - PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], - [PKG_CHECK_MODULES([LIBELOGIND], [libelogind], - [use_elogind=yes], [use_elogind=no])]) +if test "x$with_elogind" = "xyes"; then + PKG_CHECK_MODULES(LIBELOGIND,[libelogind], [use_elogind=yes], [use_elogind=no]) if test "x$use_elogind" = "xyes"; then AC_DEFINE([HAVE_ELOGIND], 1, [elogind support]) |