[Rd] location of Rconfig.h when using architecture-dependent subdirs

Konis Kjell kjell.konis at epfl.ch
Wed Sep 29 14:46:42 CEST 2010


Hello,

I just tried configuring R to use architecture-dependent subdirs

  $ r_arch=x86_64 ./configure --prefix=/u/smat/konis/testdir


on a Debain Squeeze box

  $ uname -a
  Linux smapc007 2.6.32-5-686 #1 SMP Sat Sep 18 02:14:45 UTC 2010 i686
GNU/Linux


After building and installing, the Rconfig.h ended up in
.../lib/R/include/x86_64 but R.h still includes it as

  #include <Rconfig.h>

I noticed that the CRAN binary for Mac OS X has the following
.../lib/R/include/Rconfig.h. What step am I missing that causes this file
to be generated?

Thanks,
Kjell


/* This is an automatically generated universal stub for
architecture-dependent headers. */
#ifdef __i386__
#include "i386/Rconfig.h"
#elif defined __ppc__
#include "ppc/Rconfig.h"
#elif defined __ppc64__
#include "ppc64/Rconfig.h"
#elif defined __x86_64__
#include "x86_64/Rconfig.h"
#elif defined __arm__
#include "arm/Rconfig.h"
#else
#error "Unsupported architecture."
#endif



More information about the R-devel mailing list