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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Schultz aschultz at tpip.net
Tue Nov 17 11:22:44 UTC 2015


see https://autotools.io/pkgconfig/pkg_check_modules.html, Optional Modules
for explanation

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

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"])
 
-- 
2.5.0




More information about the OpenBSC mailing list