Add boost/math and boost/random to configure script for mex build system
parent
6a224e78a0
commit
ad28c2054d
|
@ -1,7 +1,8 @@
|
|||
vpath %.cc $(top_srcdir)/../../sources/estimation $(top_srcdir)/../../sources/estimation/libmat $(top_srcdir)/../../sources/estimation/utils
|
||||
vpath %.hh $(top_srcdir)/../../sources/estimation $(top_srcdir)/../../sources/estimation/libmat
|
||||
|
||||
CPPFLAGS += -I$(top_srcdir)/../../sources/estimation/libmat -I$(top_srcdir)/../../sources/estimation/utils
|
||||
CPPFLAGS += -I$(top_srcdir)/../../sources/estimation/libmat -I$(top_srcdir)/../../sources/estimation/utils $(BOOST_CPPFLAGS)
|
||||
LDFLAGS += $(BOOST_LDFLAGS)
|
||||
|
||||
noinst_PROGRAMS = loglikelihood
|
||||
|
||||
|
|
|
@ -59,6 +59,15 @@ AC_PROG_RANLIB
|
|||
AX_PROG_LN_S
|
||||
AC_PROG_MKDIR_P
|
||||
AX_PTHREAD
|
||||
# Check for boost libraries used in estimation DLL
|
||||
AC_LANG_PUSH([C++])
|
||||
AX_BOOST_BASE([1.34])
|
||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
||||
AC_CHECK_HEADER([boost/random/linear_congruential.hpp], [], [AC_MSG_ERROR([Can't find Boost Random Library])])
|
||||
AC_CHECK_HEADER([boost/math/distributions/beta.hpp], [], [AC_MSG_ERROR([Can't find Boost Math Library])])
|
||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||
AC_LANG_POP([C++])
|
||||
# Check for dlopen(), needed by k_order_perturbation DLL
|
||||
AC_CHECK_LIB([dl], [dlopen], [LIBADD_DLOPEN="-ldl"], [])
|
||||
AC_SUBST([LIBADD_DLOPEN])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
|
||||
dnl Copyright (C) 2009 Dynare Team
|
||||
dnl Copyright (C) 2009-2010 Dynare Team
|
||||
dnl
|
||||
dnl This file is part of Dynare.
|
||||
dnl
|
||||
|
@ -40,6 +40,15 @@ AC_PROG_RANLIB
|
|||
AX_PROG_LN_S
|
||||
AC_PROG_MKDIR_P
|
||||
AX_PTHREAD
|
||||
# Check for boost libraries used in estimation DLL
|
||||
AC_LANG_PUSH([C++])
|
||||
AX_BOOST_BASE([1.34])
|
||||
CPPFLAGS_SAVED="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
|
||||
AC_CHECK_HEADER([boost/random/linear_congruential.hpp], [], [AC_MSG_ERROR([Can't find Boost Random Library])])
|
||||
AC_CHECK_HEADER([boost/math/distributions/beta.hpp], [], [AC_MSG_ERROR([Can't find Boost Math Library])])
|
||||
CPPFLAGS="$CPPFLAGS_SAVED"
|
||||
AC_LANG_POP([C++])
|
||||
# Check for dlopen(), needed by k_order_perturbation DLL
|
||||
AC_CHECK_LIB([dl], [dlopen], [LIBADD_DLOPEN="-ldl"], [])
|
||||
AC_SUBST([LIBADD_DLOPEN])
|
||||
|
|
Loading…
Reference in New Issue