[Rd] standardized add-on package configuration
Wed, 15 Nov 2000 11:18:41 +0100
Several add-on packages (e.g., most DBMS ones, XML, ...) come with a
configure script which tries to find headers and libraries required by
the package. I was wondering whether we could/should standardize how
this is done.
In what follows, suppose package FOO needs functionality BAR.
* One approach would be via command-line arguments to configure. There
seems to be no standard for this. GNOME uses
in several of its components. However, this, assumes that the GNU
standards are followed in the sense that headers go into
and libs go into
which might not necessarily be the case.
Alternatively, we could have
(one of each only, of course).
* The other possibility would be via environment variables, such as
CPPFLAGS and LIBS or maybe FOO_CPPFLAGS and FOO_LIBS. (E.g., for
package XML we would use LIBXML_CPPFLAGS and LIBXML_LIBS.)
I think the simplest solution would be via CPPFLAGS and LIBS because it
is not package-specific. So installation would happen via
CPPFLAGS=... LIBS=... R CMD INSTALL /path/to/pkg.tar.gz
(did not check if this works now).
Now I did not check all packages, so is there something I may be
(Once we agree on a standard, I would like to document it in R-exts.)
r-devel 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: firstname.lastname@example.org