diff options
-rwxr-xr-x | configure | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -361,6 +361,18 @@ else | |||
361 | fi | 361 | fi |
362 | fi | 362 | fi |
363 | 363 | ||
364 | echo_n "Checking if Lua header version matches that of the interpreter... " | ||
365 | header_version=$(sed -n 's/.*LUA_VERSION_NUM.*5.\(.\).*/5.\1/p' "$lua_h") | ||
366 | if [ "$header_version" = "$LUA_VERSION" ] | ||
367 | then | ||
368 | echo "yes" | ||
369 | else | ||
370 | echo "no" | ||
371 | echo "lua.h version mismatch (interpreter: $LUA_VERSION; lua.h: $header_version)." | ||
372 | die "You may want to use the flag --with-lua or --with-lua-include. See --help." | ||
373 | fi | ||
374 | |||
375 | |||
364 | if [ "$LUAROCKS_DOWNLOADER_SET" != "yes" ] | 376 | if [ "$LUAROCKS_DOWNLOADER_SET" != "yes" ] |
365 | then | 377 | then |
366 | find_helper "a downloader helper program" curl wget fetch | 378 | find_helper "a downloader helper program" curl wget fetch |