Added lib checking for local directory lua checking
authorRick L Bird <nveid@yahoo.com>
Thu, 28 Apr 2011 19:18:25 +0000 (15:18 -0400)
committerRick L Bird <nveid@yahoo.com>
Thu, 28 Apr 2011 19:18:25 +0000 (15:18 -0400)
IssueID #240

m4/ax_lua.m4

index e50085595d931ce5119c22b003bbec7f3d474c38..41b19cdff40fbc10fd1c0a6d3b3d0f48639d4d9b 100644 (file)
@@ -120,7 +120,11 @@ dnl
 AC_DEFUN([AX_FIND_LUA],[
   AC_CHECK_HEADER([lua.h], [
     AC_SEARCH_LIBS([lua_call], [lua lua5.1], , AC_MSG_ERROR([CobraMUSH requires lua]))], [
-    AX_CHECK_LOCAL_LUA()])])
+    AX_CHECK_LOCAL_LUA()
+    LDFLAGS="$LDFLAGS $lua_ldflags"
+    CFLAGS="$CFLAGS -I$lua_h_path"
+    AC_SEARCH_LIBS([lua_call], [lua lua5.1], , AC_MSG_ERROR([CobraMUSH requires lua]))
+    ])])
 
 dnl Helper function to declare extra options
 AC_DEFUN([_AX_LUA_OPTS],