Skip to content

Commit

Permalink
build: fix sed regex in Lua macro
Browse files Browse the repository at this point in the history
Using `\s` to match whitespace is not portable, use `[[:space:]]`
instead.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Dec 8, 2022
1 parent 91aaed7 commit 9e46405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m4/ax_lua.m4
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ AC_DEFUN([AX_LUA_HEADERS],
[
ax_cv_lua_header_version=`echo LUA_VERSION | \
$CC -P -E $LUA_INCLUDE -imacros lua.h - | \
$SED -e 's%"\s*"%%g' -e 's%^\s*%%' | \
$SED -e 's%"@<:@@<:@:space:@:>@@:>@*"%%g' -e 's%^@<:@@<:@:space:@:>@@:>@*%%' | \
tr -d '"\n' | \
$SED -n "s|^Lua \(@<:@0-9@:>@\{1,\}\.@<:@0-9@:>@\{1,\}\).\{0,\}|\1|p"`
])
Expand Down

0 comments on commit 9e46405

Please sign in to comment.