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)
31PKG_PROG_PKG_CONFIG
32
33
34# Check for required packages
35
36dnl Get adgdatadir: if not set, use a sensible default and check for
37dnl adg-demo.ui existence inside the guessed path.
38AC_ARG_WITH(adgdatadir,
39 [AS_HELP_STRING([--with-adgdatadir=DIR],
40 [path to the ADG package data @<:@default=DATAROOTDIR/adg@:>@])])
41AS_IF([test "x$with_adgdatadir" = "x"],
42 [with_adgdatadir="$($PKG_CONFIG --variable=datadir adg-1)/adg"
43 AS_IF([test -f "$with_adgdatadir/adg-demo.ui"],[:],
44 [AC_MSG_ERROR([adg-demo.ui missing in adgdatadir ($with_adgdatadir)])])])
45AC_SUBST([ADGDATADIR],${with_adgdatadir})
46
47
48# Generation
49
50AC_CONFIG_FILES([adg-demo.lua
51 Makefile])
52AC_OUTPUT
53
54
55# Report
56
57AC_MSG_NOTICE([generating report
58
59AC_PACKAGE_NAME adg_lua_version will be built with the following options:
60----------------------------------------------------------
61 Lua interpreter: ${LUA} (version ${LUA_VERSION})
62 LGI library: not checked
63 Path to ADG package data: ${with_adgdatadir}
64])

Archive Download this file

Branches

Tags