[GRASS5] configure on systems other than linux

Andreas Lange Andreas.Lange at Rhein-Main.de
Tue Sep 11 12:17:14 EDT 2001


Hi again,

sorry to insist again, but configure does not work for me. 

I just tested on Solaris 7 / SPARC and despite installing fftw-2.1.3,
jpeg6b, png, gd-1.8.4, tcl/tk 8.2 and mesa (in /usr/local/lib|include,
adding --with-libs=/usr/local/lib and --with-includes=/usr/local/include
to
./configure), all these libraries are not found. 

If i put all libraries on the command line:
export
PATH=$PATH/export/home/andreas/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr
/bin:/opt/Summertime_98.sparc/bin:/opt/sfw/bin:/usr/sbin:/usr/xpg4/bin:/usr/local/bin
./configure \
--prefix=/export/home/andreas \
--enable-postgres=no \
--enable-opengl \
--with-libes=/usr/local/include \
--with-includes=/usr/local/include \
--with-tcltk-libs=/usr/local/lib \
--with-tcltk-includes=/usr/local/include \
--with-zlib-libs=/usr/local/lib \
--with-zlib-includes=/usr/local/include \
--with-tiff-libs=/usr/local/lib \
--with-tiff-includes=/usr/local/include \
--with-opengl-libs=/usr/local/lib \
--with-opengl-includes=/usr/local/include \
--with-fftw-libs=/usr/local/lib \
--with-fftw-includes=/usr/local/include

most of the libraries are found. 

I think the reason is that the dependencies are different on each
system, e.
g. libgd needs -lgd -lpng -ljpeg -lz -lm on Solaris to link, but
configure
just uses -lgd -lpng. But why are the libraries found if specified on
the command line? I am clueless.

On cygwin this is similar, but just more weird.
I can compile a test stub program with:
gcc test-gd.c -lgd -lpng -ljpeg -lz -lm
while:
gcc -lgd -lpng -ljpeg -lz -lm test-gd.c
miserably fails. 

But configure just does not find the library, even if i build gd2
without
jpeg. I tried to implement the library checking the same way the tiff
lib is
checked, but i got stuck with all those nested [].

I have access to machines with Solaris 7/SPARC, Solaris 7/x86, IRIX 6.5,
Linux, FreeBSD 4.3 (Intel/Alpha) and cygwin. I volunteer to check, but
first
we should fix configure.in/configure for the known dependencies.

I am waiting for your suggestions...

cu,

Andreas   
-- 
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
url: http://mitglied.tripod.de/AndreasLange
mail: Andreas.Lange_at_Rhein-Main.de - A.C.Lange_at_GMX.net



More information about the grass-dev mailing list