summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8e902f191..89c54e405 100644
--- a/configure.ac
+++ b/configure.ac
@@ -793,9 +793,12 @@ AC_ARG_WITH([lua], [AS_HELP_STRING([--with-lua], [build with lua support])],
[],
[with_lua=yes])
+if test X"$LUA_PKGCONFIG_NAME" = X ; then
+ LUA_PKGCONFIG_NAME=lua
+fi
AS_IF([test "$with_lua" != no],[
PKG_CHECK_MODULES([LUA],
- [lua >= 5.1],
+ [${LUA_PKGCONFIG_NAME} >= 5.1],
[AC_DEFINE(WITH_LUA, 1, [Build with lua support?])],
[AC_MSG_ERROR([lua not present (--without-lua to disable)])])
AC_SUBST(LUA_CFLAGS)