Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > c6bf44a7b4eda88648a3fec864d3052e > files > 3

asterisk-1.6.2.6-4mdv2010.1.src.rpm

From 2134757713eeb6dd4cd7645c37b71ebe1eeedeb1 Mon Sep 17 00:00:00 2001
From: Jeffrey C. Ollie <jeff@ocjtech.us>
Date: Mon, 25 Feb 2008 13:14:23 -0600
Subject: [PATCH] Use pkgconfig to check for Lua.

---
 configure.ac |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index ebb5fe9..78c2137 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1399,13 +1399,9 @@
 		[${PWLIB_INCLUDE}], [${PWLIB_LIB}])
 fi
 
-AST_EXT_LIB_CHECK([LUA], [lua5.1], [luaL_newstate], [lua5.1/lua.h], [-lm]) 
-if test "x${PBX_LUA}" = "x1" ; then
-	AC_DEFINE_UNQUOTED([LUA51_PREFIX], [1], [Define to 1 if lua is found with a lua5.1 prefix])
-fi
-	
-# Some distributions (like SuSE) remove the 5.1 suffix.
-AST_EXT_LIB_CHECK([LUA], [lua], [luaL_register], [lua.h], [-lm]) 
+AST_EXT_LIB_CHECK([LUA], [lua])
+#, [function], [header],
+		  #        [extra libs], [extra cflags], [version])
 
 AST_EXT_LIB_CHECK([RADIUS], [radiusclient-ng], [rc_read_config], [radiusclient-ng.h])