-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy pathgeanylua.m4
34 lines (30 loc) · 1.05 KB
/
geanylua.m4
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
AC_DEFUN([GP_CHECK_GEANYLUA],
[
GP_ARG_DISABLE([GeanyLua], [auto])
AC_ARG_WITH([lua-pkg],
AC_HELP_STRING([--with-lua-pkg=ARG],
[name of Lua pkg-config script [[default=lua5.1]]]),
[LUA_PKG_NAME=${withval%.pc}],
[LUA_PKG_NAME=lua5.1
for L in lua5.1 lua51 lua-5.1 lua; do
PKG_CHECK_EXISTS([$L],
[LUA_PKG_NAME=$L]; break,[])
done])
LUA_VERSION=5.1
LUA_VERSION_BOUNDARY=5.2
GP_CHECK_PLUGIN_DEPS([GeanyLua], [LUA],
[${LUA_PKG_NAME} >= ${LUA_VERSION}
${LUA_PKG_NAME} < ${LUA_VERSION_BOUNDARY}])
GP_CHECK_PLUGIN_DEPS([GeanyLua], [GMODULE], [gmodule-2.0])
GP_COMMIT_PLUGIN_STATUS([GeanyLua])
AC_CONFIG_FILES([
geanylua/examples/edit/Makefile
geanylua/examples/scripting/Makefile
geanylua/examples/info/Makefile
geanylua/examples/work/Makefile
geanylua/examples/dialogs/Makefile
geanylua/examples/Makefile
geanylua/docs/Makefile
geanylua/Makefile
])
])