On 10/26/2012 02:22 PM, Alexey A. Illarionov wrote:
Peter Johansson wrote:
> > IMVHO, it is quite established that './configure' defaults to
>  './configure CC=gcc' and anything else would be unexpected.
Is there any reference for this? I thought that default behaviour
should be
./configure CC=cc
where cc can be system-specific.
Autoconf manual

http://www.gnu.org/software/autoconf/manual/autoconf.html#C-Compiler

says about AC_PROG_CC: "If |CC| is not already set in the environment, check for |gcc| and |cc|, then for other C compilers". AC_PROG_CC takes a list of compilers as first argument so if you wanna change the default behaviour, it should be straightforward except that it's not obvious to me how to decide which type of cat the OS is...

Cheers,
Peter

Reply via email to