Merge r1785752, r1785753 from trunk:
configure: remove mod_lua code duplication
Pull identical code into the CHECK_LUA_PATH macro.
configure: check for luaL_register in liblua
This is a temporary workaround for a missing compatibility API on
Debian-like systems (and anyone else who doesn't compile with
LUA_COMPAT_MODULE). Ignore any such libraries so we don't fail
confusingly later.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1785875 13f79535-47bb-0310-9956-
ffa450edef68