Commit 06e445f4 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Check for belr in configure and link with it in makefile

parent dfe66cbb
......@@ -25,6 +25,24 @@ if test "$xxd_found" != yes ;then
AC_MSG_ERROR("xxd is required (provided by vim package)")
fi
dnl ##################################################
dnl # Check for Belr
dnl ##################################################
dnl check belr
PKG_CHECK_MODULES(BELR, [libbelr],[libbelr_found=yes],foo=bar)
if test "$libbelr_found" != "yes" ; then
dnl Check the lib presence in case the PKG-CONFIG version is not found
AC_LANG_CPLUSPLUS
AC_CHECK_LIB(belr, main, [BELR_LIBS+=" -lbelr"; libbelr_found=yes], [foo=bar])
AC_LANG_C
fi
if test "$libbelr_found" != "yes" ; then
AC_MSG_ERROR([libbelr not found. Install it and try again])
fi
AC_SUBST(BELR_LIBS)
dnl ##################################################
dnl # Check for CUnit
dnl ##################################################
......
......@@ -24,3 +24,4 @@ libbelcard_la_SOURCES=belcard_parser.cpp \
AM_CPPFLAGS=-I$(top_srcdir)/include
libbelcard_la_LIBADD=$(BELR_LIBS)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment