-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
148 lines (109 loc) · 4.59 KB
/
configure.ac
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# clutter package version number, (as distinct from shared library version)
# An odd micro number indicates in-progress developmen
# An even micro number indicates a released version.
m4_define(clutter_helix_major_version, 1)
m4_define(clutter_helix_minor_version, 0)
m4_define(clutter_helix_micro_version, 0)
m4_define([clutter_helix_version],
[clutter_helix_major_version.clutter_helix_minor_version.clutter_helix_micro_version])
m4_define([clutter_helix_api_version],
[clutter_helix_major_version.clutter_helix_minor_version])
# increase the interface age for each release; if the API changes, set to 0
m4_define([clutter_helix_interface_age], [0])
m4_define([clutter_helix_binary_age],
[m4_eval(100 * clutter_helix_minor_version + clutter_helix_micro_version)])
AC_PREREQ(2.53)
AC_INIT([clutter-helix], [clutter_helix_version],
[http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter-helix])
AC_CONFIG_SRCDIR([clutter-helix/clutter-helix.h])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([1.9])
CLUTTER_HELIX_MAJOR_VERSION=clutter_helix_major_version
CLUTTER_HELIX_MINOR_VERSION=clutter_helix_minor_version
CLUTTER_HELIX_MICRO_VERSION=clutter_helix_micro_version
CLUTTER_HELIX_VERSION=clutter_helix_version
CLUTTER_HELIX_API_VERSION=clutter_helix_api_version
CLUTTER_HELIX_MAJORMINOR=clutter_helix_api_version
AC_SUBST(CLUTTER_HELIX_MAJOR_VERSION)
AC_SUBST(CLUTTER_HELIX_MINOR_VERSION)
AC_SUBST(CLUTTER_HELIX_MICRO_VERSION)
AC_SUBST(CLUTTER_HELIX_VERSION)
AC_SUBST(CLUTTER_HELIX_API_VERSION)
AC_SUBST(CLUTTER_HELIX_MAJORMINOR)
m4_define([lt_current],
[m4_eval(100 * clutter_helix_minor_version + clutter_helix_micro_version - clutter_helix_interface_age)])
m4_define([lt_revision], [clutter_helix_interface_age])
m4_define([lt_age], [m4_eval(clutter_helix_binary_age - clutter_helix_interface_age)])
CLUTTER_HELIX_LT_CURRENT=lt_current
CLUTTER_HELIX_LT_REV=lt_revision
CLUTTER_HELIX_LT_AGE=lt_age
CLUTTER_HELIX_LT_VERSION="$CLUTTER_HELIX_LT_CURRENT:$CLUTTER_HELIX_LT_REV:$CLUTTER_HELIX_LT_AGE"
CLUTTER_HELIX_LT_LDFLAGS="-version-info $CLUTTER_HELIX_LT_VERSION"
AC_SUBST(CLUTTER_HELIX_LT_VERSION)
AC_SUBST(CLUTTER_HELIX_LT_LDFLAGS)
dnl ========================================================================
# Checks for programs.
AC_PROG_CC
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
dnl ========================================================================
pkg_modules="clutter-1.0 >= 1.0.0"
PKG_CHECK_MODULES(CLUTTER, [$pkg_modules])
dnl ========================================================================
pkg_modules="hxmediasink"
PKG_CHECK_MODULES(SURFACE, [$pkg_modules])
dnl ========================================================================
pkg_modules="gtk+-2.0"
PKG_CHECK_MODULES(GTK, [$pkg_modules])
dnl ========================================================================
pkg_modules="gdk-2.0"
PKG_CHECK_MODULES(GDK, [$pkg_modules])
dnl ========================================================================
pkg_modules="glib-2.0"
PKG_CHECK_MODULES(GLIB, [$pkg_modules])
dnl ========================================================================
if test "x$GCC" = "xyes"; then
GCC_FLAGS="-g -Wall"
fi
dnl ========================================================================
GTK_DOC_CHECK([1.8])
AM_CONDITIONAL([BUILD_GTK_DOC],
[test "x$enable_gtk_doc" = "xyes" || test ! -f "autogen.sh"])
dnl ========================================================================
AC_SUBST(GCC_FLAGS)
AC_SUBST(SURFACE_CFLAGS)
AC_SUBST(SURFACE_LIBS)
AC_SUBST(CLUTTER_CFLAGS)
AC_SUBST(CLUTTER_LIBS)
AC_OUTPUT([
Makefile
examples/Makefile
doc/Makefile
doc/reference/Makefile
doc/reference/version.xml
clutter-helix/Makefile
clutter-helix/clutter-helix-version.h
clutter-helix.pc
])
dnl ========================================================================
echo ""
echo " Clutter-Helix $VERSION"
echo " ========================="
echo ""
echo " prefix: ${prefix}"
echo " SURFACE_CFLAGS: ${SURFACE_CFLAGS}"
echo " SURFACE_LIBS: ${SURFACE_LIBS}"
echo " CLUTTER_CFLAGS: ${CLUTTER_CFLAGS}"
echo " CLUTTER_LIBS: ${CLUTTER_LIBS}"
echo ""
echo " Documentation: ${enable_gtk_doc}"
echo ""