From dhinds at sonic.net  Wed Oct  5 20:40:26 2005
From: dhinds at sonic.net (dhinds@sonic.net)
Date: Wed, 5 Oct 2005 18:40:26 +0000 (UTC)
Subject: [Rd] Problems with autoconf example from r-ext.
References: <433C6B7B@webmail.ncl.ac.uk>
	<Pine.LNX.4.61.0510051435040.26864@gannet.stats>
Message-ID: <di16mq$c5q$1@sea.gmane.org>

Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> The current R-exts.texi has

> AC_INIT([RODBC], 1.1.4) dnl package name, version

> and that is crucially different from your example.  Autoconf 2.59 has a 
> barely documented back-compatibility mode than is invoked for AC_INIT with 
> just one argument.

I was tripped up by this same issue, and was not easily able to figure
out from the autoconf documentation how AC_INIT had changed over time.
The one-argument AC_INIT, for the version of autoconf I was using
(2.57), expects its argument to be a path to a file that is relatively
unique to the package.

However, this isn't actually related to the problem at hand:

> > R CMD INSTALL
> > --configure-args='--with-sbmlode-lib=/data/opt/sbmlodesolve/include \
> > --with-sbmlode-include=/data/opt/sbmlodesolve/lib' \
> > SBMLodeSolveR

This is a shell programming error.  Remove the '\' inside your quoted
--configure-args argument.  The backslash causes the newline to be
escaped in the string passed to the configure script, which confuses
the argument parser.  You don't need the backslash because a quoted
string is automatically continued until the closing quote is seen.

-- Dave



[Rd] Problems with autoconf example from r-ext.
dhinds@sonic.net