mhunter1 / dynr

Dynamic Modeling in R
5 stars 6 forks source link

Update configuration scripts for Rcpp, RcppArmadillo, and RcppGSL #273

Open mhunter1 opened 1 year ago

mhunter1 commented 1 year ago

The ./configure.ac file creates (via autoconf) the ./configure file which is used for Mac/Linux/Unix-alike systems. The ./configure.win file similarly sets the configuration for Windows.

In general, setting variables like CC, CFLAGS, CPPFLAGS, GSL_CFLAGS, and GSL_LIBS occurs in configuration and uses R_HOME. By contrast, setting variables like PKG_CPPFLAGS, PKG_LIBS, and GSL_LIBS occurs in the various Makevars files: ./Makevar.in, ./Makevars.win, and ./Makevars.ucrt. For portability, the Makevars files should not use R_HOME.

All these need to be updated for use with the arma branch, RcppArmadillo, and RcppGSL.