aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-10-18 13:27:00 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-10-18 21:51:42 +0200
commit86aaefe17b79aff4a09a22f3fffd65bd93499534 (patch)
tree7a13628b3cbe894fb7322611c402b7ee7af3ad53 /openbsc
parent2192ed8d6126cc205894d1f3622f505a9aee3def (diff)
build: Update configure.ac to use libgtp.pc rather than manual detection
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/configure.ac b/openbsc/configure.ac
index 81fbee0e6..f330c99c0 100644
--- a/openbsc/configure.ac
+++ b/openbsc/configure.ac
@@ -17,10 +17,6 @@ AC_PROG_RANLIB
dnl checks for libraries
AC_SEARCH_LIBS(crypt, crypt,
[LIBCRYPT="-lcrypt"; AC_DEFINE([VTY_CRYPT_PW], [], [Use crypt functionality of vty.])])
-AC_SEARCH_LIBS(gtp_new, gtp,
- [LIBCRYPT="-lgtp"; AC_SUBST([GPRS_LIBGTP], [1])])
-
-AM_CONDITIONAL(HAVE_LIBGTP, test "x$GPRS_LIBGTP" != "x")
AC_ARG_ENABLE([nat], [AS_HELP_STRING([--enable-nat], [Build the BSC NAT. Requires SCCP])],
@@ -48,6 +44,10 @@ PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0)
PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis >= 0.1.0)
+found_libgtp=yes
+PKG_CHECK_MODULES(LIBGTP, libgtp, , found_libgtp=no)
+AM_CONDITIONAL(HAVE_LIBGTP, test "$found_libgtp" = yes)
+
dnl checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS(dahdi/user.h,,AC_MSG_WARN(DAHDI input driver will not be built))