|
From: | Eric Blake |
Subject: | Re: insert macros within AC_PROG_CC before _AC_COMPILER_EXEEEXT |
Date: | Tue, 07 Sep 2010 14:54:56 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 |
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 address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |