From e6ce03f3ef7c12617b32b176f8bb13f4d4349185 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 14 Nov 2021 18:39:25 -0600 Subject: [PATCH] meson: also check for generic lua.pc Some systems have only a "lua.pc" file which contains version information inside it. Check those as well. --- meson.build | 3 ++- meson_options.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index ed48fd6aa0..b6e6b2159c 100644 --- a/meson.build +++ b/meson.build @@ -701,7 +701,8 @@ lua = { } lua_opt = get_option('lua') if lua_opt != 'disabled' - lua_version = [['lua52', '>= 5.2.0'], + lua_version = [['lua', ['>=5.1.0', '<5.3.0']], # generic lua.pc + ['lua52', '>= 5.2.0'], ['lua5.2', '>= 5.2.0'], ['lua-5.2', '>= 5.2.0'], ['luajit', '>= 2.0.0'], diff --git a/meson_options.txt b/meson_options.txt index 4d19eacd20..196119e4d6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -21,7 +21,7 @@ option('libavdevice', type: 'feature', value: 'auto', description: 'libavdevice' option('libbluray', type: 'feature', value: 'auto', description: 'Bluray support') option('lua', type: 'combo', - choices: ['lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51', + choices: ['lua', 'lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51', 'lua5.1', 'lua-5.1', 'auto', 'enabled', 'disabled'], value: 'auto', description: 'Lua'