It is sometimes useful to be able to detect the compiler version (as in the 
case of GCC 4.2 doing some fairly aggressive optimization that breaks fragile 
code).

How about something like:

AC_GCC_VERSION(VER, MATCHING-VERSION, [ NON-MATCHING-VERSION ])

so I could do something like:

AC_GCC_VERSION(4.2, [OPTIMIZE =], [OPTIMIZE = -O2])

Then I could avoid:

http://svnview.digium.com/svn/asterisk/branches/1.4/codecs/gsm/Makefile?r1=285817&r2=285816&pathrev=285817

Thanks.

-Philip

Reply via email to