From 32f8234b8bb9f42978d73fd3efb5c5a1d6037565 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 6 Mar 2013 20:43:53 -0300 Subject: Fixed detection of Debian paths for Lua includes. --- configure | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/configure b/configure index f40a2df8..2e98a9e5 100755 --- a/configure +++ b/configure @@ -329,20 +329,22 @@ if [ -f "$lua_h" ] then echo "lua.h found in $lua_h" else - LUA_INCDIR="$LUA_INCDIR/lua/$LUA_VERSION" - d_lua_h="$LUA_INCDIR/lua.h" - if [ -f "$d_lua_h" ] + v_dir="$LUA_INCDIR/lua/$LUA_VERSION" + lua_h="$v_dir/lua.h" + if [ -f "$lua_h" ] then - echo "lua.h found in $d_lua_h" + echo "lua.h found in $lua_h" + LUA_INCDIR="$v_dir" else - LUA_INCDIR="$LUA_INCDIR/lua$LUA_VERSION" - d_lua_h="$LUA_INCDIR/lua.h" - if [ -f "$d_lua_h" ] + d_dir="$LUA_INCDIR/lua$LUA_VERSION" + lua_h="$d_dir/lua.h" + if [ -f "$lua_h" ] then - echo "lua.h found in $d_lua_h (Debian/Ubuntu)" + echo "lua.h found in $lua_h (Debian/Ubuntu)" + LUA_INCDIR="$d_dir" else - echo "lua.h not found (looked in $lua_h)" - die "You may want to use the flag --with-lua-include. See --help." + echo "lua.h not found (looked in $LUA_INCDIR, $v_dir, $d_dir)" + die "You may want to use the flag --with-lua or --with-lua-include. See --help." fi fi fi -- cgit v1.2.3-55-g6feb