From 6aa2d8eedf2644584671fe4d301946c84b6214b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 3 May 2016 00:28:42 +0100 Subject: configure.ac: Don't require yacc unless it is required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5e639d867c95eb6f476d5be72e52457a9cc89437 Reviewed-on: https://code.wireshark.org/review/15247 Petri-Dish: João Valverde Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- configure.ac | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 15379961e7..aac1c142ca 100644 --- a/configure.ac +++ b/configure.ac @@ -169,11 +169,14 @@ fi # # AC_PROG_YACC -AC_PATH_PROG(YACCDUMMY, $YACC) -if test "x$YACCDUMMY" = x -then - AC_MSG_ERROR(I couldn't find yacc (or bison or ...); make sure it's installed and in your path) -fi +dnl Tarballs include the build products and do not require yacc. +AC_MSG_CHECKING(whether $YACC -V works) +AS_IF([$YACC -V >/dev/null 2>&1], + [AC_MSG_RESULT(yes)], + [AC_MSG_RESULT(no) + AS_IF([test ! -f wiretap/ascend.c], + AC_MSG_ERROR([I couldn't find yacc (or bison or ...); make sure it's installed and in your path]))]) + AM_PROG_LEX AC_PATH_PROG(LEX, flex) if test "x$LEX" = x -- cgit v1.2.1