Sha256: 691e342a06bb377cd0b9c731783acfb82cea26e416beb6ac09d6ecf229c1f433
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*- dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab: dnl dnl pandora-build: A pedantic build system dnl Copyright (C) 2009 Sun Microsystems, Inc. dnl This file is free software; Sun Microsystems dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl From Monty Taylor AC_DEFUN([PANDORA_WITH_LUA],[ dnl Check for lua AC_ARG_WITH([lua], [AS_HELP_STRING([--with-lua], [Build Lua Bindings @<:@default=yes@:>@])], [with_lua=$withval], [with_lua=yes]) AS_IF([test "x$with_lua" != "xno"],[ AS_IF([test "x$with_lua" = "xyes"], [LUAPC=lua], [LUAPC=$with_lua]) PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [ AC_DEFINE([HAVE_LUA], [1], [liblua]) AC_DEFINE([HAVE_LUA_H], [1], [lua.h]) with_lua=yes ],[ LUAPC=lua5.1 PKG_CHECK_MODULES([LUA], $LUAPC >= 5.1, [ AC_DEFINE([HAVE_LUA], [1], [liblua]) AC_DEFINE([HAVE_LUA_H], [1], [lua.h]) with_lua=yes ],[ AC_DEFINE([HAVE_LUA],["x"],["x"]) with_lua=no ]) ]) AC_CACHE_CHECK([for LUA installation location],[pandora_cv_lua_archdir],[ AS_IF([test "$prefix" = "NONE"],[ pandora_cv_lua_archdir=`${PKG_CONFIG} --define-variable=prefix=${ac_default_prefix} --variable=INSTALL_CMOD ${LUAPC}` ],[ pandora_cv_lua_archdir=`${PKG_CONFIG} --define-variable=prefix=${prefix} --variable=INSTALL_CMOD ${LUAPC}` ]) ]) LUA_ARCHDIR="${pandora_cv_lua_archdir}" AC_SUBST(LUA_ARCHDIR) AC_SUBST(LUA_CFLAGS) AC_SUBST(LUA_LIBS) ]) AM_CONDITIONAL(BUILD_LUA, test "$with_lua" = "yes") ])
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
couchbase-memcached-1.2.9 | ext/libmemcached-0.50/m4/pandora_with_lua.m4 |
couchbase-memcached-1.2.8 | ext/libmemcached-0.50/m4/pandora_with_lua.m4 |