diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-09-25 13:23:42 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-10-11 08:40:37 +0000 |
commit | 55c3f7d3f693029ee759bd8f77573eef3ae5204b (patch) | |
tree | d4e42db54a68794164437e6e610f44dda2b0216b /configure.ac | |
parent | 803c7705519e40f9b831afeb385ee47b501183da (diff) | |
download | ModemManager-55c3f7d3f693029ee759bd8f77573eef3ae5204b.tar.gz |
systemd: always start MM after polkit service if enabling policy
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/113
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d3c9beba3..667fb9d09 100644 --- a/configure.ac +++ b/configure.ac @@ -288,6 +288,7 @@ elif test "x$with_polkit" = "xyes"; then with_polkit=strict fi +MM_POLKIT_SERVICE="" if test "x$with_polkit" != "xno"; then if test "x$have_polkit" = "xno"; then AC_MSG_ERROR(PolicyKit development headers are required) @@ -296,9 +297,11 @@ if test "x$with_polkit" != "xno"; then case "x$with_polkit" in "xpermissive") MM_DEFAULT_USER_POLICY="yes" + MM_POLKIT_SERVICE="polkit.service" ;; "xstrict") MM_DEFAULT_USER_POLICY="auth_self_keep" + MM_POLKIT_SERVICE="polkit.service" ;; *) AC_MSG_ERROR([Wrong value for --with-polkit: $with_polkit]) @@ -311,6 +314,7 @@ if test "x$with_polkit" != "xno"; then AC_SUBST(MM_DEFAULT_USER_POLICY) fi +AC_SUBST(MM_POLKIT_SERVICE) AM_CONDITIONAL(WITH_POLKIT, [test "x$with_polkit" != "xno"]) dnl----------------------------------------------------------------------------- |