From 113441f6d353d3d3d5d6076b88c5bec3a8e62a18 Mon Sep 17 00:00:00 2001 From: Rick L Bird Date: Thu, 28 Apr 2011 15:18:25 -0400 Subject: [PATCH] Added lib checking for local directory lua checking IssueID #240 --- m4/ax_lua.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/m4/ax_lua.m4 b/m4/ax_lua.m4 index e500855..41b19cd 100644 --- a/m4/ax_lua.m4 +++ b/m4/ax_lua.m4 @@ -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], -- 2.30.2