Skip to content

Commit

Permalink
Make protoc version parser able to handle 'libprotoc 3.6.1'
Browse files Browse the repository at this point in the history
Bug: #38
  • Loading branch information
Eli Ribble committed Apr 10, 2020
1 parent 1b41866 commit ea8339e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ if test "${PROTOC}" != ""; then
AC_CACHE_CHECK([${PROTOC} version],
nl_cv_protoc_version,
[
nl_cv_protoc_version=`${PROTOC} --version 2>&1 | ${SED} -n -e 's/^.\{1,\}\([[0-9]]\{1,\}.[[0-9]]\{1,\}.[[0-9]]\{1,\}\)$/\1/gp'`
nl_cv_protoc_version=`${PROTOC} --version 2>&1 | ${SED} -n -E -e 's/^[[^0-9]]*(([[0-9]]+\.)*[[0-9]]+).*/\1/p'`
if test "${nl_cv_protoc_version}" = "" ; then
nl_cv_protoc_version="unknown"
Expand Down

0 comments on commit ea8339e

Please sign in to comment.