[GRASS5] configure.in Wants testers...

Justin Hickey jhickey at hpcc.nectec.or.th
Tue Nov 28 03:34:39 EST 2000


Hi Eric

"Eric G . Miller" wrote:
> 
> On Mon, Nov 27, 2000 at 11:43:05AM +0000, Markus Neteler wrote:
> > > You will notice that SRC variable is empty, thus causing paths for
> > > things in the grass source tree to bigin with /. Checking the
> > > Makefile indicates that SRCDIR=$(pwd) which in this case is empty.
> > > I don't know if this is only happening on SGI's or not. Markus,
> > > did you try a make
> > > install on Linux?
> >
> > On Linkx it runs well with new configure (except TCLTK):
> >
> > Makefile
> > [...]
> > SRCDIR=                 /home/neteler/ggg
> >
> > It is set properly.
> >
> > In configure.in it is aroung line 417:
> > SRCDIR=$(pwd)
> 
> Yes, I added that.  I thought that was supposed to be the "portable"
> way to run 'pwd', but apparently it isn't.  `pwd` is supposed to be
> bad, but I don't know why.  I'll take a look again.

Since my system seems to be causing the problem I did some poking around
and I may be totally off-base here since my knowledge of autoconf is
very minimal.

What I found was that the @srcdir@ variable (note the lower case) is
preset by autoconf. I commented out the lines concerning the definition
of SRCDIR in configure.in and changed the substitution string in
Makefile.in to lower case. I then ran make distclean, ran autoconf, then
ran configure and the substitution in Makefile turned out to be "." (a
single dot - current directory).

Does this value make sense for our purposes? On my machine, when I ran
make install, it solved the earlier problems, however, in
src/CMD/generic/GISGEN.sh, there is a "cd /tmp" command at the top which
screws up the $GMAKE variable, since it is set to ./src/CMD/gmake5.0
(which does not exist in /tmp).

So, it appears that the . definition would work if all our scripts were
written to take this into account. Does anybody know what kind of effort
this would be (perhaps this is a minimal change)? Does the @srcdir@ get
substituted with a dot on other systems? Or am I way off base and this
is just a looney idea which somebody else has already looked into?

Any comments would be greatly appreciated. Thanks.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list