diff options
author | Nicolas Williams <nico@cryptonector.com> | 2014-08-14 03:31:25 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2014-08-14 03:31:25 -0500 |
commit | 287e2c96ed795ebd57875a855d2ed5894311ecbb (patch) | |
tree | b8d3d536b8650ce6ec29a68057b8e4f316a78f09 /m4 | |
parent | f8d94785175c5b95d774ef726d1b35b2eca7d80b (diff) |
BSD sed lacks -r; fix #551
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_prog_bison_version.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_prog_bison_version.m4 b/m4/ax_prog_bison_version.m4 index 91652fe9..e3b52920 100644 --- a/m4/ax_prog_bison_version.m4 +++ b/m4/ax_prog_bison_version.m4 @@ -48,7 +48,7 @@ AC_DEFUN([AX_PROG_BISON_VERSION],[ changequote(<<,>>) bison_version=`$YACC --version 2>&1 \ | $GREP bison \ - | $SED -rn -e 's/bison .* ([0-9]+([.][0-9])+)+/\1/p'` + | $SED -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'` changequote([,]) AC_MSG_RESULT($bison_version) |