Closed rafaelmartins closed 9 years ago
You can just call pkg-config --exists
on each possible name until you find one. For example:
I followed @craigbarnes' suggestion and committed a possible fix. Should you encounter trouble finding Lua libraries after that commit, please reopen the issue.
This is still wrong, unfortunatelly. The lua=5.1
bit isn't valid, because the lua.pc file includes the micro version, then this will never match what you want it to match.
P.S.: don't know how to reopen the issue
Would lua>=5.1
work?
Maybe, but lua 5.2 will satify the dependency too. lwan is supposed to work with lua-5.2?
lua>=5.1,lua<5.2
works fine
Hello,
people usually does not rely on pkg-config for lua because the .pc file isn't installed by default by the Makefile, and the name may change between distributions. E.g. the original name of the file in upstream tarball is lua.pc, while your cmake setup is looking for lua5.1.pc
[]'s