2 if test -z "${R_HOME}"; then
3 echo "could not determine R_HOME"
6 CC=`"${R_HOME}/bin/R" CMD config CC`
7 CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
8 CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
9 AC_INIT([RiDMC], 0.8.1)
12 AC_CHECK_LIB(gslcblas, main,, [AC_MSG_ERROR([Cannot find gslcblas library])] )
13 AC_CHECK_LIB(gsl, main,, [AC_MSG_ERROR([Cannot find gsl library])] )
15 AC_CHECK_LIB(lua50, lua_open,,[AC_MSG_ERROR([Cannot find lua50 library])])
16 AC_CHECK_LIB(lualib50, main,, [AC_MSG_ERROR([Cannot find lualib50 library])] )
17 AC_CHECK_HEADER(lua50/lua.h, , [AC_MSG_ERROR([Cannot find lua headers])])
21 AC_CONFIG_FILES([src/Makevars])