aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-22 06:35:30 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-22 06:35:30 +0000
commit3cf31a8f6febf4d53f68eb0605e66c1a4dc86bd7 (patch)
tree5a5b9bf8f131023318f750e3dde9cc9277e871a0 /configure.ac
parent794cda57a6cb8577dba4476a991c0983d92efc14 (diff)
Merged revisions 189813 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r189813 | tilghman | 2009-04-22 01:33:08 -0500 (Wed, 22 Apr 2009) | 3 lines Detect liblua on SuSE, and add libm for linking for Fedora. (Reported via the -dev list, Subject: Compiling Asterisk with LUA) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@189814 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index d76cf8aad..724476e93 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1392,7 +1392,9 @@ if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
[${PWLIB_INCLUDE}], [${PWLIB_LIB}])
fi
-AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h])
+AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h], [-lm])
+# Some distributions (like SuSE) remove the 5.1 suffix.
+AST_EXT_LIB_CHECK([LUA], [lua], [luaL_register], [lua.h], [-lm])
AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])