From 29a0197ead937c713a3b8e8339d2a3974ac6f0c9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 20 Jan 2016 16:56:34 +0100 Subject: LC15: configure.ac: Allow specifying an alternate include-dir The user can now use ./configure --with-litecell15=/my/local/path --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 66879d95..0951e187 100644 --- a/configure.ac +++ b/configure.ac @@ -73,8 +73,19 @@ AC_ARG_ENABLE(litecell15, AC_HELP_STRING([--enable-litecell15], [enable code for NuRAN Wireless Litecell15 bts [default=no]]), [enable_litecell15="yes"],[enable_litecell15="no"]) +AC_ARG_WITH([litecell15], [AS_HELP_STRING([--with-litecell15=INCLUDE_DIR], [Location of the litecell 1.5 API header files])], + [litecell15_incdir="$withval"],[litecell15_incdir="$incdir"]) +AC_SUBST([LITECELL15_INCDIR], $litecell15_incdir) AC_MSG_RESULT([$enable_litecell15]) AM_CONDITIONAL(ENABLE_LC15BTS, test "x$enable_litecell15" = "xyes") +if test "$enable_litecell15" = "yes"; then + oldCPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS -I$LITECELL15_INCDIR -I$srcdir/include $LIBOSMOCORE_CFLAGS" + AC_CHECK_HEADER([nrw/litecell15/litecell15.h],[], + [AC_MSG_ERROR([nrw/litecell15/litecell15.h can not be found in $litecell15_incdir])], + [#include ]) + CPPFLAGS=$oldCPPFLAGS +fi # We share gsm_data.h with OpenBSC and need to be pointed to the source # directory of OpenBSC for now. -- cgit v1.2.3