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?

Yes, but the idea is that, if we are in a Canadian setting, we can set all the variables that Autoconf sets, in the `then' branch. So we'd set ac_objext=.o in the `then' branch.

Paolo

Reply via email to