[m-rev.] testing for gcc (was Re: diff: MacOS changes

Peter Moulder pmoulder at csse.monash.edu.au
Mon Sep 23 13:51:49 AEST 2002


On Tue, Sep 10, 2002 at 03:18:22AM +1000, Fergus Henderson wrote:

> scripts/mgnuc.in:
> 	If $COMPILER is "unknown" (e.g. because $CC is "cc"),
> 	don't disable grades such as "reg.gc".

autoconf defines a shell variable GCC whose value is empty or "yes"
according to whether the chosen compiler defines preprocessor symbol
__GNUC__.  If mgnuc didn't allow overriding the configured C compiler, 
then I'd definitely recommend using this test (i.e. do AC_SUBST(GCC)
or something similar) rather than going by the name.

Given that mgnuc does allow overriding the configured C compiler, I'm
not sure what the best thing is; but I thought I'd mention this for
someone else to consider.

pjm.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list