This will work iff AM_PROG_LEX uses AC_REQUIRE to invoke
AC_PROG_LEX.
Evidently so. From automake's m4/lex.m4:
AC_DEFUN([AM_PROG_LEX],
[AC_PREREQ([2.50])dnl
AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
AC_REQUIRE([AC_PROG_LEX])dnl
if test "$LEX" = :; then
LEX=${am_missing_run}flex
fi])
On Mon, Jul 31, 2023, at 7:37 AM, FX Coudert wrote:
> Hello,
>
> I have a configure.ac file that calls AM_PROG_LEX. This now generates
> warnings:
...
> I am not sure I can actually fix those: AM_PROG_LEX does not seem to
> accept an argument. Probably it should, and pass it down to AC_PROG_LEX
Hello,
I have a configure.ac file that calls AM_PROG_LEX. This now generates warnings:
> configure.ac:4045: warning: AC_PROG_LEX without either yywrap or noyywrap is
> obsolete
> ./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
> ./lib/autoconf/programs.m4:709: AC_PROG_LEX is exp