Hi. In reference to: https://lists.gnu.org/archive/html/automake/2023-07/msg00007.html. The attached patch allows the AM_PROG_LEX macro to accept parameters, to accommodate for the fact that AC_PROG_LEX now (since Autoconf 2.70) requires one. The values accepted by AM_PROG_LEX are passed to AC_PROG_LEX the following way: - an empty value is passed as empty, resulting in an Autoconf warning (just like it is now), - the word 'yywrap' is passed unchanged, - the word 'noyywrap' is passed unchanged, - the word 'empty' results in an empty value (and thus an Autoconf warning) - any other word results in a syntax warning and an empty value being passed (resulting in an Autoconf warning). Since it's Autoconf 2.70 that started using the parameter, I've bumped the required value. You may change back if needed. My M4 "knowledge" is simply basing on other examples and doing whatever that doesn't result in an error, so you may change the code as needed (m4_define, m4_warn, m4_expand). Test for the parameters is added. All tests matching *lex*sh pass. +11-20s to testing time. -- Regards - Bogdan ('bogdro') D. (GNU/Linux & FreeDOS) X86 assembly (DOS, GNU/Linux): http://bogdro.evai.pl/index-en.php Soft(EN): http://bogdro.evai.pl/soft http://bogdro.evai.pl/soft4asm www.Xiph.org www.TorProject.org www.LibreOffice.org www.GnuPG.org