From 7c70a3208dcab7a9e568ede2a30b870ce0d96a20 Mon Sep 17 00:00:00 2001 From: Jan S Date: Sat, 1 Feb 2020 20:19:07 +0100 Subject: Add OpenBSD specific dependency paths. This commit enables luarocks to be configured and build on OpenBSD. --- configure | 1 + src/luarocks/deps.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 5deb44be..89c9ce64 100755 --- a/configure +++ b/configure @@ -433,6 +433,7 @@ check_incdir() { for lua_h in \ "$incdir/lua/$LUA_VERSION/lua.h" \ "$incdir/lua$LUA_VERSION/lua.h" \ + "$incdir/lua-$LUA_VERSION/lua.h" \ "$incdir/lua$(echo "$LUA_VERSION" | tr -d .)/lua.h" \ "$incdir/lua.h" \ $("$LUA_BINDIR/$LUA_INTERPRETER" -e 'print(jit and [['"$incdir"'/luajit-]]..jit.version:match("(%d+%.%d+)")..[[/lua.h]] or "")') diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua index b72661b7..0eb80193 100644 --- a/src/luarocks/deps.lua +++ b/src/luarocks/deps.lua @@ -655,6 +655,7 @@ local function find_lua_incdir(prefix, luaver, luajitver) local incdirs = { prefix .. "/include/lua/" .. luaver, prefix .. "/include/lua" .. luaver, + prefix .. "/include/lua-" .. luaver, prefix .. "/include/lua" .. shortv, prefix .. "/include", prefix, -- cgit v1.2.3-55-g6feb