From ab11df7ba213128b4117004dda2f3cf76ca07b7b Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 11 Apr 2023 01:07:15 -0400 Subject: [mod_magnet] support ./configure --with-lua=luajit (#3199) x-ref: https://redmine.lighttpd.net/issues/3199 --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index de334e5d..32e0734a 100644 --- a/configure.ac +++ b/configure.ac @@ -1330,7 +1330,11 @@ AC_MSG_RESULT([$WITH_LUA]) if test "$WITH_LUA" != no; then found_lua=0 if test "$WITH_LUA" != yes; then - PKG_CHECK_MODULES([LUA], [$WITH_LUA >= 5.1], + lua_min_ver=5.1 + if test "$WITH_LUA" = "luajit"; then + lua_min_ver=0 + fi + PKG_CHECK_MODULES([LUA], [$WITH_LUA >= $lua_min_ver], [found_lua=1], [AC_MSG_NOTICE([Couldn\'t find requested lua pkg-config module $WITH_LUA])] ) -- cgit v1.2.1