From a3b9a4efba1737df15bb6acaf6621622ab85b929 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 4 Mar 2023 13:45:21 -0800 Subject: configure: pass noyywrap to AC_PROG_LEX if using autoconf 2.70 or later Raises minimum autoconf version from 2.60 to 2.64 for m4_version_prereq Clears autoconf warning: configure.ac:29: 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 expanded from... configure.ac:29: the top level Signed-off-by: Alan Coopersmith --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 57d5dc6..f8a7f50 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ -# Initialize Autoconf -AC_PREREQ([2.60]) +# Initialize Autoconf - requires at least 2.64 for m4_version_prereq +AC_PREREQ([2.64]) AC_INIT([libXaw3d], [1.6.4], [https://gitlab.freedesktop.org/xorg/lib/libxaw3d/-/issues], [libXaw3d]) AC_CONFIG_SRCDIR([Makefile.am]) @@ -27,7 +27,7 @@ if test ! -f "$srcdir/src/laygram.c"; then AC_MSG_ERROR([yacc not found - unable to compile laygram.y]) fi fi -AC_PROG_LEX +m4_version_prereq([2.70], [AC_PROG_LEX(noyywrap)], [AC_PROG_LEX]) AC_PATH_PROG([LEX_INST], $LEX) if test ! -f "$srcdir/src/laylex.c"; then if test -z "$LEX_INST"; then -- cgit v1.2.3