From bfebf96caf375ab52e4df396f3383851d5ed2647 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Tue, 10 Aug 2021 06:50:18 -0700 Subject: [PATCH] Update configure.ac to use AS_IF() and correct use of paranthesis MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eivind Næss --- configure.ac | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 24b3e12..ae69aa7 100644 --- a/configure.ac +++ b/configure.ac @@ -105,10 +105,8 @@ AC_ARG_ENABLE([systemd], AM_CONDITIONAL(WITH_SYSTEMD, test "x${enable_systemd}" = "xyes") AM_COND_IF([WITH_SYSTEMD], AC_DEFINE([SYSTEMD], 1, [Enable support for systemd notifications])) - -if test "x${enable_systemd}" = "xyes"; then - PKG_CHECK_MODULES([systemd], [systemd]) -fi +AS_IF([test "x${enable_systemd}" = "xyes"], [ + PKG_CHECK_MODULES([systemd], [systemd])]) # # Enable Callback Protocol Support, disabled by default -- 2.39.2