From 56698b84e0e0caa373c74df8e76b5f476aee1d9a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 20 Dec 2012 00:21:38 +0100 Subject: openbsc: Check for the presence of the gsm_data_shared.h header file --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ef583d36..e726367b 100644 --- a/configure.ac +++ b/configure.ac @@ -40,9 +40,16 @@ AC_ARG_WITH([openbsc], [AS_HELP_STRING([--with-openbsc=INCLUDE_DIR], [OpenBSC include directory for openbsc/gsm_data_shared.h])], [openbsc_incdir="$withval"], - [openbsc_incdir="\$(abs_top_srcdir)/../openbsc/openbsc/include"]) + [openbsc_incdir="`cd $srcdir; pwd`/../openbsc/openbsc/include"]) AC_SUBST([OPENBSC_INCDIR], $openbsc_incdir) +oldCPPFLAGS=$CPPFLAGS +CPPFLAGS="$CPPFLAGS -I$OPENBSC_INCDIR $LIBOSMOCORE_CFLAGS" +AC_CHECK_HEADER([openbsc/gsm_data_shared.h],[], + [AC_MSG_ERROR([openbsc/gsm_data_shared.h can not be found in $openbsc_incdir])], + []) +CPPFLAGS=$oldCPPFLAGS + AC_OUTPUT( src/Makefile src/common/Makefile -- cgit v1.2.3