Updated Friulian translation
[empathy-mirror.git] / configure.ac
blob992a17b287e51b0cfbfc2fb553f9afdbf03b33a9
1 dnl If not 1, append datestamp to the version number
2 m4_define(empathy_released, 0)
4 m4_define([empathy_major_version], [3])
5 m4_define([empathy_minor_version], [12])
6 m4_define([empathy_micro_version], [11])
7 m4_define([empathy_nano_version], [0])
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])])
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]))
19 m4_define(empathy_version, empathy_full_version[]empathy_maybe_datestamp)
22 AC_INIT([Empathy],
23         [empathy_version],
24         [http://bugzilla.gnome.org/browse.cgi?product=empathy],
25         [empathy],
26         [https://live.gnome.org/Empathy])
28 AC_PREREQ([2.64])
29 AC_COPYRIGHT([
30   Copyright (C) 2003-2007 Imendio AB
31   Copyright (C) 2007-2010 Collabora Ltd.
34 # Minimal version required
36 # Hardp deps
37 FOLKS_REQUIRED=0.9.5
38 GNUTLS_REQUIRED=2.8.5
40 GLIB_REQUIRED=2.37.6
41 AC_DEFINE(GLIB_VERSION_MIN_REQUIRED, GLIB_VERSION_2_30, [Ignore post 2.30 deprecations])
42 AC_DEFINE(GLIB_VERSION_MAX_ALLOWED, GLIB_VERSION_2_38, [Prevent post 2.38 APIs])
44 GTK_REQUIRED=3.9.4
45 AC_DEFINE(GDK_VERSION_MIN_REQUIRED, GDK_VERSION_3_8, [Ignore post 3.8 deprecations])
46 AC_DEFINE(GDK_VERSION_MAX_ALLOWED, GDK_VERSION_3_10, [Prevent post 3.10 APIs])
48 CLUTTER_REQUIRED=1.10.0
49 AC_DEFINE(CLUTTER_VERSION_MIN_REQUIRED, CLUTTER_VERSION_1_8, [Ignore post 1.8 deprecations])
50 AC_DEFINE(CLUTTER_VERSION_MAX_ALLOWED, CLUTTER_VERSION_1_10, [Prevent post 1.10 APIs])
52 CLUTTER_GTK_REQUIRED=1.1.2
54 TELEPATHY_GLIB_REQUIRED=0.23.2
55 AC_DEFINE(TP_VERSION_MIN_REQUIRED, TP_VERSION_0_20, [Ignore post 0.20 deprecations])
56 AC_DEFINE(TP_VERSION_MAX_ALLOWED, TP_VERSION_0_24, [Prevent post 0.24 APIs])
57 AC_DEFINE(TP_SEAL_ENABLE, 1, [Prevent to use sealed variables])
58 AC_DEFINE(TP_DISABLE_SINGLE_INCLUDE, 1, [Disable single include header])
60 COGL_REQUIRED=1.14
61 AC_DEFINE(COGL_VERSION_MIN_REQUIRED, COGL_VERSION_1_14, [Ignore post 1.14 deprecations])
62 AC_DEFINE(COGL_VERSION_MAX_ALLOWED, COGL_VERSION_1_14, [Ignore post 1.14 deprecations])
64 GSTREAMER_REQUIRED=0.10.32
65 TP_FS_REQUIRED=0.6.0
66 LIBSECRET_REQUIRED=0.5
67 GCR_REQUIRED=2.91.4
68 LIBCANBERRA_GTK_REQUIRED=0.25
69 LIBNOTIFY_REQUIRED=0.7.0
70 TELEPATHY_LOGGER=0.8.0
71 WEBKIT_REQUIRED=1.9.1
72 GOA_REQUIRED=3.5.1
74 # Optional deps
75 ENCHANT_REQUIRED=1.2.0
76 GEOCLUE_REQUIRED=2.1.0
77 GEOCODE_GLIB_REQUIRED=0.99.1
78 ISO_CODES_REQUIRED=0.35
79 NAUTILUS_SENDTO_REQUIRED=2.90.0
80 NETWORK_MANAGER_REQUIRED=0.7.0
81 CHAMPLAIN_REQUIRED=0.12.1
82 CHEESE_GTK_REQUIRED=3.4.0
83 LIBACCOUNTS_REQUIRED=1.4
84 LIBSIGNON_REQUIRED=1.8
85 MC_PLUGINS_REQUIRED=5.13.1
87 # Use --enable-maintainer-mode to disable deprecated symbols,
88 # disable single include and enable GSEAL. If this is not a released empathy,
89 # maintainer mode is forced
90 # FIXME: don't disable deprecated symbols until bgo #636654 has been fixed
91 #ifelse(empathy_released, 1, [], [enable_maintainer_mode="yes"])
92 #GNOME_MAINTAINER_MODE_DEFINES
94 PKG_PROG_PKG_CONFIG([0.25])
96 # tp-account-widgets
97 prev_top_build_prefix=$ac_top_build_prefix
98 prev_ac_configure_args=$ac_configure_args
99 ac_configure_args="$ac_configure_args --with-pkgdatadir=${datadir}/empathy"
100 ac_configure_args="$ac_configure_args --with-gettext-package=empathy-tpaw"
101 ifelse(empathy_released, 1, [],
102     [
103         ac_configure_args="$ac_configure_args --enable-unreleased-checks"
104     ])
105 AX_CONFIG_DIR([telepathy-account-widgets])
106 ac_top_build_prefix=$prev_top_build_prefix
107 ac_configure_args=$prev_ac_configure_args
109 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"$ac_top_build_prefix"telepathy-account-widgets/
110 PKG_CHECK_MODULES(TPAW, telepathy-account-widgets)
112 EMPATHY_UOA_PROVIDER=`$PKG_CONFIG --variable=uoa_provider telepathy-account-widgets`
113 AC_DEFINE_UNQUOTED(EMPATHY_UOA_PROVIDER, "$EMPATHY_UOA_PROVIDER",
114    [Name of provider for accounts imported from libaccounts])
116 AC_CONFIG_MACRO_DIR([m4])
117 AC_CONFIG_HEADERS([config.h])
118 AC_CONFIG_SRCDIR([configure.ac])
119 AC_CONFIG_AUX_DIR(.)
121 AM_INIT_AUTOMAKE([1.11 no-define -Wno-portability tar-ustar no-dist-gzip dist-xz])
123 # Support silent build rules. Disable
124 # by either passing --disable-silent-rules to configure or passing V=1
125 # to make
126 AM_SILENT_RULES([yes])
128 # Check for programs
129 AC_PROG_CC
130 AC_HEADER_STDC
131 AC_PROG_MKDIR_P
132 AM_PATH_GLIB_2_0
133 AC_PATH_XTRA
135 # Initialize libtool
136 LT_PREREQ([2.2])
137 LT_INIT
139 AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
140 GLIB_GSETTINGS
142 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG gio-2.0 --variable=glib_compile_resources`
143 AC_SUBST(GLIB_COMPILE_RESOURCES)
144 GLIB_GENMARSHAL=`$PKG_CONFIG glib-2.0 --variable=glib_genmarshal`
145 AC_SUBST(GLIB_GENMARSHAL)
147 AC_CHECK_PROGS([XSLTPROC], [xsltproc])
148 if test -z "$XSLTPROC"; then
149   AC_MSG_ERROR([xsltproc (from libxslt) is required])
151 AM_PATH_PYTHON([2.3])
153 EMPATHY_ARG_VALGRIND
156 # -----------------------------------------------------------
157 # Error flags
158 # -----------------------------------------------------------
159 AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
160 AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
162 AC_ARG_ENABLE(Werror,
163   AS_HELP_STRING([--disable-Werror],
164                  [compile without -Werror (normally enabled in development builds)]),
165     werror=$enableval, :)
167 AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
168 AS_COMPILER_FLAG(-Wno-missing-field-initializers,
169         wno_missing_field_initializers=yes,
170         wno_missing_field_initializers=no)
171 AS_COMPILER_FLAG(-Wno-unused-parameter,
172         wno_unused_parameter=yes,
173         wno_unused_parameter=no)
175 ifelse(empathy_released, 1, [],
176     [
177         if test x$werror = xyes; then
178             ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
179         fi
180         if test x$wextra = xyes -a \
181             x$wno_missing_field_initializers = xyes -a \
182             x$wno_unused_parameter = xyes; then
183             ERROR_CFLAGS="$ERROR_CFLAGS -Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
184         fi
185     ])
187 AS_COMPILER_FLAG(-Wdeclaration-after-statement, ERROR_CFLAGS="$ERROR_CFLAGS -Wdeclaration-after-statement")
188 AS_COMPILER_FLAG(-Wshadow, ERROR_CFLAGS="$ERROR_CFLAGS -Wshadow")
189 AS_COMPILER_FLAG(-Wmissing-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-prototypes")
190 AS_COMPILER_FLAG(-Wmissing-declarations, ERROR_CFLAGS="$ERROR_CFLAGS -Wmissing-declarations")
191 AS_COMPILER_FLAG(-Wstrict-prototypes, ERROR_CFLAGS="$ERROR_CFLAGS -Wstrict-prototypes")
193 AC_SUBST(ERROR_CFLAGS)
195 AC_ARG_ENABLE(gprof,
196             AS_HELP_STRING([--enable-gprof=@<:@no/yes@:>@],
197             [build with support for gprof]),,
198             [enable_gprof=no])
199 if test "x$enable_gprof" != "xno" ; then
200     CFLAGS="$CFLAGS -pg"
201     LDFLAGS="$LDFLAGS -pg"
204 AC_SUBST(LDFLAGS)
206 # -----------------------------------------------------------
207 # Pkg-Config dependency checks
208 # -----------------------------------------------------------
210 AC_CHECK_LIBM
211 AC_SUBST(LIBM)
213 PKG_CHECK_MODULES(EMPATHY,
215    dbus-glib-1
216    folks >= $FOLKS_REQUIRED
217    folks-telepathy >= $FOLKS_REQUIRED
218    glib-2.0 >= $GLIB_REQUIRED
219    gio-2.0 >= $GLIB_REQUIRED
220    gio-unix-2.0 >= $GLIB_REQUIRED
221    libsecret-1 >= $LIBSECRET_REQUIRED
222    gnutls >= $GNUTLS_REQUIRED
223    gmodule-export-2.0
224    gobject-2.0
225    gsettings-desktop-schemas
226    libxml-2.0
227    telepathy-glib >= $TELEPATHY_GLIB_REQUIRED
228    telepathy-logger-0.2 >= $TELEPATHY_LOGGER
229    x11
230    gtk+-3.0 >= $GTK_REQUIRED
231    libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED
232    libnotify >= $LIBNOTIFY_REQUIRED
233    gcr-3 >= $GCR_REQUIRED
234    libpulse
235    libpulse-mainloop-glib
236    webkitgtk-3.0 >= $WEBKIT_REQUIRED
237    libsoup-2.4
238    gee-0.8
241 # -----------------------------------------------------------
242 # GStreamer
243 # -----------------------------------------------------------
244 PKG_CHECK_MODULES(EMPATHY_CALL,
246    farstream-0.2
247    telepathy-farstream >= $TP_FS_REQUIRED
248    clutter-1.0 >= $CLUTTER_REQUIRED
249    clutter-gtk-1.0 >= $CLUTTER_GTK_REQUIRED
250    clutter-gst-2.0
251    gstreamer-1.0
252    gstreamer-audio-1.0
253    gstreamer-video-1.0
254    cogl-1.0 >= $COGL_REQUIRED
257 AC_DEFINE(EMPATHY_GOA_PROVIDER, "org.gnome.OnlineAccounts",
258    [Name of provider for accounts imported from GOA])
260 # -----------------------------------------------------------
261 # Enable debug
262 # -----------------------------------------------------------
264 AC_ARG_ENABLE(debug,
265   AS_HELP_STRING([--disable-debug],
266                  [compile without debug code]),
267     enable_debug=$enableval, enable_debug=yes )
269 if test x$enable_debug = xyes; then
270   AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])
273 # -----------------------------------------------------------
274 # Language Support
275 # -----------------------------------------------------------
276 IT_PROG_INTLTOOL([0.50.0])
278 GETTEXT_PACKAGE=empathy
279 AC_SUBST(GETTEXT_PACKAGE)
280 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Gettext package name])
282 # -----------------------------------------------------------
283 # gudev
284 # -----------------------------------------------------------
285 AC_ARG_ENABLE(gudev,
286               AS_HELP_STRING([--enable-gudev=@<:@no/yes/auto@:>@],
287                              [build with gudev support]), ,
288                              enable_gudev=auto)
290 if test "x$enable_gudev" != "xno"; then
292    PKG_CHECK_MODULES(UDEV, [gudev-1.0],
293         have_gudev="yes", have_gudev="no")
295    if test "x$have_gudev" = "xyes"; then
296       AC_DEFINE(HAVE_UDEV, 1, [Define if you have gudev])
297    fi
298 else
299    have_gudev=no
302 if test "x$enable_gudev" = "xyes" -a "x$have_gudev" != "xyes"; then
303    AC_MSG_ERROR([Could not find gudev dependencies:
305 $UDEV_PKG_ERRORS])
307 AM_CONDITIONAL(HAVE_UDEV, test "x$have_gudev" = "xyes")
309 # -----------------------------------------------------------
310 # spellchecking checks: enchant and iso-codes
311 # -----------------------------------------------------------
312 AC_ARG_ENABLE(spell,
313               AS_HELP_STRING([--enable-spell=@<:@no/yes/auto@:>@],
314                              [Enable spell checking]), ,
315                              enable_spell=auto)
317 if test "x$enable_spell" != "xno"; then
318    PKG_CHECK_MODULES(ENCHANT,
319    [
320       enchant >= $ENCHANT_REQUIRED,
321       iso-codes >= $ISO_CODES_REQUIRED
322    ], have_enchant="yes", have_enchant="no")
324    if test "x$have_enchant" = "xyes"; then
325       AC_MSG_CHECKING([whether iso-codes has iso-639 and iso-3166 domains])
326       if $PKG_CONFIG --variable=domains iso-codes | grep 639 > /dev/null && \
327          $PKG_CONFIG --variable=domains iso-codes | grep 3166 > /dev/null ; then
328             AC_DEFINE_UNQUOTED(ISO_CODES_PREFIX, ["`$PKG_CONFIG --variable=prefix iso-codes`"], [ISO codes prefix])
329             AC_DEFINE(HAVE_ENCHANT, [], [Define if you have libenchant])
330             result=yes
331       else
332             result=no
333             have_enchant="no"
334       fi
335       AC_MSG_RESULT([$result])
336    fi
337 else
338    have_enchant=no
341 if test "x$enable_spell" = "xyes" -a "x$have_enchant" != "xyes"; then
342    AC_MSG_ERROR([Could not find spell-checking dependencies:
344 $ENCHANT_PKG_ERRORS])
347 AM_CONDITIONAL(HAVE_ENCHANT, test "x$have_enchant" = "xyes")
349 # -----------------------------------------------------------
350 # Map view checks: libchamplain
351 # -----------------------------------------------------------
352 AC_ARG_ENABLE(map,
353               AS_HELP_STRING([--enable-map=@<:@no/yes/auto@:>@],
354                              [Enable map view]), ,
355                              enable_map=auto)
357 if test "x$enable_map" != "xno"; then
359    PKG_CHECK_MODULES(LIBCHAMPLAIN,
360     [
361        clutter-gtk-1.0
362        champlain-gtk-0.12
363        champlain-0.12 >= $CHAMPLAIN_REQUIRED
364     ], have_libchamplain="yes", have_libchamplain="no")
366    if test "x$have_libchamplain" = "xyes"; then
367       AC_DEFINE(HAVE_LIBCHAMPLAIN, 1, [Define if you have libchamplain])
368    fi
369 else
370    have_libchamplain=no
373 if test "x$enable_map" = "xyes" -a "x$have_libchamplain" != "xyes"; then
374    AC_MSG_ERROR([Could not find map view dependencies:
376 $LIBCHAMPLAIN_PKG_ERRORS])
379 AM_CONDITIONAL(HAVE_LIBCHAMPLAIN, test "x$have_libchamplain" = "xyes")
381 # -----------------------------------------------------------
382 # location checks: geoclue
383 # -----------------------------------------------------------
384 AC_ARG_ENABLE(location,
385               AS_HELP_STRING([--enable-location=@<:@no/yes/auto@:>@],
386                              [Enable location awareness]), ,
387                              enable_location=auto)
389 if test "x$enable_location" != "xno"; then
390    PKG_CHECK_MODULES(GEOCLUE,
391    [
392       geoclue-2.0 >= $GEOCLUE_REQUIRED
393    ], have_geoclue="yes", have_geoclue="no")
395    if test "x$have_geoclue" = "xyes"; then
396       GEOCLUE_XML_FILE=`$PKG_CONFIG --variable=dbus_interface geoclue-2.0`
397       if test "x$GEOCLUE_XML_FILE" = "x"; then
398         echo "Can't find dbus_interface variable in geoclue-2.0.pc"
399         have_geoclue="no"
400       else
401         AC_DEFINE(HAVE_GEOCLUE, 1, [Define if you have geoclue-2])
402         AC_SUBST(GEOCLUE_XML_FILE)
403       fi
404    fi
405 else
406    have_geoclue="no"
409 if test "x$enable_location" = "xyes" -a "x$have_geoclue" != "xyes"; then
410    AC_MSG_ERROR([Could not find location dependencies:
412 $GEOCLUE_PKG_ERRORS])
415 AM_CONDITIONAL(HAVE_GEOCLUE, test "x$have_geoclue" = "xyes")
416 AC_SUBST(GEOCLUE_CFLAGS)
417 AC_SUBST(GEOCLUE_LIBS)
419 # -----------------------------------------------------------
420 # location checks: geocode-glib
421 # -----------------------------------------------------------
422 AC_ARG_ENABLE(geocode,
423               AS_HELP_STRING([--enable-geocode=@<:@no/yes/auto@:>@],
424                              [Enable geocode support]), ,
425                              enable_geocode=auto)
427 if test "x$enable_geocode" != "xno"; then
428    PKG_CHECK_MODULES(GEOCODE,
429    [
430       geocode-glib-1.0 >= $GEOCODE_GLIB_REQUIRED
431    ], have_geocode="yes", have_geocode="no")
433    if test "x$have_geocode" = "xyes"; then
434       AC_DEFINE(HAVE_GEOCODE, 1, [Define if you have geocode])
435    fi
436 else
437    have_geocode="no"
440 if test "x$enable_geocode" = "xyes" -a "x$have_geocode" != "xyes"; then
441    AC_MSG_ERROR([Could not find geocode dependencies:
443 $GEOCODE_PKG_ERRORS])
446 AM_CONDITIONAL(HAVE_GEOCODE, test "x$have_geocode" = "xyes")
447 AC_SUBST(GEOCODE_CFLAGS)
448 AC_SUBST(GEOCODE_LIBS)
450 # -----------------------------------------------------------
451 # goa-mc-plugin
452 # -----------------------------------------------------------
453 AC_ARG_ENABLE(goa,
454               AS_HELP_STRING([--enable-goa=@<:@no/yes/auto@:>@],
455                              [build GOA MC plugin]), ,
456                              enable_goa=auto)
458 if test "x$enable_goa" != "xno"; then
459    PKG_CHECK_MODULES(GOA,
460     [
461        mission-control-plugins
462        goa-1.0 >= $GOA_REQUIRED
463     ], have_goa="yes", have_goa="no")
464 else
465    have_goa=no
468 if test "x$enable_goa" = "xyes" -a "x$have_goa" != "xyes"; then
469    AC_MSG_ERROR([Could not find GOA dependencies:
471 $GOA_PKG_ERRORS])
474 if test "x$have_goa" = "xyes"; then
475    AC_DEFINE(HAVE_GOA, 1, [Define to 1 to enable GNOME Online Accounts])
478 AM_CONDITIONAL(HAVE_GOA, test "x$have_goa" = "xyes")
480 # Optional dependency for avatar selection
481 AC_ARG_WITH([cheese],
482             AS_HELP_STRING([--with-cheese],
483                            [enable cheese webcam support]),,
484             with_cheese=auto)
486 if test x"$with_cheese" != x"no" ; then
487    PKG_CHECK_MODULES(CHEESE, cheese-gtk >= CHEESE_GTK_REQUIRED, [have_cheese=yes], [have_cheese=no])
488    if test x${have_cheese} = xyes; then
489      AC_DEFINE(HAVE_CHEESE, 1, [Define to 1 to enable cheese webcam support])
490    fi
491    if test x${with_cheese} = xyes && test x${have_cheese} = xno; then
492      AC_MSG_ERROR([Cheese configured but not found:
494 $CHEESE_PKG_ERRORS])
495    fi
496 else
497    have_cheese=no
499 AM_CONDITIONAL(BUILD_CHEESE, test x${have_cheese} = xyes)
501 # -----------------------------------------------------------
502 # ubuntu-online-accounts support
503 # -----------------------------------------------------------
504 AC_ARG_ENABLE(ubuntu-online-accounts,
505               AS_HELP_STRING([--enable-ubuntu-online-accounts=@<:@no/yes/auto@:>@],
506                              [build Ubuntu Online Accounts plugins]), ,
507                              enable_ubuntu_online_accounts=auto)
509 if test "x$enable_ubuntu_online_accounts" != "xno"; then
510    PKG_CHECK_MODULES(UOA,
511     [
512        account-plugin
513        mission-control-plugins >= $MC_PLUGINS_REQUIRED
514        libaccounts-glib >= $LIBACCOUNTS_REQUIRED
515        libsignon-glib >= $LIBSIGNON_REQUIRED
516     ], have_uoa="yes", have_uoa="no")
518    # provider plugin dir
519    AC_MSG_CHECKING([Accounts provider plugin dir])
520    ACCOUNTS_PROVIDER_PLUGIN_DIR=`$PKG_CONFIG --variable=provider_plugindir account-plugin`
522    AC_MSG_RESULT([$ACCOUNTS_PROVIDER_PLUGIN_DIR])
523    AC_SUBST(ACCOUNTS_PROVIDER_PLUGIN_DIR)
525    # app plugin dir
526    AC_MSG_CHECKING([Accounts provider app plugin dir])
527    ACCOUNTS_APP_PLUGIN_DIR=`$PKG_CONFIG --variable=application_plugindir account-plugin`
529    AC_MSG_RESULT([$ACCOUNTS_APP_PLUGIN_DIR])
530    AC_SUBST(ACCOUNTS_APP_PLUGIN_DIR)
532    # provider files dir
533    AC_MSG_CHECKING([Accounts provider files dir])
534    ACCOUNTS_PROVIDER_FILES_DIR=`$PKG_CONFIG --variable=providerfilesdir libaccounts-glib`
536    AC_MSG_RESULT([$ACCOUNTS_PROVIDER_FILES_DIR])
537    AC_SUBST(ACCOUNTS_PROVIDER_FILES_DIR)
539    # service files dir
540    AC_MSG_CHECKING([Accounts service files dir])
541    ACCOUNTS_SERVICE_FILES_DIR=`$PKG_CONFIG --variable=servicefilesdir libaccounts-glib`
543    AC_MSG_RESULT([$ACCOUNTS_SERVICE_FILES_DIR])
544    AC_SUBST(ACCOUNTS_SERVICE_FILES_DIR)
546    # application files dir
547    AC_MSG_CHECKING([Accounts applications files dir])
548    ACCOUNTS_APPLICATION_FILES_DIR=`$PKG_CONFIG --variable=applicationfilesdir libaccounts-glib`
550    AC_MSG_RESULT([$ACCOUNTS_APPLICATION_FILES_DIR])
551    AC_SUBST(ACCOUNTS_APPLICATION_FILES_DIR)
553 else
554    have_uoa=no
557 if test "x$enable_ubuntu_online_accounts" = "xyes" -a "x$have_uoa" != "xyes"; then
558    AC_MSG_ERROR([Could not find Ubuntu Online Accounts dependencies:
560 $UOA_PKG_ERRORS])
563 if test "x$have_uoa" = "xyes"; then
564    AC_DEFINE(HAVE_UOA, 1, [Define to 1 to build Ubuntu Online Accounts plugins])
567 AM_CONDITIONAL(HAVE_UOA, test "x$have_uoa" = "xyes")
569 if test "x$have_uoa" = "xyes" -o "x$have_goa" = "xyes"; then
570    AC_MSG_CHECKING([Mission Control plugins dir])
571    MISSION_CONTROL_PLUGINS_DIR=`$PKG_CONFIG --define-variable=libdir='${libdir}' --variable=plugindir mission-control-plugins`
573    AC_MSG_RESULT([$MISSION_CONTROL_PLUGINS_DIR])
574    AC_SUBST(MISSION_CONTROL_PLUGINS_DIR)
578 # Help documentation
579 YELP_HELP_INIT
581 # -----------------------------------------------------------
582 # Coding style checks
583 # -----------------------------------------------------------
584 AC_ARG_ENABLE(coding-style-checks,
585   AS_HELP_STRING([--disable-coding-style-checks],
586                  [do not check coding style using grep]),
587     [ENABLE_CODING_STYLE_CHECKS=$enableval],
588     [ENABLE_CODING_STYLE_CHECKS=yes])
590 AC_SUBST([ENABLE_CODING_STYLE_CHECKS])
591 # -----------------------------------------------------------
593 AC_CONFIG_FILES([
594    Makefile
595    data/Makefile
596    data/empathy.desktop.in
597    data/icons/Makefile
598    data/themes/Makefile
599    extensions/Makefile
600    po/Makefile.in
601    libempathy/Makefile
602    libempathy-gtk/Makefile
603    src/Makefile
604    goa-mc-plugin/Makefile
605    ubuntu-online-accounts/Makefile
606    ubuntu-online-accounts/mc-plugin/Makefile
607    ubuntu-online-accounts/cc-plugins/Makefile
608    ubuntu-online-accounts/cc-plugins/account-plugins/Makefile
609    ubuntu-online-accounts/cc-plugins/providers/Makefile
610    ubuntu-online-accounts/cc-plugins/services/Makefile
611    ubuntu-online-accounts/cc-plugins/app-plugin/Makefile
612    help/Makefile
613    tests/Makefile
614    tests/interactive/Makefile
615    tests/xml/Makefile
616    tests/certificates/Makefile
617    tools/Makefile
619 AC_OUTPUT
621 echo "
622 Configure summary:
624         Compiler....................:  ${CC}
625         Compiler Flags..............:  ${CFLAGS} ${ERROR_CFLAGS}
626         Linker Flags................:  ${LDFLAGS}
627         Prefix......................:  ${prefix}
628         Coding style checks.........:  ${ENABLE_CODING_STYLE_CHECKS}
630     Features:
631         Spell checking (enchant)....:  ${have_enchant}
632         Display maps (libchamplain).:  ${have_libchamplain}
633         Location awareness (Geoclue):  ${have_geoclue}
634         Geocode support (Geocode)...:  ${have_geocode}
635         Cheese webcam support ......:  ${have_cheese}
636         Camera monitoring...........:  ${have_gudev}
638     Extras:
639         GOA MC plugin...............:  ${have_goa}
640         Ubuntu Online plugins.......:  ${have_uoa}