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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT([imagination], [3.0],
[http://sourceforge.net/tracker/?group_id=244319&atid=1125540])
AC_CONFIG_SRCDIR([src/imagination.h])
AM_INIT_AUTOMAKE
# Enable silent rules if supported
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_INTLTOOL
# for plugins
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
LIBTOOL="$LIBTOOL --silent"
pkg_modules="gtk+-2.0 >= 2.14.0 gthread-2.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
sox_modules="sox >= 14.2.0"
PKG_CHECK_MODULES(SOX, [$sox_modules])
plugins_modules="cairo >= 1.6 glib-2.0 > 2.18.0"
PKG_CHECK_MODULES(PLUGINS, [$plugins_modules])
# get svn revision
REVISION="r0"
if test "x${REVISION}" = "xr0"
then
SVN=`which svn 2>/dev/null`
if test -d ".svn" -a "x${SVN}" != "x" -a -x "${SVN}"
then
REVISION=r`$SVN info|grep 'Last Changed Rev'|cut -d' ' -f4`
fi
fi
if test "x${REVISION}" != "xr0"
then
# force debug mode for a SVN working copy
CFLAGS="-g -Wall"
else
REVISION="-1"
fi
AC_DEFINE_UNQUOTED(REVISION, "$REVISION", [subversion revision number])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
AC_SUBST(SOX_CFLAGS)
AC_SUBST(SOX_LIBS)
AC_SUBST(PLUGINS_CFLAGS)
AC_SUBST(PLUGINS_LIBS)
GETTEXT_PACKAGE=imagination
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
AC_PATH_PROG([XSLTPROC], [xsltproc], [yes])
AM_CONDITIONAL([ENABLE_XSLTPROC], [test x"$enable_xsltproc" = x"yes"])
dnl Add the languages which your application supports here.
ALL_LINGUAS="`sed -e '/^#/d' $srcdir/po/LINGUAS`"
AM_GLIB_GNU_GETTEXT
GTK_VERSION=`$PKG_CONFIG --modversion gtk+-2.0`
SOX_VERSION=`$PKG_CONFIG --modversion sox`
AC_OUTPUT([
Makefile
src/Makefile
transitions/Makefile
doc/Makefile
doc/en/Makefile
doc/en/imagination.xml
doc/en/images/Makefile
doc/fr/Makefile
doc/fr/imagination.xml
doc/fr/images/Makefile
doc/es/Makefile
doc/es/imagination.xml
doc/es/images/Makefile
doc/pt_BR/Makefile
doc/pt_BR/imagination.xml
doc/pt_BR/images/Makefile
po/Makefile.in
icons/Makefile
icons/16x16/Makefile
icons/24x24/Makefile
icons/48x48/Makefile
icons/scalable/Makefile
])
echo ""
echo "Imagination configuration:"
echo "--------------------------"
echo ""
echo "Install in : ${prefix}/bin"
echo "GTK version : ${GTK_VERSION}"
echo "SOX version : ${SOX_VERSION}"
if test "${REVISION}" != "-1"
then
echo "SVN revision: ${REVISION}"
fi
echo ""
|