1
1
dnl If not 1, append datestamp to the version number
2
2
m4_define(empathy_released, 1)
4
m4_define([empathy_major_version], [2])
5
m4_define([empathy_minor_version], [34])
6
m4_define([empathy_micro_version], [0])
4
m4_define([empathy_major_version], [3])
5
m4_define([empathy_minor_version], [1])
6
m4_define([empathy_micro_version], [1])
7
7
m4_define([empathy_nano_version], [0])
9
9
dnl Display the nano_version only if it's not '0'
34
34
FOLKS_REQUIRED=0.4.0
37
36
GNUTLS_REQUIRED=2.8.5
38
GSTREAMER_REQUIRED=0.10.32
40
38
KEYRING_REQUIRED=2.26.0
41
LIBCANBERRA_GTK_REQUIRED=0.4
40
LIBCANBERRA_GTK_REQUIRED=0.25
42
41
LIBNOTIFY_REQUIRED=0.7.0
43
42
TELEPATHY_FARSIGHT_REQUIRED=0.0.14
44
TELEPATHY_GLIB_REQUIRED=0.14.1
43
TELEPATHY_GLIB_REQUIRED=0.14.3
45
44
TELEPATHY_LOGGER=0.2.0
49
CLUTTER_GTK_REQUIRED=0.10
47
CLUTTER_GTK_REQUIRED=0.90.3
50
48
ENCHANT_REQUIRED=1.2.0
51
49
GEOCLUE_REQUIRED=0.11
52
50
ISO_CODES_REQUIRED=0.35
53
51
LIBCHAMPLAIN_GTK_REQUIRED=0.7.1
54
LIBCHAMPLAIN_REQUIRED=0.7.1
55
NAUTILUS_SENDTO_REQUIRED=2.31.7
52
LIBCHAMPLAIN_REQUIRED=0.9
53
NAUTILUS_SENDTO_REQUIRED=2.90.0
56
54
NETWORK_MANAGER_REQUIRED=0.7.0
57
WEBKIT_REQUIRED=1.1.15
58
GNOME_CONTROL_CENTER_GTK3_REQUIRED=2.31.4
56
GNOME_CONTROL_CENTER_REQUIRED=2.31.4
61
prev_top_build_prefix=$ac_top_build_prefix
62
AX_CONFIG_DIR([telepathy-yell])
63
ac_top_build_prefix=$prev_top_build_prefix
64
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"telepathy-yell/telepathy-yell
58
# Use --enable-maintainer-mode to disable deprecated symbols,
59
# disable single include and enable GSEAL. If this is not a released empathy,
60
# maintainer mode is forced
61
# FIXME: don't disable deprecated symbols until bgo #636654 has been fixed
62
#ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"])
63
#GNOME_MAINTAINER_MODE_DEFINES
66
65
AC_CONFIG_MACRO_DIR([m4])
67
66
AC_CONFIG_HEADERS([config.h])
134
133
AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
135
134
AS_COMPILER_FLAG(-Wmissing-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes")
136
135
AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations")
137
# Disabled because some GTK+ headers (like gtkitemfactory.h) are bugged :(
138
#AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
136
AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
140
138
AC_SUBST(ERROR_CFLAGS)
149
147
folks >= $FOLKS_REQUIRED
150
148
folks-telepathy >= $FOLKS_REQUIRED
151
gconf-2.0 >= $GCONF_REQUIRED
149
glib-2.0 >= $GLIB_REQUIRED
152
150
gio-2.0 >= $GLIB_REQUIRED
153
151
gio-unix-2.0 >= $GLIB_REQUIRED
154
152
gnome-keyring-1 >= $KEYRING_REQUIRED
155
153
gnutls >= $GNUTLS_REQUIRED
156
154
gmodule-export-2.0
158
gstreamer-0.10 >= $GSTREAMER_REQUIRED
156
gsettings-desktop-schemas
159
158
gstreamer-interfaces-0.10
161
160
telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
162
161
telepathy-logger-0.2 >= $TELEPATHY_LOGGER
163
gtk+-3.0 >= $GTK_REQUIRED
164
libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED
165
libnotify >= $LIBNOTIFY_REQUIRED
166
gcr-3 >= $GCR_REQUIRED
166
PKG_CHECK_MODULES(YELL, [telepathy-yell])
168
169
PKG_CHECK_MODULES(EMPATHY_AV,
174
175
# -----------------------------------------------------------
176
# -----------------------------------------------------------
178
AC_HELP_STRING([--enable-call=@<:@no/yes/auto@:>@],
179
[build with Call interface support]),,
181
if test "x$with_call" != "xno" ; then
182
PKG_CHECK_MODULES(EMPATHY_CALL,
186
], have_farstream="yes", have_farstream="no" )
188
if test "x$have_farstream" = "xyes"; then
189
AC_DEFINE(HAVE_CALL, 1, [Define if you have Call channel support])
195
if test "x$with_call" = "xyes" -a "x$have_farstream" != "xyes"; then
196
AC_MSG_ERROR([Could not find Call handler dependencies.])
198
AM_CONDITIONAL(HAVE_CALL, test "x$have_farstream" = "xyes")
200
# -----------------------------------------------------------
201
176
# evolution-data-server (about-me)
202
177
# -----------------------------------------------------------
211
186
# -----------------------------------------------------------
213
# -----------------------------------------------------------
214
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
217
PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk >= $LIBCANBERRA_GTK_REQUIRED)
218
# libnotify 0.7 introduced API changes
219
PKG_CHECK_MODULES(LIBNOTIFY,
220
libnotify >= $LIBNOTIFY_REQUIRED)
221
PKG_CHECK_MODULES(UNIQUE, unique-1.0 >= $UNIQUE_REQUIRED)
222
# gnome-keyring breaks API in 2.91.x
223
PKG_CHECK_MODULES(GCR,
224
gcr-0 >= $KEYRING_REQUIRED)
226
# Enable GSEAL checks if needed
227
if test "x$USE_MAINTAINER_MODE" = "xyes"; then
228
AC_DEFINE(GSEAL_ENABLE, [], [Seal public structs to force usage of accessors])
231
# -----------------------------------------------------------
233
188
# -----------------------------------------------------------
251
206
AM_GLIB_GNU_GETTEXT
253
208
# -----------------------------------------------------------
254
# Make CA certificates path configurable
255
# Stolen from GIO's TLS
256
# -----------------------------------------------------------
257
AC_MSG_CHECKING([location of system Certificate Authority list])
259
[AC_HELP_STRING([--with-ca-file=@<:@path@:>@],
260
[path to system Certificate Authority list])])
261
if test "$with_ca_file" = "no"; then
262
AC_MSG_RESULT([disabled])
264
if test -z "$with_ca_file"; then
265
for f in /etc/pki/tls/certs/ca-bundle.crt \
266
/etc/ssl/certs/ca-certificates.crt; do
267
if test -f "$f"; then
271
if test -z "$with_ca_file"; then
272
AC_MSG_ERROR([could not find. Use --with-ca-file=path to set, or --without-ca-file to disable])
276
AC_MSG_RESULT($with_ca_file)
277
GTLS_SYSTEM_CA_FILE="$with_ca_file"
279
AC_DEFINE_UNQUOTED([GTLS_SYSTEM_CA_FILE], ["$GTLS_SYSTEM_CA_FILE"], [path to system Certificate Authority list])
282
# -----------------------------------------------------------
283
209
# Connectivity integration
284
210
# -----------------------------------------------------------
285
211
AC_ARG_WITH(connectivity,
336
262
enable_webkit=auto)
338
264
if test "x$enable_webkit" != "xno"; then
340
PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= $WEBKIT_REQUIRED],
265
PKG_CHECK_MODULES(WEBKIT, [webkitgtk-3.0 >= $WEBKIT_REQUIRED],
341
266
have_webkit="yes", have_webkit="no")
343
268
if test "x$have_webkit" = "xyes"; then
403
328
PKG_CHECK_MODULES(LIBCHAMPLAIN,
405
champlain-0.8 >= $LIBCHAMPLAIN_REQUIRED,
406
champlain-gtk-0.8 >= $LIBCHAMPLAIN_GTK_REQUIRED
407
clutter-gtk-0.10 >= $CLUTTER_GTK_REQUIRED
408
333
], have_libchamplain="yes", have_libchamplain="no")
410
335
if test "x$have_libchamplain" = "xyes"; then
453
378
# meego widgets support
454
379
# -----------------------------------------------------------
455
380
AC_ARG_ENABLE(meego,
456
AS_HELP_STRING([--enable-meego=@<:no/yes@:>@],
381
AS_HELP_STRING([--enable-meego=@<:@no/yes@:>@],
457
382
[Enable meego widgets]), ,
487
413
enable_nautilus_sendto=auto)
489
415
if test "x$enable_nautilus_sendto" != "xno"; then
490
# Newer NST requires GTK+3 so we can't use it
491
416
PKG_CHECK_MODULES(NST,
493
nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
494
nautilus-sendto < 2.90.0
495
], have_nst="yes", have_nst="no")
418
nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
419
], have_nst="yes", have_nst="no")
514
438
if test "x$enable_control_center_embedding" != "xno"; then
516
PKG_CHECK_MODULES(CONTROL_CENTER_EMBEDDING, [libgnome-control-center < GNOME_CONTROL_CENTER_GTK3_REQUIRED],
440
PKG_CHECK_MODULES(CONTROL_CENTER_EMBEDDING, [libgnome-control-center >= GNOME_CONTROL_CENTER_REQUIRED],
517
441
have_control_center_embedding="yes", have_control_center_embedding="no")
519
443
if test "x$have_control_center_embedding" = "xyes"; then
577
501
Compiler Flags..............: ${CFLAGS} ${ERROR_CFLAGS}
578
502
Prefix......................: ${prefix}
579
503
Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
580
CA Cert Path................: ${GTLS_SYSTEM_CA_FILE}
583
506
Spell checking (enchant)....: ${have_enchant}
584
507
Display maps (libchamplain).: ${have_libchamplain}
585
508
Location awareness (Geoclue): ${have_geoclue}
586
509
Adium themes (Webkit).......: ${have_webkit}
587
Meego widgets...............: ${have_meego}
510
Meego widgets ..............: ${have_meego}
588
511
Control center embedding....: ${have_control_center_embedding}