ADG Lua 

ADG Lua Git Source Tree

Root/configure.ac

1m4_define([adg_lua_version],[0.1.2])
2
3m4_define([lua_prereq],5.1.0)
4m4_define([adg_prereq],0.7.2)
5
6
7# Initialization
8
9dnl Depends on the same autoconf version of the ADG project
10AC_PREREQ([2.62])
11AC_INIT([Adg Lua],adg_lua_version,[http://dev.entidi.com/p/adg-lua/],[adg-lua],[http://adg.entidi.com/])
12AC_CONFIG_SRCDIR([configure.ac])
13AC_CONFIG_AUX_DIR([build])
14AC_CONFIG_MACRO_DIR([build])
15AM_INIT_AUTOMAKE([1.10 gnits no-dist-gzip dist-bzip2 -Wall -Wno-portability])
16
17dnl m4 backward compatibility stuff
18m4_ifdef([AM_SILENT_RULES],
19 [AM_SILENT_RULES([yes])],
20 [AC_SUBST([AM_V_GEN],[])])
21m4_ifdef([AM_SUBST_NOTMAKE],[],
22 [AC_DEFUN([AM_SUBST_NOTMAKE],[_AM_SUBST_NOTMAKE($@)])])
23m4_ifdef([AM_COND_IF],[],
24 [AC_DEFUN([AM_COND_IF],
25 [AS_IF([test -z "$$1_TRUE"],[$2],[$3])])])
26
27
28# Check for programs
29
30AX_PROG_LUA(adg_prereq)
31AC_PATH_PROG([MD5SUM],[md5sum],[/usr/bin/md5sum])
32PKG_PROG_PKG_CONFIG
33
34
35# Check for required packages
36
37dnl Get adgdatadir: if not set, use a sensible default and check for
38dnl adg-demo.ui existence inside the guessed path.
39AC_ARG_WITH(adgdatadir,
40 [AS_HELP_STRING([--with-adgdatadir=DIR],
41 [path to the ADG package data @<:@default=DATAROOTDIR/adg@:>@])])
42AS_IF([test "x$with_adgdatadir" = "x"],
43 [with_adgdatadir="$($PKG_CONFIG --variable=datadir adg-1)/adg"
44 AS_IF([test -f "$with_adgdatadir/adg-demo.ui"],[:],
45 [AC_MSG_WARN([adg-demo.ui missing in adgdatadir ($with_adgdatadir)])])])
46AC_SUBST([ADGDATADIR],${with_adgdatadir})
47
48dnl Actually there is no sane way to get the LGI version,
49dnl so use an hardcoded value instead (needed by rockspec.in).
50AC_SUBST([LGI_VERSION],[0.7.1])
51
52# Generation
53
54AC_CONFIG_FILES([adg-demo.lua
55 rockspec
56 Makefile])
57AC_OUTPUT
58
59
60# Report
61
62AC_MSG_NOTICE([generating report
63
64AC_PACKAGE_NAME adg_lua_version will be built with the following options:
65----------------------------------------------------------
66 Lua interpreter: ${LUA} (version ${LUA_VERSION})
67 LGI library: not checked
68 Path to ADG package data: ${with_adgdatadir}
69])

Archive Download this file

Branches

Tags