On 09/07/2010 02:52 PM, Daily, Jeff A wrote:
FYI I'm using autoconf 2.67. Here's why I need to insert macros into AC_PROG_CC: I have some users who refuse to use anything but Intel's icc and ifort, version 8.1. But, they have a newer GCC installed (4.1.2) which causes icc to barf with "invalid GNU version number: 412" (causing configure to report "C compiler cannot create executables"). The problem can be worked-around if they add CFLAGS="-gcc-version-340". But these users want me to add this flag conditionally during configure. But how?
Your configure file should NOT have to do this. If the user has a compiler that needs a particular CFLAGS set, then they should pass that particular CFLAGS as an argument to configure, or use the config.site mechanism to automatically set up their environment with proper CFLAGS.
-- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf