diff mbox

[openggsn,3/4] ggsn: fix autotool pkg-config invokation

Message ID 1447759365-24099-4-git-send-email-aschultz@tpip.net
State Accepted
Headers show

Commit Message

Andreas Schultz Nov. 17, 2015, 11:22 a.m. UTC
see https://autotools.io/pkgconfig/pkg_check_modules.html, Optional Modules
for explanation

Signed-off-by: Andreas Schultz <aschultz@tpip.net>
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 1fad6b1..3f5148a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,9 +50,9 @@  AC_ARG_ENABLE([gtp-kernel],
 	AS_HELP_STRING([--enable-gtp-kernel], [Build GTP tunneling kernel]),
 	[enable_gtp_kernel="$enableval"], [enable_gtp_kernel="no"])
 
-if test "x$enable_gtp_kernel" = "xyes"; then
+AS_IF([test "x$enable_gtp_kernel" = "xyes"], [
 	PKG_CHECK_MODULES([LIBGTPNL], [libgtpnl >= 1.0.0])
-fi
+])
 
 AM_CONDITIONAL([ENABLE_GTP_KERNEL], [test "$enable_gtp_kernel" = "yes"])