Hello Akim,
        Further testing shows that this happens when AC_PROG_CPP is called
before AC_PROG_CC.  My original configure.in called AM_INIT_AUTOMAKE
which does this.  When I call AC_PROG_CC before AM_INIT_AUTOMAKE the
problem goes away.

        Michael

Akim Demaille wrote:
> 
> | Hi There,
> 
> Hi!
> 
> | autoconf picks "gcc" as the compiler and "cc -E" as the preprocessor
> | when I do not specify CC or CPP.
> 
> Could you try to track down the problem, I cannot reproduce it:
> 
> /tmp % cat configure.in                                          nostromo 14:06
> AC_INIT
> AC_PROG_CC
> AC_PROG_CPP
> echo "$CC and $CPP"
> /tmp % ~ace/autoconf -m ~ace                                     nostromo 14:06
> /tmp % ./configure                                               nostromo 14:06
> checking for gcc... gcc
> checking whether the C compiler (gcc   ) works... yes
> checking whether the C compiler (gcc   ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking how to run the C preprocessor... gcc -E
> gcc and gcc -E
> 
> Thanks,
> 
>         Akim

-- 
------------------------------------------------------------------
Michael Bletzinger      Software Developer, Alliance Computational
[EMAIL PROTECTED]  Environment & Security
217 265 5137            NCSA

Reply via email to