1dcbd05c5a05ab8ee0c2296614fb00201faa9c4e
[feed/telephony.git] / net / asterisk / patches / 140-use-default-lua.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -2560,7 +2560,11 @@ if test -z "$__opus_include" -o x"$__opu
4 fi
5 AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include])
6
7 -for ver in 5.4 5.3 5.2 5.1; do
8 +# This does not work for us. We have both liblua and liblua5.3 in
9 +# $(STAGING_DIR)/usr. But the headers for liblua5.3 are in
10 +# (STAGING_DIR)/usr/include/lua5.3. Using the below, Asterisk would
11 +# use the headers from liblua and link against liblua5.3 :/
12 +for ver in ; do
13 AST_EXT_LIB_CHECK([LUA], lua${ver}, [luaL_newstate], lua${ver}/lua.h, [-lm])
14 if test "x${PBX_LUA}" = "x1" ; then
15 if test x"${LUA_DIR}" = x; then