From: Jason A. Donenfeld Date: Tue, 14 Jan 2014 00:50:31 +0000 (+0100) Subject: makefile: auto-detect presence of various Lua, bsd X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/3488d124052f5c3ddef303ed5306ad6a458794c1?ds=inline;hp=3488d124052f5c3ddef303ed5306ad6a458794c1 makefile: auto-detect presence of various Lua, bsd We favor LuaJIT over Lua. We disable Lua if neither can be found. We error out if a particular Lua is specified via LUA_IMPLEMENTATION=JIT or LUA_IMPLEMENTATION=VANILLA, but cannot be found. We print a status message depending on what happens. Also, we do not link against libdl on the BSDs, since they include it as part of libc. Signed-off-by: Jason A. Donenfeld ---