Andreas Schwab <schwab <at> suse.de> writes:

> 
> m4 1.4.10b fails on the attached input when called via autoconf.

Thanks for the report.  I'm still investigating, but I'm betting it has 
something to do with this (somewhat ugly) chunk of code, or a later use of 
phpshift:

dnl autoconf undefines the builtin "shift" :-(
dnl If possible, we use the builtin shift anyway, otherwise we use
dnl the ubercool definition I have tested so far with FreeBSD/GNU m4
ifdef([builtin],[builtin(define, phpshift, [builtin(shift, $@)])],[
define([phpshift],[ifelse(index([EMAIL PROTECTED],[,]),-1,,[substr([EMAIL 
PROTECTED],incr(index([EMAIL PROTECTED],
[,])))])])
])
dnl

[Why didn't they just use:

m4_define([phpshift], m4_defn([m4_shift]))

instead? It achieves the same goal, but more efficiently and with less quoting 
errors]

Once I confirm my suspicions, I will add a test case so we don't regress in the 
future.

-- 
Eric Blake





_______________________________________________
Bug-m4 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-m4

Reply via email to