Files
sysbench/m4/ac_lua_devel.m4
Alexey Kopytov ff225a7490 Fixed LP bug #671684: build broken in lp:sysbench/0.4
Backported autotools-related fixes from trunk.
2010-11-06 15:37:17 +03:00

20 lines
670 B
Plaintext

dnl ---------------------------------------------------------------------------
dnl Macro: AC_LUA_DEVEL
dnl ---------------------------------------------------------------------------
AC_DEFUN([AC_LUA_DEVEL],[
AC_ARG_WITH(lua,
AC_HELP_STRING([--with-lua],[Compile with Lua scripting support (default is enabled)]),
[ac_cv_use_lua="$with_lua"], [ac_cv_use_lua="yes"])
AC_CACHE_CHECK([whether to compile with Lua support], [ac_cv_use_lua], [ac_cv_use_lua=no])
if test "x$ac_cv_use_lua" != "xno"; then
AC_DEFINE(HAVE_LUA, 1, [Define to 1 if you have Lua headers and libraries])
fi
AM_CONDITIONAL(USE_LUA, test "x$ac_cv_use_lua" != "xno")
])