From 67a2f0bacd607e44da0a2a757778ff157c7d09b3 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 10 Mar 2018 18:26:56 +0100 Subject: [PATCH] detect missing lua library --- s/cmake-init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/s/cmake-init b/s/cmake-init index 5b73ebe37..337490f07 100755 --- a/s/cmake-init +++ b/s/cmake-init @@ -52,6 +52,10 @@ LUA_DIR=/usr if [ -d /usr/include/lua5.1 ]; then LUA_VERSION="5.1" LUA_INCLUDE=/usr/include/lua5.1 +elif [ -d /usr/include/lua5.2 ]; then + export LUA_DIR=/usr + LUA_VERSION="5.2" + LUA_INCLUDE=/usr/include/lua5.2 elif [ -d /usr/local/include/lua5.1 ]; then export LUA_DIR=/usr/local LUA_VERSION="5.1" @@ -59,7 +63,7 @@ elif [ -d /usr/local/include/lua5.1 ]; then fi if [ ! -e ${LUA_INCLUDE}/lua.h ]; then - echo "no compatible version of lua is installed." + echo "no compatible version of lua is installed in $LUA_INCLUDE." exit 1 fi