diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 7b7f9c4a..3b134697 100644 --- a/configure.ac +++ b/configure.ac @@ -51,15 +51,15 @@ AC_ARG_ENABLE(lc15bts-phy, [enable code for Litecell 1.5 PHY [default=no]]), [enable_lc15bts_phy="$enableval"],[enable_lc15bts_phy="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="$includedir"]) -AC_SUBST([LITECELL15_INCDIR], $litecell15_incdir) + [litecell15_cflags="-I$withval"],[litecell15_cflags=""]) +AC_SUBST([LITECELL15_CFLAGS], $litecell15_cflags) AC_MSG_RESULT([$enable_lc15bts_phy]) AM_CONDITIONAL(ENABLE_LC15BTS_PHY, test "x$enable_lc15bts_phy" = "xyes") if test "$enable_litecell15" = "yes"; then oldCPPFLAGS=$CPPFLAGS - CPPFLAGS="$CPPFLAGS -I$LITECELL15_INCDIR -I$srcdir/include $LIBOSMOCORE_CFLAGS" + CPPFLAGS="$CPPFLAGS $LITECELL15_CFLAGS -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])], + [AC_MSG_ERROR([nrw/litecell15/litecell15.h can not be found using $litecell15_cflags])], [#include <nrw/litecell15/litecell15.h>]) CPPFLAGS=$oldCPPFLAGS fi |