Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Find Lua under the BSDs' package names
Diffstat (limited to '')
| -rw-r--r-- | source/cgit.mk | 5 |
1 file changed, 4 insertions, 1 deletion
diff --git a/source/cgit.mk b/source/cgit.mk index 62cbfd0..66b94d3 100644 --- a/source/cgit.mk +++ b/source/cgit.mk @@ -62,8 +62,11 @@ ifdef NO_LUA LUA_MESSAGE := linking without specified Lua support CGIT_CFLAGS += -DNO_LUA else +# Each system names Lua's package its own way: lua5.4 on Debian and Alpine, +# lua-5.4 on FreeBSD and NetBSD, lua54 on OpenBSD. ifeq ($(LUA_PKGCONFIG),) - LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.5 lua5.4 lua5.3 lua5.2 lua5.1; do \ + LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.5 lua5.4 lua5.3 lua5.2 lua5.1 \ + lua-5.5 lua-5.4 lua-5.3 lua-5.2 lua-5.1 lua55 lua54 lua53 lua52 lua51; do \ $(PKG_CONFIG) --exists $$pc 2>/dev/null && echo $$pc && break; \ done) LUA_MODE := autodetected |
