~ubuntu-branches/ubuntu/raring/grilo/raring

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Alberto Garcia
  • Date: 2012-10-12 16:42:22 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20121012164222-10mggmipxg83x46v
Tags: upstream-0.2.2
ImportĀ upstreamĀ versionĀ 0.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
4
4
# Author: Iago Toral Quiroga <itoral@igalia.com>
5
5
#
6
 
# Copyright (C) 2010-2012 Igalia S.L.. All rights reserved.
 
6
# Copyright (C) 2010, 2011 Igalia S.L.. All rights reserved.
7
7
 
8
8
m4_define([prj_name],    [grilo])
9
9
m4_define([prj_gir_name], [Grilo])
10
10
m4_define([grl_major_version], [0])
11
 
m4_define([grl_minor_version], [1])
12
 
m4_define([grl_micro_version], [20])
 
11
m4_define([grl_minor_version], [2])
 
12
m4_define([grl_micro_version], [2])
13
13
m4_define([prj_version], grl_major_version.grl_minor_version.grl_micro_version)
14
14
 
15
15
AC_INIT([prj_name],
37
37
 
38
38
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
39
39
 
 
40
# Grilo Net library
 
41
 
 
42
GRLNET_VERSION=0.2.2
 
43
AC_SUBST(GRLNET_VERSION)
 
44
AC_DEFINE_UNQUOTED(GRLNET_VERSION, "$GRLNET_VERSION", [Grilo Net library version])
 
45
 
 
46
# ----------------------------------------------------------
 
47
# LIBTOOL VERSIONING
 
48
# ----------------------------------------------------------
 
49
 
 
50
# Libtool library version, not to confuse with API version
 
51
# see http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
 
52
 
 
53
GRL_LT_VERSION=2:0:1
 
54
GRLNET_LT_VERSION=1:0:1
 
55
 
 
56
AC_SUBST([GRL_LT_VERSION])
 
57
AC_SUBST([GRLNET_LT_VERSION])
 
58
 
40
59
# ----------------------------------------------------------
41
60
# ENVIRONMENT CONFIGURATION
42
61
# ----------------------------------------------------------
50
69
# DEFINITIONS
51
70
# ----------------------------------------------------------
52
71
 
53
 
# ABI version
 
72
# API version
54
73
 
55
74
GRL_MAJORMINOR=grl_major_version.grl_minor_version
56
75
GRL_MAJORMINOR_NORM=grl_major_version[_]grl_minor_version
58
77
AC_SUBST(GRL_MAJORMINOR_NORM)
59
78
AC_DEFINE_UNQUOTED(GRL_MAJORMINOR, "$GRL_MAJORMINOR", [library major.minor version])
60
79
 
61
 
# Framework name (contains ABI version)
 
80
# Framework name (contains API version)
62
81
 
63
82
GRL_NAME="${PACKAGE_NAME}-${GRL_MAJORMINOR}"
64
83
AC_SUBST(GRL_NAME)
84
103
# DEPENDENCIES
85
104
# ----------------------------------------------------------
86
105
 
87
 
PKG_CHECK_MODULES(DEPS, glib-2.0 >= 2.22 \
 
106
PKG_CHECK_MODULES(DEPS, glib-2.0 >= 2.29.10 \
88
107
                        gobject-2.0 \
89
108
                        gmodule-2.0 \
90
109
                        gio-2.0 \
100
119
# ----------------------------------------------------------
101
120
 
102
121
PKG_CHECK_MODULES([GTU], [ gtk+-3.0 >= 3.0 ],
103
 
                       [ BUILD_GRILO_TEST_UI=yes ],
104
 
                       [ BUILD_GRILO_TEST_UI=no ])
105
 
 
106
 
AM_CONDITIONAL(BUILD_GRILO_TEST_UI, test "x$BUILD_GRILO_TEST_UI" = "xyes")
 
122
                       [ HAVE_GTK=yes ],
 
123
                       [ HAVE_GTK=no ])
 
124
 
 
125
AC_ARG_ENABLE(test-ui,
 
126
        AS_HELP_STRING([--enable-test-ui],
 
127
                [Build Test UI (default: auto)]),
 
128
        [
 
129
                case "$enableval" in
 
130
                     yes)
 
131
                        if test "x$HAVE_GTK" = "xno"; then
 
132
                           AC_MSG_ERROR([gtk+-3.0 >= 3.0 not found, install it or use --disable-test-ui])
 
133
                        fi
 
134
                        ;;
 
135
                     no)
 
136
                        HAVE_GTK=no
 
137
                        ;;
 
138
                esac
 
139
        ])
 
140
 
 
141
AM_CONDITIONAL(BUILD_GRILO_TEST_UI, test "x$HAVE_GTK" = "xyes")
107
142
 
108
143
# ----------------------------------------------------------
109
144
# NET LIBRARY
140
175
# ----------------------------------------------------------
141
176
 
142
177
AC_ARG_ENABLE(debug,
143
 
        AC_HELP_STRING([--enable-debug],
144
 
        [include debug symbols (default: no)]),,
145
 
        [enable_debug=no])
146
 
 
 
178
        [  --enable-debug include debug symbols],,
 
179
        enable_debug=yes)
147
180
if test "x$enable_debug" = "xyes"; then
148
 
   AC_MSG_WARN("Configuring with debugging options enabled!")
 
181
        AC_MSG_WARN("Configuring with debugging options enabled!")
149
182
        CFLAGS="$CFLAGS -g3 -O0"
150
183
fi
151
184
 
153
186
# TESTS SUPPORT
154
187
# ----------------------------------------------------------
155
188
 
156
 
AC_ARG_ENABLE(tests,
157
 
        AC_HELP_STRING([--enable-tests],
158
 
        [build unit tests (default: no)]),,
159
 
        [enable_tests=no])
 
189
AC_ARG_ENABLE([tests],
 
190
        AS_HELP_STRING([--enable-tests],[build unit tests]),
 
191
        enable_tests=yes)
160
192
 
161
 
AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
 
193
AM_CONDITIONAL(ENABLE_TESTS, test "enable_tests" = "xyes")
162
194
 
163
195
# ----------------------------------------------------------
164
196
# VALA BINDINGS
241
273
# ----------------------------------------------------------
242
274
 
243
275
if test "x$HAVE_LIBSOUP" = "xyes"; then
244
 
   AC_CONFIG_FILES([grilo-net-uninstalled.pc grilo-net-0.1.pc])
 
276
   AC_CONFIG_FILES([grilo-net-uninstalled.pc grilo-net-0.2.pc])
245
277
fi
246
278
 
247
279
AC_CONFIG_FILES([
248
280
  Makefile
249
281
  grilo-uninstalled.pc
250
 
  grilo-0.1.pc
 
282
  grilo-0.2.pc
251
283
  src/Makefile
252
284
  tests/Makefile
253
285
  tests/python/Makefile