[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf: feature request: test for GCC version
From: |
Philip Prindeville |
Subject: |
autoconf: feature request: test for GCC version |
Date: |
Wed, 13 Apr 2011 15:49:07 -0600 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
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
- autoconf: feature request: test for GCC version,
Philip Prindeville <=