Commit 64f924f6 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

m4/gst-parser.m4: Use 'sed' rather than 'tr' to strip trailing letters from...

m4/gst-parser.m4: Use 'sed' rather than 'tr' to strip trailing letters from version numbers, since 'tr' might not be ...

Original commit message from CVS:
* m4/gst-parser.m4:
Use 'sed' rather than 'tr' to strip trailing letters from version
numbers, since 'tr' might not be available and we know sed is
(#378931).
parent ee0bb43e
2007-01-05 Tim-Philipp Müller <tim at centricular dot net>
* m4/gst-parser.m4:
Use 'sed' rather than 'tr' to strip trailing letters from version
numbers, since 'tr' might not be available and we know sed is
(#378931).
2006-10-21 Tim-Philipp Müller <tim at centricular dot net>
* check.mak:
......
......@@ -9,7 +9,7 @@ AC_DEFUN([GST_BISON_CHECK],
dnl check bison version
bison_min_version=1.35
bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^.*) //' | tr -d '[[:alpha:]]' | cut -d' ' -f1`
bison_version=`$BISON_PATH --version | head -n 1 | sed 's/^.*) //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
AC_MSG_CHECKING([bison version $bison_version >= $bison_min_version])
if perl -w <<EOF
......@@ -34,7 +34,7 @@ AC_DEFUN([GST_FLEX_CHECK],
dnl check flex version
flex_min_version=2.5.6
flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | tr -d '[[:alpha:]]' | cut -d' ' -f1`
flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
AC_MSG_CHECKING([flex version $flex_version >= $flex_min_version])
if perl -w <<EOF
(\$min_version_major, \$min_version_minor, \$min_version_micro ) = "$flex_min_version" =~ /(\d+)\.(\d+)\.(\d+)/;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment