diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-04-11 01:07:15 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-04-11 01:07:15 -0400 |
commit | ab11df7ba213128b4117004dda2f3cf76ca07b7b (patch) | |
tree | 80a03a84fa5d7ae7bb5995b0a398eea578c740b7 /configure.ac | |
parent | 627d970936a112bceeb2ddaf0189236cb1a58d58 (diff) | |
download | lighttpd-git-ab11df7ba213128b4117004dda2f3cf76ca07b7b.tar.gz |
[mod_magnet] support ./configure --with-lua=luajit (#3199)
x-ref:
https://redmine.lighttpd.net/issues/3199
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
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])] ) |