Skip to content

Commit ba19c7c

Browse files
committed
m4/esidl.m4 (AC_PROG_ESIDL) : Support help2man style version string
1 parent 4b3d7d9 commit ba19c7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -4230,7 +4230,7 @@ fi
42304230
if test "$ESIDL" = "no"; then
42314231
as_fn_error $? "Cannot find esidl; esidl Web IDL compiler is needed." "$LINENO" 5
42324232
fi
4233-
ESIDL_VERSION=`esidl --version | cut -f 3 -d ' '`
4233+
ESIDL_VERSION=`esidl --version | head -n 1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+'`
42344234
42354235
42364236

m4/esidl.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AC_CHECK_PROG(ESIDL, [esidl], [esidl], [no])
33
if test "$ESIDL" = "no"; then
44
AC_MSG_ERROR([Cannot find esidl; esidl Web IDL compiler is needed.])
55
fi
6-
ESIDL_VERSION=`esidl --version | cut -f 3 -d ' '`
6+
ESIDL_VERSION=`esidl --version | head -n 1 | grep -Eo '[[0-9]]+\.[[0-9]]+\.[[0-9]]+'`
77
AX_COMPARE_VERSION([$ESIDL_VERSION], [lt], [$1],
88
AC_MSG_ERROR([Cannot find esidl version $1 or later. A newer version is needed.]))
99
AC_SUBST(ESIDL,[$ESIDL])

0 commit comments

Comments
 (0)