mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Fix without-lua into trunk - Diego Elio
This commit is contained in:
parent
43e3ea65b7
commit
c4f3d121f8
@ -19,10 +19,15 @@ AC_DEFUN([CHECK_LUA],
|
|||||||
|
|
||||||
AC_ARG_WITH(
|
AC_ARG_WITH(
|
||||||
lua,
|
lua,
|
||||||
[AC_HELP_STRING([--with-lua=PATH],[Path to lua prefix or config script])],
|
[AC_HELP_STRING([--with-lua=PATH],[Path to lua prefix or config script])]
|
||||||
[test_paths="${with_lua}"],
|
,, with_lua=yes)
|
||||||
[test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr"; ])
|
|
||||||
|
|
||||||
|
AS_CASE(["${with_lua}"],
|
||||||
|
[no], [test_paths=],
|
||||||
|
[yes], [test_paths="/usr/local/liblua /usr/local/lua /usr/local /opt/liblua /opt/lua /opt /usr"],
|
||||||
|
[test_paths="${with_lua}"])
|
||||||
|
|
||||||
|
AS_IF([test "x${test_paths}" != "x"], [
|
||||||
AC_MSG_CHECKING([for liblua config script])
|
AC_MSG_CHECKING([for liblua config script])
|
||||||
|
|
||||||
for x in ${test_paths}; do
|
for x in ${test_paths}; do
|
||||||
@ -177,6 +182,7 @@ fi
|
|||||||
if test -n "${LUA_LIBS}"; then
|
if test -n "${LUA_LIBS}"; then
|
||||||
LUA_CPPFLAGS="-DWITH_LUA"
|
LUA_CPPFLAGS="-DWITH_LUA"
|
||||||
fi
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_SUBST(LUA_CONFIG)
|
AC_SUBST(LUA_CONFIG)
|
||||||
AC_SUBST(LUA_VERSION)
|
AC_SUBST(LUA_VERSION)
|
||||||
@ -185,12 +191,10 @@ AC_SUBST(LUA_CPPFLAGS)
|
|||||||
AC_SUBST(LUA_LDADD)
|
AC_SUBST(LUA_LDADD)
|
||||||
AC_SUBST(LUA_LDFLAGS)
|
AC_SUBST(LUA_LDFLAGS)
|
||||||
|
|
||||||
if test "${with_path}" != "no"; then
|
|
||||||
if test -z "${LUA_VERSION}"; then
|
if test -z "${LUA_VERSION}"; then
|
||||||
ifelse([$2], , AC_MSG_NOTICE([optional lua library not found]), $2)
|
ifelse([$2], , AC_MSG_NOTICE([optional lua library not found]), $2)
|
||||||
else
|
else
|
||||||
AC_MSG_NOTICE([using lua v${LUA_VERSION}])
|
AC_MSG_NOTICE([using lua v${LUA_VERSION}])
|
||||||
ifelse([$1], , , $1)
|
ifelse([$1], , , $1)
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
])
|
])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user