Jason, I'm no Makefile expert, but a solution à la CMake involves checking for the library/header existence in common library/header location (/usr/..., /usr/local/..., etc). If the library is found, we use it, otherwise, we prompt a relevant error message. CMake has its own Find* mechanism; isn't the autotools ./configure exactly for that purpose?
HTH, -F On Fri, Jan 17, 2014 at 5:36 PM, Jason A. Donenfeld <[email protected]> wrote: > On Fri, Jan 17, 2014 at 8:08 PM, Félix C. Morency > <[email protected]> wrote: > > You should add pkg-config to the list of dependencies in the README. It > is > > required if you want to build with Lua support. Also, it might be a good > > idea to check for pkg-config presence in the Makefile. > > Thanks for the report; this is a good idea. > > Do you have any ideas on a fallback, for when pkg-config isn't > available? I know for LUA_IMPLEMENTATION=VANILLA, we can probably just > add a -llua to LIBS, but it's not as straight forward for > LUA_IMPLEMENTATION=JIT. Any feedback would be most appreciated. > > Jason > -- Félix C. Morency, M.Sc. Plateforme d’analyse et de visualisation d’images Centre Hospitalier Universitaire de Sherbrooke Centre de recherche clinique Étienne-Le Bel Local Z5-3031 | 819.346.1110 ext 16634
_______________________________________________ CGit mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/cgit
