diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-04-15 11:32:50 +0200 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-05-07 12:55:38 +0200 |
commit | 0de84364e374591b71826e56302e5228bc0d2dab (patch) | |
tree | dc3ae051d9fdd11896c6829b985f086dfd77de3c /configure.ac | |
parent | ab67c39b9cdd28d11dd43fe48bd1fdeab60d4c2f (diff) |
Prevent shutdown while running dpkg
As long as we are running dpkg, keep an inhibitor that
blocks us from shutting down.
LP: #1820886
(cherry picked from commit 96aef11a5cf400377a52f7e93e70944b17e249d1)
(cherry picked from commit 8ea79afcadead5a5b7d94bf8623cb833859f6d80)
(cherry picked from commit c5b8a857f2535fe284426cefda2fbd1bbb3d5808)
Also fixup prepare-release for CI to handle [linux-any] build-dep,
and do the whole autoconf / makefile stuff.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 82b7e73a6..edf98fbeb 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,12 @@ if test "x$HAVE_LZMA" = "xyes"; then AC_DEFINE(HAVE_LZMA) fi +HAVE_SYSTEMD=no +AC_SUBST(HAVE_SYSTEMD) +PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], + [HAVE_SYSTEMD=yes + AC_DEFINE(HAVE_SYSTEMD)]) + dnl Converts the ARCH to be something singular for this general CPU family dnl This is often the dpkg architecture string. dnl First check against the full canonical canoncial-system-type in $target |