From ripley at stats.ox.ac.uk  Tue Aug  1 18:43:40 2017
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 1 Aug 2017 17:43:40 +0100
Subject: [Rd] configure.ac
In-Reply-To: <C8F34903-00C6-47F7-888F-44551435C279@gmail.com>
References: <CA+WKpEu7a3z11xG0P-u_GVfse0LP7ptkh9ab+y+GpmOSajiRng@mail.gmail.com>
 <C8F34903-00C6-47F7-888F-44551435C279@gmail.com>
Message-ID: <76682724-14db-f3a4-aad1-d338b8e52592@stats.ox.ac.uk>

On 01/08/2017 17:26, peter dalgaard wrote:
> If you check developer.r-project.org, you'll find links to the scripts that we use for building releases and pre-releases of R. These are usually run on a Mac, but shouldn't require much change for Linux. In particular, notice this lead-in in the prerelease script:
> 
> rm -rf BUILD-dist
> mkdir BUILD-dist
> cd R
> aclocal -I m4
> autoconf
> cd ../BUILD-dist
> ....etc....

Or there is configure --enable-maintainer-mode, after which 'make' 
remakes 'configure' if necessary.  (That is fairly often tested on 
Linux, and occasionally on macOS with the autoconf tools added.)

> 
> -pd
> 
>> On 1 Aug 2017, at 17:29 , Ram?n Fallon <ramonfallon at gmail.com> wrote:
>>
>> Hi,
>>
>> Just a quick mail to mention that I cannot generate a new configure script
>> using autoconf or autoreconf. I had edited the configure.ac and thought ...
>> "oh, that's my fault", but then I tried it on R-patched and R-3.4.1 without
>> touching configure.ac and had the same problems.
>>
>> The "building R packages" documentation seems to suggest that "autoconf"
>> should take care of it, but I must be missing something as I expect it to
>> be a common task.
>>
>> I also tried explicit autohell (yes, I know) commands
>> 1) autoreconf --force -v
>> completes but invoking configure (with no options) gives
>>
>> checking build system type... x86_64-pc-linux-gnu
>> checking host system type... x86_64-pc-linux-gnu
>> loading site script './config.site'
>> loading build-specific script './config.site'
>> ./configure: line 2982: syntax error near unexpected token `blas'
>> ./configure: line 2982: `  withval=$with_blas; R_ARG_USE(blas)'
>>
>> OK.. there's a recipe that oen can use, starting with:
>>
>> libtoolize --force
>>
>> but you get:
>>
>> A sequence typical found out there, starting withlibtoolize: putting
>> auxiliary files in AC_CONFIG_AUX_DIR, `tools'.
>> libtoolize: linking file `tools/ltmain.sh'
>> libtoolize: You should add the contents of the following files to
>> `aclocal.m4':
>> libtoolize:   `/usr/share/aclocal/libtool.m4'
>> libtoolize:   `/usr/share/aclocal/ltoptions.m4'
>> libtoolize:   `/usr/share/aclocal/ltversion.m4'
>> libtoolize:   `/usr/share/aclocal/ltsugar.m4'
>> libtoolize:   `/usr/share/aclocal/lt~obsolete.m4'
>> libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
>> libtoolize: rerunning libtoolize, to keep the correct libtool macros
>> in-tree.
>> libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>>
>>
>> then:
>>
>> aclocal
>> autoheader
>> automake --force-missing --add-missing
>>
>> first two go OK, but the third gives
>>
>> configure.ac: no proper invocation of
>> was found.
>> configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
>> configure.ac: that aclocal.m4 is present in the top-level directory,
>> configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
>> automake: no `Makefile.am' found for any configure output
>>
>> then the following runs OK
>> autoconf
>>
>> but running configure gives the same BLAS error.
>>
>> But I'm farily sure one shouldn't run to see what's wrong with BLAS,ratehr
>> it's just the configure options not being read properly. The
>> AM_INIT_AUTOMAKE
>> issue definitely seems important.
>>
>> Is there anything I'm missing?
>>
>> Cheers and thanks in advance!
>>
>> 	[[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
> 


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford



[Rd] configure.ac
Prof Brian Ripley