changing gmp install name

Jason Moxham J.L.Moxham@maths.soton.ac.uk
Tue, 7 Jan 2003 08:11:42 +0000


On Monday 06 Jan 2003 5:39 pm, Paul Leyland wrote:
> > From: Jason Moxham [mailto:J.L.Moxham@maths.soton.ac.uk]
> >
> > On Monday 06 Jan 2003 3:06 pm, Paul Leyland wrote:
> > > I must be missing something.   Why not just rename the
> > > files in the file system and #include or link against
> > > the new names?
> >
> > I don't know if that would work , some executibles keep their
> > own name ( I think gcc does) , I don't know if gmp does this,
> > anyway its a pain and buggy to do as you suggest , and not what
> > I want. Basically I want to make a different gmp library with
> > different functions , so it needs a different name.
>
> Sigh.
>
> #! /bin/sh
> mv /usr/local/lib/{,old}libgmp.a
> mv /usr/local/include/{,old}gmp.h
> cd /usr/local/src/gmp-test
> ./Configure
> make install
> mv /usr/local/lib/libgmp{,-test}.a
> mv /usr/local/include/gmp{,-test}.h
> mv /usr/local/lib/{old,}libgmp.a
> mv /usr/local/include/{old,}gmp.h
>
>
> I think that does precisely what you asked for, modulo compilation
> and installation errors in your test version.
>
>
> Paul

No , I asked if it's possible to change the gmp install name , so I can j=
ust=20
treat the modified gmp package like a normal one and just type configure =
,=20
make , make install  to install it under a different name. I know how to=20
write scripts to do all this before and after . What I expect the answer =
to=20
be is something like a varible "package name" in Makefile.am which I woul=
d=20
change from "GMP" to "GMP_TEST"=20

thanks

jason