From 40c858bd64fc0b832f672cd28b5cb9c64f941094 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Fri, 24 May 2019 09:04:42 +0100 Subject: [PATCH] Working check for lua This was not working on gentoo as gento use slotted packages instead of versioned package namens. --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 941d6107..99b3e2d1 100644 --- a/configure.ac +++ b/configure.ac @@ -529,8 +529,15 @@ if test "x${liblua}" != "xno"; then AC_DEFINE(HAVE_LUA, 1, [define to enable lua support]) ], [ - HAVE_LUA=no - AC_MSG_WARN([$LUA_PKG_ERRORS]) + PKG_CHECK_MODULES(LUA, lua >= 5.1, + [ + HAVE_LUA=yes + AC_DEFINE(HAVE_LUA, 1, [define to enable lua support]) + ], + [ + HAVE_LUA=no + AC_MSG_WARN([$LUA_PKG_ERRORS]) + ]) ]) else HAVE_LUA=disabled -- 2.20.1