[GRASS5] Re: [GRASS-CVS] CVS update: grass
Glynn Clements
glynn.clements at virgin.net
Fri Aug 3 00:30:47 EDT 2001
Eric G. Miller wrote:
> > It tries each of -ltk and -ltk<version> three times; once with no
> > additional libraries, once with the X libraries, and once with X
> > libraries and libdl.
> >
> > However, it appears to be caching the fact that both -ltk and
> > -ltk<version> failed the first time, and not actually performing the
> > last two sets of checks.
>
> That caching seems to be the normal behavior, hence all the file tests,
> prior to the AC_CHECK_LIB() tests in the previous versions...
> Unfortunately, the Tcl/Tk libs are named in various manners on various
> platforms... (libtk8.0, libtk80, libtk, etc... ).
Checking for multiple library names isn't problematic; a cached result
from AC_CHECK_LIB(tk, ...) won't affect AC_CHECK_LIB(tk8.0, ...) and
so on.
The problem comes when performing multiple AC_CHECK_LIB operations
with identical library names, but with different settings for LDFLAGS.
Anyway, I think that I can "undo" the caching by unsetting the
appropriate ac_cv_lib_* variable.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list