[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug#369396: Regression: problems with macro calling AC_PROG_CC and A
From: |
Ralf Wildenhues |
Subject: |
Re: Bug#369396: Regression: problems with macro calling AC_PROG_CC and AC_C_BIGENDIAN |
Date: |
Tue, 30 May 2006 08:19:14 +0200 |
User-agent: |
Mutt/1.5.11 |
* quoting myself:
>
> AC_C_BIGENDIAN requires (through some indirect macro chain) both
> AC_PROG_CC and AC_LANG_PREPROC(C). Now, since you've explicitly called
> AC_PROG_CC before, that requirement is already deemed fulfilled by the
> stacking algorithm. The AC_LANG_PREPROC(C) requirement is not yet
> fulfilled, so that macro is expanded right before the expansion of
> TEST_INIT. Boing: AC_PROG_CC will be expanded after it. :-(
>
> One solution is to write the AC_PROG_CC as a requirement, so that it
> will be expanded outside, like this:
I guess you could instead also m4_define TEST_INIT, so that it will not
take part in the requirement-diversion game. That should preserve the
order as well.
Cheers,
Ralf
> AC_DEFUN([TEST_INIT],[
> AC_REQUIRE([AC_PROG_CC])
> echo test2
> AC_C_BIGENDIAN
> echo test3
> ])