diff options
author | Alisson Bruno <alissonbruno.sa@gmail.com> | 2024-02-11 16:56:55 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-11 16:56:55 +0000 |
commit | 86e227cdfdb9d2454571aa2eb63c81bca139552e (patch) | |
tree | 1b608e1dd0b5bc1cb7ef188abb19c19484faf0c6 | |
parent | 9602a9f11dd5ac928a7275ceb1a58d5328b9d49e (diff) |
Fix --with-systemd-daemon option
-rw-r--r-- | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 752f4c3..5d1aa0c 100644 --- a/configure.ac +++ b/configure.ac @@ -192,16 +192,17 @@ AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$with_systemdsystemunitdir" != "xno"]) # This requires libsystemd. AC_ARG_WITH([systemd-daemon], AS_HELP_STRING([--with-systemd-daemon], [Add support for systemd startup notification (default is autodetected)]), - [USE_SYSTEMD_DAEMON=$withval], [USE_SYSTEMD_DAEMON=auto]) + [USE_SYSTEMD_DAEMON=$withval], + PKG_CHECK_EXISTS(libsystemd, [USE_SYSTEMD_DAEMON="yes"], [USE_SYSTEMD_DAEMON="no"])) AS_IF([test "x$USE_SYSTEMD_DAEMON" != "xno"], [ PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd], - [AC_DEFINE(USE_SYSTEMD_DAEMON,1,[Use systemd startup notification])], + [AC_DEFINE(USE_SYSTEMD_DAEMON,1 ,[Use systemd startup notification])], [AS_IF([test "x$USE_SYSTEMD_DAEMON" = "xyes"], [AC_MSG_ERROR([systemd startup notification support requested, but libsystemd not found.])] )] ) ]) -AM_CONDITIONAL(USE_SYSTEMD_DAEMON, [test "x$USE_SYSTEMD_DAEMON" != "xno"]) +AM_CONDITIONAL(USE_SYSTEMD_DAEMON, [test "x$USE_SYSTEMD_DAEMON" = "xyes"]) # FIXME: Find better test for which OS'es use su -m - for now, just try to # mirror the Imakefile setting of: |