]> git.0d.be Git - empathy.git/blob - configure.ac
Updated Russian translation
[empathy.git] / configure.ac
1 dnl If not 1, append datestamp to the version number
2 m4_define(empathy_released, 0)
3
4 m4_define([empathy_major_version], [3])
5 m4_define([empathy_minor_version], [1])
6 m4_define([empathy_micro_version], [91])
7 m4_define([empathy_nano_version], [0])
8
9 dnl Display the nano_version only if it's not '0'
10 m4_define([empathy_base_version],
11           [empathy_major_version.empathy_minor_version.empathy_micro_version])
12 m4_define([empathy_full_version],
13           [m4_if(empathy_nano_version, 0, [empathy_base_version],
14               [empathy_base_version].[empathy_nano_version])])
15
16 m4_define(empathy_maybe_datestamp,
17           m4_esyscmd([if test x]empathy_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
18
19 m4_define(empathy_version, empathy_full_version[]empathy_maybe_datestamp)
20
21
22 AC_INIT([Empathy],
23         [empathy_version],
24         [http://bugzilla.gnome.org/browse.cgi?product=empathy],
25         [empathy],
26         [https://live.gnome.org/Empathy])
27
28 AC_PREREQ([2.64])
29 AC_COPYRIGHT([
30   Copyright (C) 2003-2007 Imendio AB
31   Copyright (C) 2007-2010 Collabora Ltd.
32 ])
33
34 # Minimal version required
35
36 # Hardp deps
37 FOLKS_REQUIRED=0.6.0
38 GLIB_REQUIRED=2.28.0
39 GNUTLS_REQUIRED=2.8.5
40 GTK_REQUIRED=3.0.2
41 GSTREAMER_REQUIRED=0.10.32
42 KEYRING_REQUIRED=2.26.0
43 GCR_REQUIRED=2.91.4
44 LIBCANBERRA_GTK_REQUIRED=0.25
45 LIBNOTIFY_REQUIRED=0.7.0
46 TELEPATHY_FARSIGHT_REQUIRED=0.0.14
47 TELEPATHY_GLIB_REQUIRED=0.15.5
48 TELEPATHY_LOGGER=0.2.10
49 WEBKIT_REQUIRED=1.3.13
50
51 # Optional deps
52 CLUTTER_GTK_REQUIRED=0.90.3
53 ENCHANT_REQUIRED=1.2.0
54 GEOCLUE_REQUIRED=0.11
55 ISO_CODES_REQUIRED=0.35
56 NAUTILUS_SENDTO_REQUIRED=2.90.0
57 NETWORK_MANAGER_REQUIRED=0.7.0
58
59 # Use --enable-maintainer-mode to disable deprecated symbols,
60 # disable single include and enable GSEAL. If this is not a released empathy,
61 # maintainer mode is forced
62 # FIXME: don't disable deprecated symbols until bgo #636654 has been fixed
63 #ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"])
64 #GNOME_MAINTAINER_MODE_DEFINES
65
66 # telepathy-yell
67 prev_top_build_prefix=$ac_top_build_prefix
68 prev_ac_configure_args=$ac_configure_args
69 ac_configure_args="$ac_configure_args --disable-shared-library"
70 AX_CONFIG_DIR([telepathy-yell])
71 ac_top_build_prefix=$prev_top_build_prefix
72 ac_configure_args=$prev_ac_configure_args
73 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"telepathy-yell/telepathy-yell
74
75 AC_CONFIG_MACRO_DIR([m4])
76 AC_CONFIG_HEADERS([config.h])
77 AC_CONFIG_SRCDIR([configure.ac])
78 AC_CONFIG_AUX_DIR(.)
79
80 AM_INIT_AUTOMAKE([1.11 no-define -Wno-portability tar-ustar no-dist-gzip dist-xz])
81
82 # Support silent build rules. Disable
83 # by either passing --disable-silent-rules to configure or passing V=1
84 # to make
85 AM_SILENT_RULES([yes])
86
87 # Check for programs
88 AC_PROG_CC
89 AC_HEADER_STDC
90 AM_PROG_MKDIR_P
91 AM_PATH_GLIB_2_0
92 AC_PATH_XTRA
93
94 # Initialize libtool
95 LT_PREREQ([2.2])
96 LT_INIT
97
98 GNOME_DOC_INIT([0.17.3])
99 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
100 GLIB_GSETTINGS
101 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
102 AC_SUBST(GLIB_GENMARSHAL)
103
104 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
105 if test -z "$XSLTPROC"; then
106   AC_MSG_ERROR([xsltproc (from libxslt) is required])
107 fi
108 AM_PATH_PYTHON([2.3])
109
110 EMPATHY_ARG_VALGRIND
111
112
113 # -----------------------------------------------------------
114 # Error flags
115 # -----------------------------------------------------------
116 AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
117 AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
118
119 AC_ARG_ENABLE(Werror,
120   AS_HELP_STRING([--disable-Werror],
121                  [compile without -Werror (normally enabled in development builds)]),
122     werror=$enableval, :)
123
124 AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
125 AS_COMPILER_FLAG(-Wno-missing-field-initializers,
126         wno_missing_field_initializers=yes,
127         wno_missing_field_initializers=no)
128 AS_COMPILER_FLAG(-Wno-unused-parameter,
129         wno_unused_parameter=yes,
130         wno_unused_parameter=no)
131
132 ifelse(empathy_released, 1, [],
133     [
134         if test x$werror = xyes; then
135             ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
136         fi
137         if test x$wextra = xyes -a \
138             x$wno_missing_field_initializers = xyes -a \
139             x$wno_unused_parameter = xyes; then
140             ERROR_CFLAGS="$ERROR_CFLAGS -Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
141         fi
142     ])
143
144 AS_COMPILER_FLAG(-Wdeclaration-after-statement, ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
145 AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
146 AS_COMPILER_FLAG(-Wmissing-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes")
147 AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations")
148 AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
149
150 AC_SUBST(ERROR_CFLAGS)
151
152 AC_ARG_ENABLE(gprof,
153             AS_HELP_STRING([--enable-gprof=@<:@no/yes@:>@],
154             [build with support for gprof]),,
155             [enable_gprof=no])
156 if test "x$enable_gprof" != "xno" ; then
157     CFLAGS="$CFLAGS -pg"
158     LDFLAGS="$LDFLAGS -pg"
159 fi
160
161 AC_SUBST(LDFLAGS)
162
163 # -----------------------------------------------------------
164 # Pkg-Config dependency checks
165 # -----------------------------------------------------------
166
167 AC_CHECK_LIBM
168 AC_SUBST(LIBM)
169
170 PKG_CHECK_MODULES(EMPATHY,
171 [
172    dbus-glib-1
173    folks >= $FOLKS_REQUIRED
174    folks-telepathy >= $FOLKS_REQUIRED
175    glib-2.0 >= $GLIB_REQUIRED
176    gio-2.0 >= $GLIB_REQUIRED
177    gio-unix-2.0 >= $GLIB_REQUIRED
178    gnome-keyring-1 >= $KEYRING_REQUIRED
179    gnutls >= $GNUTLS_REQUIRED
180    gmodule-export-2.0
181    gobject-2.0
182    gsettings-desktop-schemas
183    gstreamer-0.10 >= $GSTREAMER_REQUIRED
184    gstreamer-interfaces-0.10
185    libxml-2.0
186    telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
187    telepathy-logger-0.2 >= $TELEPATHY_LOGGER
188    x11
189    gtk+-3.0 >= $GTK_REQUIRED
190    libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED
191    libnotify >= $LIBNOTIFY_REQUIRED
192    gcr-3 >= $GCR_REQUIRED
193    libpulse
194    libpulse-mainloop-glib
195    webkitgtk-3.0 >= $WEBKIT_REQUIRED
196 ])
197
198 PKG_CHECK_MODULES(YELL, [telepathy-yell])
199
200 PKG_CHECK_MODULES(EMPATHY_AV,
201 [
202    farsight2-0.10
203    telepathy-farsight >= $TELEPATHY_FARSIGHT_REQUIRED
204 ])
205
206 # -----------------------------------------------------------
207 # Call interface
208 # -----------------------------------------------------------
209 AC_ARG_ENABLE(call,
210             AS_HELP_STRING([--enable-call=@<:@no/yes/auto@:>@],
211             [build with Call interface support]),,
212             [enable_call=auto])
213 if test "x$enable_call" != "xno" ; then
214    PKG_CHECK_MODULES(EMPATHY_CALL,
215    [
216       farsight2-0.10
217       telepathy-farstream
218       clutter-1.0
219       clutter-gtk-1.0
220       clutter-gst-1.0
221    ], have_call="yes", have_call="no" )
222
223    if test "x$have_call" = "xyes"; then
224       AC_DEFINE(HAVE_CALL, 1, [Define if you have Call channel support])
225    fi
226 else
227   have_call=no
228 fi
229
230 if test "x$enable_call" = "xyes" -a "x$have_call" != "xyes"; then
231    AC_MSG_ERROR([Could not find Call handler dependencies:
232
233 $EMPATHY_CALL_PKG_ERRORS])
234 fi
235 AM_CONDITIONAL(HAVE_CALL, test "x$have_call" = "xyes")
236
237
238 # -----------------------------------------------------------
239 # Call support in tp-logger
240 # -----------------------------------------------------------
241 AC_ARG_ENABLE(call-logs,
242             AS_HELP_STRING([--enable-call-logs=@<:@no/yes/auto@:>@],
243             [build with call logs support]),,
244             [enable_call_logs=auto])
245 if test "x$enable_call_logs" != "xno" ; then
246    SAVE_CFLAGS=$CFLAGS
247    SAVE_CPPFLAGS=$CPPFLAGS
248    SAVE_LDFLAGS=$LDFLAGS
249    CFLAGS="$CFLAGS $EMPATHY_CFLAGS"
250    CPPFLAGS="$CPPFLAGS $EMPATHY_CFLAGS"
251    LDFLAGS="$LDFLAGS $EMPATHY_LDFLAGS"
252
253    AC_CHECK_HEADER(telepathy-logger/call-event.h,
254       have_call_logs="yes", have_call_logs="no")
255
256    CFLAGS=$SAVE_CFLAGS
257    CPPFLAGS=$SAVE_CPPFLAGS
258    LDFLAGS=$SAVE_LDFLAGS
259
260    if test "x$have_call_logs" = "xyes"; then
261       AC_DEFINE(HAVE_CALL_LOGS, 1, [Define if you have call log support])
262    fi
263 else
264   have_call_logs=no
265 fi
266
267 if test "x$enable_call_logs" = "xyes" -a "x$have_call_logs" != "xyes"; then
268    AC_MSG_ERROR([Call logs support requested but telepathy-logger wasn't
269                  built with --enable-call])
270 fi
271
272 # -----------------------------------------------------------
273 # evolution-data-server (about-me)
274 # -----------------------------------------------------------
275 AC_ARG_WITH(eds,
276             AS_HELP_STRING([--with-eds],
277                            [build with evolution-data-server support]),,
278             [with_eds=yes])
279 if test x"$with_eds" = x"yes" ; then
280    PKG_CHECK_MODULES(EDS, [libebook-1.2])
281    AC_DEFINE(HAVE_EDS, 1, [Define if we have libebook])
282 fi
283
284 # -----------------------------------------------------------
285 # Enable debug
286 # -----------------------------------------------------------
287
288 AC_ARG_ENABLE(debug,
289   AS_HELP_STRING([--disable-debug],
290                  [compile without debug code]),
291     enable_debug=$enableval, enable_debug=yes )
292
293 if test x$enable_debug = xyes; then
294   AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
295 fi
296
297 # -----------------------------------------------------------
298 # Language Support
299 # -----------------------------------------------------------
300 IT_PROG_INTLTOOL([0.40.0])
301
302 AM_GNU_GETTEXT_VERSION([0.17])
303 AM_GNU_GETTEXT([external])
304
305 GETTEXT_PACKAGE=empathy
306 AC_SUBST(GETTEXT_PACKAGE)
307 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
308
309 # -----------------------------------------------------------
310 # Connectivity integration
311 # -----------------------------------------------------------
312 AC_ARG_WITH(connectivity,
313               AS_HELP_STRING([--with-connectivity=@<:@nm/connman/auto/no@:>@],
314                              [build with connectivity support]), ,
315                              with_connectivity=auto)
316
317 if test "x$with_connectivity" = "xno"; then
318    have_nm=no
319    have_connman=no
320
321 elif test "x$with_connectivity" = "xconnman"; then
322    have_nm=no
323
324    PKG_CHECK_MODULES(CONNMAN,
325    [
326       dbus-glib-1
327    ], have_connman="yes", have_connman="no")
328
329    if test "x$have_connman" = "xyes"; then
330       AC_DEFINE(HAVE_CONNMAN, 1, [Define if you have connman dependencies])
331    fi
332
333 else
334    have_connman=no
335
336    PKG_CHECK_MODULES(NETWORK_MANAGER,
337    [
338       libnm-glib >= $NETWORK_MANAGER_REQUIRED
339    ], have_nm="yes", have_nm="no")
340
341    if test "x$have_nm" = "xyes"; then
342       AC_DEFINE(HAVE_NM, 1, [Define if you have libnm-glib])
343    fi
344 fi
345
346 if test "x$with_connectivity" = "xconnman" -a "x$have_connman" != "xyes"; then
347    AC_MSG_ERROR([Couldn't find connman dependencies:
348
349 $CONNMAN_PKG_ERRORS])
350 fi
351
352 if test "x$with_connectivity" = "xnm" -a "x$have_nm" != "xyes"; then
353    AC_MSG_ERROR([Couldn't find Network Manager dependencies:
354
355 $NETWORK_MANAGER_PKG_ERRORS])
356 fi
357
358 AM_CONDITIONAL(HAVE_NM, test "x$have_nm" = "xyes")
359 AM_CONDITIONAL(HAVE_CONNMAN, test "x$have_connman" = "xyes")
360
361 # -----------------------------------------------------------
362 # gudev
363 # -----------------------------------------------------------
364 AC_ARG_ENABLE(gudev,
365               AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@],
366                              [build with gudev support]), ,
367                              enable_gudev=auto)
368
369 if test "x$enable_gudev" != "xno"; then
370
371    PKG_CHECK_MODULES(UDEV, [gudev-1.0],
372         have_gudev="yes", have_gudev="no")
373
374    if test "x$have_gudev" = "xyes"; then
375       AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev])
376    fi
377 else
378    have_gudev=no
379 fi
380
381 if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then
382    AC_MSG_ERROR([Could not find gudev dependencies:
383
384 $UDEV_PKG_ERRORS])
385 fi
386 AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes")
387
388 # -----------------------------------------------------------
389 # spellchecking checks: enchant and iso-codes
390 # -----------------------------------------------------------
391 AC_ARG_ENABLE(spell,
392               AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
393                              [Enable spell checking]), ,
394                              enable_spell=auto)
395
396 if test "x$enable_spell" != "xno"; then
397    PKG_CHECK_MODULES(ENCHANT,
398    [
399       enchant >= $ENCHANT_REQUIRED,
400       iso-codes >= $ISO_CODES_REQUIRED
401    ], have_enchant="yes", have_enchant="no")
402
403    if test "x$have_enchant" = "xyes"; then
404       AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
405       if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
406          $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
407             AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
408             AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
409             result=yes
410       else
411             result=no
412             have_enchant="no"
413       fi
414       AC_MSG_RESULT([$result])
415    fi
416 else
417    have_enchant=no
418 fi
419
420 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
421    AC_MSG_ERROR([Could not find spell-checking dependencies:
422
423 $ENCHANT_PKG_ERRORS])
424 fi
425
426 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
427
428 # -----------------------------------------------------------
429 # Map view checks: libchamplain
430 # -----------------------------------------------------------
431 AC_ARG_ENABLE(map,
432               AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
433                              [Enable map view]), ,
434                              enable_map=auto)
435
436 if test "x$enable_map" != "xno"; then
437
438    PKG_CHECK_MODULES(LIBCHAMPLAIN,
439     [
440        clutter-gtk-1.0
441        champlain-gtk-0.12
442        champlain-0.12
443     ], have_libchamplain="yes", have_libchamplain="no")
444
445    if test "x$have_libchamplain" = "xyes"; then
446       AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
447    fi
448 else
449    have_libchamplain=no
450 fi
451
452 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
453    AC_MSG_ERROR([Could not find map view dependencies:
454
455 $LIBCHAMPLAIN_PKG_ERRORS])
456 fi
457
458 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
459
460 # -----------------------------------------------------------
461 # location checks: geoclue
462 # -----------------------------------------------------------
463 AC_ARG_ENABLE(location,
464               AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
465                              [Enable location awareness]), ,
466                              enable_location=auto)
467
468 if test "x$enable_location" != "xno"; then
469    PKG_CHECK_MODULES(GEOCLUE,
470    [
471       geoclue >= $GEOCLUE_REQUIRED
472    ], have_geoclue="yes", have_geoclue="no")
473
474    if test "x$have_geoclue" = "xyes"; then
475       AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue])
476    fi
477 else
478    have_geoclue="no"
479 fi
480
481 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
482    AC_MSG_ERROR([Could not find location dependencies:
483
484 $GEOCLUE_PKG_ERRORS])
485 fi
486
487 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
488 AC_SUBST(GEOCLUE_CFLAGS)
489 AC_SUBST(GEOCLUE_LIBS)
490
491 # -----------------------------------------------------------
492 # location checks: geocode-glib
493 # -----------------------------------------------------------
494 AC_ARG_ENABLE(geocode,
495               AS_HELP_STRING([--enable-geocode=@<:@no/yes/auto@:>@],
496                              [Enable geocode support]), ,
497                              enable_geocode=auto)
498
499 if test "x$enable_geocode" != "xno"; then
500    PKG_CHECK_MODULES(GEOCODE,
501    [
502       geocode-glib
503    ], have_geocode="yes", have_geocode="no")
504
505    if test "x$have_geocode" = "xyes"; then
506       AC_DEFINE(HAVE_GEOCODE, 1, [Define if you have geocode])
507    fi
508 else
509    have_geocode="no"
510 fi
511
512 if test "x$enable_geocode" = "xyes" -a "x$have_geocode" != "xyes"; then
513    AC_MSG_ERROR([Could not find geocode dependencies:
514
515 $GEOCODE_PKG_ERRORS])
516 fi
517
518 AM_CONDITIONAL(HAVE_GEOCODE, test "x$have_geocode" = "xyes")
519 AC_SUBST(GEOCODE_CFLAGS)
520 AC_SUBST(GEOCODE_LIBS)
521
522 # -----------------------------------------------------------
523 # meego widgets support
524 # -----------------------------------------------------------
525 AC_ARG_ENABLE(meego,
526               AS_HELP_STRING([--enable-meego=@<:@no/yes@:>@],
527                              [Enable meego widgets]), ,
528                              enable_meego=no)
529
530 if test "x$enable_meego" != "xno"; then
531     PKG_CHECK_MODULES(MEEGO,
532     [
533        mx-gtk-1.0
534        gio-unix-2.0
535     ], have_meego="yes", have_meego="no")
536
537     if test "x$have_meego" = "xyes"; then
538        AC_DEFINE(HAVE_MEEGO, 1, [Define if you have meego])
539     fi
540 else
541    have_meego="no"
542 fi
543
544 if test "x$enable_meego" = "xyes" -a "x$have_meego" != "xyes"; then
545    AC_MSG_ERROR([Could not find meego dependencies:
546
547 $MEEGO_PKG_ERRORS])
548 fi
549
550 AM_CONDITIONAL(HAVE_MEEGO, test "x$have_meego" = "xyes")
551 AC_SUBST(MEEGO_CFLAGS)
552 AC_SUBST(MEEGO_LIBS)
553
554 # -----------------------------------------------------------
555 # nautilus-sendto
556 # -----------------------------------------------------------
557 AC_ARG_ENABLE(nautilus-sendto,
558               AS_HELP_STRING([--enable-nautilus-sendto=@<:@no/yes/auto@:>@],
559                              [build nautilus-sendto plugin]), ,
560                              enable_nautilus_sendto=auto)
561
562 if test "x$enable_nautilus_sendto" != "xno"; then
563    PKG_CHECK_MODULES(NST,
564     [
565        nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
566     ], have_nst="yes", have_nst="no")
567 else
568    have_nst=no
569 fi
570
571 if test "x$enable_nautilus_sendto" = "xyes" -a "x$have_nst" != "xyes"; then
572    AC_MSG_ERROR([Could not find nautilus-sendto dependencies:
573
574 $NST_PKG_ERRORS])
575 fi
576
577 AM_CONDITIONAL(HAVE_NST, test "x$have_nst" = "xyes")
578
579 # -----------------------------------------------------------
580 # goa-mc-plugin
581 # -----------------------------------------------------------
582 AC_ARG_ENABLE(goa,
583               AS_HELP_STRING([--enable-goa=@<:@no/yes/auto@:>@],
584                              [build GOA MC plugin]), ,
585                              enable_goa=auto)
586
587 if test "x$enable_goa" != "xno"; then
588    PKG_CHECK_MODULES(GOA,
589     [
590        mission-control-plugins
591        goa-1.0
592     ], have_goa="yes", have_goa="no")
593
594    AC_MSG_CHECKING([Mission Control plugins dir])
595    MISSION_CONTROL_PLUGINS_DIR=`pkg-config --variable=plugindir mission-control-plugins`
596
597    AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
598 else
599    have_goa=no
600 fi
601
602 if test "x$enable_goa" = "xyes" -a "x$have_goa" != "xyes"; then
603    AC_MSG_ERROR([Could not find GOA dependencies.])
604 fi
605
606 AM_CONDITIONAL(HAVE_GOA, test "x$have_goa" = "xyes")
607
608 # Optional dependency for avatar selection
609 AC_ARG_WITH([cheese],
610             AS_HELP_STRING([--with-cheese],
611                            [enable cheese webcam support]),,
612             with_cheese=auto)
613
614 if test x"$with_cheese" != x"no" ; then
615    PKG_CHECK_MODULES(CHEESE, gstreamer-0.10 cheese-gtk >= 2.91.91.1, [have_cheese=yes], [have_cheese=no])
616    if test x${have_cheese} = xyes; then
617      AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
618    fi
619    if test x${with_cheese} = xyes && test x${have_cheese} = xno; then
620      AC_MSG_ERROR([Cheese configured but not found:
621
622 $CHEESE_PKG_ERRORS])
623    fi
624 else
625    have_cheese=no
626 fi
627 AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
628
629
630 # -----------------------------------------------------------
631 # Coding style checks
632 # -----------------------------------------------------------
633 AC_ARG_ENABLE(coding-style-checks,
634   AS_HELP_STRING([--disable-coding-style-checks],
635                  [do not check coding style using grep]),
636     [ENABLE_CODING_STYLE_CHECKS=$enableval],
637     [ENABLE_CODING_STYLE_CHECKS=yes])
638
639 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
640 # -----------------------------------------------------------
641
642 AC_CONFIG_FILES([
643    Makefile
644    data/Makefile
645    data/empathy.desktop.in
646    data/empathy-accounts.desktop.in
647    data/icons/Makefile
648    extensions/Makefile
649    po/Makefile.in
650    libempathy/Makefile
651    libempathy-gtk/Makefile
652    src/Makefile
653    nautilus-sendto-plugin/Makefile
654    goa-mc-plugin/Makefile
655    help/Makefile
656    tests/Makefile
657    tests/interactive/Makefile
658    tests/xml/Makefile
659    tools/Makefile
660 ])
661 AC_OUTPUT
662
663 echo "
664 Configure summary:
665
666         Compiler....................:  ${CC}
667         Compiler Flags..............:  ${CFLAGS} ${ERROR_CFLAGS}
668         Linker Flags................:  ${LDFLAGS}
669         Prefix......................:  ${prefix}
670         Coding style checks.........:  ${ENABLE_CODING_STYLE_CHECKS}
671
672     Features:
673         Spell checking (enchant)....:  ${have_enchant}
674         Display maps (libchamplain).:  ${have_libchamplain}
675         Location awareness (Geoclue):  ${have_geoclue}
676         Geocode support (Geocode)...:  ${have_geocode}
677         Meego widgets...............:  ${have_meego}
678         Cheese webcam support ......:  ${have_cheese}
679         Camera monitoring...........:  ${have_gudev}
680
681     Connectivity:
682         NetworkManager integration..:  ${have_nm}
683         ConnMan integration.........:  ${have_connman}
684
685     Extras:
686         Nautilus-sendto plugin......:  ${have_nst}
687         GOA MC plugin...............:  ${have_goa}
688         Salut E-D-S support.........:  ${with_eds}
689         Exp. Call channel handler...:  ${have_call}
690         Exp. Call log support.......:  ${have_call_logs}
691 "