Re: weird AC_REQUIRE expansion issue

2005-09-01 Thread Stepan Kasal
Hello, On Wed, Aug 31, 2005 at 06:10:49PM +0200, Ralf Wildenhues wrote: Again I'll only refer to part of your well-written mail, [...] ... and I'm answering in a hurry now, so I should apologize, too. [m4_require([_LT_SET_OPTIONS], [_LT_SET_OPTIONS([$1])])[]dnl yes, this works now and should

Re: weird AC_REQUIRE expansion issue

2005-08-31 Thread Ralf Wildenhues
Hi Stepan, * Stepan Kasal wrote on Mon, Aug 29, 2005 at 06:42:14PM CEST: where I can't AC_REQUIRE([CX_STATUS]), because that is supposed to be used several times, obviously, [...] But you can create a special copy for the purpose of being required by CX_COMPILER_CHECKS: *snip* But

Re: weird AC_REQUIRE expansion issue

2005-08-31 Thread Stepan Kasal
Hello Ralf, *warning*: my previous long answer was not correct! And at the beginning of the long answer, I recommended: AC_REQUIRE([_CX_STATUS_FOR_CX_COMPILER_CHECKS]) (you have to define the temporary macro _CX_STATUS_FOR_CX_COMPILER_CHECKS). This suggestion was correct. Use it if you

Re: weird AC_REQUIRE expansion issue

2005-08-31 Thread Ralf Wildenhues
Hi Stepan, Again I'll only refer to part of your well-written mail, not because of ignorance but because this issue is more important to me at the moment, and I will come back later to the other one: * Stepan Kasal wrote on Wed, Aug 31, 2005 at 04:11:08PM CEST: On Wed, Aug 31, 2005 at

weird AC_REQUIRE expansion issue

2005-08-29 Thread Ralf Wildenhues
I'm currently trying to understand a weird expansion order issue with Autoconf 2.59 and Automake 1.9.6, and I'd like a hint as to where to search for the bug. A project uses subdir-objects, calls AC_PROG_CC before calling AM_PROG_CC_C_O, yet the code of AC_PROG_CC_C_O (which is AC_REQUIREd by the

Re: weird AC_REQUIRE expansion issue

2005-08-29 Thread Stepan Kasal
Hello, On Mon, Aug 29, 2005 at 12:20:02PM +0200, Ralf Wildenhues wrote: A project uses subdir-objects, calls AC_PROG_CC before calling AM_PROG_CC_C_O, yet the code of AC_PROG_CC_C_O (which is AC_REQUIREd by the Automake macro) gets expanded before the AC_PROG_CC macro. Thus, $CC is empty and

Re: weird AC_REQUIRE expansion issue

2005-08-29 Thread Ralf Wildenhues
Hi Stepan, Thanks for your quick reply! * Stepan Kasal wrote on Mon, Aug 29, 2005 at 01:22:18PM CEST: On Mon, Aug 29, 2005 at 12:20:02PM +0200, Ralf Wildenhues wrote: A project uses subdir-objects, calls AC_PROG_CC before calling AM_PROG_CC_C_O, yet the code of AC_PROG_CC_C_O (which is

Re: weird AC_REQUIRE expansion issue

2005-08-29 Thread Stepan Kasal
Hello Ralf, AC_DEFUN([CX_COMPILER_CHECKS], [CX_STATUS([compiler checks]) AC_PROG_CC AM_PROG_CC_C_O ... ]) Well, my previous answer was not accurate. The above code should expand AC_PROG_CC between CX_STATUS and AM_PROG_CC_C_O, so it should work. But as soon as CX_COMPILER_CHECKS is