1 dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4 dnl pandora-build: A pedantic build system
5 dnl Copyright (C) 2009 Sun Microsystems, Inc.
6 dnl This file is free software; the Free Software Foundation
7 dnl gives unlimited permission to copy and/or distribute it,
8 dnl with or without modifications, as long as this notice is preserved.
12 AC_DEFUN([PANDORA_WITH_LUA],[
15 [AS_HELP_STRING([--with-lua],
16 [Build Lua Bindings @<:@default=yes@:>@])],
20 AS_IF([test "x$with_lua" != "xno"],[
21 AS_IF([test "x$with_lua" = "xyes"],
25 PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [
26 AC_DEFINE([HAVE_LUA], [1], [liblua])
27 AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
30 PKG_CHECK_MODULES([LUA], lua5.1 >= 5.1, [
31 AC_DEFINE([HAVE_LUA], [1], [liblua])
32 AC_DEFINE([HAVE_LUA_H], [1], [lua.h])
35 AC_DEFINE([HAVE_LUA],["x"],["x"])
43 AM_CONDITIONAL(BUILD_LUA, test "$with_lua" = "yes")