root/trunk/configure.ac

Revision 3661 (checked in by robtaylor, 4 months ago)
  • configure.ac: Add --with-platform option 'none'.
  • bindings/python/Makefile.am: Fix up python bindings to work when built with no platform.
  • bindings/dotnet/Makefile.am: Don't build platform subdir if platform is none.
  • tests/vala-demo/Makefile.am: Fix up vala demo to use PLATFORM_LIBS for consistency.
Line 
1 m4_define([tny_major_version], [1])
2 m4_define([tny_minor_version], [0])
3 m4_define([tny_micro_version], [0])
4 m4_define([tny_version],
5           [tny_major_version.tny_minor_version.tny_micro_version])
6 m4_define([tny_interface_age], [0])
7 m4_define([tny_binary_age],
8           [m4_eval(100 * tny_minor_version + tny_micro_version)])
9 m4_define([tny_api_version], [1.0])
10 m4_define([lt_current], [m4_eval(100 * tny_minor_version + tny_micro_version - tny_interface_age)])
11 m4_define([lt_revision], [tny_interface_age])
12 m4_define([lt_age], [m4_eval(tny_binary_age - tny_interface_age)])
13
14 AC_INIT([libtinymail], [tny_version], [http://tinymail.org/trac/tinymail])
15
16 m4_pattern_allow([^AC_TNY_])
17
18 AC_CONFIG_SRCDIR(libtinymail/tny-folder.c)
19 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
20 AC_CONFIG_MACRO_DIR([m4])
21 AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
22
23 AC_CONFIG_HEADERS(config.h)
24
25 LT_VERSION_INFO="lt_current:lt_revision:lt_age"
26 LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)
27 AC_SUBST(LT_VERSION_INFO)
28 AC_SUBST(LT_CURRENT_MINUS_AGE)
29
30 dnl ### Don't export functions that start with _ ##
31 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
32 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
33
34 GETTEXT_PACKAGE=tinymail
35 AC_SUBST(GETTEXT_PACKAGE)
36 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
37 AM_GLIB_DEFINE_LOCALEDIR([TNY_LOCALE_DIR])
38 ALL_LINGUAS=""
39 AM_GLIB_GNU_GETTEXT
40
41 API_VERSION=tny_api_version
42 AC_SUBST(API_VERSION)
43
44 if test x$prefix = xNONE; then
45         prefix=/usr/local
46 fi
47
48 AC_SUBST(prefix)
49
50 AC_PROG_CC
51 AC_PROG_CXX
52 AM_PROG_CC_STDC
53 AC_HEADER_STDC
54 AC_PROG_LIBTOOL
55
56 AC_PATH_PROG(VALAC, valac, valac)
57 AC_SUBST(VALAC)
58
59 dnl ### default values (will get overwritten)
60 build_acap=false
61 build_gnome=true
62 build_uigtk=true
63 build_demoui=true
64 build_mozembed=false
65 build_webkit=false
66 build_gtkhtml=false
67 build_doxygen=false
68 build_tests=false
69 build_unittests=false
70 build_tp=false
71 have_conic=false
72 debug=false
73 enable_deprecated=true
74 PLATFORMDIR=libtinymail-gnome-desktop
75 PLATFORMSPECIFICNAME=Gnome
76 PLATFORM=1
77 PLATFORM_LIBS='$(top_builddir)/$(PLATFORMDIR)/$(PLATFORMDIR)-$(API_VERSION).la'
78 PLATFORM_CFLAGS='-I$(top_srcdir)/$(PLATFORM)'
79 have_platform=yes
80
81 dnl ### Debugging ###
82 AC_ARG_ENABLE(debug,
83 AC_HELP_STRING([--enable-debug],
84   [Enable debugging (yes, no)]),
85 [case "${enableval}" in
86   yes) debug=true ;;
87   no)  debug=false ;;
88 esac],[debug=$debug])
89
90 dnl ### Deprecated disable ###
91 AC_ARG_ENABLE(deprecated,
92   AC_HELP_STRING([--enable-deprecated],
93   [Enable deprecated symbols (yes, no)]),
94 [case "${enableval}" in
95   yes) enable_deprecated=true ;;
96   no)  enable_deprecated=false ;;
97 esac],[enable_deprecated=$enable_deprecated])
98
99
100 dnl ### Select the platform library ##
101 AC_ARG_WITH(platform,
102 AC_HELP_STRING([--with-platform=gnome-desktop],
103   [Platform to compile (gnome-desktop, maemo, olpc or gpe)]),
104 [case "${with_platform}" in
105   gnome-desktop)
106         PLATFORMDIR=libtinymail-gnome-desktop
107         PLATFORMSPECIFICNAME=Gnome
108         build_uigtk=true
109         build_demoui=true
110         PLATFORM=1
111         ;;
112   maemo)
113         PLATFORMDIR=libtinymail-maemo
114         PLATFORMSPECIFICNAME=Maemo
115         build_gtkhtml=false
116         build_mozembed=false
117         build_gnome=false
118         build_maemo=true
119         build_uigtk=true
120         build_demoui=true
121         PLATFORM=2
122         ;;
123   gpe)
124         PLATFORMDIR=libtinymail-gpe
125         PLATFORMSPECIFICNAME=Gpe
126         build_uigtk=true
127         build_demoui=true
128         PLATFORM=3
129         ;;
130   olpc)
131         PLATFORMDIR=libtinymail-olpc
132         PLATFORMSPECIFICNAME=Olpc
133         build_gtkhtml=false
134         build_mozembed=false
135         build_gnome=false
136         with_html_component=none
137         build_uigtk=true
138         build_demoui=true
139         PLATFORM=4
140         ;;
141   none)
142         PLATFORMDIR=
143         PLATFORMSPECIFICNAME=
144         build_uigtk=false
145         build_demoui=false
146         PLATFORM=0
147         PLATFORM_LIBS=
148         PLATFORM_CFLAGS=
149         have_platform=no
150         ;;
151   *)
152         PLATFORMDIR=${with_platform}
153         PLATFORMSPECIFICNAME=
154         build_uigtk=false
155         build_demoui=false
156         PLATFORM=0
157 esac], [PLATFORMDIR=libtinymail-gnome-desktop
158         with_platform=gnome-desktop])
159
160 AC_SUBST(PLATFORMDIR)
161 AC_SUBST(PLATFORM)
162 AC_SUBST(PLATFORMSPECIFICNAME)
163 AC_SUBST(PLATFORM_LIBS)
164 AC_SUBST(PLATFORM_CFLAGS)
165
166 AM_CONDITIONAL([HAVE_PLATFORM], [test x$have_platform = xyes])
167
168 dnl ### Select the html component ##
169 AC_ARG_WITH(html-component,
170 AC_HELP_STRING([--with-html-component],
171   [Set which html component to use (mozembed, gtkhtml, webkit, none)]),
172 [case "$with_html_component" in
173   webkit)
174         build_gtkhtml=false
175         build_mozembed=false
176         build_webkit=true
177   ;;
178   mozembed)
179         build_webkit=false
180         build_mozembed=true
181         build_gtkhtml=false
182         build_demoui=true
183   ;;
184   gtkhtml)
185         build_webkit=false
186         build_mozembed=false
187         build_gtkhtml=true
188         build_demoui=true
189   ;;
190   none)
191         with_html_component=none
192         build_mozembed=false
193         build_gtkhtml=false
194         build_webkit=false
195   ;;
196   *) AC_MSG_ERROR(bad value ${with_html_component} for --with-html-component) ;;
197 esac], [build_mozembed=false
198         build_webkit=false
199         build_gtkhtml=false
200         with_html_component=none])
201
202 AM_CONDITIONAL(BUILD_MOZEMBED, test x$build_mozembed = xtrue)
203 AM_CONDITIONAL(BUILD_GTKHTML, test x$build_gtkhtml = xtrue)
204 AM_CONDITIONAL(BUILD_WEBKIT, test x$build_webkit = xtrue)
205
206 dnl ### Enable demoui ##
207 AC_ARG_ENABLE(demoui,
208 AC_HELP_STRING([--enable-demoui],
209   [Build the demo user interface (yes, no)]),
210 [case "${enableval}" in
211   yes)
212         build_demoui=true
213         build_uigtk=true
214   ;;
215   no)  build_demoui=false ;;
216   *) AC_MSG_ERROR(bad value ${enableval} for --enable-demoui) ;;
217 esac],[build_demoui=$build_demoui])
218 AM_CONDITIONAL(BUILD_DEMOUI, test x$build_demoui = xtrue)
219
220 dnl ### Enable IMAP part-fetch feature ##
221 AC_ARG_ENABLE(imap-part-fetch,
222 AC_HELP_STRING([--enable-imap-part-fetch],
223   [Build using imap part fetch]),
224 [case "${enableval}" in
225   yes)
226         build_imapp=true
227   ;;
228   no)  build_imapp=false ;;
229   *) AC_MSG_ERROR(bad value ${enableval} for --enable-part-fetch) ;;
230 esac],[build_imapp=$build_imapp])
231 AM_CONDITIONAL(BUILD_IMAPP, test x$build_imapp = xtrue)
232
233 dnl ### Enable gnome features ##
234 AC_ARG_ENABLE(gnome,
235 AC_HELP_STRING([--enable-gnome],
236   [Build using gnome features]),
237 [case "${enableval}" in
238   yes)
239         build_gnome=true
240         build_uigtk=true
241   ;;
242   no)  build_gnome=false ;;
243   *) AC_MSG_ERROR(bad value ${enableval} for --enable-gnome) ;;
244 esac],[build_gnome=$build_gnome])
245 AM_CONDITIONAL(BUILD_GNOME, test x$build_gnome = xtrue)
246
247
248 dnl ### Enable acap features ##
249 AC_ARG_ENABLE(acap,
250 AC_HELP_STRING([--enable-acap],
251   [Build using acap features]),
252 [case "${enableval}" in
253   yes) build_acap=true ;;
254   no)  build_acap=false ;;
255   *) AC_MSG_ERROR(bad value ${enableval} for --enable-acap) ;;
256 esac],[build_acap=$build_acap])
257 AM_CONDITIONAL(BUILD_ACAP, test x$build_acap = xtrue)
258
259
260 dnl ### Enable building the unit tests ##
261 AC_ARG_ENABLE(unit-tests,
262 AC_HELP_STRING([--enable-unit-tests],
263   [Build unit tests (no, yes)]),
264 [case "${enableval}" in
265   yes)
266         build_tests=true
267         build_unittests=true
268         build_uigtk=true
269   ;;
270   no)  build_unittests=false ;;
271   *) AC_MSG_ERROR(bad value ${enableval} for --enable-unit-tests) ;;
272 esac],[build_unittests=$build_unittests])
273 AM_CONDITIONAL(BUILD_UNITTESTS, test x$build_unittests = xtrue)
274
275 dnl ### Enable building the tests ##
276 AC_ARG_ENABLE(tests,
277 AC_HELP_STRING([--enable-tests],
278   [Build tests (no, yes)]),
279 [case "${enableval}" in
280   yes)
281         build_tests=true
282         build_uigtk=true
283   ;;
284   no)  build_tests=false ;;
285   *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;;
286 esac],[build_tests=$build_tests])
287 AM_CONDITIONAL(BUILD_TESTS, test x$build_tests = xtrue)
288
289 dnl ### Enable uigtk ##
290 AC_ARG_ENABLE(uigtk,
291 AC_HELP_STRING([--enable-uigtk],
292   [Build the gtk+ implementation for the ui components (yes, no)]),
293 [case "${enableval}" in
294   yes) build_uigtk=true ;;
295   no)  build_uigtk=false ;;
296   *) AC_MSG_ERROR(bad value ${enableval} for --enable-uigtk) ;;
297 esac],[build_uigtk=$build_uigtk])
298 AM_CONDITIONAL(BUILD_UIGTK, test x$build_uigtk = xtrue)
299
300 dnl ### Enable GMail support ##
301 AC_ARG_ENABLE(tp,
302 AC_HELP_STRING([--enable-tp],
303   [Build the integration with telepathy (yes, no)]),
304 [case "${enableval}" in
305   yes) build_tp=true ;;
306   no)  build_tp=false ;;
307   *) AC_MSG_ERROR(bad value ${enableval} for --enable-tp) ;;
308 esac],[build_tp=$build_tp])
309 AM_CONDITIONAL(BUILD_TP, test x$build_tp = xtrue)
310
311 dnl ### Enable the python language bindings ##
312 AC_ARG_ENABLE(python-bindings,
313 AC_HELP_STRING([--enable-python-bindings],
314   [Build python bindings (no, yes)]),
315 [case "${enableval}" in
316   yes) build_pytinymail=true ;;
317   no)  build_pytinymail=false ;;
318   *) AC_MSG_ERROR(bad value ${enableval} for --enable-python-bindings) ;;
319 esac],[build_pytinymail=false])
320 AM_CONDITIONAL(BUILD_PYTINYMAIL, test x$build_pytinymail = xtrue)
321
322 dnl ### Enable the Vala language bindings ##
323 AC_ARG_ENABLE(vala-bindings,
324 AC_HELP_STRING([--enable-vala-bindings],
325   [Build vala bindings (no, yes)]),
326 [case "${enableval}" in
327   yes) build_vala_bindings=true ;;
328   no)  build_vala_bindings=false ;;
329   *) AC_MSG_ERROR(bad value ${enableval} for --enable-vala-bindings) ;;
330 esac],[build_vala_bindings=false])
331 AM_CONDITIONAL(BUILD_VALA_BINDINGS, test x$build_vala_bindings = xtrue)
332
333
334 dnl ### Enable the .NET language bindings ##
335 AC_ARG_ENABLE(dotnet-bindings,
336 AC_HELP_STRING([--enable-dotnet-bindings],
337   [Build .NET bindings (no, yes)]),
338 [case "${enableval}" in
339   yes) build_net_bindings=true ;;
340   no)  build_net_bindings=false ;;
341   *) AC_MSG_ERROR(bad value ${enableval} for --enable-dotnet-bindings) ;;
342 esac],[build_net_bindings=false])
343
344 AC_TNY_DOTNET_CHECK
345
346 AM_CONDITIONAL(BUILD_NET_BINDINGS, test x$build_net_bindings = xtrue)
347
348
349 dnl ### doxygen
350 AC_ARG_ENABLE(doxygen,
351 AC_HELP_STRING([--enable-doxygen],
352   [Build doxygen docs (no, yes)]),
353 [case "${enableval}" in
354   yes) build_doxygen=true ;;
355   no)  build_doxygen=false ;;
356   *) AC_MSG_ERROR(bad value ${enableval} for --enable-doxygen) ;;
357 esac],[build_doxygen=false])
358 AM_CONDITIONAL(BUILD_DOXYGEN, test x$build_doxygen = xtrue)
359
360 if test x$build_doxygen = xtrue; then
361   AC_CHECK_PROGS(DOXYGEN,doxygen, [You need doxygen])
362   AC_CHECK_PROGS(PERL,perl, [You need perl])
363 fi
364
365 dnl ### gtk-doc
366 GTK_DOC_CHECK([1.0])
367
368 dnl ### libtinymail, the abstraction library ##
369 PKG_CHECK_MODULES(LIBTINYMAIL, glib-2.0 >= 2.8 gobject-2.0)
370 dnl ### libtinymailui, the ui abstraction library ##
371 PKG_CHECK_MODULES(LIBTINYMAILUI, glib-2.0 >= 2.8 gobject-2.0)
372 dnl ### libtinymail-camel, a camel implementation of libtinymail ##
373 PKG_CHECK_MODULES(LIBTINYMAIL_CAMEL, glib-2.0 >= 2.8 gobject-2.0)
374
375 if test x$debug == xtrue; then
376         EXTRA_CFLAGS="-DDEBUG -DDBC -g -ggdb -O0"
377 fi
378
379 if test x$enable_deprecated == xfalse; then
380         EXTRA_CFLAGS="$EXTRA_CFLAGS -DTNY_DISABLE_DEPRECATED"
381 fi
382
383 AC_SUBST(EXTRA_CFLAGS)
384 AC_SUBST(LIBTINYMAIL_CAMEL_CFLAGS)
385 AC_SUBST(LIBTINYMAIL_CAMEL_LIBS)
386 AC_SUBST(LIBTINYMAILUI_CFLAGS)
387 AC_SUBST(LIBTINYMAILUI_LIBS)
388 AC_SUBST(LIBTINYMAIL_CFLAGS)
389 AC_SUBST(LIBTINYMAIL_LIBS)
390
391 dnl ### libtinymail-tp, integration with telepathy
392 if test x$build_tp = xtrue; then
393 PKG_CHECK_MODULES(LIBTINYMAIL_TP, telepathy-glib)
394 else
395 LIBTINYMAIL_TP_CFLAGS=
396 LIBTINYMAIL_TP_LIBS=
397 fi
398 AC_SUBST(LIBTINYMAIL_TP_CFLAGS)
399 AC_SUBST(LIBTINYMAIL_TP_LIBS)
400
401 dnl ### libtinymail-gnomevfs, a tnystreamiface for gnome-vfs ##
402 if test x$build_gnome = xtrue; then
403 extragtkpkgs="libgnomeui-2.0 gnome-keyring-1"
404 extratnypkgs="gnome-vfs-2.0"
405   PKG_CHECK_MODULES(LIBTINYMAIL_GNOMEVFS, glib-2.0 >= 2.8 gobject-2.0 gnome-vfs-2.0)
406 elif test x$build_maemo = xtrue; then
407 extragtkpkgs=
408 extratnypkgs="gnome-vfs-2.0"
409   PKG_CHECK_MODULES(LIBTINYMAIL_GNOMEVFS, glib-2.0 >= 2.8 gobject-2.0 gnome-vfs-2.0)
410 else
411   LIBTINYMAIL_GNOMEVFS_CFLAGS=
412   LIBTINYMAIL_GNOMEVFS_LIBS=
413   extragtkpkgs=
414   extratnypkgs=
415 fi
416
417 AC_SUBST(LIBTINYMAIL_GNOMEVFS_CFLAGS)
418 AC_SUBST(LIBTINYMAIL_GNOMEVFS_LIBS)
419
420 dnl ### libtinymailui-gtk, a gtk+ implementation of libtinymail-ui ##
421 PKG_CHECK_MODULES(LIBTINYMAILUI_GTK, glib-2.0 >= 2.8 gobject-2.0 $extragtkpkgs gtk+-2.0)
422 AC_SUBST(LIBTINYMAILUI_GTK_CFLAGS)
423 AC_SUBST(LIBTINYMAILUI_GTK_LIBS)
424
425 dnl ### libtinymailui-mozembed, a library that wraps the gtkmozembed widget ##
426 if test x$build_mozembed = xtrue; then
427
428   AC_TNY_MOZ_CHECK
429
430   if test x$mozilla_xpcom = xno; then
431    AC_MSG_ERROR("You need Mozilla's XPCOM")
432   fi
433
434   if test x$mozilla_gtkmozembed = xno; then
435    AC_MSG_ERROR("You need Mozilla's GtkMozEmbed")
436   fi
437
438   extraplatpkgs="$mozilla_xpcom $mozilla_gtkmozembed"
439   extratnypkgs="$extratnypkgs $extraplatpkgs"
440   PKG_CHECK_MODULES(LIBTINYMAILUI_MOZEMBED, $extraplatpkgs glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extragtkpkgs)
441   MOZILLA_HOME="$mozilla_home"
442   AC_DEFINE_UNQUOTED(MOZILLA_HOME,"$mozilla_home",["The path of the mozilla engine"])
443 else
444   LIBTINYMAILUI_MOZEMBED_CFLAGS=
445   LIBTINYMAILUI_MOZEMBED_LIBS=
446   MOZILLA_HOME=
447   AM_CONDITIONAL([HAVE_MOZILLA_1_8],[test "0" = "1"])
448   AM_CONDITIONAL([HAVE_MOZILLA_1_9],[test "0" = "1"])
449 fi
450 AC_SUBST([MOZILLA_HOME])
451
452 dnl ### libtinymailui-gtkhtml, a library that wraps the GtkHtml widget ##
453 if test x$build_gtkhtml = xtrue; then
454   extraplatpkgs="libgtkhtml-3.8"
455   extratnypkgs="$extratnypkgs $extraplatpkgs"
456   PKG_CHECK_MODULES(LIBTINYMAILUI_GTKHTML, $extraplatpkgs glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extragtkpkgs)
457 else
458   LIBTINYMAILUI_GTKHTML_CFLAGS=
459   LIBTINYMAILUI_GTKHTML_LIBS=
460 fi
461
462 dnl ### libtinymail-gnome-desktop, a GNOME platform library implementation ##
463 if test x$PLATFORMDIR = xlibtinymail-gnome-desktop; then
464   PKG_CHECK_MODULES(LIBTINYMAIL_GNOME_DESKTOP, gconf-2.0 $extraplatpkgs libnm_glib glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extragtkpkgs)
465 else
466   LIBTINYMAIL_GNOME_DESKTOP_CFLAGS=
467   LIBTINYMAIL_GNOME_DESKTOP_LIBS=
468 fi
469 AC_SUBST(LIBTINYMAIL_GNOME_DESKTOP_CFLAGS)
470 AC_SUBST(LIBTINYMAIL_GNOME_DESKTOP_LIBS)
471
472
473 dnl ### libtinymail-olpc, a platform library implementation for the One Laptop Per Child device ##
474 if test x$PLATFORMDIR = xlibtinymail-olpc; then
475  PKG_CHECK_MODULES(LIBTINYMAIL_OLPC, glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0)
476 else
477  LIBTINYMAIL_OLPC_CFLAGS=
478  LIBTINYMAIL_OLPC_LIBS=
479 fi
480 AC_SUBST(LIBTINYMAIL_OLPC_CFLAGS)
481 AC_SUBST(LIBTINYMAIL_OLPC_LIBS)
482              
483
484 AC_DEFUN([ARMEL_TARGET],
485         [if sb-conf cu | grep -i 'armel' >/dev/null 2>&1; then
486             armel_target=yes])
487
488 dnl ### libtinymail-maemo, a platform library implementation for the maemo platform ##
489 if test x$PLATFORMDIR = xlibtinymail-maemo; then
490         PKG_CHECK_MODULES(LIBTINYMAIL_MAEMO, glib-2.0 >= 2.8 gobject-2.0 gconf-2.0 gtk+-2.0)
491         if $PKG_CONFIG --exists conic; then
492                 PKG_CHECK_MODULES(LIBTINYMAIL_MAEMO_CONIC,conic,HAVE_CONIC=yes,HAVE_CONIC=no)
493                 AC_MSG_RESULT(conic)
494                 AC_SUBST(LIBYINYMAIL_MAEMO_CONIC_CFLAGS)
495                 AC_SUBST(LIBTINYMAIL_MAEMO_CONIC_LIBS)
496                 dnl HACK: unless we are building for arm, make the device a 'dummy' assuming it is always online
497                 dnl this is because scratcbhox-Conic does not support ethernet, and will therefore never consider
498                 dnl itself 'online'
499                 if test -z "`sb-conf show -c | grep arm`"; then
500                         use_conic_device_dummy=1
501                         AC_DEFINE_UNQUOTED(MAEMO_CONIC_DUMMY,1,["Whether to hack the TnyMaemoConicDevice to somewhat work in sbox"])
502                 fi
503         else
504                 AC_DEFINE_UNQUOTED(LIBTINYMAIL_MAEMO_WITHOUT_CONIC,1,["whether the dummy libconic should be built"])
505         fi
506
507         AC_SUBST(LIBTINYMAIL_MAEMO_CFLAGS)
508         AC_SUBST(LIBTINYMAIL_MAEMO_LIBS)
509 fi
510                        
511 AM_CONDITIONAL(MAEMO_CONIC_DEVICE_DUMMY, test -n "$use_conic_device_dummy")
512 AM_CONDITIONAL(MAEMO_CONIC_HAVE_CONIC, test "x$HAVE_CONIC" = "xyes")
513 AM_CONDITIONAL(BUILD_MAEMO, test x$build_maemo = xtrue)
514
515 dnl ### libtinymail-gpe, a platform library implementation for the GPE platform ##
516 if test x$PLATFORMDIR = xlibtinymail-gpe; then
517  PKG_CHECK_MODULES(LIBTINYMAIL_GPE, glib-2.0 >= 2.8 gobject-2.0 gconf-2.0 gtk+-2.0)
518 else
519  LIBTINYMAIL_GPE_CFLAGS=
520  LIBTINYMAIL_GPE_LIBS=
521 fi
522 AC_SUBST(LIBTINYMAIL_GPE_CFLAGS)
523 AC_SUBST(LIBTINYMAIL_GPE_LIBS)
524
525
526 AC_SUBST(extraplatpkgs)
527 AC_SUBST(extragtkpkgs)
528
529 dnl ### libtinymail-test, a library for testing purposes ##
530 if test x$build_unittests = xtrue; then
531   PKG_CHECK_MODULES(CHECK, check >= 0.9.4 glib-2.0)
532 fi
533
534 dnl ### tinymail, the demo-ui ##
535 PKG_CHECK_MODULES(TINYMAIL, glib-2.0 >= 2.8 gobject-2.0 gtk+-2.0 $extratnypkgs)
536 AC_SUBST(TINYMAIL_CFLAGS)
537 AC_SUBST(TINYMAIL_LIBS)
538
539 dnl ### tinymail-python, the python language bindings ##
540 if test x$build_pytinymail = xtrue; then
541   AC_TNY_PYTHON_BINDING_CHECK
542 else
543   TINYMAIL_PYTHON_CFLAGS=
544   TINYMAIL_PYTHON_LIBS=
545 fi
546 AC_SUBST(PYGTK_CODEGENDIR)
547 AC_SUBST(TINYMAIL_PYTHON_CFLAGS)
548 AC_SUBST(TINYMAIL_PYTHON_LIBS)
549 AC_SUBST(PYGTK_CFLAGS)
550 AC_SUBST(PYGTK_LIBS)
551
552 BINDIR=$prefix/bin
553 AC_SUBST(BINDIR)
554
555 AC_CONFIG_SUBDIRS(libtinymail-camel/camel-lite)
556
557 AC_OUTPUT([
558 po/Makefile.in
559 libtinymail.spec
560 Makefile
561 docs/Makefile
562 docs/devel/Makefile
563 docs/devel/reference/Makefile
564 docs/devel/doxygen/Makefile
565 docs/devel/doxygen/libtinymail
566 docs/devel/doxygen/libtinymail-camel
567 docs/devel/doxygen/libtinymailui
568 docs/devel/doxygen/libtinymailui-gtk
569 bindings/Makefile
570 bindings/python/Makefile
571 bindings/python/gendefs/Makefile
572 bindings/python/tinymail.pth
573 bindings/vala/Makefile
574 bindings/dotnet/Makefile
575 bindings/dotnet/AssemblyInfo.cs
576 bindings/dotnet/tny/libtinymail-sharp.dll.config
577 bindings/dotnet/tny/libtinymail-sharp.pc
578 bindings/dotnet/tny/libtinymail-sources.xml
579 bindings/dotnet/tny/Makefile
580 bindings/dotnet/ui/libtinymailui-sharp.dll.config
581 bindings/dotnet/ui/libtinymailui-sharp.pc
582 bindings/dotnet/ui/libtinymailui-sources.xml
583 bindings/dotnet/ui/Makefile
584 bindings/dotnet/ui-gtk/libtinymailui-gtk-sharp.dll.config
585 bindings/dotnet/ui-gtk/libtinymailui-gtk-sharp.pc
586 bindings/dotnet/ui-gtk/libtinymailui-gtk-sources.xml
587 bindings/dotnet/ui-gtk/Makefile
588 bindings/dotnet/camel/libtinymail-camel-sharp.dll.config
589 bindings/dotnet/camel/libtinymail-camel-sharp.pc
590 bindings/dotnet/camel/libtinymail-camel-sources.xml
591 bindings/dotnet/camel/Makefile
592 bindings/dotnet/platform/libtinymail-platform-sharp.dll.config
593 bindings/dotnet/platform/libtinymail-platform-sharp.pc
594 bindings/dotnet/platform/libtinymail-platform-sources.xml
595 bindings/dotnet/platform/libtinymail-platform.metadata
596 bindings/dotnet/platform/Makefile
597 libtinymail/Makefile
598 libtinymail/libtinymail.pc
599 libtinymail-camel/Makefile
600 libtinymail-camel/libtinymail-camel.pc
601 libtinymail-tp/libtinymail-tp.pc
602 libtinymail-tp/Makefile
603 libtinymailui/Makefile
604 libtinymailui/libtinymailui.pc
605 libtinymailui-gtk/Makefile
606 libtinymailui-gtk/libtinymailui-gtk.pc
607 libtinymailui-webkit/Makefile
608 libtinymailui-webkit/libtinymailui-webkit.pc
609 libtinymailui-gtkhtml/Makefile
610 libtinymailui-gtkhtml/libtinymailui-gtkhtml.pc
611 libtinymailui-mozembed/Makefile
612 libtinymailui-mozembed/libtinymailui-mozembed.pc
613 libtinymailui-gnome-keyring/Makefile
614 libtinymail-gnomevfs/Makefile
615 libtinymail-gnomevfs/libtinymail-gnomevfs.pc
616 libtinymail-gnome-desktop/Makefile
617 libtinymail-gnome-desktop/libtinymail-gnome-desktop.pc
618 libtinymail-olpc/Makefile
619 libtinymail-olpc/libtinymail-olpc.pc
620 libtinymail-maemo/Makefile
621 libtinymail-maemo/libtinymail-maemo.pc
622 libtinymail-gpe/Makefile
623 libtinymail-gpe/libtinymail-gpe.pc
624 libtinymail-test/Makefile
625 libtinymail-acap/Makefile
626 libtinymail-acap/libtinymail-acap.pc
627 tests/Makefile
628 tests/c-demo/Makefile
629 tests/shared/Makefile
630 tests/python-demo/Makefile
631 tests/memory/Makefile
632 tests/functional/Makefile
633 tests/vala-demo/Makefile
634 tests/dotnet-demo/build.sh
635 m4/Makefile
636 ])
637
638 echo ""
639 echo "The following options are selected:"
640 echo ""
641 echo "  Enable GNOME features:       $build_gnome"
642 echo "  Enable ACAP features:        $build_acap"
643 echo "  Enable Telepathy features:   $build_tp"
644 echo "  HTML component:              ${with_html_component}"
645 echo "  Python language bindings:    $build_pytinymail"
646 echo "  API tests:                   $build_apitests"
647 echo "  Unit tests:                  $build_unittests"
648 echo "  Tests:                       $build_tests"
649 echo "  Target platform:             ${with_platform}"
650 echo "  Prefix:                      ${prefix}"
651 echo ""
652 echo "Version info:"
653 echo ""
654 echo "  Version:                     $VERSION"
655 echo "  API version:                 $API_VERSION"
656 echo "  ABI version:                 $LT_VERSION_INFO - $LT_CURRENT_MINUS_AGE"
657 echo ""
658
659
Note: See TracBrowser for help on using the browser.