[asterisk-commits] tilghman: trunk r189813 - in /trunk: configure configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 22 01:33:15 CDT 2009


Author: tilghman
Date: Wed Apr 22 01:33:08 2009
New Revision: 189813

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=189813
Log:
Detect liblua on SuSE, and add libm for linking for Fedora.
(Reported via the -dev list, Subject: Compiling Asterisk with LUA)

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svn.digium.com/svn-view/asterisk/trunk/configure.ac?view=diff&rev=189813&r1=189812&r2=189813
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Apr 22 01:33:08 2009
@@ -1475,7 +1475,9 @@
 		[${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])
 




More information about the asterisk-commits mailing list