summaryrefslogtreecommitdiff
blob: 5572271929efe95963e49dc536abdee218feb1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/m4/want_lua.m4
+++ b/m4/want_lua.m4
@@ -13,13 +13,12 @@
   AC_MSG_RESULT([$with_lua])
 
   AS_IF([test "x$with_lua" != "xno"],
-    [for LUAPC in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua; do
+    [
        PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [
          AC_DEFINE([HAVE_LUA], [1], [Define to 1 if you have lua])
          with_lua=yes
        ], [LUAPC=""]) # otherwise pkg_check will fail
        if test "x$LUA_LIBS" != "x"; then break; fi
-     done
   ])
 
   AS_IF([test "x$with_lua" = "xyes"], [