Reinstate check for Lua in configure.ac (thanks, Gary Vaughan: we still need it)

Revert "Don't bother detecting Lua in configure.ac, we don't run configure directly now"

This reverts commit 34acc2f17cbbd18a07560355d206fb8d6b22995f.