1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[meson] find lua also without pkg-config

This commit is contained in:
Witold Filipczyk 2023-11-08 09:07:57 +01:00
parent eb602605c5
commit 5c31030221

View File

@ -485,7 +485,10 @@ if not conf_data.get('CONFIG_LIBCSS') and get_option('libcss')
endif
if conf_data.get('CONFIG_SCRIPTING_LUA')
luadeps = dependency(luapkg, static: st)
luadeps = dependency(luapkg, static: st, required: false)
if not luadeps.found()
luadeps = compiler.find_library(luapkg, static: st, dirs: [get_option('prefix')+'/lib','/usr/local/lib'])
endif
deps += luadeps
endif