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?
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf