Karim BELABAS on Wed, 12 Jun 2002 18:50:46 +0200 (MEST)


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

Re: better version information


On Wed, 12 Jun 2002, Bill Allombert wrote:

> Hello pari-dev,
>
> dft.config.in should contain the PARI/GP version in simple
> form, say as
> version="2.2.3"
>
> Also #include<pari.h>
> should define a symbol with the pari version.

Sure. You patch it ? The LINUX_VERSION_CODE example you sent me
[ NB:
  #define UTS_RELEASE "2.2.19"
  #define LINUX_VERSION_CODE 131603
  #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

  used as

  #if LINUX_VERSION_CODE <= KERNEL_VERSION(2.2.19)
]

looks fine.

I want to add a version() command in gp [ and a preprocessor construct for
~/.gprc ] so as to be able to test the version number before using relatively
new features. I'm fed up with (older) gp exiting on startup because #L for
length(L) is undefined, or a useful new default does not exist.

It will not cure past versions, but if I had done it when I first thought
about it, it would have been fixed 5 years ago...

> Also make install should install dft.config.in is /usr/lib/pari
> (not in /usr/share since it is not shareable), so that gp2c
> does not need a configured tree.

OK. Patch ?

    Karim.

-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas
--
PARI/GP Home Page: http://www.parigp-home.de/