* 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 > ]) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]