From a4cc4fde8cc5457936e67e95ce8dcee4f58a441b Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 20 Jan 2025 09:56:40 +0100 Subject: [PATCH] [configure] Fix AX_PROG_FLEX/AC_PROG_LEX warning (#1839) --- m4/ax_prog_flex.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/m4/ax_prog_flex.m4 b/m4/ax_prog_flex.m4 index 6d485f9d..818acf22 100644 --- a/m4/ax_prog_flex.m4 +++ b/m4/ax_prog_flex.m4 @@ -45,7 +45,13 @@ #serial 13 AC_DEFUN([AX_PROG_FLEX], [ - AC_REQUIRE([AM_PROG_LEX]) + dnl --- Start of modified macro --- + dnl Original uses 'AC_REQUIRE([AM_PROG_LEX])', but that produces a deprecation + dnl warning since autoconf 2.70, because the underlying AC_PROG_LEX now + dnl requires an argument. However, we cannot specify it through AM_PROG_LEX + dnl until automake 1.17, so users with that will still get the warning. + AM_PROG_LEX([noyywrap]) + dnl --- End of modified macro --- AC_REQUIRE([AC_PROG_EGREP]) AC_CACHE_CHECK([if flex is the lexer generator],[ax_cv_prog_flex],[