From c7d9844cf1db1268d4263d1000c9ce255b92d8e7 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 11 Apr 2016 10:50:28 +0800 Subject: [PATCH] Fixed default searching in centOS --- config.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config.m4 b/config.m4 index 481a9c6..19341af 100755 --- a/config.m4 +++ b/config.m4 @@ -17,6 +17,12 @@ if test "$PHP_LUA" != "no"; then break fi + if test -r $i/include/lua.h; then + LUA_INCLUDE_DIR=$i/include + AC_MSG_RESULT(found in $i) + break + fi + if test "$PHP_LUA_VERSION" != "yes"; then if test -r $i/include/lua$PHP_LUA_VERSION/lua.h; then LUA_INCLUDE_DIR=$i/include/lua$PHP_LUA_VERSION