mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
configure.ac: Check bison version (bug #127838)
Original commit message from CVS: reviewed by: David Schleef <ds@schleef.org> * configure.ac: Check bison version (bug #127838)
This commit is contained in:
parent
e2e72a8993
commit
5710f325b3
2 changed files with 19 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-03-25 Tim-Philipp Müller <t.i.m@zen.co.uk>
|
||||
|
||||
reviewed by: David Schleef <ds@schleef.org>
|
||||
|
||||
* configure.ac: Check bison version (bug #127838)
|
||||
|
||||
2004-03-25 David Schleef <ds@schleef.org>
|
||||
|
||||
* docs/gst/gstreamer-docs.sgml: More fine tuning.
|
||||
|
|
13
configure.ac
13
configure.ac
|
@ -120,6 +120,8 @@ if test x$PERL_PATH = xno; then
|
|||
AC_MSG_ERROR(Could not find perl)
|
||||
fi
|
||||
|
||||
AC_PROG_AWK
|
||||
|
||||
dnl we require bison for building the parser
|
||||
dnl FIXME: check if AC_PROG_YACC is suitable here
|
||||
AC_PATH_PROG(BISON_PATH, bison, no)
|
||||
|
@ -127,6 +129,17 @@ if test x$BISON_PATH = xno; then
|
|||
AC_MSG_ERROR(Could not find bison)
|
||||
fi
|
||||
|
||||
dnl check bison version
|
||||
AC_MSG_CHECKING([bison version])
|
||||
|
||||
if $BISON_PATH --version | head -n 1 | $AWK '{ if ($4 < 1.35) exit 1; else exit 0;}';
|
||||
then
|
||||
AC_MSG_RESULT([ok])
|
||||
else
|
||||
AC_MSG_RESULT([too old.])
|
||||
AC_MSG_ERROR([Your bison version is too old, v1.35 or later is required.])
|
||||
fi
|
||||
|
||||
dnl we require flex for building the parser
|
||||
dnl FIXME: check if AC_PROG_LEX is suitable here
|
||||
AC_PATH_PROG(FLEX_PATH, flex, no)
|
||||
|
|
Loading…
Reference in a new issue