[GRASS5] configure checks, fortran, static libraries
glynn.clements at virgin.net
Tue Aug 7 18:24:50 EDT 2001
Markus Neteler wrote:
> > > > > PS: An idea for postgresql support: In case the postgres stuff is not found,
> > > > > maybe the support should be switched off? Then the NVIZ can be compiled
> > > > > straight forward, the user doesn't need to run configure again with
> > > > > --enable-postgres=no. Just an idea...
> > An excellent idea. (speaking as someone who's been trying to compile
> > grass5 and wondering what I have to do to make it work, and
> > --enable-postgres=no is probably what I need to do ..)
> good news: This has been implemented today in CVS :-)
> by Glynn. Seems we have synchronized ideas.
I've modified configure[.in] so that a failed check for a PostgreSQL
header or library has the same effect as using --enable-postgres=no,
i.e. USE_POSTGRES is set to empty.
I haven't modified anything else, so USE_POSTGRES itself is still
being completely ignored.
Also, if the idea was to conditionalise PostgreSQL support in various
programs (rather than controlling whether or not to build
src.garden/grass.postgresql), USE_POSTGRES should probably be an
AC_DEFINE (which affects config.h) instead of (or as well as) an
AC_SUBST (which affects Makefile and src/CMD/head/head).
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev