From: David Lamparter Date: Thu, 8 Dec 2022 11:35:03 +0000 (+0100) Subject: build: fix sed regex in Lua macro X-Git-Tag: base_8.5~163^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9e46405ca2c7b3d5380dc6ab619666a6d32bbbfb;p=matthieu%2Ffrr.git build: fix sed regex in Lua macro Using `\s` to match whitespace is not portable, use `[[:space:]]` instead. Signed-off-by: David Lamparter --- diff --git a/m4/ax_lua.m4 b/m4/ax_lua.m4 index dde24eaf89..f4236cf08a 100644 --- a/m4/ax_lua.m4 +++ b/m4/ax_lua.m4 @@ -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"` ])