4 AC_CONFIG_AUX_DIR(config)
5 AC_CONFIG_MACRO_DIR([m4])
15 GIT_VERSION=`git describe --abbrev=6 --dirty --always`
16 MAJOR_VERSION=`echo $GIT_VERSION | cut -f1 -d- | cut -f1 -d.`
17 MINOR_VERSION=`echo $GIT_VERSION | cut -f1 -d- | cut -f2 -d.`
18 MICRO_VERSION=`echo $GIT_VERSION | cut -f1 -d- | cut -f3 -d.`
19 EXTRA_VERSION=`echo $GIT_VERSION | cut -f2 -d-`
20 HASH_VERSION=`echo $GIT_VERSION | cut -f3 -d-`
21 DIRTY_VERSION=`echo $GIT_VERSION | cut -f4 -d-`
23 if test \( "x$EXTRA_VERSION" != "x" \); then
24 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}git${EXTRA_VERSION}
26 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
30 if test \( "x$HASH_VERSION" != "x" \); then
31 if test \( "x$DIRTY_VERSION" != "x" \); then
32 VERSION=${VERSION}+${HASH_VERSION}+local
34 VERSION=${VERSION}+${HASH_VERSION}
38 if test \( "x$EXTRA_RELEASE" != "x" \); then
39 VERSION=${VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
46 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
47 dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
48 dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
51 AC_SUBST(MAJOR_VERSION)
52 AC_SUBST(MINOR_VERSION)
53 AC_SUBST(MICRO_VERSION)
54 AC_SUBST(EXTRA_VERSION)
56 AC_SUBST(HASH_VERSION)
58 AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
59 AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
61 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
62 if test x$PKG_CONFIG = xno ; then
63 AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
66 dnl GNOME 2.x installed?
67 PKG_CHECK_MODULES(GNOME2, libgnome-2.0 >= 2.0, ac_enable_gnome2=yes, ac_enable_gnome2=no)
68 AM_CONDITIONAL(CLAWS_GNOME2, test x"$ac_enable_gnome2" = x"yes")
70 dnl libtool versioning
71 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
72 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
73 LT_REVISION=$INTERFACE_AGE
74 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
80 dnl Specify a header configuration file
81 AC_CONFIG_HEADERS(config.h)
82 AC_CONFIG_HEADERS(claws-features.h)
86 dnl Checks for programs.
106 dnl ******************************
108 dnl Not needed anymore because we
109 dnl do AC_CANONICAL_SYSTEM above
110 dnl ******************************
111 dnl AC_CANONICAL_HOST
113 dnl Copied from the official gtk+-2 configure.in
114 AC_MSG_CHECKING([for some Win32 platform])
116 *-*-mingw*|*-*-cygwin*)
118 LDFLAGS="$LDFLAGS -mwindows"
124 AC_MSG_RESULT([$platform_win32])
125 AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = x"yes")
127 AC_MSG_CHECKING([for native Win32])
136 AC_MSG_RESULT([$os_win32])
137 AM_CONDITIONAL(OS_WIN32, test x"$os_win32" = x"yes")
139 AC_MSG_CHECKING([for Cygwin])
148 AC_MSG_RESULT([$env_cygwin])
149 AM_CONDITIONAL(CYGWIN, test x"$env_cygwin" = x"yes")
151 if test "$GCC" = "yes"
153 CFLAGS="$CFLAGS -Wno-unused-function"
154 #CFLAGS="-g -Wall -Wno-unused-function"
157 AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
158 _gcc_cflags_save=$CFLAGS
159 CFLAGS="-Wno-pointer-sign"
160 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],_gcc_psign=yes,_gcc_psign=no)
161 AC_MSG_RESULT($_gcc_psign)
162 CFLAGS=$_gcc_cflags_save;
163 if test x"$_gcc_psign" = xyes ; then
164 CFLAGS="$CFLAGS -Wno-pointer-sign"
167 CFLAGS="$CFLAGS -Wall"
169 if test $USE_MAINTAINER_MODE = yes; then
170 CFLAGS="-g -Wall -Wno-pointer-sign"
176 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
179 # Note that we need to link to pthreadGC2 in all cases. This
180 # is because some locking is used even when pthread support is
182 pthread_name=pthreadGC2
183 CFLAGS="$CFLAGS -mms-bitfields"
184 LIBS="$LIBS -l${pthread_name} -lws2_32 -lregex"
187 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
188 CFLAGS="$CFLAGS -std=gnu99 -DSOLARIS"
195 dnl floor and ceil are in -lm
199 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
202 LIBS="$LIBS $GTK_LIBS"
203 AC_CHECK_FUNCS(bind_textdomain_codeset)
207 ALL_LINGUAS="bg ca cs de en_GB es fi fr he hu id_ID it ja lt nl pl pt_BR pt_PT ru sk sv uk zh_CN zh_TW"
208 GETTEXT_PACKAGE=claws-mail
209 AC_SUBST(GETTEXT_PACKAGE)
210 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
212 AM_GNU_GETTEXT_VERSION([0.15])
213 AM_GNU_GETTEXT([external])
215 AC_ARG_ENABLE(manual,
216 [ --disable-manual Do not build user manual],
217 [enable_manual=$enableval], [enable_manual=yes])
220 [ --disable-libsm Do not build libSM support for session management],
221 [enable_libsm=$enableval], [enable_libsm=yes])
224 [ --disable-ipv6 Do not build IPv6 support],
225 [enable_ipv6=$enableval], [enable_ipv6=yes])
227 AC_ARG_ENABLE(gnutls,
228 [ --disable-gnutls Do not build GnuTLS support for SSL/TLS],
229 [enable_gnutls=$enableval], [enable_gnutls=yes])
231 AC_ARG_ENABLE(enchant,
232 [ --disable-enchant Do not build Enchant support for spell-checking],
233 [enable_enchant=$enableval], [enable_enchant=yes])
235 AC_ARG_ENABLE(crash-dialog,
236 [ --enable-crash-dialog Build crash dialog],
237 [enable_crash_dialog=$enableval], [enable_crash_dialog=no])
239 AC_ARG_ENABLE(generic-umpc,
240 [ --enable-generic-umpc Build generic UMPC code],
241 [enable_generic_umpc=$enableval], [enable_generic_umpc=no])
244 [ --enable-maemo Build for the Maemo platform],
245 [enable_maemo=$enableval], [enable_maemo=no])
247 AC_ARG_ENABLE(compface,
248 [ --disable-compface Do not build compface support for X-Face],
249 [enable_compface=$enableval], [enable_compface=yes])
251 AC_ARG_ENABLE(pthread,
252 [ --disable-pthread Do not build pthread support],
253 [enable_pthread=$enableval], [enable_pthread=yes])
255 AC_ARG_ENABLE(startup-notification,
256 [ --disable-startup-notification Do not startup notification support],
257 [enable_startup_notification=$enableval], [enable_startup_notification=yes])
260 [ --disable-dbus Do not build DBUS support],
261 [enable_dbus=$enableval], [enable_dbus=yes])
264 [ --disable-ldap Do not build LDAP support],
265 [enable_ldap=$enableval], [enable_ldap=yes])
267 AC_ARG_ENABLE(jpilot,
268 [ --disable-jpilot Do not build JPilot support],
269 [enable_jpilot=$enableval], [enable_jpilot=yes])
271 AC_ARG_ENABLE(networkmanager,
272 [ --disable-networkmanager Do not build NetworkManager support],
273 [enable_networkmanager=$enableval], [enable_networkmanager=yes])
275 AC_ARG_ENABLE(libetpan,
276 [ --disable-libetpan Do not build libetpan support for IMAP4/NNTP],
277 [enable_libetpan=$enableval], [enable_libetpan=yes])
279 AC_ARG_ENABLE(valgrind,
280 [ --disable-valgrind Do not build valgrind support for debugging],
281 [enable_valgrind=$enableval], [enable_valgrind=yes])
283 AC_ARG_ENABLE(new-addrbook,
284 [ --enable-new-addrbook Build new external address book support],
285 [enable_new_addrbook=$enableval], [enable_new_addrbook=no])
288 [ --enable-gtk3 Build GTK3 support],
289 [enable_gtk3=$enableval], [enable_gtk3=no])
291 AC_ARG_ENABLE(deprecated,
292 [ --disable-deprecated Disable deprecated GTK functions],
293 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
295 manualdir='${docdir}/manual'
296 AC_ARG_WITH(manualdir,
297 [ --with-manualdir=DIR Manual directory],
298 [manualdir="$withval"])
301 dnl ******************************
302 dnl ** Check for required tools **
303 dnl ** to build manuals **
304 dnl ******************************
306 AC_PATH_PROG(DOCBOOK2HTML, docbook2html)
307 AC_PATH_PROG(DOCBOOK2TXT, docbook2txt)
308 AC_PATH_PROG(DOCBOOK2PS, docbook2ps)
309 AC_PATH_PROG(DOCBOOK2PDF, docbook2pdf)
311 AM_CONDITIONAL(MANUAL_HTML, test -n "$DOCBOOK2HTML")
312 AM_CONDITIONAL(MANUAL_TXT, test -n "$DOCBOOK2TXT")
313 AM_CONDITIONAL(MANUAL_PDF, test -n "$DOCBOOK2PDF")
314 AM_CONDITIONAL(MANUAL_PS, test -n "$DOCBOOK2PS")
316 if test x"$enable_manual" = x"yes"; then
317 if test -n "$DOCBOOK2TXT" -o -n "$DOCBOOK2HTML" \
318 -o -n "$DOCBOOK2PS" -o -n "$DOCBOOK2PDF"; then
325 AM_CONDITIONAL(BUILD_MANUAL, test x"$enable_manual" = xyes)
327 dnl Set PACKAGE_DATA_DIR in config.h.
328 if test "x${datarootdir}" = 'x${prefix}/share'; then
329 if test "x${prefix}" = "xNONE"; then
330 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
332 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
335 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datarootdir}/${PACKAGE}",[PACKAGE_DATA_DIR])
338 AC_CHECK_LIB(xpg4, setlocale)
342 AC_MSG_CHECKING([whether to use LibSM])
343 if test x"$enable_libsm" = xyes; then
345 AC_CHECK_LIB(SM, SmcSaveYourselfDone,
346 [SM_LIBS="$X_LIBS -lSM -lICE"],enable_libsm=no,
348 AC_CHECK_HEADERS(X11/SM/SMlib.h,,enable_libsm=no)
349 if test x"$enable_libsm" = xyes; then
350 AC_DEFINE(HAVE_LIBSM, 1, [Define to 1 if you have libSM installed])
352 AC_MSG_RESULT(not found)
353 AC_MSG_WARN([*** LibSM will not be supported ***])
360 dnl Check for d_type member in struct dirent
361 AC_MSG_CHECKING([whether struct dirent has d_type member])
362 AC_CACHE_VAL(ac_cv_dirent_d_type,[
363 AC_TRY_COMPILE([#include <dirent.h>],
364 [struct dirent d; d.d_type = DT_REG;],
365 ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
367 AC_MSG_RESULT($ac_cv_dirent_d_type)
368 if test $ac_cv_dirent_d_type = yes; then
369 AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
370 Define if `struct dirent' has `d_type' member.)
373 # Check whether mkdir does not take the permission argument.
374 GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
376 dnl Checks for header files.
380 AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
381 sys/param.h sys/utsname.h sys/select.h \
382 wchar.h wctype.h locale.h netdb.h)
383 AC_CHECK_HEADER([execinfo.h], [AC_DEFINE(HAVE_BACKTRACE,1,[Has backtrace*() needed for retrieving stack traces])])
384 AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
386 dnl alf - Check for apache installation f*ck up. apache may also install an
387 dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
388 AC_TRY_COMPILE([#include <stdlib.h>
389 #include <fnmatch.h>],
390 [int x = USE_HSREGEX;],
391 ac_cv_have_apache_fnmatch=yes, ac_cv_have_apache_fnmatch=no)
392 if test $ac_cv_have_apache_fnmatch = yes; then
393 AC_DEFINE(HAVE_APACHE_FNMATCH, 1, Define if you need to work around apache regex/fnmatch !KLUDGE!)
395 AC_MSG_CHECKING([whether to use Apache regex header kludge])
396 AC_MSG_RESULT($ac_cv_have_apache_fnmatch)
398 dnl Checks for typedefs, structures, and compiler characteristics.
405 dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
406 dnl may be defined only in wchar.h (this happens with gcc-2.96).
407 dnl So we need to use this extended macro.
408 CLAWS_CHECK_TYPE(wint_t, unsigned int,
413 ], Define to `unsigned int' if <stddef.h> or <wchar.h> doesn't define.)
415 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
416 AC_CHECK_SIZEOF(unsigned short, 2)
417 AC_CHECK_SIZEOF(unsigned int, 4)
418 AC_CHECK_SIZEOF(unsigned long, 4)
420 dnl Checks for library functions.
422 AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
423 uname flock lockf inet_aton inet_addr \
424 fchmod mkstemp truncate getuid regcomp)
426 AC_CHECK_FUNCS(fgets_unlocked fwrite_unlocked)
428 dnl *****************
429 dnl ** common code **
430 dnl *****************
433 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6)
435 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
436 AC_SUBST(GLIB_GENMARSHAL)
438 AC_SUBST(GLIB_CFLAGS)
441 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
443 LIBS="$LIBS $GTK_LIBS"
444 AC_CHECK_FUNCS(bind_textdomain_codeset)
447 dnl check for IPv6 option
448 dnl automated checks for IPv6 support.
449 AC_MSG_CHECKING([whether to use IPv6])
450 if test x"$enable_ipv6" = xyes; then
452 AC_MSG_CHECKING([for IPv6 support])
453 AC_CACHE_VAL(ac_cv_ipv6,[
454 AC_TRY_COMPILE([#define INET6
455 #include <sys/types.h>
456 #include <netinet/in.h>],
457 [int x = IPPROTO_IPV6; struct in6_addr a;],
458 ac_cv_ipv6=yes, ac_cv_ipv6=no)
460 AC_MSG_RESULT($ac_cv_ipv6)
461 if test $ac_cv_ipv6 = yes; then
462 AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
464 AC_MSG_WARN(*** IPv6 will not be supported ***)
472 AC_MSG_CHECKING([whether to use GnuTLS])
473 AC_MSG_RESULT($enable_gnutls)
474 if test "x$enable_gnutls" != "xno"; then
475 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.2,
477 AC_DEFINE(USE_GNUTLS, 1, gnutls)
478 echo "Building with GnuTLS"
481 echo "Building without gnutls"
483 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.11,
485 dnl No linking against libgcrypt needed
488 dnl linking against libgcrypt *is* needed
489 GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
491 AC_SUBST(GNUTLS_LIBS)
492 AC_SUBST(GNUTLS_CFLAGS)
495 dnl password encryption
500 AC_SEARCH_LIBS(encrypt, cipher, [], AC_MSG_ERROR(['encrypt'-function not found.]))
503 AC_SEARCH_LIBS(encrypt, crypt, [], AC_MSG_ERROR(['encrypt'-function not found.]))
510 AC_ARG_WITH(passcrypt-key, [ --with-passcrypt-key=KEY Key used to encode passwords (8 byte string)],
511 with_passcrypt_key="$withval", with_passcrypt_key="passkey0")
512 AC_SUBST(PASSCRYPT_KEY, $with_passcrypt_key)
514 dnl RC dir (will be default at a certain point in time)
515 AC_ARG_WITH(config-dir, [ --with-config-dir=RCDIR Local configuration dir (default: .claws-mail)],
516 ac_cv_with_config_dir="$withval", ac_cv_with_config_dir=".claws-mail")
517 if test x"$ac_cv_with_config_dir" = x""; then
518 ac_cv_with_config_dir=".claws-mail"
520 AC_DEFINE_UNQUOTED(CFG_RC_DIR, "$ac_cv_with_config_dir", Configuration directory)
522 dnl ************************
523 dnl ** GTK user interface **
524 dnl ************************
527 AM_CONDITIONAL(GTK3, false)
528 AM_CONDITIONAL(GTK2, true)
529 if test x"$enable_gtk3" = x"yes"; then
530 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0 cairo)
531 AM_CONDITIONAL(GTK3, true)
532 AM_CONDITIONAL(GTK2, false)
534 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16)
539 dnl enchant is used for spell checking
540 AC_MSG_CHECKING([whether to use enchant])
541 AC_MSG_RESULT($enable_enchant)
542 if test $enable_enchant = yes; then
543 PKG_CHECK_MODULES(ENCHANT, enchant >= 1.0.0,
545 AC_DEFINE(USE_ENCHANT, 1, enchant)
546 echo "Building with enchant"
548 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags enchant`"
551 echo "Building without enchant-notification"
554 AC_SUBST(ENCHANT_CFLAGS)
555 AC_SUBST(ENCHANT_LIBS)
558 dnl want crash dialog
559 if test $enable_crash_dialog = yes; then
560 dnl check if GDB is somewhere
561 AC_CHECK_PROG(enable_crash_dialog, gdb, yes, no)
562 AC_MSG_CHECKING([whether to use crash dialog])
563 if test $enable_crash_dialog = yes; then
564 AC_DEFINE(CRASH_DIALOG, 1, Pop up crash dialog)
566 AC_MSG_RESULT($enable_crash_dialog)
570 if test $enable_generic_umpc = yes; then
571 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
572 AC_MSG_RESULT($enable_generic_umpc)
576 if test $enable_maemo = yes; then
577 PKG_CHECK_MODULES(MAEMO, libosso hildon-libs hildon-fm gnome-vfs-2.0, enable_maemo=yes,
579 AC_SUBST(MAEMO_CFLAGS)
581 if test $enable_maemo = no; then
583 PKG_CHECK_MODULES(MAEMO, libosso hildon-1 hildon-fm-2 gnome-vfs-2.0 hal, enable_maemo=yes,
585 AC_SUBST(MAEMO_CFLAGS)
587 if test $enable_maemo = no; then
588 AC_MSG_ERROR(one of libosso hildon-libs hildon-fm hildon-1 hildon-fm-2 not found)
590 AC_DEFINE(MAEMO, 1, Build for maemo)
591 AC_DEFINE(CHINOOK, 1, Maemo chinook)
592 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
593 enable_generic_umpc=yes
596 AC_DEFINE(MAEMO, 1, Build for maemo)
597 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
598 enable_generic_umpc=yes
602 PKG_CHECK_MODULES(CONIC, conic, enable_conic=yes,
604 AC_SUBST(CONIC_CFLAGS)
606 if test $enable_conic = yes; then
607 AC_DEFINE(CONIC, 1, Have conic lib)
610 dnl Check for X-Face support
611 AC_MSG_CHECKING([whether to use compface])
612 if test x"$enable_compface" = xyes; then
614 AC_CHECK_LIB(compface, uncompface,
615 [AC_DEFINE(HAVE_LIBCOMPFACE, 1, Define if you want compface support.)],
616 [enable_compface=no])
617 if test x"$enable_compface" = xyes; then
618 COMPFACE_LIBS="-lcompface"
622 AC_SUBST(COMPFACE_LIBS)
627 dnl check for pthread support
628 AC_MSG_CHECKING([whether to use pthread])
629 if test x$enable_pthread = xno; then
634 # For W32 we need to use a special ptrhead lib. In this case we can't
635 # use AC_CHECK_LIB because it has no means of checking for a
636 # library installed under a different name. Checking for the
638 if test -n "${pthread_name}" ; then
641 AC_CHECK_LIB(pthread, pthread_create, :, enable_pthread=no)
643 AC_CHECK_HEADERS(pthread.h, :, enable_pthread=no)
645 if test x$enable_pthread = xyes; then
646 AC_DEFINE(USE_PTHREAD, 1, Define if you have pthread)
647 if test -z "${pthread_name}" ; then
648 PTHREAD_LIBS="-lpthread"
653 AC_SUBST(PTHREAD_LIBS)
656 dnl Check whether we need to pass -lresolv
657 dnl We know that we don't need it for W32.
659 if test x$os_win32 = xno; then
662 ac_cv_var__res_options=no
663 AC_TRY_LINK([#include <sys/types.h>
664 #include <sys/socket.h>
665 #include <netinet/in.h>
666 #include <arpa/nameser.h>
667 #include <resolv.h>],
668 [_res.options = RES_INIT;],
669 ac_cv_var__res_options=yes);
670 if test "$ac_cv_var__res_options" != "yes"; then
675 if test "x$LIBRESOLV" = "x"; then
676 AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
682 LIBS="$LIBS $LIBRESOLV"
684 dnl #######################################################################
685 dnl # Check for startup notification
686 dnl #######################################################################
687 if test "x$enable_startup_notification" = "xyes"; then
688 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
690 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
691 echo "Building with libstartup-notification"
692 enable_startup_notification=yes
695 echo "Building without libstartup-notification"
696 enable_startup_notification=no
699 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
700 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
703 dnl #######################################################################
704 dnl # Check for D-Bus support
705 dnl #######################################################################
706 if test "x$enable_dbus" = "xyes"; then
707 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60, dbus-glib-1 >= 0.60],
709 AC_DEFINE(HAVE_DBUS_GLIB, 1, [Define if glib bindings of D-Bus are available])
713 echo "D-Bus requirements not met. D-Bus support not activated."
716 AC_SUBST(DBUS_CFLAGS)
720 dnl #######################################################################
721 dnl # Configure address book support
722 dnl #######################################################################
724 dnl #######################################################################
725 dnl # Check for new address book support
726 dnl #######################################################################
727 AC_MSG_CHECKING([whether DBUS support for new address book is present])
728 if test x"$enable_dbus_glib" = xyes; then
730 AC_MSG_CHECKING([whether to enable new address book])
731 if test x"$enable_new_addrbook" = xyes; then
733 PKG_CHECK_MODULES(CONTACTS, [claws-contacts],
735 AC_DEFINE(USE_NEW_ADDRBOOK, 1, [Define if new address book is to be activated.])
736 enable_new_addrbook=yes
737 AC_SUBST(CONTACTS_CFLAGS)
738 AC_SUBST(CONTACTS_LIBS)
741 enable_new_addrbook=no
745 enable_new_addrbook=no
749 enable_new_addrbook=no
752 dnl #######################################################################
753 dnl # Check for old address book support
754 dnl #######################################################################
755 if test x"$enable_new_addrbook" = xno; then
756 dnl for LDAP support in addressbook
757 dnl no check for libraries; dynamically loaded
758 AC_MSG_CHECKING([whether to use LDAP])
759 if test x"$enable_ldap" = xno; then
761 elif test x"$enable_ldap" = xyes -a x"$enable_pthread" = xno; then
762 AC_MSG_RESULT(no - LDAP support needs pthread support)
765 elif test x"$platform_win32" = xyes; then
767 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
768 LDAP_LIBS="-lwldap32"
773 dnl check for available libraries, and pull them in
774 AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
775 AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
776 AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
777 AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
780 AC_CHECK_HEADERS(ldap.h lber.h,
784 if test "$enable_ldap" = yes; then
785 AC_CHECK_LIB(ldap, ldap_open,
790 AC_CHECK_LIB(ldap, ldap_start_tls_s,
791 [ ac_cv_have_tls=yes ],
792 [ ac_cv_have_tls=no ])
796 AC_MSG_CHECKING([whether ldap library is available])
797 AC_MSG_RESULT($enable_ldap)
799 AC_MSG_CHECKING([whether TLS library is available])
800 AC_MSG_RESULT($ac_cv_have_tls)
802 if test "$enable_ldap" = yes; then
803 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
804 LDAP_LIBS="$LDAP_LIBS -lldap"
806 if test "$ac_cv_have_tls" = yes; then
807 AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
809 dnl As of OpenLDAP API version 3000 a number of functions has
810 dnl been deprecated. As Claws-mail compiles and runs on many
811 dnl platforms and many versions of OpenLDAP we need to be able
812 dnl to switch between the old and new API because new API has
813 dnl added new functions replacing old ones and at the same time
814 dnl old functions has been changed.
815 dnl If cross-compiling defaults to enable deprecated features
816 dnl for maximum portability
817 AC_MSG_CHECKING([The API version of OpenLDAP])
821 [if (LDAP_API_VERSION >= 3000)
824 [AC_MSG_RESULT([version < 3000])
825 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)],
826 [AC_MSG_RESULT([version >= 3000])
827 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 1, Define if OpenLDAP API is at least version 3000.)],
828 [AC_MSG_RESULT([Enabling deprecated features in OpenLDAP])
829 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)
830 AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)]
835 dnl for JPilot support in addressbook
836 dnl no check for libraries; these are dynamically loaded
837 AC_MSG_CHECKING([whether to use JPilot])
838 if test "$enable_jpilot" = yes; then
840 AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h pi-version.h,
841 [ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
842 [ enable_jpilot=no ])
843 if test "$enable_jpilot" = no; then
844 AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h libpisock/pi-version.h,
846 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
849 AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" enable_jpilot="no"])
850 if test x"$enable_jpilot" = xyes; then
851 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
853 AC_MSG_NOTICE([JPilot support not available])
855 AC_SUBST(JPILOT_LIBS)
861 AM_CONDITIONAL(BUILD_NEWADDRBOOK, test x"$enable_new_addrbook" = x"yes")
863 dnl #######################################################################
864 dnl # Check for NetworkManager support
865 dnl #######################################################################
866 if test x"$enable_dbus_glib" = xyes; then
867 if test x"$enable_networkmanager" = xyes; then
868 PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, NetworkManager >= 0.6.2,
870 AC_DEFINE(HAVE_NETWORKMANAGER_SUPPORT, 1, [Define if NetworkManager support is to be included.])
871 echo "Building with NetworkManager support"
872 enable_networkmanager=yes
875 echo "NetworkManager not found."
876 enable_networkmanager=no
878 AC_SUBST(NETWORKMANAGER_SUPPORT_CFLAGS)
881 echo "NetworkManager support deactivated as D-Bus requirements were not met."
882 enable_networkmanager=no
886 AC_MSG_CHECKING([whether to use libetpan])
887 if test x"$enable_libetpan" = xyes; then
890 AC_PATH_PROG(libetpanconfig, [libetpan-config])
891 if test "x$libetpanconfig" != "x"; then
892 CPPFLAGS="$CPPFLAGS `$libetpanconfig --cflags 2>/dev/null`"
893 AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes])
894 if test "x$libetpan_result" = "xyes"; then
895 AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine])
896 LIBS="$LIBS `$libetpanconfig --libs 2>/dev/null`"
897 AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no])
898 AC_MSG_RESULT([$libetpan_result])
901 if test "x$libetpan_result" = "xyes"; then
902 LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
903 LIBETPAN_LIBS="`$libetpanconfig --libs`"
904 LIBETPAN_STABLE=`$libetpanconfig --version | grep -v ^0`
905 LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
906 if test x"$LIBETPAN_STABLE" != "x"; then
907 LIBETPAN_VERSION="100"
909 if test "$LIBETPAN_VERSION" -lt "057"; then
910 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/])
911 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
912 AC_MSG_ERROR([libetpan 0.57 not found])
914 AC_SUBST(LIBETPAN_FLAGS)
915 AC_SUBST(LIBETPAN_LIBS)
916 AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNTP support.)
918 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ])
919 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
920 AC_MSG_ERROR([libetpan 0.57 not found])
925 AM_CONDITIONAL(CLAWS_LIBETPAN, test "x$libetpan_result" = "xyes")
927 AC_MSG_CHECKING([whether to use valgrind])
928 if test x$enable_valgrind = xyes; then
930 PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
931 enable_valgrind=yes, enable_valgrind=no)
932 if test x"$enable_valgrind" = xyes; then
933 AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
935 AC_MSG_RESULT(not found)
940 AM_CONDITIONAL(CLAWS_VALGRIND, test x"$enable_valgrind" = x"yes")
942 dnl *************************
943 dnl ** section for plugins **
944 dnl *************************
948 MISSING_DEPS_PLUGINS=""
950 dnl First we set the enabled status - either enabled (yes), auto-enabled (auto)
951 dnl or (auto-)disabled (no for both)
953 dnl All plugins are auto-enabled except for Demo which is just there to help
954 dnl potential plugins writers.
956 AC_ARG_ENABLE(acpi_notifier-plugin,
957 [ --disable-acpi_notifier-plugin Do not build acpi_notifier plugin],
958 [enable_acpi_notifier_plugin=$enableval], [enable_acpi_notifier_plugin=auto])
960 AC_ARG_ENABLE(address_keeper-plugin,
961 [ --disable-address_keeper-plugin Do not build address_keeper plugin],
962 [enable_address_keeper_plugin=$enableval], [enable_address_keeper_plugin=auto])
964 AC_ARG_ENABLE(archive-plugin,
965 [ --disable-archive-plugin Do not build archive plugin],
966 [enable_archive_plugin=$enableval], [enable_archive_plugin=auto])
968 AC_ARG_ENABLE(att_remover-plugin,
969 [ --disable-att_remover-plugin Do not build att_remover plugin],
970 [enable_att_remover_plugin=$enableval], [enable_att_remover_plugin=auto])
972 AC_ARG_ENABLE(attachwarner-plugin,
973 [ --disable-attachwarner-plugin Do not build attachwarner plugin],
974 [enable_attachwarner_plugin=$enableval], [enable_attachwarner_plugin=auto])
976 AC_ARG_ENABLE(bogofilter-plugin,
977 [ --disable-bogofilter-plugin Do not build bogofilter plugin],
978 [enable_bogofilter_plugin=$enableval], [enable_bogofilter_plugin=auto])
980 AC_ARG_ENABLE(bsfilter-plugin,
981 [ --disable-bsfilter-plugin Do not build bsfilter plugin],
982 [enable_bsfilter_plugin=$enableval], [enable_bsfilter_plugin=auto])
984 AC_ARG_ENABLE(clamd-plugin,
985 [ --disable-clamd-plugin Do not build clamd plugin],
986 [enable_clamd_plugin=$enableval], [enable_clamd_plugin=auto])
988 AC_ARG_ENABLE(fancy-plugin,
989 [ --disable-fancy-plugin Do not build fancy plugin],
990 [enable_fancy_plugin=$enableval], [enable_fancy_plugin=auto])
992 AC_ARG_ENABLE(fetchinfo-plugin,
993 [ --disable-fetchinfo-plugin Do not build fetchinfo plugin],
994 [enable_fetchinfo_plugin=$enableval], [enable_fetchinfo_plugin=auto])
996 AC_ARG_ENABLE(gdata-plugin,
997 [ --disable-gdata-plugin Do not build gdata plugin],
998 [enable_gdata_plugin=$enableval], [enable_gdata_plugin=auto])
1000 AC_ARG_ENABLE(mailmbox-plugin,
1001 [ --disable-mailmbox-plugin Do not build mailmbox plugin],
1002 [enable_mailmbox_plugin=$enableval], [enable_mailmbox_plugin=auto])
1004 AC_ARG_ENABLE(newmail-plugin,
1005 [ --disable-newmail-plugin Do not build newmail plugin],
1006 [enable_newmail_plugin=$enableval], [enable_newmail_plugin=auto])
1008 AC_ARG_ENABLE(notification-plugin,
1009 [ --disable-notification-plugin Do not build notification plugin],
1010 [enable_notification_plugin=$enableval], [enable_notification_plugin=auto])
1012 AC_ARG_ENABLE(pdf_viewer-plugin,
1013 [ --disable-pdf_viewer-plugin Do not build pdf_viewer plugin],
1014 [enable_pdf_viewer_plugin=$enableval], [enable_pdf_viewer_plugin=auto])
1016 AC_ARG_ENABLE(perl-plugin,
1017 [ --disable-perl-plugin Do not build perl plugin],
1018 [enable_perl_plugin=$enableval], [enable_perl_plugin=auto])
1020 AC_ARG_ENABLE(python-plugin,
1021 [ --disable-python-plugin Do not build python plugin],
1022 [enable_python_plugin=$enableval], [enable_python_plugin=auto])
1024 AC_ARG_ENABLE(pgpcore-plugin,
1025 [ --disable-pgpcore-plugin Do not build pgpcore plugin],
1026 [enable_pgpcore_plugin=$enableval], [enable_pgpcore_plugin=auto])
1028 AC_ARG_ENABLE(pgpmime-plugin,
1029 [ --disable-pgpmime-plugin Do not build pgpmime plugin],
1030 [enable_pgpmime_plugin=$enableval], [enable_pgpmime_plugin=auto])
1032 AC_ARG_ENABLE(pgpinline-plugin,
1033 [ --disable-pgpinline-plugin Do not build pgpinline plugin],
1034 [enable_pgpinline_plugin=$enableval], [enable_pgpinline_plugin=auto])
1036 AC_ARG_ENABLE(rssyl-plugin,
1037 [ --disable-rssyl-plugin Do not build rssyl plugin],
1038 [enable_rssyl_plugin=$enableval], [enable_rssyl_plugin=auto])
1040 AC_ARG_ENABLE(smime-plugin,
1041 [ --disable-smime-plugin Do not build smime plugin],
1042 [enable_smime_plugin=$enableval], [enable_smime_plugin=auto])
1044 AC_ARG_ENABLE(spamassassin-plugin,
1045 [ --disable-spamassassin-plugin Do not build spamassassin plugin],
1046 [enable_spamassassin_plugin=$enableval], [enable_spamassassin_plugin=auto])
1048 AC_ARG_ENABLE(spam_report-plugin,
1049 [ --disable-spam_report-plugin Do not build spam_report plugin],
1050 [enable_spam_report_plugin=$enableval], [enable_spam_report_plugin=auto])
1052 AC_ARG_ENABLE(tnef_parse-plugin,
1053 [ --disable-tnef_parse-plugin Do not build tnef_parse plugin],
1054 [enable_tnef_parse_plugin=$enableval], [enable_tnef_parse_plugin=auto])
1056 AC_ARG_ENABLE(vcalendar-plugin,
1057 [ --disable-vcalendar-plugin Do not build vcalendar plugin],
1058 [enable_vcalendar_plugin=$enableval], [enable_vcalendar_plugin=auto])
1060 dnl disabled by default
1061 AC_ARG_ENABLE(demo-plugin,
1062 [ --enable-demo-plugin Build demo plugin],
1063 [enable_demo_plugin=$enableval], [enable_demo_plugin=no])
1066 dnl Then we check (unconditionnaly) for plugins dependencies
1067 dnl Some dependencies are optional, some mandatories. This is taken care of
1070 dnl During this dependancy check we do the checks themselves, define HAVE_X to
1071 dnl either yes or no, and do the AC_SUBST calls.
1073 dnl Archive: libarchive
1074 dnl Fancy: Webkit, curl, optionally libsoup-gnome
1076 dnl Notification: optionally libnotify libindicate libcanberra_gtk hotkey
1077 dnl Pdf-Viewer: libpoppler
1079 dnl PGP/Core: libgpgme
1080 dnl PGP/Mime: pgpcore libgpgme
1081 dnl PGP/Inline: pgpcore libgpgme
1082 dnl S/Mime: pgpcore libgpgme
1084 dnl RSSyl: libxml2 libcurl
1085 dnl SpamReport: libcurl
1086 dnl vCalendar: libcurl
1088 dnl libcurl ********************************************************************
1089 PKG_CHECK_MODULES(CURL, libcurl, HAVE_CURL=yes, HAVE_CURL=no)
1091 AC_SUBST(CURL_CFLAGS)
1093 dnl libxml2 ********************************************************************
1094 PKG_CHECK_MODULES(LIBXML, libxml-2.0, HAVE_LIBXML=yes, HAVE_LIBXML=no)
1095 AC_SUBST(LIBXML_LIBS)
1096 AC_SUBST(LIBXML_CFLAGS)
1098 dnl webkit *********************************************************************
1099 PKG_CHECK_MODULES(WEBKIT, webkit-1.0 >= 1.1.14, HAVE_WEBKIT=yes, HAVE_WEBKIT=no)
1100 AC_SUBST(WEBKIT_LIBS)
1101 AC_SUBST(WEBKIT_CFLAGS)
1103 dnl libsoup-gnome **************************************************************
1104 PKG_CHECK_MODULES(LIBSOUP_GNOME, libsoup-gnome-2.4 >= 2.26, HAVE_LIBSOUP_GNOME=yes, HAVE_LIBSOUP_GNOME=no)
1105 if test x"$HAVE_LIBSOUP_GNOME" = xyes; then
1106 AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [Define if libsoup is available])
1108 AC_SUBST(LIBSOUP_GNOME_CFLAGS)
1109 AC_SUBST(LIBSOUP_GNOME_LIBS)
1111 dnl libarchive *****************************************************************
1112 AC_SEARCH_LIBS([archive_read_new], [archive],
1113 ARCHIVE_LIBS=-larchive
1115 AC_SUBST(ARCHIVE_LIBS),
1119 dnl libgdata *******************************************************************
1120 dnl Plugin handles compatibility back to 0.6.4 so there are multiple checks.
1121 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9.1, HAVE_GDATA=yes, HAVE_GDATA=no)
1122 if test x"$HAVE_GDATA" = xyes; then
1123 AC_DEFINE(HAVE_GDATA_VERSION_0_9_1, 1, [at least version 0.9.1 of libgdata is available])
1124 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1126 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9, HAVE_GDATA=yes, HAVE_GDATA=no)
1128 if test x"$HAVE_GDATA" = xyes; then
1129 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1131 PKG_CHECK_MODULES(GDATA, libgdata >= 0.6.4, HAVE_GDATA=yes, HAVE_GDATA=no)
1133 if test x"$HAVE_GDATA" = xyes; then
1134 AC_DEFINE(CM_GDATA_CLIENT_ID, ["Claws Mail GData plugin"], [client id])
1136 AC_SUBST(GDATA_CFLAGS)
1137 AC_SUBST(GDATA_LIBS)
1139 dnl Poppler ********************************************************************
1140 PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4.2, HAVE_POPPLER=yes, HAVE_POPPLER=no)
1141 AC_SUBST(POPPLER_LIBS)
1142 AC_SUBST(POPPLER_CFLAGS)
1144 dnl check for Poppler extra features that we conditionally support
1145 if test x"$HAVE_POPPLER" = xyes; then
1147 CFLAGS="$POPPLER_CFLAGS $GTK_CFLAGS $GLIB_CFLAGS"
1148 AC_CHECK_DECL(POPPLER_DEST_NAMED,
1149 [AC_DEFINE([HAVE_POPPLER_DEST_NAMED], [], [Description])],
1150 ,[#include <poppler-action.h>])
1151 AC_CHECK_DECL(POPPLER_DEST_XYZ,
1152 [AC_DEFINE([HAVE_POPPLER_DEST_XYZ], [], [Description])],
1153 ,[#include <poppler-action.h>])
1157 dnl sed ************************************************************************
1158 AC_CHECK_PROG(HAVE_SED, sed, yes, no)
1160 dnl perl ***********************************************************************
1161 AC_CHECK_PROG(HAVE_PERL, perl, yes, no)
1162 if test x"$HAVE_PERL" = xyes; then
1163 AC_MSG_CHECKING(for perl >= 5.8.0)
1164 PERL_VER=`perl -e 'print $] > 5.0079999?"yes":"no"'`
1165 if test "$PERL_VER" = "yes"; then
1172 if test x"$HAVE_PERL" = xyes; then
1173 AC_MSG_CHECKING(for Perl compile flags)
1174 if test x"$HAVE_SED" = xno; then
1175 AC_MSG_RESULT(no - missing sed)
1178 PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
1179 PERL_CFLAGS=`echo $PERL_CFLAGS | sed 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'`
1180 PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts |sed 's/-lgdbm//'`
1181 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-ldb//'`
1182 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lndbm//'`
1183 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lc//'`
1188 AC_SUBST(PERL_CFLAGS)
1189 AC_SUBST(PERL_LDFLAGS)
1192 dnl Gpgme **********************************************************************
1193 AM_PATH_GPGME(1.0.0, HAVE_GPGME=yes, HAVE_GPGME=no)
1194 if test x"$HAVE_GPGME" = xyes; then
1195 AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.)
1196 AM_PATH_GPGME(1.1.1, AC_DEFINE(HAVE_GPGME_PKA_TRUST, 1, [Define if GPGME supports PKA.]))
1199 dnl Python *********************************************************************
1200 AM_PATH_PYTHON([2.5], [
1201 AC_PATH_PROG(PYTHON_CONFIG, python$PYTHON_VERSION-config)
1202 if test x"$PYTHON_CONFIG" = x"" ; then
1203 AC_PATH_PROG(PYTHON_CONFIG, python-config)
1205 if test x"$PYTHON_CONFIG" != x""; then
1206 PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
1207 PYTHON_LIBS=`$PYTHON_CONFIG --libs`
1208 PYTHON_PREFIX=`$PYTHON_CONFIG --prefix`
1211 AC_MSG_WARN(python-config not found. Maybe you need to install development packages for Python.)
1215 if test x"$HAVE_PYTHON" = xyes; then
1217 PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so"
1218 found_libpython_so="no"
1219 if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then
1220 found_libpython_so="yes"
1221 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"`
1223 if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then
1224 found_libpython_so="yes"
1225 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"`
1227 if test x"$found_libpython_so" != x"yes"; then
1228 AC_MSG_WARN(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.)
1232 if test x"$HAVE_PYTHON" = xyes; then
1233 PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.10.3, [AC_DEFINE(ENABLE_PYTHON, [1], [Enable Python support])], HAVE_PYTHON=no)
1236 AC_SUBST(PYTHON_SHARED_LIB)
1237 AC_SUBST(PYTHON_CFLAGS)
1238 AC_SUBST(PYTHON_LIBS)
1239 AC_SUBST(PYGTK_CFLAGS)
1240 AC_SUBST(PYGTK_LIBS)
1242 dnl libnotify ******************************************************************
1243 PKG_CHECK_MODULES(libnotify, libnotify >= 0.4.3, HAVE_LIBNOTIFY=yes, HAVE_LIBNOTIFY=no)
1244 if test x"$HAVE_LIBNOTIFY" = xyes; then
1245 AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify support is enabled])
1247 AC_SUBST(libnotify_CFLAGS)
1248 AC_SUBST(libnotify_LIBS)
1250 dnl libcanberra-gtk ************************************************************
1251 PKG_CHECK_MODULES(libcanberra_gtk, libcanberra-gtk >= 0.6, HAVE_LIBCANBERRA_GTK=yes, HAVE_LIBCANBERRA_GTK=no)
1252 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1253 AC_DEFINE(HAVE_LIBCANBERRA_GTK, 1, [Define if libcanberra-gtk support is enabled])
1255 AC_SUBST(libcanberra_gtk_CFLAGS)
1256 AC_SUBST(libcanberra_gtk_LIBS)
1258 dnl libindicate ****************************************************************
1259 dnl We support either 0.3+ or 0.5+
1260 LIBINDICATE_MODULE=indicate
1261 LIBINDICATE_REQUIRED=0.3.0
1263 PKG_CHECK_EXISTS(indicate-0.5 >= 0.5.0, LIBINDICATE_MODULE=indicate-0.5)
1264 PKG_CHECK_MODULES(libindicate, $LIBINDICATE_MODULE >= $LIBINDICATE_REQUIRED, HAVE_LIBINDICATE=yes, HAVE_LIBINDICATE=no)
1265 if test x"$HAVE_LIBINDICATE" = xyes; then
1266 AC_DEFINE(NOTIFICATION_INDICATOR, 1, [Activate support for indicators])
1268 AC_SUBST(libindicate_CFLAGS)
1269 AC_SUBST(libindicate_LIBS)
1271 dnl hotkeys ********************************************************************
1272 PKG_CHECK_MODULES(CM_NP_HOTKEY, [gio-2.0 >= 2.15.6 gio-unix-2.0 >= 2.15.6], HAVE_HOTKEYS=yes, HAVE_HOTKEYS=no)
1273 if test x"$HAVE_HOTKEYS" = xyes; then
1274 AC_DEFINE(NOTIFICATION_HOTKEYS, 1, Activate support for global hotkeys)
1276 AC_SUBST(CM_NP_HOTKEY_CFLAGS)
1277 AC_SUBST(CM_NP_HOTKEY_LIBS)
1280 dnl Third, we now cross the requested plugins and the available dependencies
1281 dnl If some dependencies are missing and the plugin was explicitely enabled,
1282 dnl we error out, else we only inform.
1284 AC_MSG_CHECKING([whether to build acpi_notifier plugin])
1285 if test x"$enable_acpi_notifier_plugin" != xno; then
1286 PLUGINS="$PLUGINS acpi_notifier"
1289 DISABLED_PLUGINS="$DISABLED_PLUGINS acpi_notifier"
1293 AC_MSG_CHECKING([whether to build address_keeper plugin])
1294 if test x"$enable_address_keeper_plugin" != xno; then
1295 PLUGINS="$PLUGINS address_keeper"
1298 DISABLED_PLUGINS="$DISABLED_PLUGINS address_keeper"
1302 AC_MSG_CHECKING([whether to build archive plugin])
1303 if test x"$enable_archive_plugin" != xno; then
1304 dependencies_missing=""
1306 if test x"$HAVE_ARCHIVE" = xno; then
1307 dependencies_missing="libarchive $dependencies_missing"
1310 if test x"$dependencies_missing" = x; then
1311 PLUGINS="$PLUGINS archive"
1313 elif test x"$enable_archive_plugin" = xauto; then
1315 AC_MSG_WARN("Plugin archive will not be built; missing $dependencies_missing")
1316 enable_archive_plugin=no
1317 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS archive"
1320 AC_MSG_ERROR("Plugin archive cannot be built; missing $dependencies_missing")
1323 DISABLED_PLUGINS="$DISABLED_PLUGINS archive"
1327 AC_MSG_CHECKING([whether to build att_remover plugin])
1328 if test x"$enable_att_remover_plugin" != xno; then
1329 PLUGINS="$PLUGINS att_remover"
1332 DISABLED_PLUGINS="$DISABLED_PLUGINS att_remover"
1336 AC_MSG_CHECKING([whether to build attachwarner plugin])
1337 if test x"$enable_attachwarner_plugin" != xno; then
1338 PLUGINS="$PLUGINS attachwarner"
1341 DISABLED_PLUGINS="$DISABLED_PLUGINS attachwarner"
1345 AC_MSG_CHECKING([whether to build bogofilter plugin])
1346 if test x"$enable_bogofilter_plugin" != xno; then
1347 PLUGINS="$PLUGINS bogofilter"
1350 DISABLED_PLUGINS="$DISABLED_PLUGINS bogofilter"
1354 AC_MSG_CHECKING([whether to build bsfilter plugin])
1355 if test x"$enable_bsfilter_plugin" != xno; then
1356 PLUGINS="$PLUGINS bsfilter"
1359 DISABLED_PLUGINS="$DISABLED_PLUGINS bsfilter"
1363 AC_MSG_CHECKING([whether to build clamd plugin])
1364 if test x"$enable_clamd_plugin" != xno; then
1365 PLUGINS="$PLUGINS clamd"
1368 DISABLED_PLUGINS="$DISABLED_PLUGINS clamd"
1372 AC_MSG_CHECKING([whether to build demo plugin])
1373 if test x"$enable_demo_plugin" != xno; then
1374 PLUGINS="$PLUGINS demo"
1377 DISABLED_PLUGINS="$DISABLED_PLUGINS demo"
1381 AC_MSG_CHECKING([whether to build fancy plugin])
1382 if test x"$enable_fancy_plugin" != xno; then
1383 dependencies_missing=""
1385 if test x"$HAVE_WEBKIT" = xno; then
1386 dependencies_missing="libwebkit-1.0 $dependencies_missing"
1388 if test x"$HAVE_CURL" = xno; then
1389 dependencies_missing="libcurl $dependencies_missing"
1392 if test x"$dependencies_missing" = x; then
1393 PLUGINS="$PLUGINS fancy"
1395 elif test x"$enable_fancy_plugin" = xauto; then
1397 AC_MSG_WARN("Plugin fancy will not be built; missing $dependencies_missing")
1398 enable_fancy_plugin=no
1399 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS fancy"
1402 AC_MSG_ERROR("Plugin fancy cannot be built; missing $dependencies_missing")
1405 DISABLED_PLUGINS="$DISABLED_PLUGINS fancy"
1409 AC_MSG_CHECKING([whether to build fetchinfo plugin])
1410 if test x"$enable_fetchinfo_plugin" != xno; then
1411 PLUGINS="$PLUGINS fetchinfo"
1414 DISABLED_PLUGINS="$DISABLED_PLUGINS fetchinfo"
1418 AC_MSG_CHECKING([whether to build gdata plugin])
1419 if test x"$enable_gdata_plugin" != xno; then
1420 dependencies_missing=""
1422 if test x"$HAVE_GDATA" = xno; then
1423 dependencies_missing="libgdata $dependencies_missing"
1426 if test x"$dependencies_missing" = x; then
1427 PLUGINS="$PLUGINS gdata"
1429 elif test x"$enable_gdata_plugin" = xauto; then
1431 AC_MSG_WARN("Plugin gdata will not be built; missing $dependencies_missing")
1432 enable_gdata_plugin=no
1433 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS gdata"
1436 AC_MSG_ERROR("Plugin gdata cannot be built; missing $dependencies_missing")
1439 DISABLED_PLUGINS="$DISABLED_PLUGINS gdata"
1443 AC_MSG_CHECKING([whether to build mailmbox plugin])
1444 if test x"$enable_mailmbox_plugin" != xno; then
1445 PLUGINS="$PLUGINS mailmbox"
1448 DISABLED_PLUGINS="$DISABLED_PLUGINS mailmbox"
1452 AC_MSG_CHECKING([whether to build newmail plugin])
1453 if test x"$enable_newmail_plugin" != xno; then
1454 PLUGINS="$PLUGINS newmail"
1457 DISABLED_PLUGINS="$DISABLED_PLUGINS newmail"
1461 AC_MSG_CHECKING([whether to build notification plugin])
1462 if test x"$enable_notification_plugin" != xno; then
1463 PLUGINS="$PLUGINS notification"
1466 AC_DEFINE(NOTIFICATION_POPUP, 1, Activate notification popup)
1467 AC_DEFINE(NOTIFICATION_BANNER, 1, Activate notification banner)
1468 AC_DEFINE(NOTIFICATION_COMMAND, 1, Activate notification shell command)
1469 AC_DEFINE(NOTIFICATION_TRAYICON, 1, Activate notification trayicon)
1470 if test x"$platform_win32" = xno; then
1471 AC_DEFINE(NOTIFICATION_LCDPROC, 1, Activate lcdproc support)
1474 notification_features="banner command"
1475 notification_missing_dependencies=""
1476 if test x"$HAVE_HOTKEYS" = xyes; then
1477 notification_features="$notification_features hotkeys"
1479 notification_missing_dependencies="$notification_missing_dependencies hotkeys"
1481 notification_features="$notification_features lcdproc"
1482 if test x"$HAVE_LIBINDICATE" = xyes; then
1483 notification_features="$notification_features libindicate"
1485 notification_missing_dependencies="$notification_missing_dependencies libindicate"
1487 if test x"$HAVE_LIBNOTIFY" = xyes; then
1488 notification_features="$notification_features libnotify"
1490 notification_missing_dependencies="$notification_missing_dependencies libnotify"
1492 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1493 notification_features="$notification_features libcanberra-gtk"
1495 notification_missing_dependencies="$notification_missing_dependencies libcanberra-gtk"
1497 notification_features="$notification_features popup trayicon"
1499 DISABLED_PLUGINS="$DISABLED_PLUGINS notification"
1503 AC_MSG_CHECKING([whether to build pdf_viewer plugin])
1504 if test x"$enable_pdf_viewer_plugin" != xno; then
1505 dependencies_missing=""
1507 if test x"$HAVE_POPPLER" = xno; then
1508 dependencies_missing="libpoppler-glib $dependencies_missing"
1511 if test x"$dependencies_missing" = x; then
1512 PLUGINS="$PLUGINS pdf_viewer"
1514 elif test x"$enable_pdf_viewer_plugin" = xauto; then
1516 AC_MSG_WARN("Plugin pdf_viewer will not be built; missing $dependencies_missing")
1517 enable_pdf_viewer_plugin=no
1518 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pdf_viewer"
1521 AC_MSG_ERROR("Plugin pdf_viewer cannot be built; missing $dependencies_missing")
1524 DISABLED_PLUGINS="$DISABLED_PLUGINS pdf_viewer"
1528 AC_MSG_CHECKING([whether to build perl plugin])
1529 if test x"$enable_perl_plugin" != xno; then
1530 dependencies_missing=""
1532 if test x"$HAVE_PERL" = xno; then
1533 dependencies_missing="perl $dependencies_missing"
1536 if test x"$dependencies_missing" = x; then
1537 PLUGINS="$PLUGINS perl"
1539 elif test x"$enable_perl_plugin" = xauto; then
1541 AC_MSG_WARN("Plugin perl will not be built; missing $dependencies_missing")
1542 enable_perl_plugin=no
1543 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS perl"
1546 AC_MSG_ERROR("Plugin perl cannot be built; missing $dependencies_missing")
1549 DISABLED_PLUGINS="$DISABLED_PLUGINS perl"
1553 AC_MSG_CHECKING([whether to build python plugin])
1554 if test x"$enable_python_plugin" != xno; then
1555 dependencies_missing=""
1557 if test x"$HAVE_PYTHON" = xno; then
1558 dependencies_missing="python $dependencies_missing"
1561 if test x"$dependencies_missing" = x; then
1562 PLUGINS="$PLUGINS python"
1564 elif test x"$enable_python_plugin" = xauto; then
1566 AC_MSG_WARN("Plugin python will not be built; missing $dependencies_missing")
1567 enable_python_plugin=no
1568 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS python"
1571 AC_MSG_ERROR("Plugin python cannot be built; missing $dependencies_missing")
1574 DISABLED_PLUGINS="$DISABLED_PLUGINS python"
1578 AC_MSG_CHECKING([whether to build pgpcore plugin])
1579 if test x"$enable_pgpcore_plugin" != xno; then
1580 dependencies_missing=""
1582 if test x"$HAVE_GPGME" = xno; then
1583 dependencies_missing="libgpgme $dependencies_missing"
1586 if test x"$dependencies_missing" = x; then
1587 PLUGINS="$PLUGINS pgpcore"
1589 elif test x"$enable_pgpcore_plugin" = xauto; then
1591 AC_MSG_WARN("Plugin pgpcore will not be built; missing $dependencies_missing")
1592 enable_pgpcore_plugin=no
1593 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpcore"
1596 AC_MSG_ERROR("Plugin pgpcore cannot be built; missing $dependencies_missing")
1599 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpcore"
1603 AC_MSG_CHECKING([whether to build pgpmime plugin])
1604 if test x"$enable_pgpmime_plugin" != xno; then
1605 dependencies_missing=""
1607 if test x"$HAVE_GPGME" = xno; then
1608 dependencies_missing="libgpgme $dependencies_missing"
1610 if test x"$enable_pgpcore_plugin" = xno; then
1611 dependencies_missing="pgpcore plugin $dependencies_missing"
1614 if test x"$dependencies_missing" = x; then
1615 PLUGINS="$PLUGINS pgpmime"
1617 elif test x"$enable_pgpmime_plugin" = xauto; then
1619 AC_MSG_WARN("Plugin pgpmime will not be built; missing $dependencies_missing")
1620 enable_pgpmime_plugin=no
1621 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpmime"
1624 AC_MSG_ERROR("Plugin pgpmime cannot be built; missing $dependencies_missing")
1627 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpmime"
1631 AC_MSG_CHECKING([whether to build pgpinline plugin])
1632 if test x"$enable_pgpinline_plugin" != xno; then
1633 dependencies_missing=""
1635 if test x"$HAVE_GPGME" = xno; then
1636 dependencies_missing="libgpgme $dependencies_missing"
1638 if test x"$enable_pgpcore_plugin" = xno; then
1639 dependencies_missing="pgpcore plugin $dependencies_missing"
1642 if test x"$dependencies_missing" = x; then
1643 PLUGINS="$PLUGINS pgpinline"
1645 elif test x"$enable_pgpinline_plugin" = xauto; then
1647 AC_MSG_WARN("Plugin pgpinline will not be built; missing $dependencies_missing")
1648 enable_pgpinline_plugin=no
1649 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpinline"
1652 AC_MSG_ERROR("Plugin pgpinline cannot be built; missing $dependencies_missing")
1655 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpinline"
1659 AC_MSG_CHECKING([whether to build rssyl plugin])
1660 if test x"$enable_rssyl_plugin" != xno; then
1661 dependencies_missing=""
1663 if test x"$HAVE_LIBXML" = xno; then
1664 dependencies_missing="libxml2 $dependencies_missing"
1666 if test x"$HAVE_CURL" = xno; then
1667 dependencies_missing="libcurl $dependencies_missing"
1670 if test x"$dependencies_missing" = x; then
1671 PLUGINS="$PLUGINS rssyl"
1673 elif test x"$enable_rssyl_plugin" = xauto; then
1675 AC_MSG_WARN("Plugin rssyl will not be built; missing $dependencies_missing")
1676 enable_rssyl_plugin=no
1677 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS rssyl"
1680 AC_MSG_ERROR("Plugin rssyl cannot be built; missing $dependencies_missing")
1683 DISABLED_PLUGINS="$DISABLED_PLUGINS rssyl"
1687 AC_MSG_CHECKING([whether to build spamassassin plugin])
1688 if test x"$enable_spamassassin_plugin" != xno; then
1689 PLUGINS="$PLUGINS spamassassin"
1693 DISABLED_PLUGINS="$DISABLED_PLUGINS spamassassin"
1697 AC_MSG_CHECKING([whether to build smime plugin])
1698 if test x"$enable_smime_plugin" != xno; then
1699 dependencies_missing=""
1701 if test x"$HAVE_GPGME" = xno; then
1702 dependencies_missing="libgpgme $dependencies_missing"
1704 if test x"$enable_pgpcore_plugin" = xno; then
1705 dependencies_missing="pgpcore plugin $dependencies_missing"
1708 if test x"$dependencies_missing" = x; then
1709 PLUGINS="$PLUGINS smime"
1711 elif test x"$enable_smime_plugin" = xauto; then
1713 AC_MSG_WARN("Plugin smime will not be built; missing $dependencies_missing")
1714 enable_smime_plugin=no
1715 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS smime"
1718 AC_MSG_ERROR("Plugin smime cannot be built; missing $dependencies_missing")
1721 DISABLED_PLUGINS="$DISABLED_PLUGINS smime"
1725 AC_MSG_CHECKING([whether to build spam_report plugin])
1726 if test x"$enable_spam_report_plugin" != xno; then
1727 dependencies_missing=""
1729 if test x"$HAVE_CURL" = xno; then
1730 dependencies_missing="libcurl $dependencies_missing"
1733 if test x"$dependencies_missing" = x; then
1734 PLUGINS="$PLUGINS spam_report"
1736 elif test x"$enable_spam_report_plugin" = xauto; then
1738 AC_MSG_WARN("Plugin spam_report will not be built; missing $dependencies_missing")
1739 enable_spam_report_plugin=no
1740 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS spam_report"
1743 AC_MSG_ERROR("Plugin spam_report cannot be built; missing $dependencies_missing")
1746 DISABLED_PLUGINS="$DISABLED_PLUGINS spam_report"
1750 AC_MSG_CHECKING([whether to build tnef_parse plugin])
1751 if test x"$enable_tnef_parse_plugin" != xno; then
1752 PLUGINS="$PLUGINS tnef_parse"
1755 DISABLED_PLUGINS="$DISABLED_PLUGINS tnef_parse"
1759 AC_MSG_CHECKING([whether to build vcalendar plugin])
1760 if test x"$enable_vcalendar_plugin" != xno; then
1761 dependencies_missing=""
1763 if test x"$HAVE_CURL" = xno; then
1764 dependencies_missing="libcurl $dependencies_missing"
1767 if test x"$HAVE_PERL" = xno; then
1768 dependencies_missing="perl $dependencies_missing"
1771 if test x"$dependencies_missing" = x; then
1772 PLUGINS="$PLUGINS vcalendar"
1774 elif test x"$enable_vcalendar_plugin" = xauto; then
1776 AC_MSG_WARN("Plugin vcalendar will not be built; missing $dependencies_missing")
1777 enable_vcalendar_plugin=no
1778 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS vcalendar"
1781 AC_MSG_ERROR("Plugin vcalendar cannot be built; missing $dependencies_missing")
1784 DISABLED_PLUGINS="$DISABLED_PLUGINS vcalendar"
1788 dnl And finally the automake conditionals.
1790 AM_CONDITIONAL(BUILD_ACPI_NOTIFIER_PLUGIN, test x"$enable_acpi_notifier_plugin" != xno)
1791 AM_CONDITIONAL(BUILD_ADDRESS_KEEPER_PLUGIN, test x"$enable_address_keeper_plugin" != xno)
1792 AM_CONDITIONAL(BUILD_ARCHIVE_PLUGIN, test x"$enable_archive_plugin" != xno)
1793 AM_CONDITIONAL(BUILD_ATT_REMOVER_PLUGIN, test x"$enable_att_remover_plugin" != xno)
1794 AM_CONDITIONAL(BUILD_ATTACHWARNER_PLUGIN, test x"$enable_attachwarner_plugin" != xno)
1795 AM_CONDITIONAL(BUILD_BOGOFILTER_PLUGIN, test x"$enable_bogofilter_plugin" != xno)
1796 AM_CONDITIONAL(BUILD_BSFILTER_PLUGIN, test x"$enable_bsfilter_plugin" != xno)
1797 AM_CONDITIONAL(BUILD_CLAMD_PLUGIN, test x"$enable_clamd_plugin" != xno)
1798 AM_CONDITIONAL(BUILD_DEMO_PLUGIN, test x"$enable_demo_plugin" != xno)
1799 AM_CONDITIONAL(BUILD_FANCY_PLUGIN, test x"$enable_fancy_plugin" != xno)
1800 AM_CONDITIONAL(BUILD_FETCHINFO_PLUGIN, test x"$enable_fetchinfo_plugin" != xno)
1801 AM_CONDITIONAL(BUILD_GDATA_PLUGIN, test x"$enable_gdata_plugin" != xno)
1802 AM_CONDITIONAL(BUILD_MAILMBOX_PLUGIN, test x"$enable_mailmbox_plugin" != xno)
1803 AM_CONDITIONAL(BUILD_NEWMAIL_PLUGIN, test x"$enable_newmail_plugin" != xno)
1804 AM_CONDITIONAL(BUILD_NOTIFICATION_PLUGIN, test x"$enable_notification_plugin" != xno)
1805 AM_CONDITIONAL(BUILD_HOTKEYS, test x"$enable_notification_plugin" != xno -a x"$HAVE_HOTKEYS" = xyes)
1806 AM_CONDITIONAL(BUILD_PDF_VIEWER_PLUGIN, test x"$enable_pdf_viewer_plugin" != xno)
1807 AM_CONDITIONAL(BUILD_PERL_PLUGIN, test x"$enable_perl_plugin" != xno)
1808 AM_CONDITIONAL(BUILD_PYTHON_PLUGIN, test x"$enable_python_plugin" != xno)
1809 AM_CONDITIONAL(BUILD_PGPCORE_PLUGIN, test x"$enable_pgpcore_plugin" != xno)
1810 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$enable_pgpmime_plugin" != xno)
1811 AM_CONDITIONAL(BUILD_PGPINLINE_PLUGIN, test x"$enable_pgpinline_plugin" != xno)
1812 AM_CONDITIONAL(BUILD_RSSYL_PLUGIN, test x"$enable_rssyl_plugin" != xno)
1813 AM_CONDITIONAL(BUILD_SMIME_PLUGIN, test x"$enable_smime_plugin" != xno)
1814 AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$enable_spamassassin_plugin" != xno)
1815 AM_CONDITIONAL(BUILD_SPAM_REPORT_PLUGIN, test x"$enable_spam_report_plugin" != xno)
1816 AM_CONDITIONAL(BUILD_TNEF_PARSE_PLUGIN, test x"$enable_tnef_parse_plugin" != xno)
1817 AM_CONDITIONAL(BUILD_VCALENDAR_PLUGIN, test x"$enable_vcalendar_plugin" != xno)
1820 dnl ****************************
1821 dnl ** Final configure output **
1822 dnl ****************************
1828 src/common/version.h
1831 src/common/passcrypt.h
1834 src/plugins/Makefile
1835 src/plugins/acpi_notifier/Makefile
1836 src/plugins/address_keeper/Makefile
1837 src/plugins/archive/Makefile
1838 src/plugins/att_remover/Makefile
1839 src/plugins/attachwarner/Makefile
1840 src/plugins/bogofilter/Makefile
1841 src/plugins/bsfilter/Makefile
1842 src/plugins/clamd/Makefile
1843 src/plugins/clamd/libclamd/Makefile
1844 src/plugins/demo/Makefile
1845 src/plugins/fancy/Makefile
1846 src/plugins/fetchinfo/Makefile
1847 src/plugins/gdata/Makefile
1848 src/plugins/mailmbox/Makefile
1849 src/plugins/newmail/Makefile
1850 src/plugins/notification/Makefile
1851 src/plugins/notification/gtkhotkey/Makefile
1852 src/plugins/pdf_viewer/Makefile
1853 src/plugins/perl/Makefile
1854 src/plugins/perl/tools/Makefile
1855 src/plugins/python/Makefile
1856 src/plugins/pgpcore/Makefile
1857 src/plugins/pgpmime/Makefile
1858 src/plugins/pgpinline/Makefile
1859 src/plugins/rssyl/Makefile
1860 src/plugins/smime/Makefile
1861 src/plugins/spamassassin/Makefile
1862 src/plugins/spam_report/Makefile
1863 src/plugins/tnef_parse/Makefile
1864 src/plugins/vcalendar/Makefile
1865 src/plugins/vcalendar/libical/Makefile
1866 src/plugins/vcalendar/libical/libical/icalversion.h
1867 src/plugins/vcalendar/libical/libical/Makefile
1868 src/plugins/vcalendar/libical/design-data/Makefile
1869 src/plugins/vcalendar/libical/scripts/Makefile
1876 manual/dist/Makefile
1877 manual/dist/pdf/Makefile
1878 manual/dist/ps/Makefile
1879 manual/dist/html/Makefile
1880 manual/dist/txt/Makefile
1882 manual/fr/dist/Makefile
1883 manual/fr/dist/pdf/Makefile
1884 manual/fr/dist/ps/Makefile
1885 manual/fr/dist/html/Makefile
1886 manual/fr/dist/txt/Makefile
1888 manual/pl/dist/Makefile
1889 manual/pl/dist/pdf/Makefile
1890 manual/pl/dist/ps/Makefile
1891 manual/pl/dist/html/Makefile
1892 manual/pl/dist/txt/Makefile
1894 manual/es/dist/Makefile
1895 manual/es/dist/pdf/Makefile
1896 manual/es/dist/ps/Makefile
1897 manual/es/dist/html/Makefile
1898 manual/es/dist/txt/Makefile
1900 manual/de/dist/Makefile
1901 manual/de/dist/pdf/Makefile
1902 manual/de/dist/ps/Makefile
1903 manual/de/dist/html/Makefile
1904 manual/de/dist/txt/Makefile
1908 dnl Output the configuration summary
1910 echo "$PACKAGE $VERSION"
1912 if test x"$enable_new_addrbook" = xyes; then
1913 echo "Using Address Book : New experimental interface"
1915 echo "Using Address Book : Old stable interface"
1916 echo "JPilot : $enable_jpilot"
1917 echo "LDAP : $enable_ldap"
1919 echo "gnuTLS : $enable_gnutls"
1920 echo "iconv : $am_cv_func_iconv"
1921 echo "compface : $enable_compface"
1922 echo "IPv6 : $enable_ipv6"
1923 echo "enchant : $enable_enchant"
1924 echo "IMAP4 : $enable_libetpan"
1925 echo "NNTP : $enable_libetpan"
1926 echo "Crash dialog : $enable_crash_dialog"
1927 echo "LibSM : $enable_libsm"
1928 echo "DBUS : $enable_dbus"
1929 echo "NetworkManager : $enable_networkmanager"
1930 echo "Manual : $enable_manual"
1931 echo "Generic UMPC code : $enable_generic_umpc"
1932 echo "Maemo build : $enable_maemo"
1933 echo "Config dir : $ac_cv_with_config_dir"
1937 for plugin in $PLUGINS; do
1939 if test x"$plugin" = xnotification; then
1941 for notif_feature in $notification_features; do
1942 echo " $notif_feature"
1944 if test "x$notification_missing_dependencies" != x; then
1945 echo " Disabled due to missing dependencies:"
1946 for notif_miss_dep in $notification_missing_dependencies; do
1947 echo " $notif_miss_dep"
1952 if test "x$DISABLED_PLUGINS" != x; then
1954 for plugin in $DISABLED_PLUGINS; do
1959 if test "x$MISSING_DEPS_PLUGINS" != x; then
1960 echo " Disabled due to missing dependencies:"
1961 for plugin in $MISSING_DEPS_PLUGINS; do
1966 echo "The binary will be installed in $prefix/bin"
1968 echo "Configure finished, type 'make' to build."