[GRASS5] Re: [GRASSLIST:2065] Re: Compiling grass5.0.0pre1 under Solaris 8???

Glynn Clements glynn.clements at virgin.net
Fri Jul 6 23:21:00 EDT 2001


Markus Neteler wrote:

> > It appears that the configure script needs to avoid using
> > -I/usr/include when checking for header file locations.
> > 
> > AFAIK, the compiler ought to search that directory automatically (and
> > if it doesn't, the user should be able to use the "--with-includes="
> > switch). It seems that explicitly adding -I/usr/include prevents
> > compiler-specific headers (e.g. stdarg.h) from being used correctly.
> > 
> > Currently, the header file checks loop over a list of directories
> > (including /usr/include), performing each test with "-I$dir". Any such
> > test needs to first be performed without any "-I" switch, rather than
> > with "-I/usr/include".
> > 
> > NB: my original advice was based upon comments made on the xemacs-beta
> > list. That related to someone who explicitly added /usr/include via
> > "--site-includes="; XEmacs' configure script (unlike GRASS') doesn't
> > add "-I/usr/include" automatically.
> > 
> > Looking at some configure.in scripts from other packages, most of them
> > don't go to great lengths to find include directories automatically. 
> > Mostly they require the user to explicitly specify non-standard
> > include directories.
> 
> Glynn,
> 
> I suggest to change the configure[.in] as suggested and give it a try.
> I can test 3 machines here (Solaris, CRAY, Linux).
> 
> Will you going to change if there are no objections?

OK, I'll make a start on it.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list