(replaying again with correct subject, stupid gmail & mime messages ...)
That's the best way since it doesnt involve hard coding or overrides except for weird cases.
I added the Makefile to /trunk/externalsloaders/pdlua/ in svn.
The problem I get is that it looks for lua.h in /usr/include/lua but my debian system put lua.h in /usr/include/lua5.1. I know if you get lua independently of debian it will go into /usr/include/lua. What is the best way to resolve this path for the different versions and different packages? Is a configure script needed to set LUA_CFLAGS and LUA_LIBS?