From b45af8b9e4eac479bd1258720a20424e637ef06a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 23 Dec 2013 17:47:44 -0200 Subject: Try versioned "lua" names before the unversioned one. Should improve on behavior mentioned at http://stackoverflow.com/questions/20321560/how-do-install-libraries-for-both-lua5-2-and-5-1-using-luarocks/20359102?noredirect=1#comment30696438_20359102 --- configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 579e96f5..ce5e78f8 100755 --- a/configure +++ b/configure @@ -271,14 +271,14 @@ if [ "$LUA_SUFFIX_SET" != "yes" ] then if [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.1" ] then - suffixes="5.1 51" + suffixes="5.1 51 -5.1 -51" elif [ "$LUA_VERSION_SET" = "yes" -a "$LUA_VERSION" = "5.2" ] then - suffixes="5.2 52" + suffixes="5.2 52 -5.2 -52" else - suffixes="5.2 52 5.1 51" + suffixes="5.2 52 -5.2 -52 5.1 51 -5.1 -51" fi - for suffix in "" `echo $suffixes` "" + for suffix in `echo $suffixes` "" do search_interpreter "$suffix" && break done @@ -286,9 +286,9 @@ fi if [ "$LUA_DIR_SET" != "yes" ] then - echo_n "Looking for Lua... " - if [ ! -n "$find_lua" ] + if [ -n "$find_lua" ] then + echo_n "Looking for Lua... " find_lua=`find_program lua$LUA_SUFFIX` fi -- cgit v1.2.3-55-g6feb