[libpeas/wip/lantw/build-Try-the-name-of-Lua-5.1-used-on-FreeBSD: 7/7] build: Try the name of Lua 5.1 used on FreeBSD



commit 26b7374d305161b18b80fcb055a3c9cf11868c4a
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sun Dec 1 20:11:51 2019 +0800

    build: Try the name of Lua 5.1 used on FreeBSD

 meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/meson.build b/meson.build
index 4ddabbf..1c1879c 100644
--- a/meson.build
+++ b/meson.build
@@ -118,10 +118,16 @@ endif
 python2_dep = dependency('python2', version: python2_req, required: false)
 pygobject_dep = dependency('pygobject-3.0', version: pygobject_req, required: false)
 lua51_dep = dependency('lua51', version: lua_req, required: false)
+if not lua51_dep.found()
+  lua51_dep = dependency('lua-5.1', version: lua_req, required: false)
+endif
 luajit_dep = dependency('luajit', version: luajit_req, required: false)
 lua_lgi_found = false
 lua_lgi_ver = 'not found'
 lua51_prg = find_program('lua5.1', required: false)
+if not lua51_prg.found()
+  lua51_prg = find_program('lua51', required: false)
+endif
 luajit_prg = find_program('luajit', required: false)
 xmllint_prg = find_program('xmllint', required: false)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]