summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 14:49:01 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 14:49:01 -0800
commit979ae4f3613e66cca5c9fe249508907283fe00bb (patch)
tree090fcc046b3e661770fc53a180a59e45fb8a3473
parent3e699516059eaebbd9a65b7844b052c0bd71aaa0 (diff)
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:39: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete ./lib/autoconf/programs.m4:743: _AC_PROG_LEX is expanded from... ./lib/autoconf/programs.m4:736: AC_PROG_LEX is expanded from... configure.ac:39: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index be89e03..1421791 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,7 @@ dnl
dnl Process this file with autoconf to create configure.
# Initialize Autoconf
-AC_PREREQ([2.60])
+AC_PREREQ([2.64])
AC_INIT([xgc], [1.0.6],
[https://gitlab.freedesktop.org/xorg/app/xgc/-/issues], [xgc])
AC_CONFIG_SRCDIR([Makefile.am])
@@ -36,7 +36,7 @@ m4_ifndef([XORG_MACROS_VERSION],
XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
-AC_PROG_LEX
+m4_version_prereq([2.70], [AC_PROG_LEX(noyywrap)], [AC_PROG_LEX])
AC_PROG_YACC
AC_PATH_PROG([YACC_INST], $YACC)
if ! test -f "$srcdir/gram.c"; then