diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-08-26 20:14:35 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-08-27 17:49:29 +0200 |
| commit | 1a9bc22460c5bde4ba169b0cc4732971de309720 (patch) | |
| tree | 943c28ba1f2c8f90841df303aed06dbdcd61ee28 /configure.ac | |
| parent | 3b5f8c91fe0e5a3d04a5ba10a651fc6817119a19 (diff) | |
| download | NetworkManager-1a9bc22460c5bde4ba169b0cc4732971de309720.tar.gz | |
build: cleanup build defines for session-tracking
- always define the SESSION_TRACKING_* defines to replace
"#ifdef" with "#if".
- drop defining the consolekit database path CKDB_PATH in
config.h. The path was not customizable via configure/meson.
- fix meson build to enable consolekit support for session tracking
without also enabling logind/elogind session tracking.
logind/elogind is mutually exclusive, but consolekit session tracking
goes together just fine.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index cc5d488454..ea1c43f12f 100644 --- a/configure.ac +++ b/configure.ac @@ -444,6 +444,8 @@ fi if test "$have_systemd_logind" = "yes"; then AC_DEFINE([SESSION_TRACKING_SYSTEMD], 1, [Define to 1 if libsystemd-login is available]) session_tracking="$session_tracking, systemd-logind" +else + AC_DEFINE([SESSION_TRACKING_SYSTEMD], 0, [Define to 1 if libsystemd-login is available]) fi if test "$use_elogind" = "yes" -a "$have_systemd_logind" = "yes"; then @@ -460,12 +462,15 @@ fi if test "$have_elogind" = "yes"; then AC_DEFINE([SESSION_TRACKING_ELOGIND], 1, [Define to 1 if libelogin is available]) session_tracking="$session_tracking, elogind" +else + AC_DEFINE([SESSION_TRACKING_ELOGIND], 0, [Define to 1 if libelogin is available]) fi if test "$use_consolekit" = "yes"; then AC_DEFINE([SESSION_TRACKING_CONSOLEKIT], 1, [Define to 1 if ConsoleKit is available]) - AC_DEFINE([CKDB_PATH], "/var/run/ConsoleKit/database", [Path to ConsoleKit database]) session_tracking="$session_tracking, consolekit" +else + AC_DEFINE([SESSION_TRACKING_CONSOLEKIT], 0, [Define to 1 if ConsoleKit is available]) fi session_tracking="$(printf '%s' "${session_tracking}" | sed 's/^, //')" |
