[R] [OT] autoconf - use existing libs or compile own

Kurt Hornik Kurt.Hornik at ci.tuwien.ac.at
Fri Apr 27 15:59:56 CEST 2001


>>>>> Jason Turner writes:

> I'm building a small library that uses a handful of Lapack functions
> (dstevr and its dependants).  Since not everybody has Lapack installed, 
> I thought it might be neighborly to provide these routines, so folks
> could compile them if needed.  However, if they've got Lapack it makes
> sense to use the existing libraries, as these may well be optimized
> to the local machine.

> Is that a good way to proceed?  If so, does anyone have pointers
> on how to set up autoconf to do this sort of thing?  I've only
> ever set it up to check for libs, and halt the build if the
> libs aren't found.  I've never made it take the initiative and
> roll its own libraries if it can't find them.

> RTFM is a perfectly good answer, but if you could mention which FM, 
> I'd appreciate it.  The above seemed a bit more complex than
> what I'm able to get out of "Writing R Extensions".  That may say
> more about me than the document, though.

Have a look at the configure script in package Matrix.

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list