<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8427">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">BuildSystem: Enable Lua in NetBSD.<br><br>ASTERISK-27718<br><br>Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71<br>---<br>M configure<br>M configure.ac<br>2 files changed, 13 insertions(+), 13 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/8427/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/configure b/configure<br>index 2849fe5..408d9f4 100755<br>--- a/configure<br>+++ b/configure<br>@@ -29706,7 +29706,7 @@<br>   fi<br> fi<br> <br>-# Some distributions (like SuSE) remove the 5.1 suffix.<br>+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.<br> <br> if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then<br>    pbxlibdir=""<br>@@ -29721,9 +29721,9 @@<br> <br>       ast_ext_lib_check_save_CFLAGS="${CFLAGS}"<br>       CFLAGS="${CFLAGS} "<br>-      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_openlib in -llua" >&5<br>-$as_echo_n "checking for luaL_openlib in -llua... " >&6; }<br>-if ${ac_cv_lib_lua_luaL_openlib+:} false; then :<br>+      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5<br>+$as_echo_n "checking for luaL_newstate in -llua... " >&6; }<br>+if ${ac_cv_lib_lua_luaL_newstate+:} false; then :<br>   $as_echo_n "(cached) " >&6<br> else<br>   ac_check_lib_save_LIBS=$LIBS<br>@@ -29737,27 +29737,27 @@<br> #ifdef __cplusplus<br> extern "C"<br> #endif<br>-char luaL_openlib ();<br>+char luaL_newstate ();<br> int<br> main ()<br> {<br>-return luaL_openlib ();<br>+return luaL_newstate ();<br>   ;<br>   return 0;<br> }<br> _ACEOF<br> if ac_fn_c_try_link "$LINENO"; then :<br>-  ac_cv_lib_lua_luaL_openlib=yes<br>+  ac_cv_lib_lua_luaL_newstate=yes<br> else<br>-  ac_cv_lib_lua_luaL_openlib=no<br>+  ac_cv_lib_lua_luaL_newstate=no<br> fi<br> rm -f core conftest.err conftest.$ac_objext \<br>     conftest$ac_exeext conftest.$ac_ext<br> LIBS=$ac_check_lib_save_LIBS<br> fi<br>-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_openlib" >&5<br>-$as_echo "$ac_cv_lib_lua_luaL_openlib" >&6; }<br>-if test "x$ac_cv_lib_lua_luaL_openlib" = xyes; then :<br>+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5<br>+$as_echo "$ac_cv_lib_lua_luaL_newstate" >&6; }<br>+if test "x$ac_cv_lib_lua_luaL_newstate" = xyes; then :<br>   AST_LUA_FOUND=yes<br> else<br>   AST_LUA_FOUND=no<br>diff --git a/configure.ac b/configure.ac<br>index 1bb4bc4..6471040 100644<br>--- a/configure.ac<br>+++ b/configure.ac<br>@@ -2387,8 +2387,8 @@<br>     fi<br> fi<br> <br>-# Some distributions (like SuSE) remove the 5.1 suffix.<br>-AST_EXT_LIB_CHECK([LUA], [lua], [luaL_openlib], [lua.h], [-lm])<br>+# Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.<br>+AST_EXT_LIB_CHECK([LUA], [lua], [luaL_newstate], [lua.h], [-lm])<br> <br> # Accept either RADIUS client library, their APIs are fully compatible,<br> # just different header filenames and different SONAMEs<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8427">change 8427</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8427"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9c8c8880315ee36ab740d7c40153306c0bfd6f71 </div>
<div style="display:none"> Gerrit-Change-Number: 8427 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>