Karim Belabas on Fri, 05 Sep 2008 16:09:01 +0200

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Cross compiling PARI/what about autoconf?

* Jeroen Demeyer [2008-09-04 12:20]:
> Karim Belabas wrote:
>> 2) it's a non-trivial project with dubious advantages (cross-compiling)
> 3) I noticed that a lot of checks in PARI use things like #ifdef UNIX or 
> #ifdef __GNUC__, instead of checking for the features that you want.  So 
> these things should be changed, and then you might as well use GNU 
> configure for that.

Oh, this is quite unrelated and rather easy to fix: all checks written
after 1998 or so use a HAVE_<feature> syntax, so there are about 12
instances of #ifdef UNIX in current svn trunk (mostly gp.c / es.c).

I agree the #ifdef UNIX *must* be fixed, but this is a very small scale
project compared to fully switching to autoconf (about one or two hours ?).

The __GNUC__ is [ in all but one silly case to cater for old broken HPUX
headers ] about allowing GNU C [ = ({...}) ] macros  and is perfectly
appropriate, I think.


Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]