On Sat, Feb 10, 2007 at 12:56:13AM +0100, Dominique Dhumieres wrote:
> While building the gcc4-4.3.0-20070209 snapshot, I got the error
> 
> ...
> checking for correct version of gmp.h... no
> configure: error: Building GCC requires GMP 4.1+ and MPFR 2.2.1+.
> ...
> 
> I am using the same script that worked last week and I have
> gmp 4.2.1 and mpfr 2.2.1 since several builds. I am using
> a Mac OSX 10.3.9. Can someone give me a pointer the change(s)
> that might explain the breakage.

You need to show us your configure arguments to be sure.  I bet
you're specifying just --host.

I don't know exactly what to do about this.  It's caused by:

if test ${build} != ${host}; then
  some defaults
else
  AC_PROG_CC
fi

AC_TRY_COMPILE

ac_objext is set at the expansion of AC_PROG_CC and if you take the if
branch, it never gets set.

Does anyone reading this know what the right thing to do is?  Is there
anything in the autoconf documentation about not using some macros
inside conditional statements?

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to