1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
|
@node ax_lua
@unnumberedsec ax_lua
@majorheading Synopsis
@smallexample
AX_WITH_LUA
AX_PROG_LUA [(MIN-VERSION, [TOO-BIG-VERSION])]
AX_LUA_VERSION (MIN-VERSION, [TOO-BIG-VERSION])
AX_LUA_HEADERS
AX_LUA_HEADERS_VERSION (MIN-VERSION, [TOO-BIG-VERSION])
AX_LUA_LIBS
AX_LUA_READLINE
@end smallexample
@majorheading Description
Detect Lua interpreter, headers and libraries, optionally enforcing a
particular range of versions. If only one version is given, then exactly
this version is required.
AX_WITH_LUA searches for a Lua interpreter and defines LUA if found.
AX_PROG_LUA searches for a Lua interpreter in the given version range,
if any, and defines LUA if found, or stops with an error if not.
AX_LUA_VERSION checks that the version of Lua is at least MIN-VERSION
and less than TOO-BIG-VERSION, if given.
AX_LUA_HEADERS searches for Lua headers and defines HAVE_LUA_H and
HAVE_LUALIB_H if found, and defines LUA_INCLUDE to the preprocessor
flags needed, if any.
AX_LUA_HEADERS_VERSION checks that the Lua headers' version is at least
MIN-VERSION, and less than TOO-BIG-VERSION, if given.
AX_LUA_LIBS searches for Lua libraries and defines LUA_LIB if found.
AX_LUA_READLINE configures Lua to be built with readline support, if
available. This macro requires AX_LIB_READLINE.
Versions are specified as three-digit integers whose first digit is the
major version and last two are the minor version (the same format as
LUA_VERSION_NUM in lua.h); e.g. 501 for Lua 5.1. The revision (e.g. the
"3" in "5.1.3") is ignored.
The following options are added by these macros:
@smallexample
--with-lua-suffix=ARG Lua binaries and library files are
suffixed with ARG.
@end smallexample
@majorheading Source Code
Download the
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_lua.m4,latest
version of @file{ax_lua.m4}} or browse
@uref{http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=history;f=m4/ax_lua.m4,the
macro's revision history}.
@majorheading License
@w{Copyright @copyright{} 2011 Reuben Thomas @email{rrt@@sc3d.org}} @* @w{Copyright @copyright{} 2009 Matthieu Moy @email{Matthieu.Moy@@imag.fr}} @* @w{Copyright @copyright{} 2009 Tom Payne @email{twpayne@@gmail.com}}
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
As a special exception, the respective Autoconf Macro's copyright owner
gives unlimited permission to copy, distribute and modify the configure
scripts that are the output of Autoconf when processing the Macro. You
need not follow the terms of the GNU General Public License when using
or distributing such scripts, even though portions of the text of the
Macro appear in them. The GNU General Public License (GPL) does govern
all other use of the material that constitutes the Autoconf Macro.
This special exception to the GPL applies to versions of the Autoconf
Macro released by the Autoconf Archive. When you make and distribute a
modified version of the Autoconf Macro, you may extend this special
exception to the GPL to apply to your modified version as well.
|