From: Eivind Næss Date: Tue, 10 Aug 2021 13:50:18 +0000 (-0700) Subject: Update configure.ac to use AS_IF() and correct use of paranthesis X-Git-Tag: ppp-2.5.0~36^2~10 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=bfebf96caf375ab52e4df396f3383851d5ed2647;hp=0f8817a4f973e16d9e174e7dd2310155b881a0ed Update configure.ac to use AS_IF() and correct use of paranthesis Signed-off-by: Eivind Næss --- 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