~ubuntu-branches/ubuntu/oneiric/clutter-gst/oneiric-proposed

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Starr-Bochicchio
  • Date: 2009-09-16 10:43:39 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090916104339-frm6o7fnk0e4pojv
Tags: 0.10.0-0ubuntu1
* New upstream release.
* Clutter 0.8 -> 1.0 transition. (LP: #364630)
* debian/control:
 - Renaming libclutter-gst-0.8-0 to libclutter-gst-0.10-0,
   libclutter-gst-0.8-dev to libclutter-gst-0.10-dev, and
   libclutter-gst-0.8-dbg to libclutter-gst-0.10-dbg for 
   new soname.
 - Bump build-dep to libclutter-1.0-dev
 - Put libclutter-gst-0.10-dbg in Section: debug
* debian/*.{install,examples}: update packages name

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# An odd micro number indicates in-progress developmen
3
3
# An even micro number indicates a released version.
4
4
m4_define(clutter_gst_major_version, 0)
5
 
m4_define(clutter_gst_minor_version, 8)
 
5
m4_define(clutter_gst_minor_version, 10)
6
6
m4_define(clutter_gst_micro_version, 0)
7
7
 
 
8
m4_define(clutter_api_version, 1.0)
 
9
 
8
10
m4_define([clutter_gst_version],
9
11
          [clutter_gst_major_version.clutter_gst_minor_version.clutter_gst_micro_version])
10
12
 
20
22
 
21
23
AC_INIT([clutter-gst], [clutter_gst_version],
22
24
        [http://bugzilla.o-hand.com/enter_bug.cgi?product=Clutter-gst])
 
25
AC_CONFIG_MACRO_DIR([build/autotools])
 
26
AC_CONFIG_AUX_DIR([build/autotools])
23
27
AC_CONFIG_SRCDIR([clutter-gst/clutter-gst.h])
24
28
AM_CONFIG_HEADER([config.h])
25
29
 
31
35
CLUTTER_GST_VERSION=clutter_gst_version
32
36
CLUTTER_GST_API_VERSION=clutter_gst_api_version
33
37
CLUTTER_GST_MAJORMINOR=clutter_gst_api_version
 
38
CLUTTER_API_VERSION=clutter_api_version
34
39
AC_SUBST(CLUTTER_GST_MAJOR_VERSION)
35
40
AC_SUBST(CLUTTER_GST_MINOR_VERSION)
36
41
AC_SUBST(CLUTTER_GST_MICRO_VERSION)
37
42
AC_SUBST(CLUTTER_GST_VERSION)
38
43
AC_SUBST(CLUTTER_GST_API_VERSION)
39
44
AC_SUBST(CLUTTER_GST_MAJORMINOR)
 
45
AC_SUBST(CLUTTER_API_VERSION)
40
46
 
41
47
m4_define([lt_current],
42
48
          [m4_eval(100 * clutter_gst_minor_version + clutter_gst_micro_version - clutter_gst_interface_age)])
56
62
 
57
63
# Checks for programs.
58
64
AC_PROG_CC
 
65
AM_PROG_CC_C_O
59
66
AC_DISABLE_STATIC
60
67
AC_PROG_LIBTOOL
 
68
DOLT
61
69
 
62
70
# Checks for header files.
63
71
AC_HEADER_STDC
71
79
AC_FUNC_MMAP
72
80
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
73
81
 
74
 
 
75
 
dnl ========================================================================
76
 
 
77
 
pkg_modules="clutter-0.8 >= 0.8.0"
 
82
dnl ========================================================================
 
83
 
 
84
AC_CHECK_PROG(CGC, [cgc], [cgc], [no])
 
85
have_cgc="no"
 
86
if test "x$CGC" = "xcgc"; then
 
87
        have_cgc="yes"
 
88
fi
 
89
AM_CONDITIONAL([HAVE_CGC], [test "x$have_cgc" = "xyes"])
 
90
 
 
91
dnl ========================================================================
 
92
dnl check for python (pso2h.py needs it)
 
93
 
 
94
AC_CHECK_PROG(PYTHON, [python], [python], [no])
 
95
have_python="no"
 
96
if test "x$PYTHON" = "xpython"; then
 
97
        have_python="yes"
 
98
fi
 
99
AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
 
100
 
 
101
dnl ========================================================================
 
102
 
 
103
pkg_modules="clutter-1.0 >= 1.0.0"
78
104
PKG_CHECK_MODULES(CLUTTER_GST, [$pkg_modules])
79
105
 
80
106
dnl ========================================================================
81
107
 
82
108
GST_MAJORMINOR=0.10
83
109
 
84
 
pkg_modules="gstreamer-$GST_MAJORMINOR gstreamer-plugins-base-$GST_MAJORMINOR"
 
110
pkg_modules="gstreamer-$GST_MAJORMINOR gstreamer-plugins-base-$GST_MAJORMINOR gstreamer-base-$GST_MAJORMINOR"
85
111
PKG_CHECK_MODULES(GST, [$pkg_modules])
86
112
 
87
113
GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_MAJORMINOR -lgstvideo-$GST_MAJORMINOR -lgstaudio-$GST_MAJORMINOR"
88
114
 
89
115
dnl ========================================================================
90
116
 
91
 
if test "x$GCC" = "xyes"; then
92
 
        GCC_FLAGS="-g -Wall"
93
 
fi
 
117
m4_define([maintainer_flags_default], [yes])
 
118
AC_ARG_ENABLE([maintainer-flags],
 
119
              [AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
 
120
                              [Use strict compiler flags @<:@default=maintainer_flags_default@:>@])],
 
121
              [],
 
122
              [enable_maintainer_flags=maintainer_flags_default])
 
123
 
 
124
AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
 
125
      [
 
126
        AS_COMPILER_FLAGS([MAINTAINER_CFLAGS],
 
127
                          ["-Wall -Wshadow -Wcast-align -Wno-uninitialized
 
128
                            -Wno-strict-aliasing -Wempty-body -Wformat-security
 
129
                            -Winit-self"])
 
130
      ]
 
131
)
 
132
 
 
133
AC_SUBST(MAINTAINER_CFLAGS)
94
134
 
95
135
dnl ========================================================================
96
136
 
108
148
AC_SUBST(CLUTTER_GST_CFLAGS)
109
149
AC_SUBST(CLUTTER_GST_LIBS)
110
150
 
 
151
SHAVE_INIT([build/autotools], [enable])
 
152
 
111
153
AC_OUTPUT([
112
154
        Makefile
 
155
        build/Makefile
 
156
        build/autotools/Makefile
 
157
        build/autotools/shave
 
158
        build/autotools/shave-libtool
 
159
        scripts/Makefile
113
160
        clutter-gst/Makefile
114
161
        clutter-gst/clutter-gst-version.h
 
162
        clutter-gst/shaders/Makefile
 
163
        tests/Makefile
115
164
        examples/Makefile
116
165
        doc/Makefile
117
166
        doc/reference/Makefile
126
175
echo "                 ==================="
127
176
echo ""
128
177
echo "                   prefix:   ${prefix}"
129
 
echo ""
130
 
echo "            Documentation:   ${enable_gtk_doc}"
 
178
echo "           Compiler flags:   ${MAINTAINER_CFLAGS} ${CPPFLAGS}"
 
179
echo ""
 
180
echo "              Cg compiler:   ${have_cgc}"
 
181
echo ""
 
182
echo "  Build API documentation:   ${enable_gtk_doc}"
131
183
echo ""