From 090ea7656e643097a6e45e0506d40cb3abdf97f3 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 22 Mar 2025 10:49:11 +0000 Subject: [PATCH] build: Remove detection of lex and yacc These are not required by libguestfs. They were used by virt-builder, but that tool has now been moved to a separate project (guestfs-tools). Fixes: commit 733d2182b64df7abc5c5cd7d78177baa6079628c --- docs/guestfs-building.pod | 6 ------ m4/guestfs-progs.m4 | 12 ------------ 2 files changed, 18 deletions(-) diff --git a/docs/guestfs-building.pod b/docs/guestfs-building.pod index ebfff68ed..af1443730 100644 --- a/docs/guestfs-building.pod +++ b/docs/guestfs-building.pod @@ -146,12 +146,6 @@ I. I. -=item flex - -=item bison - -I. - =item Perl-compatible Regular Expressions (PCRE2) library I. diff --git a/m4/guestfs-progs.m4 b/m4/guestfs-progs.m4 index 7d4ff3ec3..8c0cfe85a 100644 --- a/m4/guestfs-progs.m4 +++ b/m4/guestfs-progs.m4 @@ -105,18 +105,6 @@ dnl Check for zstdcat (required). AC_PATH_PROGS([ZSTDCAT],[zstdcat],[no]) test "x$ZSTDCAT" = "xno" && AC_MSG_ERROR([zstdcat must be installed]) -dnl (f)lex and bison for virt-builder (required). -dnl XXX Could be optional with some work. -AC_PROG_LEX -AC_PROG_YACC -dnl These macros don't fail, instead they set some useless defaults. -if test "x$LEX" = "x:"; then - AC_MSG_FAILURE([GNU 'flex' is required.]) -fi -if test "x$YACC" = "xyacc"; then - AC_MSG_FAILURE([GNU 'bison' is required (yacc won't work).]) -fi - dnl Check for valgrind AC_CHECK_PROG([VALGRIND],[valgrind],[valgrind],[no]) AS_IF([test "x$VALGRIND" != "xno"],[