From 5fce16c040f5e4fae51c5ad0db08f2cf3cd26094 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Wed, 25 Apr 2012 11:44:09 +0100 Subject: libxl, configure: print a warning if flex/bison are needed This patch adds better support for both Flex and Bison, which might be needed to compile libxl. Now configure script sets BISON and FLEX Makefile vars if bison and flex are found, but doesn't complain if they are not found. Also, added some Makefile soccery to print a warning message if Bison or Flex are needed but not found. [ Improved the warning message slightly. -iwj ] Signed-off-by: Roger Pau Monne Acked-by: Ian Jackson Signed-off-by: Ian Jackson Committed-by: Ian Jackson --- tools/configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/configure.ac') diff --git a/tools/configure.ac b/tools/configure.ac index 11a743f485..57c887d15a 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -80,6 +80,8 @@ AC_PROG_CC AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_INSTALL +AC_PATH_PROG([BISON], [bison]) +AC_PATH_PROG([FLEX], [flex]) AX_PATH_PROG_OR_FAIL([PERL], [perl]) AS_IF([test "x$xapi" = "xy"], [ AX_PATH_PROG_OR_FAIL([CURL], [curl-config]) -- cgit v1.2.3