[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AT_CHECK within for loop
From: |
Joel E. Denny |
Subject: |
Re: AT_CHECK within for loop |
Date: |
Fri, 28 Jan 2011 14:31:05 -0500 (EST) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Fri, 28 Jan 2011, Ralf Wildenhues wrote:
> * Joel E. Denny wrote on Fri, Jan 28, 2011 at 08:06:38PM CET:
> > A way to get the best of both worlds might be to permit shell functions
> > containing AT_CHECK to be defined outside of AT_SETUP. I believe that is
> > not possible with autotest now, and I have no idea if it's feasible to
> > implement.
>
> That is possible right now, either in atlocal.in or in PREPARE_TESTS
> diversions:
>
> m4_divert_push([PREPARE_TESTS])dnl
> function_defined_once ()
> {
> ...
> }
> m4_divert_pop([PREPARE_TESTS])dnl
That's interesting, and I wasn't aware of it. However, when I tried
expanding AT_CHECK inside that function, autotest gave the usual
complaint:
tmp.at:4: error: AT_CHECK: missing AT_SETUP detected
I'm running Autoconf 2.65. Does that matter?
- AT_CHECK within for loop, Daily, Jeff A, 2011/01/28
- Re: AT_CHECK within for loop, Eric Blake, 2011/01/28
- Re: AT_CHECK within for loop, Joel E. Denny, 2011/01/28
- Re: AT_CHECK within for loop, Eric Blake, 2011/01/28
- Re: AT_CHECK within for loop, Joel E. Denny, 2011/01/28
- Re: AT_CHECK within for loop, Ralf Wildenhues, 2011/01/28
- Re: AT_CHECK within for loop,
Joel E. Denny <=
- Re: AT_CHECK within for loop, Ralf Wildenhues, 2011/01/28
- Re: AT_CHECK within for loop, Ralf Wildenhues, 2011/01/29