BuildSystem: Enable Lua in NetBSD.

luaL_openlib got removed with Lua 5.2.
luaL_newstate is available in all versions.

ASTERISK-27718

Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71
This commit is contained in:
Alexander Traud
2018-03-05 15:01:06 +01:00
parent 73846c90fa
commit ef79e583ec
2 changed files with 13 additions and 13 deletions

View File

@@ -2387,8 +2387,8 @@ if test "x${PBX_LUA}" = "x1" ; then
fi
fi
# Some distributions (like SuSE) remove the 5.1 suffix.
AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm])
# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.
AST_EXT_LIB_CHECK([LUA], [lua], [luaL_newstate], [lua.h], [-lm])
# Accept either RADIUS client library, their APIs are fully compatible,
# just different header filenames and different SONAMEs