4 AC_CONFIG_AUX_DIR(config)
5 AC_CONFIG_MACRO_DIR([m4])
15 if test \( -d .git \); then
16 GIT_VERSION=`git describe --abbrev=6 --dirty --always`
18 GIT_VERSION=`sh -c '. ./version'`
20 MAJOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $1}'`
21 MINOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $2}'`
22 MICRO_VERSION=`echo $GIT_VERSION | awk -F- '{print $1}' | awk -F. '{print $3}'`
23 EXTRA_VERSION=`echo $GIT_VERSION | awk -F- '{print $2}'`
25 if test \( "x$EXTRA_VERSION" != "x" \); then
26 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}git${EXTRA_VERSION}
28 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
32 if test \( "x$EXTRA_RELEASE" != "x" \); then
33 VERSION=${VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
40 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
41 dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
42 dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
45 AC_SUBST(MAJOR_VERSION)
46 AC_SUBST(MINOR_VERSION)
47 AC_SUBST(MICRO_VERSION)
48 AC_SUBST(EXTRA_VERSION)
51 AC_CHECK_PROG(HAVE_GTK_ICON_CACHE, gtk-update-icon-cache, yes, no)
52 AM_CONDITIONAL(UPDATE_GTK_ICON_CACHE, test x"$HAVE_GTK_ICON_CACHE" = xyes)
54 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
55 if test x$PKG_CONFIG = xno ; then
56 AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])
59 dnl GNOME 2.x installed?
60 PKG_CHECK_MODULES(GNOME2, libgnome-2.0 >= 2.0, ac_enable_gnome2=yes, ac_enable_gnome2=no)
61 AM_CONDITIONAL(CLAWS_GNOME2, test x"$ac_enable_gnome2" = x"yes")
63 dnl libtool versioning
64 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
65 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
66 LT_REVISION=$INTERFACE_AGE
67 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
73 dnl Specify a header configuration file
74 AC_CONFIG_HEADERS(config.h)
75 AC_CONFIG_HEADERS(claws-features.h)
79 dnl Checks for programs.
99 dnl ******************************
101 dnl Not needed anymore because we
102 dnl do AC_CANONICAL_SYSTEM above
103 dnl ******************************
104 dnl AC_CANONICAL_HOST
106 dnl Copied from the official gtk+-2 configure.in
107 AC_MSG_CHECKING([for some Win32 platform])
109 *-*-mingw*|*-*-cygwin*)
111 LDFLAGS="$LDFLAGS -mwindows"
117 AC_MSG_RESULT([$platform_win32])
118 AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = x"yes")
120 AC_MSG_CHECKING([for native Win32])
129 AC_MSG_RESULT([$os_win32])
130 AM_CONDITIONAL(OS_WIN32, test x"$os_win32" = x"yes")
132 AC_MSG_CHECKING([for Cygwin])
141 AC_MSG_RESULT([$env_cygwin])
142 AM_CONDITIONAL(CYGWIN, test x"$env_cygwin" = x"yes")
144 if test "$GCC" = "yes"
146 CFLAGS="$CFLAGS -Wno-unused-function"
147 #CFLAGS="-g -Wall -Wno-unused-function"
150 AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
151 _gcc_cflags_save=$CFLAGS
152 CFLAGS="-Wno-pointer-sign"
153 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],_gcc_psign=yes,_gcc_psign=no)
154 AC_MSG_RESULT($_gcc_psign)
155 CFLAGS=$_gcc_cflags_save;
156 if test x"$_gcc_psign" = xyes ; then
157 CFLAGS="$CFLAGS -Wno-pointer-sign"
160 CFLAGS="$CFLAGS -Wall"
162 if test $USE_MAINTAINER_MODE = yes; then
163 CFLAGS="-g -Wall -Wno-pointer-sign -DUSE_MAINTAINER_MODE"
169 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
172 # Note that we need to link to pthreadGC2 in all cases. This
173 # is because some locking is used even when pthread support is
175 pthread_name=pthreadGC2
176 CFLAGS="$CFLAGS -mms-bitfields"
177 LIBS="$LIBS -l${pthread_name} -lws2_32 -lregex"
180 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
181 CFLAGS="$CFLAGS -std=gnu99 -DSOLARIS"
188 dnl floor and ceil are in -lm
192 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
195 LIBS="$LIBS $GTK_LIBS"
196 AC_CHECK_FUNCS(bind_textdomain_codeset)
200 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"
201 GETTEXT_PACKAGE=claws-mail
202 AC_SUBST(GETTEXT_PACKAGE)
203 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
205 AM_GNU_GETTEXT_VERSION([0.15])
206 AM_GNU_GETTEXT([external])
208 AC_ARG_ENABLE(manual,
209 [ --disable-manual Do not build user manual],
210 [enable_manual=$enableval], [enable_manual=yes])
213 [ --disable-libsm Do not build libSM support for session management],
214 [enable_libsm=$enableval], [enable_libsm=yes])
217 [ --disable-ipv6 Do not build IPv6 support],
218 [enable_ipv6=$enableval], [enable_ipv6=yes])
220 AC_ARG_ENABLE(gnutls,
221 [ --disable-gnutls Do not build GnuTLS support for SSL/TLS],
222 [enable_gnutls=$enableval], [enable_gnutls=yes])
224 AC_ARG_ENABLE(enchant,
225 [ --disable-enchant Do not build Enchant support for spell-checking],
226 [enable_enchant=$enableval], [enable_enchant=yes])
228 AC_ARG_ENABLE(crash-dialog,
229 [ --enable-crash-dialog Build crash dialog],
230 [enable_crash_dialog=$enableval], [enable_crash_dialog=no])
232 AC_ARG_ENABLE(generic-umpc,
233 [ --enable-generic-umpc Build generic UMPC code],
234 [enable_generic_umpc=$enableval], [enable_generic_umpc=no])
237 [ --enable-maemo Build for the Maemo platform],
238 [enable_maemo=$enableval], [enable_maemo=no])
240 AC_ARG_ENABLE(compface,
241 [ --disable-compface Do not build compface support for X-Face],
242 [enable_compface=$enableval], [enable_compface=yes])
244 AC_ARG_ENABLE(pthread,
245 [ --disable-pthread Do not build pthread support],
246 [enable_pthread=$enableval], [enable_pthread=yes])
248 AC_ARG_ENABLE(startup-notification,
249 [ --disable-startup-notification Do not startup notification support],
250 [enable_startup_notification=$enableval], [enable_startup_notification=yes])
253 [ --disable-dbus Do not build DBUS support],
254 [enable_dbus=$enableval], [enable_dbus=yes])
257 [ --disable-ldap Do not build LDAP support],
258 [enable_ldap=$enableval], [enable_ldap=yes])
260 AC_ARG_ENABLE(jpilot,
261 [ --disable-jpilot Do not build JPilot support],
262 [enable_jpilot=$enableval], [enable_jpilot=yes])
264 AC_ARG_ENABLE(networkmanager,
265 [ --disable-networkmanager Do not build NetworkManager support],
266 [enable_networkmanager=$enableval], [enable_networkmanager=yes])
268 AC_ARG_ENABLE(libetpan,
269 [ --disable-libetpan Do not build libetpan support for IMAP4/NNTP],
270 [enable_libetpan=$enableval], [enable_libetpan=yes])
272 AC_ARG_ENABLE(valgrind,
273 [ --disable-valgrind Do not build valgrind support for debugging],
274 [enable_valgrind=$enableval], [enable_valgrind=yes])
276 AC_ARG_ENABLE(new-addrbook,
277 [ --enable-new-addrbook Build new external address book support],
278 [enable_new_addrbook=$enableval], [enable_new_addrbook=no])
281 [ --enable-gtk3 Build GTK3 support],
282 [enable_gtk3=$enableval], [enable_gtk3=no])
284 AC_ARG_ENABLE(deprecated,
285 [ --disable-deprecated Disable deprecated GTK functions],
286 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
288 manualdir='${docdir}/manual'
289 AC_ARG_WITH(manualdir,
290 [ --with-manualdir=DIR Manual directory],
291 [manualdir="$withval"])
294 dnl ******************************
295 dnl ** Check for required tools **
296 dnl ** to build manuals **
297 dnl ******************************
299 AC_PATH_PROG(DOCBOOK2HTML, docbook2html)
300 AC_PATH_PROG(DOCBOOK2TXT, docbook2txt)
301 AC_PATH_PROG(DOCBOOK2PS, docbook2ps)
302 AC_PATH_PROG(DOCBOOK2PDF, docbook2pdf)
304 AM_CONDITIONAL(MANUAL_HTML, test -n "$DOCBOOK2HTML")
305 AM_CONDITIONAL(MANUAL_TXT, test -n "$DOCBOOK2TXT")
306 AM_CONDITIONAL(MANUAL_PDF, test -n "$DOCBOOK2PDF")
307 AM_CONDITIONAL(MANUAL_PS, test -n "$DOCBOOK2PS")
309 if test x"$enable_manual" = x"yes"; then
310 if test -n "$DOCBOOK2TXT" -o -n "$DOCBOOK2HTML" \
311 -o -n "$DOCBOOK2PS" -o -n "$DOCBOOK2PDF"; then
318 AM_CONDITIONAL(BUILD_MANUAL, test x"$enable_manual" = xyes)
320 dnl Set PACKAGE_DATA_DIR in config.h.
321 if test "x${datarootdir}" = 'x${prefix}/share'; then
322 if test "x${prefix}" = "xNONE"; then
323 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
325 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}",[PACKAGE_DATA_DIR])
328 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datarootdir}/${PACKAGE}",[PACKAGE_DATA_DIR])
331 AC_CHECK_LIB(xpg4, setlocale)
335 AC_MSG_CHECKING([whether to use LibSM])
336 if test x"$enable_libsm" = xyes; then
338 AC_CHECK_LIB(SM, SmcSaveYourselfDone,
339 [SM_LIBS="$X_LIBS -lSM -lICE"],enable_libsm=no,
341 AC_CHECK_HEADERS(X11/SM/SMlib.h,,enable_libsm=no)
342 if test x"$enable_libsm" = xyes; then
343 AC_DEFINE(HAVE_LIBSM, 1, [Define to 1 if you have libSM installed])
345 AC_MSG_RESULT(not found)
346 AC_MSG_WARN([*** LibSM will not be supported ***])
353 dnl Check for d_type member in struct dirent
354 AC_MSG_CHECKING([whether struct dirent has d_type member])
355 AC_CACHE_VAL(ac_cv_dirent_d_type,[
356 AC_TRY_COMPILE([#include <dirent.h>],
357 [struct dirent d; d.d_type = DT_REG;],
358 ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
360 AC_MSG_RESULT($ac_cv_dirent_d_type)
361 if test $ac_cv_dirent_d_type = yes; then
362 AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
363 Define if `struct dirent' has `d_type' member.)
366 # Check whether mkdir does not take the permission argument.
367 GNUPG_FUNC_MKDIR_TAKES_ONE_ARG
369 dnl Checks for header files.
373 AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
374 sys/param.h sys/utsname.h sys/select.h \
375 wchar.h wctype.h locale.h netdb.h)
376 AC_CHECK_HEADER([execinfo.h], [AC_DEFINE(HAVE_BACKTRACE,1,[Has backtrace*() needed for retrieving stack traces])])
377 AC_SEARCH_LIBS(backtrace_symbols, [execinfo])
379 dnl alf - Check for apache installation f*ck up. apache may also install an
380 dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
381 AC_TRY_COMPILE([#include <stdlib.h>
382 #include <fnmatch.h>],
383 [int x = USE_HSREGEX;],
384 ac_cv_have_apache_fnmatch=yes, ac_cv_have_apache_fnmatch=no)
385 if test $ac_cv_have_apache_fnmatch = yes; then
386 AC_DEFINE(HAVE_APACHE_FNMATCH, 1, Define if you need to work around apache regex/fnmatch !KLUDGE!)
388 AC_MSG_CHECKING([whether to use Apache regex header kludge])
389 AC_MSG_RESULT($ac_cv_have_apache_fnmatch)
391 dnl Checks for typedefs, structures, and compiler characteristics.
398 dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
399 dnl may be defined only in wchar.h (this happens with gcc-2.96).
400 dnl So we need to use this extended macro.
401 CLAWS_CHECK_TYPE(wint_t, unsigned int,
406 ], Define to `unsigned int' if <stddef.h> or <wchar.h> doesn't define.)
408 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
409 AC_CHECK_SIZEOF(unsigned short, 2)
410 AC_CHECK_SIZEOF(unsigned int, 4)
411 AC_CHECK_SIZEOF(unsigned long, 4)
413 dnl Checks for library functions.
415 AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
416 uname flock lockf inet_aton inet_addr \
417 fchmod mkstemp truncate getuid regcomp)
419 AC_CHECK_FUNCS(fgets_unlocked fwrite_unlocked)
421 dnl *****************
422 dnl ** common code **
423 dnl *****************
426 PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6)
428 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
429 AC_SUBST(GLIB_GENMARSHAL)
431 AC_SUBST(GLIB_CFLAGS)
434 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
436 LIBS="$LIBS $GTK_LIBS"
437 AC_CHECK_FUNCS(bind_textdomain_codeset)
440 dnl check for IPv6 option
441 dnl automated checks for IPv6 support.
442 AC_MSG_CHECKING([whether to use IPv6])
443 if test x"$enable_ipv6" = xyes; then
445 AC_MSG_CHECKING([for IPv6 support])
446 AC_CACHE_VAL(ac_cv_ipv6,[
447 AC_TRY_COMPILE([#define INET6
448 #include <sys/types.h>
449 #include <netinet/in.h>],
450 [int x = IPPROTO_IPV6; struct in6_addr a;],
451 ac_cv_ipv6=yes, ac_cv_ipv6=no)
453 AC_MSG_RESULT($ac_cv_ipv6)
454 if test $ac_cv_ipv6 = yes; then
455 AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
457 AC_MSG_WARN(*** IPv6 will not be supported ***)
465 AC_MSG_CHECKING([whether to use GnuTLS])
466 AC_MSG_RESULT($enable_gnutls)
467 if test "x$enable_gnutls" != "xno"; then
468 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.2,
470 AC_DEFINE(USE_GNUTLS, 1, gnutls)
471 echo "Building with GnuTLS"
474 echo "Building without gnutls"
476 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.11,
478 dnl No linking against libgcrypt needed
481 dnl linking against libgcrypt *is* needed
482 GNUTLS_LIBS="$GNUTLS_LIBS -lgcrypt"
484 AC_SUBST(GNUTLS_LIBS)
485 AC_SUBST(GNUTLS_CFLAGS)
488 dnl password encryption
493 AC_SEARCH_LIBS(encrypt, cipher, [], AC_MSG_ERROR(['encrypt'-function not found.]))
496 AC_SEARCH_LIBS(encrypt, crypt, [], AC_MSG_ERROR(['encrypt'-function not found.]))
503 AC_ARG_WITH(passcrypt-key, [ --with-passcrypt-key=KEY Key used to encode passwords (8 byte string)],
504 with_passcrypt_key="$withval", with_passcrypt_key="passkey0")
505 AC_SUBST(PASSCRYPT_KEY, $with_passcrypt_key)
507 dnl RC dir (will be default at a certain point in time)
508 AC_ARG_WITH(config-dir, [ --with-config-dir=RCDIR Local configuration dir (default: .claws-mail)],
509 ac_cv_with_config_dir="$withval", ac_cv_with_config_dir=".claws-mail")
510 if test x"$ac_cv_with_config_dir" = x""; then
511 ac_cv_with_config_dir=".claws-mail"
513 AC_DEFINE_UNQUOTED(CFG_RC_DIR, "$ac_cv_with_config_dir", Configuration directory)
515 dnl ************************
516 dnl ** GTK user interface **
517 dnl ************************
520 AM_CONDITIONAL(GTK3, false)
521 AM_CONDITIONAL(GTK2, true)
522 if test x"$enable_gtk3" = x"yes"; then
523 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 3.0 cairo)
524 AM_CONDITIONAL(GTK3, true)
525 AM_CONDITIONAL(GTK2, false)
527 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16)
532 dnl enchant is used for spell checking
533 AC_MSG_CHECKING([whether to use enchant])
534 AC_MSG_RESULT($enable_enchant)
535 if test $enable_enchant = yes; then
536 PKG_CHECK_MODULES(ENCHANT, enchant >= 1.0.0,
538 AC_DEFINE(USE_ENCHANT, 1, enchant)
539 echo "Building with enchant"
541 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags enchant`"
544 echo "Building without enchant-notification"
547 AC_SUBST(ENCHANT_CFLAGS)
548 AC_SUBST(ENCHANT_LIBS)
551 dnl want crash dialog
552 if test $enable_crash_dialog = yes; then
553 dnl check if GDB is somewhere
554 AC_CHECK_PROG(enable_crash_dialog, gdb, yes, no)
555 AC_MSG_CHECKING([whether to use crash dialog])
556 if test $enable_crash_dialog = yes; then
557 AC_DEFINE(CRASH_DIALOG, 1, Pop up crash dialog)
559 AC_MSG_RESULT($enable_crash_dialog)
563 if test $enable_generic_umpc = yes; then
564 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
565 AC_MSG_RESULT($enable_generic_umpc)
569 if test $enable_maemo = yes; then
570 PKG_CHECK_MODULES(MAEMO, libosso hildon-libs hildon-fm gnome-vfs-2.0, enable_maemo=yes,
572 AC_SUBST(MAEMO_CFLAGS)
574 if test $enable_maemo = no; then
576 PKG_CHECK_MODULES(MAEMO, libosso hildon-1 hildon-fm-2 gnome-vfs-2.0 hal, enable_maemo=yes,
578 AC_SUBST(MAEMO_CFLAGS)
580 if test $enable_maemo = no; then
581 AC_MSG_ERROR(one of libosso hildon-libs hildon-fm hildon-1 hildon-fm-2 not found)
583 AC_DEFINE(MAEMO, 1, Build for maemo)
584 AC_DEFINE(CHINOOK, 1, Maemo chinook)
585 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
586 enable_generic_umpc=yes
589 AC_DEFINE(MAEMO, 1, Build for maemo)
590 AC_DEFINE(GENERIC_UMPC, 1, Generic UMPC code)
591 enable_generic_umpc=yes
595 PKG_CHECK_MODULES(CONIC, conic, enable_conic=yes,
597 AC_SUBST(CONIC_CFLAGS)
599 if test $enable_conic = yes; then
600 AC_DEFINE(CONIC, 1, Have conic lib)
603 dnl Check for X-Face support
604 AC_MSG_CHECKING([whether to use compface])
605 if test x"$enable_compface" = xyes; then
607 AC_CHECK_LIB(compface, uncompface,
608 [AC_DEFINE(HAVE_LIBCOMPFACE, 1, Define if you want compface support.)],
609 [enable_compface=no])
610 if test x"$enable_compface" = xyes; then
611 COMPFACE_LIBS="-lcompface"
615 AC_SUBST(COMPFACE_LIBS)
620 dnl check for pthread support
621 AC_MSG_CHECKING([whether to use pthread])
622 if test x$enable_pthread = xno; then
627 # For W32 we need to use a special ptrhead lib. In this case we can't
628 # use AC_CHECK_LIB because it has no means of checking for a
629 # library installed under a different name. Checking for the
631 if test -n "${pthread_name}" ; then
634 AC_CHECK_LIB(pthread, pthread_create, :, enable_pthread=no)
636 AC_CHECK_HEADERS(pthread.h, :, enable_pthread=no)
638 if test x$enable_pthread = xyes; then
639 AC_DEFINE(USE_PTHREAD, 1, Define if you have pthread)
640 if test -z "${pthread_name}" ; then
641 PTHREAD_LIBS="-lpthread"
646 AC_SUBST(PTHREAD_LIBS)
649 dnl Check whether we need to pass -lresolv
650 dnl We know that we don't need it for W32.
652 if test x$os_win32 = xno; then
655 ac_cv_var__res_options=no
656 AC_TRY_LINK([#include <sys/types.h>
657 #include <sys/socket.h>
658 #include <netinet/in.h>
659 #include <arpa/nameser.h>
660 #include <resolv.h>],
661 [_res.options = RES_INIT;],
662 ac_cv_var__res_options=yes);
663 if test "$ac_cv_var__res_options" != "yes"; then
668 if test "x$LIBRESOLV" = "x"; then
669 AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
675 LIBS="$LIBS $LIBRESOLV"
677 dnl #######################################################################
678 dnl # Check for startup notification
679 dnl #######################################################################
680 if test "x$enable_startup_notification" = "xyes"; then
681 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
683 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
684 echo "Building with libstartup-notification"
685 enable_startup_notification=yes
688 echo "Building without libstartup-notification"
689 enable_startup_notification=no
692 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
693 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
696 dnl #######################################################################
697 dnl # Check for D-Bus support
698 dnl #######################################################################
699 if test "x$enable_dbus" = "xyes"; then
700 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60, dbus-glib-1 >= 0.60],
702 AC_DEFINE(HAVE_DBUS_GLIB, 1, [Define if glib bindings of D-Bus are available])
706 echo "D-Bus requirements not met. D-Bus support not activated."
709 AC_SUBST(DBUS_CFLAGS)
713 dnl #######################################################################
714 dnl # Configure address book support
715 dnl #######################################################################
717 dnl #######################################################################
718 dnl # Check for new address book support
719 dnl #######################################################################
720 AC_MSG_CHECKING([whether DBUS support for new address book is present])
721 if test x"$enable_dbus_glib" = xyes; then
723 AC_MSG_CHECKING([whether to enable new address book])
724 if test x"$enable_new_addrbook" = xyes; then
726 PKG_CHECK_MODULES(CONTACTS, [claws-contacts],
728 AC_DEFINE(USE_NEW_ADDRBOOK, 1, [Define if new address book is to be activated.])
729 enable_new_addrbook=yes
730 AC_SUBST(CONTACTS_CFLAGS)
731 AC_SUBST(CONTACTS_LIBS)
734 enable_new_addrbook=no
738 enable_new_addrbook=no
742 enable_new_addrbook=no
745 dnl #######################################################################
746 dnl # Check for old address book support
747 dnl #######################################################################
748 if test x"$enable_new_addrbook" = xno; then
749 dnl for LDAP support in addressbook
750 dnl no check for libraries; dynamically loaded
751 AC_MSG_CHECKING([whether to use LDAP])
752 if test x"$enable_ldap" = xno; then
754 elif test x"$enable_ldap" = xyes -a x"$enable_pthread" = xno; then
755 AC_MSG_RESULT(no - LDAP support needs pthread support)
758 elif test x"$platform_win32" = xyes; then
760 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
761 LDAP_LIBS="-lwldap32"
766 dnl check for available libraries, and pull them in
767 AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
768 AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
769 AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
770 AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
773 AC_CHECK_HEADERS(ldap.h lber.h,
777 if test "$enable_ldap" = yes; then
778 AC_CHECK_LIB(ldap, ldap_open,
783 AC_CHECK_LIB(ldap, ldap_start_tls_s,
784 [ ac_cv_have_tls=yes ],
785 [ ac_cv_have_tls=no ])
789 AC_MSG_CHECKING([whether ldap library is available])
790 AC_MSG_RESULT($enable_ldap)
792 AC_MSG_CHECKING([whether TLS library is available])
793 AC_MSG_RESULT($ac_cv_have_tls)
795 if test "$enable_ldap" = yes; then
796 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
797 LDAP_LIBS="$LDAP_LIBS -lldap"
799 if test "$ac_cv_have_tls" = yes; then
800 AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
802 dnl As of OpenLDAP API version 3000 a number of functions has
803 dnl been deprecated. As Claws-mail compiles and runs on many
804 dnl platforms and many versions of OpenLDAP we need to be able
805 dnl to switch between the old and new API because new API has
806 dnl added new functions replacing old ones and at the same time
807 dnl old functions has been changed.
808 dnl If cross-compiling defaults to enable deprecated features
809 dnl for maximum portability
810 AC_MSG_CHECKING([The API version of OpenLDAP])
814 [if (LDAP_API_VERSION >= 3000)
817 [AC_MSG_RESULT([version < 3000])
818 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)],
819 [AC_MSG_RESULT([version >= 3000])
820 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 1, Define if OpenLDAP API is at least version 3000.)],
821 [AC_MSG_RESULT([Enabling deprecated features in OpenLDAP])
822 AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)
823 AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)]
828 dnl for JPilot support in addressbook
829 dnl no check for libraries; these are dynamically loaded
830 AC_MSG_CHECKING([whether to use JPilot])
831 if test "$enable_jpilot" = yes; then
833 AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h pi-version.h,
834 [ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
835 [ enable_jpilot=no ])
836 if test "$enable_jpilot" = no; then
837 AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h libpisock/pi-version.h,
839 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
842 AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" enable_jpilot="no"])
843 if test x"$enable_jpilot" = xyes; then
844 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
846 AC_MSG_NOTICE([JPilot support not available])
848 AC_SUBST(JPILOT_LIBS)
854 AM_CONDITIONAL(BUILD_NEWADDRBOOK, test x"$enable_new_addrbook" = x"yes")
856 dnl #######################################################################
857 dnl # Check for NetworkManager support
858 dnl #######################################################################
859 if test x"$enable_dbus_glib" = xyes; then
860 if test x"$enable_networkmanager" = xyes; then
861 PKG_CHECK_MODULES(NETWORKMANAGER_SUPPORT, NetworkManager >= 0.6.2,
863 AC_DEFINE(HAVE_NETWORKMANAGER_SUPPORT, 1, [Define if NetworkManager support is to be included.])
864 echo "Building with NetworkManager support"
865 enable_networkmanager=yes
868 echo "NetworkManager not found."
869 enable_networkmanager=no
871 AC_SUBST(NETWORKMANAGER_SUPPORT_CFLAGS)
874 echo "NetworkManager support deactivated as D-Bus requirements were not met."
875 enable_networkmanager=no
879 AC_MSG_CHECKING([whether to use libetpan])
880 if test x"$enable_libetpan" = xyes; then
883 AC_PATH_PROG(libetpanconfig, [libetpan-config])
884 if test "x$libetpanconfig" != "x"; then
885 CPPFLAGS="$CPPFLAGS `$libetpanconfig --cflags 2>/dev/null`"
886 AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes])
887 if test "x$libetpan_result" = "xyes"; then
888 AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine])
889 LIBS="$LIBS `$libetpanconfig --libs 2>/dev/null`"
890 AC_TRY_LINK([#include <libetpan/dbstorage.h>], [db_mailstorage_init(NULL, NULL);], [libetpan_result=yes], [libetpan_result=no])
891 AC_MSG_RESULT([$libetpan_result])
894 if test "x$libetpan_result" = "xyes"; then
895 LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
896 LIBETPAN_LIBS="`$libetpanconfig --libs`"
897 LIBETPAN_STABLE=`$libetpanconfig --version | grep -v ^0`
898 LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
899 if test x"$LIBETPAN_STABLE" != "x"; then
900 LIBETPAN_VERSION="100"
902 if test "$LIBETPAN_VERSION" -lt "057"; then
903 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/])
904 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
905 AC_MSG_ERROR([libetpan 0.57 not found])
907 AC_SUBST(LIBETPAN_FLAGS)
908 AC_SUBST(LIBETPAN_LIBS)
909 AC_DEFINE(HAVE_LIBETPAN, 1, Define if you want IMAP and/or NNTP support.)
911 AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ ])
912 AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
913 AC_MSG_ERROR([libetpan 0.57 not found])
918 AM_CONDITIONAL(CLAWS_LIBETPAN, test "x$libetpan_result" = "xyes")
920 AC_MSG_CHECKING([whether to use valgrind])
921 if test x$enable_valgrind = xyes; then
923 PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
924 enable_valgrind=yes, enable_valgrind=no)
925 if test x"$enable_valgrind" = xyes; then
926 AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
928 AC_MSG_RESULT(not found)
933 AM_CONDITIONAL(CLAWS_VALGRIND, test x"$enable_valgrind" = x"yes")
935 dnl *************************
936 dnl ** section for plugins **
937 dnl *************************
941 MISSING_DEPS_PLUGINS=""
943 dnl First we set the enabled status - either enabled (yes), auto-enabled (auto)
944 dnl or (auto-)disabled (no for both)
946 dnl All plugins are auto-enabled except for Demo which is just there to help
947 dnl potential plugins writers.
949 AC_ARG_ENABLE(acpi_notifier-plugin,
950 [ --disable-acpi_notifier-plugin Do not build acpi_notifier plugin],
951 [enable_acpi_notifier_plugin=$enableval], [enable_acpi_notifier_plugin=auto])
953 AC_ARG_ENABLE(address_keeper-plugin,
954 [ --disable-address_keeper-plugin Do not build address_keeper plugin],
955 [enable_address_keeper_plugin=$enableval], [enable_address_keeper_plugin=auto])
957 AC_ARG_ENABLE(archive-plugin,
958 [ --disable-archive-plugin Do not build archive plugin],
959 [enable_archive_plugin=$enableval], [enable_archive_plugin=auto])
961 AC_ARG_ENABLE(att_remover-plugin,
962 [ --disable-att_remover-plugin Do not build att_remover plugin],
963 [enable_att_remover_plugin=$enableval], [enable_att_remover_plugin=auto])
965 AC_ARG_ENABLE(attachwarner-plugin,
966 [ --disable-attachwarner-plugin Do not build attachwarner plugin],
967 [enable_attachwarner_plugin=$enableval], [enable_attachwarner_plugin=auto])
969 AC_ARG_ENABLE(bogofilter-plugin,
970 [ --disable-bogofilter-plugin Do not build bogofilter plugin],
971 [enable_bogofilter_plugin=$enableval], [enable_bogofilter_plugin=auto])
973 AC_ARG_ENABLE(bsfilter-plugin,
974 [ --disable-bsfilter-plugin Do not build bsfilter plugin],
975 [enable_bsfilter_plugin=$enableval], [enable_bsfilter_plugin=auto])
977 AC_ARG_ENABLE(clamd-plugin,
978 [ --disable-clamd-plugin Do not build clamd plugin],
979 [enable_clamd_plugin=$enableval], [enable_clamd_plugin=auto])
981 AC_ARG_ENABLE(fancy-plugin,
982 [ --disable-fancy-plugin Do not build fancy plugin],
983 [enable_fancy_plugin=$enableval], [enable_fancy_plugin=auto])
985 AC_ARG_ENABLE(fetchinfo-plugin,
986 [ --disable-fetchinfo-plugin Do not build fetchinfo plugin],
987 [enable_fetchinfo_plugin=$enableval], [enable_fetchinfo_plugin=auto])
989 AC_ARG_ENABLE(gdata-plugin,
990 [ --disable-gdata-plugin Do not build gdata plugin],
991 [enable_gdata_plugin=$enableval], [enable_gdata_plugin=auto])
993 AC_ARG_ENABLE(mailmbox-plugin,
994 [ --disable-mailmbox-plugin Do not build mailmbox plugin],
995 [enable_mailmbox_plugin=$enableval], [enable_mailmbox_plugin=auto])
997 AC_ARG_ENABLE(newmail-plugin,
998 [ --disable-newmail-plugin Do not build newmail plugin],
999 [enable_newmail_plugin=$enableval], [enable_newmail_plugin=auto])
1001 AC_ARG_ENABLE(notification-plugin,
1002 [ --disable-notification-plugin Do not build notification plugin],
1003 [enable_notification_plugin=$enableval], [enable_notification_plugin=auto])
1005 AC_ARG_ENABLE(pdf_viewer-plugin,
1006 [ --disable-pdf_viewer-plugin Do not build pdf_viewer plugin],
1007 [enable_pdf_viewer_plugin=$enableval], [enable_pdf_viewer_plugin=auto])
1009 AC_ARG_ENABLE(perl-plugin,
1010 [ --disable-perl-plugin Do not build perl plugin],
1011 [enable_perl_plugin=$enableval], [enable_perl_plugin=auto])
1013 AC_ARG_ENABLE(python-plugin,
1014 [ --disable-python-plugin Do not build python plugin],
1015 [enable_python_plugin=$enableval], [enable_python_plugin=auto])
1017 AC_ARG_ENABLE(pgpcore-plugin,
1018 [ --disable-pgpcore-plugin Do not build pgpcore plugin],
1019 [enable_pgpcore_plugin=$enableval], [enable_pgpcore_plugin=auto])
1021 AC_ARG_ENABLE(pgpmime-plugin,
1022 [ --disable-pgpmime-plugin Do not build pgpmime plugin],
1023 [enable_pgpmime_plugin=$enableval], [enable_pgpmime_plugin=auto])
1025 AC_ARG_ENABLE(pgpinline-plugin,
1026 [ --disable-pgpinline-plugin Do not build pgpinline plugin],
1027 [enable_pgpinline_plugin=$enableval], [enable_pgpinline_plugin=auto])
1029 AC_ARG_ENABLE(rssyl-plugin,
1030 [ --disable-rssyl-plugin Do not build rssyl plugin],
1031 [enable_rssyl_plugin=$enableval], [enable_rssyl_plugin=auto])
1033 AC_ARG_ENABLE(smime-plugin,
1034 [ --disable-smime-plugin Do not build smime plugin],
1035 [enable_smime_plugin=$enableval], [enable_smime_plugin=auto])
1037 AC_ARG_ENABLE(spamassassin-plugin,
1038 [ --disable-spamassassin-plugin Do not build spamassassin plugin],
1039 [enable_spamassassin_plugin=$enableval], [enable_spamassassin_plugin=auto])
1041 AC_ARG_ENABLE(spam_report-plugin,
1042 [ --disable-spam_report-plugin Do not build spam_report plugin],
1043 [enable_spam_report_plugin=$enableval], [enable_spam_report_plugin=auto])
1045 AC_ARG_ENABLE(tnef_parse-plugin,
1046 [ --disable-tnef_parse-plugin Do not build tnef_parse plugin],
1047 [enable_tnef_parse_plugin=$enableval], [enable_tnef_parse_plugin=auto])
1049 AC_ARG_ENABLE(vcalendar-plugin,
1050 [ --disable-vcalendar-plugin Do not build vcalendar plugin],
1051 [enable_vcalendar_plugin=$enableval], [enable_vcalendar_plugin=auto])
1053 dnl disabled by default
1054 AC_ARG_ENABLE(demo-plugin,
1055 [ --enable-demo-plugin Build demo plugin],
1056 [enable_demo_plugin=$enableval], [enable_demo_plugin=no])
1059 dnl Then we check (unconditionnaly) for plugins dependencies
1060 dnl Some dependencies are optional, some mandatories. This is taken care of
1063 dnl During this dependancy check we do the checks themselves, define HAVE_X to
1064 dnl either yes or no, and do the AC_SUBST calls.
1066 dnl Archive: libarchive
1067 dnl Fancy: Webkit, curl, optionally libsoup-gnome
1069 dnl Notification: optionally libnotify libindicate libcanberra_gtk hotkey
1070 dnl Pdf-Viewer: libpoppler
1072 dnl PGP/Core: libgpgme
1073 dnl PGP/Mime: pgpcore libgpgme
1074 dnl PGP/Inline: pgpcore libgpgme
1075 dnl S/Mime: pgpcore libgpgme
1077 dnl RSSyl: libxml2 libcurl
1078 dnl SpamReport: libcurl
1079 dnl vCalendar: libcurl
1081 dnl libcurl ********************************************************************
1082 PKG_CHECK_MODULES(CURL, libcurl, HAVE_CURL=yes, HAVE_CURL=no)
1084 AC_SUBST(CURL_CFLAGS)
1086 dnl libxml2 ********************************************************************
1087 PKG_CHECK_MODULES(LIBXML, libxml-2.0, HAVE_LIBXML=yes, HAVE_LIBXML=no)
1088 AC_SUBST(LIBXML_LIBS)
1089 AC_SUBST(LIBXML_CFLAGS)
1091 dnl webkit *********************************************************************
1092 PKG_CHECK_MODULES(WEBKIT, webkit-1.0 >= 1.1.14, HAVE_WEBKIT=yes, HAVE_WEBKIT=no)
1093 AC_SUBST(WEBKIT_LIBS)
1094 AC_SUBST(WEBKIT_CFLAGS)
1096 dnl libsoup-gnome **************************************************************
1097 PKG_CHECK_MODULES(LIBSOUP_GNOME, libsoup-gnome-2.4 >= 2.26, HAVE_LIBSOUP_GNOME=yes, HAVE_LIBSOUP_GNOME=no)
1098 if test x"$HAVE_LIBSOUP_GNOME" = xyes; then
1099 AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [Define if libsoup is available])
1101 AC_SUBST(LIBSOUP_GNOME_CFLAGS)
1102 AC_SUBST(LIBSOUP_GNOME_LIBS)
1104 dnl libarchive *****************************************************************
1105 AC_SEARCH_LIBS([archive_read_new], [archive],
1106 ARCHIVE_LIBS=-larchive
1108 AC_SUBST(ARCHIVE_LIBS),
1112 dnl libgdata *******************************************************************
1113 dnl Plugin handles compatibility back to 0.6.4 so there are multiple checks.
1114 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9.1, HAVE_GDATA=yes, HAVE_GDATA=no)
1115 if test x"$HAVE_GDATA" = xyes; then
1116 AC_DEFINE(HAVE_GDATA_VERSION_0_9_1, 1, [at least version 0.9.1 of libgdata is available])
1117 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1119 PKG_CHECK_MODULES(GDATA, libgdata >= 0.9, HAVE_GDATA=yes, HAVE_GDATA=no)
1121 if test x"$HAVE_GDATA" = xyes; then
1122 AC_DEFINE(HAVE_GDATA_VERSION_0_9, 1, [at least version 0.9 of libgdata is available])
1124 PKG_CHECK_MODULES(GDATA, libgdata >= 0.6.4, HAVE_GDATA=yes, HAVE_GDATA=no)
1126 if test x"$HAVE_GDATA" = xyes; then
1127 AC_DEFINE(CM_GDATA_CLIENT_ID, ["Claws Mail GData plugin"], [client id])
1129 AC_SUBST(GDATA_CFLAGS)
1130 AC_SUBST(GDATA_LIBS)
1132 dnl Poppler ********************************************************************
1133 PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4.2, HAVE_POPPLER=yes, HAVE_POPPLER=no)
1134 AC_SUBST(POPPLER_LIBS)
1135 AC_SUBST(POPPLER_CFLAGS)
1137 dnl check for Poppler extra features that we conditionally support
1138 if test x"$HAVE_POPPLER" = xyes; then
1140 CFLAGS="$POPPLER_CFLAGS $GTK_CFLAGS $GLIB_CFLAGS"
1141 AC_CHECK_DECL(POPPLER_DEST_NAMED,
1142 [AC_DEFINE([HAVE_POPPLER_DEST_NAMED], [], [Description])],
1143 ,[#include <poppler-action.h>])
1144 AC_CHECK_DECL(POPPLER_DEST_XYZ,
1145 [AC_DEFINE([HAVE_POPPLER_DEST_XYZ], [], [Description])],
1146 ,[#include <poppler-action.h>])
1150 dnl sed ************************************************************************
1151 AC_CHECK_PROG(HAVE_SED, sed, yes, no)
1153 dnl perl ***********************************************************************
1154 AC_CHECK_PROG(HAVE_PERL, perl, yes, no)
1155 if test x"$HAVE_PERL" = xyes; then
1156 AC_MSG_CHECKING(for perl >= 5.8.0)
1157 PERL_VER=`perl -e 'print $] > 5.0079999?"yes":"no"'`
1158 if test "$PERL_VER" = "yes"; then
1165 if test x"$HAVE_PERL" = xyes; then
1166 AC_MSG_CHECKING(for Perl compile flags)
1167 if test x"$HAVE_SED" = xno; then
1168 AC_MSG_RESULT(no - missing sed)
1171 PERL_CFLAGS=`perl -MExtUtils::Embed -e ccopts`
1172 PERL_CFLAGS=`echo $PERL_CFLAGS | sed 's/-D_FILE_OFFSET_BITS=[[0-9]]*//'`
1173 PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts |sed 's/-lgdbm//'`
1174 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-ldb//'`
1175 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lndbm//'`
1176 PERL_LDFLAGS=`echo $PERL_LDFLAGS |sed 's/-lc//'`
1181 AC_SUBST(PERL_CFLAGS)
1182 AC_SUBST(PERL_LDFLAGS)
1185 dnl Gpgme **********************************************************************
1186 AM_PATH_GPGME(1.0.0, HAVE_GPGME=yes, HAVE_GPGME=no)
1187 if test x"$HAVE_GPGME" = xyes; then
1188 AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.)
1189 AM_PATH_GPGME(1.1.1, AC_DEFINE(HAVE_GPGME_PKA_TRUST, 1, [Define if GPGME supports PKA.]))
1192 dnl Python *********************************************************************
1193 AM_PATH_PYTHON([2.5], [
1194 AC_PATH_PROG(PYTHON_CONFIG, python$PYTHON_VERSION-config)
1195 if test x"$PYTHON_CONFIG" = x"" ; then
1196 AC_PATH_PROG(PYTHON_CONFIG, python-config)
1198 if test x"$PYTHON_CONFIG" != x""; then
1199 PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
1200 PYTHON_LIBS=`$PYTHON_CONFIG --libs`
1201 PYTHON_PREFIX=`$PYTHON_CONFIG --prefix`
1204 AC_MSG_WARN(python-config not found. Maybe you need to install development packages for Python.)
1208 if test x"$HAVE_PYTHON" = xyes; then
1210 PYTHON_SO_FILE="libpython${PYTHON_VERSION}.so"
1211 found_libpython_so="no"
1212 if test -f "$PYTHON_PREFIX/lib/$PYTHON_SO_FILE"; then
1213 found_libpython_so="yes"
1214 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib/$PYTHON_SO_FILE\"))"`
1216 if test -f "$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE"; then
1217 found_libpython_so="yes"
1218 PYTHON_SHARED_LIB=`python -c "import os,sys; print os.path.basename(os.path.realpath(\"$PYTHON_PREFIX/lib64/$PYTHON_SO_FILE\"))"`
1220 if test x"$found_libpython_so" != x"yes"; then
1221 AC_MSG_WARN(Could not find Python shared libary: $PYTHON_SO_FILE does not exist. Maybe you need to install development packages for Python.)
1225 if test x"$HAVE_PYTHON" = xyes; then
1226 PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.10.3, [AC_DEFINE(ENABLE_PYTHON, [1], [Enable Python support])], HAVE_PYTHON=no)
1229 AC_SUBST(PYTHON_SHARED_LIB)
1230 AC_SUBST(PYTHON_CFLAGS)
1231 AC_SUBST(PYTHON_LIBS)
1232 AC_SUBST(PYGTK_CFLAGS)
1233 AC_SUBST(PYGTK_LIBS)
1235 dnl libnotify ******************************************************************
1236 PKG_CHECK_MODULES(libnotify, libnotify >= 0.4.3, HAVE_LIBNOTIFY=yes, HAVE_LIBNOTIFY=no)
1237 if test x"$HAVE_LIBNOTIFY" = xyes; then
1238 AC_DEFINE(HAVE_LIBNOTIFY, 1, [Define if libnotify support is enabled])
1240 AC_SUBST(libnotify_CFLAGS)
1241 AC_SUBST(libnotify_LIBS)
1243 dnl libcanberra-gtk ************************************************************
1244 PKG_CHECK_MODULES(libcanberra_gtk, libcanberra-gtk >= 0.6, HAVE_LIBCANBERRA_GTK=yes, HAVE_LIBCANBERRA_GTK=no)
1245 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1246 AC_DEFINE(HAVE_LIBCANBERRA_GTK, 1, [Define if libcanberra-gtk support is enabled])
1248 AC_SUBST(libcanberra_gtk_CFLAGS)
1249 AC_SUBST(libcanberra_gtk_LIBS)
1251 dnl libindicate ****************************************************************
1252 dnl We support either 0.3+ or 0.5+
1253 LIBINDICATE_MODULE=indicate
1254 LIBINDICATE_REQUIRED=0.3.0
1256 PKG_CHECK_EXISTS(indicate-0.5 >= 0.5.0, LIBINDICATE_MODULE=indicate-0.5)
1257 PKG_CHECK_MODULES(libindicate, $LIBINDICATE_MODULE >= $LIBINDICATE_REQUIRED, HAVE_LIBINDICATE=yes, HAVE_LIBINDICATE=no)
1258 if test x"$HAVE_LIBINDICATE" = xyes; then
1259 AC_DEFINE(NOTIFICATION_INDICATOR, 1, [Activate support for indicators])
1261 AC_SUBST(libindicate_CFLAGS)
1262 AC_SUBST(libindicate_LIBS)
1264 dnl hotkeys ********************************************************************
1265 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)
1266 if test x"$HAVE_HOTKEYS" = xyes; then
1267 AC_DEFINE(NOTIFICATION_HOTKEYS, 1, Activate support for global hotkeys)
1269 AC_SUBST(CM_NP_HOTKEY_CFLAGS)
1270 AC_SUBST(CM_NP_HOTKEY_LIBS)
1273 dnl Third, we now cross the requested plugins and the available dependencies
1274 dnl If some dependencies are missing and the plugin was explicitely enabled,
1275 dnl we error out, else we only inform.
1277 AC_MSG_CHECKING([whether to build acpi_notifier plugin])
1278 if test x"$enable_acpi_notifier_plugin" != xno; then
1279 PLUGINS="$PLUGINS acpi_notifier"
1282 DISABLED_PLUGINS="$DISABLED_PLUGINS acpi_notifier"
1286 AC_MSG_CHECKING([whether to build address_keeper plugin])
1287 if test x"$enable_address_keeper_plugin" != xno; then
1288 PLUGINS="$PLUGINS address_keeper"
1291 DISABLED_PLUGINS="$DISABLED_PLUGINS address_keeper"
1295 AC_MSG_CHECKING([whether to build archive plugin])
1296 if test x"$enable_archive_plugin" != xno; then
1297 dependencies_missing=""
1299 if test x"$HAVE_ARCHIVE" = xno; then
1300 dependencies_missing="libarchive $dependencies_missing"
1303 if test x"$dependencies_missing" = x; then
1304 PLUGINS="$PLUGINS archive"
1306 elif test x"$enable_archive_plugin" = xauto; then
1308 AC_MSG_WARN("Plugin archive will not be built; missing $dependencies_missing")
1309 enable_archive_plugin=no
1310 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS archive"
1313 AC_MSG_ERROR("Plugin archive cannot be built; missing $dependencies_missing")
1316 DISABLED_PLUGINS="$DISABLED_PLUGINS archive"
1320 AC_MSG_CHECKING([whether to build att_remover plugin])
1321 if test x"$enable_att_remover_plugin" != xno; then
1322 PLUGINS="$PLUGINS att_remover"
1325 DISABLED_PLUGINS="$DISABLED_PLUGINS att_remover"
1329 AC_MSG_CHECKING([whether to build attachwarner plugin])
1330 if test x"$enable_attachwarner_plugin" != xno; then
1331 PLUGINS="$PLUGINS attachwarner"
1334 DISABLED_PLUGINS="$DISABLED_PLUGINS attachwarner"
1338 AC_MSG_CHECKING([whether to build bogofilter plugin])
1339 if test x"$enable_bogofilter_plugin" != xno; then
1340 PLUGINS="$PLUGINS bogofilter"
1343 DISABLED_PLUGINS="$DISABLED_PLUGINS bogofilter"
1347 AC_MSG_CHECKING([whether to build bsfilter plugin])
1348 if test x"$enable_bsfilter_plugin" != xno; then
1349 PLUGINS="$PLUGINS bsfilter"
1352 DISABLED_PLUGINS="$DISABLED_PLUGINS bsfilter"
1356 AC_MSG_CHECKING([whether to build clamd plugin])
1357 if test x"$enable_clamd_plugin" != xno; then
1358 PLUGINS="$PLUGINS clamd"
1361 DISABLED_PLUGINS="$DISABLED_PLUGINS clamd"
1365 AC_MSG_CHECKING([whether to build demo plugin])
1366 if test x"$enable_demo_plugin" != xno; then
1367 PLUGINS="$PLUGINS demo"
1370 DISABLED_PLUGINS="$DISABLED_PLUGINS demo"
1374 AC_MSG_CHECKING([whether to build fancy plugin])
1375 if test x"$enable_fancy_plugin" != xno; then
1376 dependencies_missing=""
1378 if test x"$HAVE_WEBKIT" = xno; then
1379 dependencies_missing="libwebkit-1.0 $dependencies_missing"
1381 if test x"$HAVE_CURL" = xno; then
1382 dependencies_missing="libcurl $dependencies_missing"
1385 if test x"$dependencies_missing" = x; then
1386 PLUGINS="$PLUGINS fancy"
1388 elif test x"$enable_fancy_plugin" = xauto; then
1390 AC_MSG_WARN("Plugin fancy will not be built; missing $dependencies_missing")
1391 enable_fancy_plugin=no
1392 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS fancy"
1395 AC_MSG_ERROR("Plugin fancy cannot be built; missing $dependencies_missing")
1398 DISABLED_PLUGINS="$DISABLED_PLUGINS fancy"
1402 AC_MSG_CHECKING([whether to build fetchinfo plugin])
1403 if test x"$enable_fetchinfo_plugin" != xno; then
1404 PLUGINS="$PLUGINS fetchinfo"
1407 DISABLED_PLUGINS="$DISABLED_PLUGINS fetchinfo"
1411 AC_MSG_CHECKING([whether to build gdata plugin])
1412 if test x"$enable_gdata_plugin" != xno; then
1413 dependencies_missing=""
1415 if test x"$HAVE_GDATA" = xno; then
1416 dependencies_missing="libgdata $dependencies_missing"
1419 if test x"$dependencies_missing" = x; then
1420 PLUGINS="$PLUGINS gdata"
1422 elif test x"$enable_gdata_plugin" = xauto; then
1424 AC_MSG_WARN("Plugin gdata will not be built; missing $dependencies_missing")
1425 enable_gdata_plugin=no
1426 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS gdata"
1429 AC_MSG_ERROR("Plugin gdata cannot be built; missing $dependencies_missing")
1432 DISABLED_PLUGINS="$DISABLED_PLUGINS gdata"
1436 AC_MSG_CHECKING([whether to build mailmbox plugin])
1437 if test x"$enable_mailmbox_plugin" != xno; then
1438 PLUGINS="$PLUGINS mailmbox"
1441 DISABLED_PLUGINS="$DISABLED_PLUGINS mailmbox"
1445 AC_MSG_CHECKING([whether to build newmail plugin])
1446 if test x"$enable_newmail_plugin" != xno; then
1447 PLUGINS="$PLUGINS newmail"
1450 DISABLED_PLUGINS="$DISABLED_PLUGINS newmail"
1454 AC_MSG_CHECKING([whether to build notification plugin])
1455 if test x"$enable_notification_plugin" != xno; then
1456 PLUGINS="$PLUGINS notification"
1459 AC_DEFINE(NOTIFICATION_POPUP, 1, Activate notification popup)
1460 AC_DEFINE(NOTIFICATION_BANNER, 1, Activate notification banner)
1461 AC_DEFINE(NOTIFICATION_COMMAND, 1, Activate notification shell command)
1462 AC_DEFINE(NOTIFICATION_TRAYICON, 1, Activate notification trayicon)
1463 if test x"$platform_win32" = xno; then
1464 AC_DEFINE(NOTIFICATION_LCDPROC, 1, Activate lcdproc support)
1467 notification_features="banner command"
1468 notification_missing_dependencies=""
1469 if test x"$HAVE_HOTKEYS" = xyes; then
1470 notification_features="$notification_features hotkeys"
1472 notification_missing_dependencies="$notification_missing_dependencies hotkeys"
1474 notification_features="$notification_features lcdproc"
1475 if test x"$HAVE_LIBINDICATE" = xyes; then
1476 notification_features="$notification_features libindicate"
1478 notification_missing_dependencies="$notification_missing_dependencies libindicate"
1480 if test x"$HAVE_LIBNOTIFY" = xyes; then
1481 notification_features="$notification_features libnotify"
1483 notification_missing_dependencies="$notification_missing_dependencies libnotify"
1485 if test x"$HAVE_LIBCANBERRA_GTK" = xyes; then
1486 notification_features="$notification_features libcanberra-gtk"
1488 notification_missing_dependencies="$notification_missing_dependencies libcanberra-gtk"
1490 notification_features="$notification_features popup trayicon"
1492 DISABLED_PLUGINS="$DISABLED_PLUGINS notification"
1496 AC_MSG_CHECKING([whether to build pdf_viewer plugin])
1497 if test x"$enable_pdf_viewer_plugin" != xno; then
1498 dependencies_missing=""
1500 if test x"$HAVE_POPPLER" = xno; then
1501 dependencies_missing="libpoppler-glib $dependencies_missing"
1504 if test x"$dependencies_missing" = x; then
1505 PLUGINS="$PLUGINS pdf_viewer"
1507 elif test x"$enable_pdf_viewer_plugin" = xauto; then
1509 AC_MSG_WARN("Plugin pdf_viewer will not be built; missing $dependencies_missing")
1510 enable_pdf_viewer_plugin=no
1511 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pdf_viewer"
1514 AC_MSG_ERROR("Plugin pdf_viewer cannot be built; missing $dependencies_missing")
1517 DISABLED_PLUGINS="$DISABLED_PLUGINS pdf_viewer"
1521 AC_MSG_CHECKING([whether to build perl plugin])
1522 if test x"$enable_perl_plugin" != xno; then
1523 dependencies_missing=""
1525 if test x"$HAVE_PERL" = xno; then
1526 dependencies_missing="perl $dependencies_missing"
1529 if test x"$dependencies_missing" = x; then
1530 PLUGINS="$PLUGINS perl"
1532 elif test x"$enable_perl_plugin" = xauto; then
1534 AC_MSG_WARN("Plugin perl will not be built; missing $dependencies_missing")
1535 enable_perl_plugin=no
1536 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS perl"
1539 AC_MSG_ERROR("Plugin perl cannot be built; missing $dependencies_missing")
1542 DISABLED_PLUGINS="$DISABLED_PLUGINS perl"
1546 AC_MSG_CHECKING([whether to build python plugin])
1547 if test x"$enable_python_plugin" != xno; then
1548 dependencies_missing=""
1550 if test x"$HAVE_PYTHON" = xno; then
1551 dependencies_missing="python $dependencies_missing"
1554 if test x"$dependencies_missing" = x; then
1555 PLUGINS="$PLUGINS python"
1557 elif test x"$enable_python_plugin" = xauto; then
1559 AC_MSG_WARN("Plugin python will not be built; missing $dependencies_missing")
1560 enable_python_plugin=no
1561 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS python"
1564 AC_MSG_ERROR("Plugin python cannot be built; missing $dependencies_missing")
1567 DISABLED_PLUGINS="$DISABLED_PLUGINS python"
1571 AC_MSG_CHECKING([whether to build pgpcore plugin])
1572 if test x"$enable_pgpcore_plugin" != xno; then
1573 dependencies_missing=""
1575 if test x"$HAVE_GPGME" = xno; then
1576 dependencies_missing="libgpgme $dependencies_missing"
1579 if test x"$dependencies_missing" = x; then
1580 PLUGINS="$PLUGINS pgpcore"
1582 elif test x"$enable_pgpcore_plugin" = xauto; then
1584 AC_MSG_WARN("Plugin pgpcore will not be built; missing $dependencies_missing")
1585 enable_pgpcore_plugin=no
1586 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpcore"
1589 AC_MSG_ERROR("Plugin pgpcore cannot be built; missing $dependencies_missing")
1592 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpcore"
1596 AC_MSG_CHECKING([whether to build pgpmime plugin])
1597 if test x"$enable_pgpmime_plugin" != xno; then
1598 dependencies_missing=""
1600 if test x"$HAVE_GPGME" = xno; then
1601 dependencies_missing="libgpgme $dependencies_missing"
1603 if test x"$enable_pgpcore_plugin" = xno; then
1604 dependencies_missing="pgpcore plugin $dependencies_missing"
1607 if test x"$dependencies_missing" = x; then
1608 PLUGINS="$PLUGINS pgpmime"
1610 elif test x"$enable_pgpmime_plugin" = xauto; then
1612 AC_MSG_WARN("Plugin pgpmime will not be built; missing $dependencies_missing")
1613 enable_pgpmime_plugin=no
1614 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpmime"
1617 AC_MSG_ERROR("Plugin pgpmime cannot be built; missing $dependencies_missing")
1620 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpmime"
1624 AC_MSG_CHECKING([whether to build pgpinline plugin])
1625 if test x"$enable_pgpinline_plugin" != xno; then
1626 dependencies_missing=""
1628 if test x"$HAVE_GPGME" = xno; then
1629 dependencies_missing="libgpgme $dependencies_missing"
1631 if test x"$enable_pgpcore_plugin" = xno; then
1632 dependencies_missing="pgpcore plugin $dependencies_missing"
1635 if test x"$dependencies_missing" = x; then
1636 PLUGINS="$PLUGINS pgpinline"
1638 elif test x"$enable_pgpinline_plugin" = xauto; then
1640 AC_MSG_WARN("Plugin pgpinline will not be built; missing $dependencies_missing")
1641 enable_pgpinline_plugin=no
1642 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS pgpinline"
1645 AC_MSG_ERROR("Plugin pgpinline cannot be built; missing $dependencies_missing")
1648 DISABLED_PLUGINS="$DISABLED_PLUGINS pgpinline"
1652 AC_MSG_CHECKING([whether to build rssyl plugin])
1653 if test x"$enable_rssyl_plugin" != xno; then
1654 dependencies_missing=""
1656 if test x"$HAVE_LIBXML" = xno; then
1657 dependencies_missing="libxml2 $dependencies_missing"
1659 if test x"$HAVE_CURL" = xno; then
1660 dependencies_missing="libcurl $dependencies_missing"
1663 if test x"$dependencies_missing" = x; then
1664 PLUGINS="$PLUGINS rssyl"
1666 elif test x"$enable_rssyl_plugin" = xauto; then
1668 AC_MSG_WARN("Plugin rssyl will not be built; missing $dependencies_missing")
1669 enable_rssyl_plugin=no
1670 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS rssyl"
1673 AC_MSG_ERROR("Plugin rssyl cannot be built; missing $dependencies_missing")
1676 DISABLED_PLUGINS="$DISABLED_PLUGINS rssyl"
1680 AC_MSG_CHECKING([whether to build spamassassin plugin])
1681 if test x"$enable_spamassassin_plugin" != xno; then
1682 PLUGINS="$PLUGINS spamassassin"
1686 DISABLED_PLUGINS="$DISABLED_PLUGINS spamassassin"
1690 AC_MSG_CHECKING([whether to build smime plugin])
1691 if test x"$enable_smime_plugin" != xno; then
1692 dependencies_missing=""
1694 if test x"$HAVE_GPGME" = xno; then
1695 dependencies_missing="libgpgme $dependencies_missing"
1697 if test x"$enable_pgpcore_plugin" = xno; then
1698 dependencies_missing="pgpcore plugin $dependencies_missing"
1701 if test x"$dependencies_missing" = x; then
1702 PLUGINS="$PLUGINS smime"
1704 elif test x"$enable_smime_plugin" = xauto; then
1706 AC_MSG_WARN("Plugin smime will not be built; missing $dependencies_missing")
1707 enable_smime_plugin=no
1708 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS smime"
1711 AC_MSG_ERROR("Plugin smime cannot be built; missing $dependencies_missing")
1714 DISABLED_PLUGINS="$DISABLED_PLUGINS smime"
1718 AC_MSG_CHECKING([whether to build spam_report plugin])
1719 if test x"$enable_spam_report_plugin" != xno; then
1720 dependencies_missing=""
1722 if test x"$HAVE_CURL" = xno; then
1723 dependencies_missing="libcurl $dependencies_missing"
1726 if test x"$dependencies_missing" = x; then
1727 PLUGINS="$PLUGINS spam_report"
1729 elif test x"$enable_spam_report_plugin" = xauto; then
1731 AC_MSG_WARN("Plugin spam_report will not be built; missing $dependencies_missing")
1732 enable_spam_report_plugin=no
1733 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS spam_report"
1736 AC_MSG_ERROR("Plugin spam_report cannot be built; missing $dependencies_missing")
1739 DISABLED_PLUGINS="$DISABLED_PLUGINS spam_report"
1743 AC_MSG_CHECKING([whether to build tnef_parse plugin])
1744 if test x"$enable_tnef_parse_plugin" != xno; then
1745 PLUGINS="$PLUGINS tnef_parse"
1748 DISABLED_PLUGINS="$DISABLED_PLUGINS tnef_parse"
1752 AC_MSG_CHECKING([whether to build vcalendar plugin])
1753 if test x"$enable_vcalendar_plugin" != xno; then
1754 dependencies_missing=""
1756 if test x"$HAVE_CURL" = xno; then
1757 dependencies_missing="libcurl $dependencies_missing"
1760 if test x"$HAVE_PERL" = xno; then
1761 dependencies_missing="perl $dependencies_missing"
1764 if test x"$dependencies_missing" = x; then
1765 PLUGINS="$PLUGINS vcalendar"
1767 elif test x"$enable_vcalendar_plugin" = xauto; then
1769 AC_MSG_WARN("Plugin vcalendar will not be built; missing $dependencies_missing")
1770 enable_vcalendar_plugin=no
1771 MISSING_DEPS_PLUGINS="$MISSING_DEPS_PLUGINS vcalendar"
1774 AC_MSG_ERROR("Plugin vcalendar cannot be built; missing $dependencies_missing")
1777 DISABLED_PLUGINS="$DISABLED_PLUGINS vcalendar"
1781 dnl And finally the automake conditionals.
1783 AM_CONDITIONAL(BUILD_ACPI_NOTIFIER_PLUGIN, test x"$enable_acpi_notifier_plugin" != xno)
1784 AM_CONDITIONAL(BUILD_ADDRESS_KEEPER_PLUGIN, test x"$enable_address_keeper_plugin" != xno)
1785 AM_CONDITIONAL(BUILD_ARCHIVE_PLUGIN, test x"$enable_archive_plugin" != xno)
1786 AM_CONDITIONAL(BUILD_ATT_REMOVER_PLUGIN, test x"$enable_att_remover_plugin" != xno)
1787 AM_CONDITIONAL(BUILD_ATTACHWARNER_PLUGIN, test x"$enable_attachwarner_plugin" != xno)
1788 AM_CONDITIONAL(BUILD_BOGOFILTER_PLUGIN, test x"$enable_bogofilter_plugin" != xno)
1789 AM_CONDITIONAL(BUILD_BSFILTER_PLUGIN, test x"$enable_bsfilter_plugin" != xno)
1790 AM_CONDITIONAL(BUILD_CLAMD_PLUGIN, test x"$enable_clamd_plugin" != xno)
1791 AM_CONDITIONAL(BUILD_DEMO_PLUGIN, test x"$enable_demo_plugin" != xno)
1792 AM_CONDITIONAL(BUILD_FANCY_PLUGIN, test x"$enable_fancy_plugin" != xno)
1793 AM_CONDITIONAL(BUILD_FETCHINFO_PLUGIN, test x"$enable_fetchinfo_plugin" != xno)
1794 AM_CONDITIONAL(BUILD_GDATA_PLUGIN, test x"$enable_gdata_plugin" != xno)
1795 AM_CONDITIONAL(BUILD_MAILMBOX_PLUGIN, test x"$enable_mailmbox_plugin" != xno)
1796 AM_CONDITIONAL(BUILD_NEWMAIL_PLUGIN, test x"$enable_newmail_plugin" != xno)
1797 AM_CONDITIONAL(BUILD_NOTIFICATION_PLUGIN, test x"$enable_notification_plugin" != xno)
1798 AM_CONDITIONAL(BUILD_HOTKEYS, test x"$enable_notification_plugin" != xno -a x"$HAVE_HOTKEYS" = xyes)
1799 AM_CONDITIONAL(BUILD_PDF_VIEWER_PLUGIN, test x"$enable_pdf_viewer_plugin" != xno)
1800 AM_CONDITIONAL(BUILD_PERL_PLUGIN, test x"$enable_perl_plugin" != xno)
1801 AM_CONDITIONAL(BUILD_PYTHON_PLUGIN, test x"$enable_python_plugin" != xno)
1802 AM_CONDITIONAL(BUILD_PGPCORE_PLUGIN, test x"$enable_pgpcore_plugin" != xno)
1803 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$enable_pgpmime_plugin" != xno)
1804 AM_CONDITIONAL(BUILD_PGPINLINE_PLUGIN, test x"$enable_pgpinline_plugin" != xno)
1805 AM_CONDITIONAL(BUILD_RSSYL_PLUGIN, test x"$enable_rssyl_plugin" != xno)
1806 AM_CONDITIONAL(BUILD_SMIME_PLUGIN, test x"$enable_smime_plugin" != xno)
1807 AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$enable_spamassassin_plugin" != xno)
1808 AM_CONDITIONAL(BUILD_SPAM_REPORT_PLUGIN, test x"$enable_spam_report_plugin" != xno)
1809 AM_CONDITIONAL(BUILD_TNEF_PARSE_PLUGIN, test x"$enable_tnef_parse_plugin" != xno)
1810 AM_CONDITIONAL(BUILD_VCALENDAR_PLUGIN, test x"$enable_vcalendar_plugin" != xno)
1813 dnl ****************************
1814 dnl ** Final configure output **
1815 dnl ****************************
1821 src/common/version.h
1824 src/common/passcrypt.h
1827 src/plugins/Makefile
1828 src/plugins/acpi_notifier/Makefile
1829 src/plugins/address_keeper/Makefile
1830 src/plugins/archive/Makefile
1831 src/plugins/att_remover/Makefile
1832 src/plugins/attachwarner/Makefile
1833 src/plugins/bogofilter/Makefile
1834 src/plugins/bsfilter/Makefile
1835 src/plugins/clamd/Makefile
1836 src/plugins/clamd/libclamd/Makefile
1837 src/plugins/demo/Makefile
1838 src/plugins/fancy/Makefile
1839 src/plugins/fetchinfo/Makefile
1840 src/plugins/gdata/Makefile
1841 src/plugins/mailmbox/Makefile
1842 src/plugins/newmail/Makefile
1843 src/plugins/notification/Makefile
1844 src/plugins/notification/gtkhotkey/Makefile
1845 src/plugins/pdf_viewer/Makefile
1846 src/plugins/perl/Makefile
1847 src/plugins/perl/tools/Makefile
1848 src/plugins/python/Makefile
1849 src/plugins/pgpcore/Makefile
1850 src/plugins/pgpmime/Makefile
1851 src/plugins/pgpinline/Makefile
1852 src/plugins/rssyl/Makefile
1853 src/plugins/smime/Makefile
1854 src/plugins/spamassassin/Makefile
1855 src/plugins/spam_report/Makefile
1856 src/plugins/tnef_parse/Makefile
1857 src/plugins/vcalendar/Makefile
1858 src/plugins/vcalendar/libical/Makefile
1859 src/plugins/vcalendar/libical/libical/icalversion.h
1860 src/plugins/vcalendar/libical/libical/Makefile
1861 src/plugins/vcalendar/libical/design-data/Makefile
1862 src/plugins/vcalendar/libical/scripts/Makefile
1869 manual/dist/Makefile
1870 manual/dist/pdf/Makefile
1871 manual/dist/ps/Makefile
1872 manual/dist/html/Makefile
1873 manual/dist/txt/Makefile
1875 manual/fr/dist/Makefile
1876 manual/fr/dist/pdf/Makefile
1877 manual/fr/dist/ps/Makefile
1878 manual/fr/dist/html/Makefile
1879 manual/fr/dist/txt/Makefile
1881 manual/pl/dist/Makefile
1882 manual/pl/dist/pdf/Makefile
1883 manual/pl/dist/ps/Makefile
1884 manual/pl/dist/html/Makefile
1885 manual/pl/dist/txt/Makefile
1887 manual/es/dist/Makefile
1888 manual/es/dist/pdf/Makefile
1889 manual/es/dist/ps/Makefile
1890 manual/es/dist/html/Makefile
1891 manual/es/dist/txt/Makefile
1893 manual/de/dist/Makefile
1894 manual/de/dist/pdf/Makefile
1895 manual/de/dist/ps/Makefile
1896 manual/de/dist/html/Makefile
1897 manual/de/dist/txt/Makefile
1902 dnl Output the configuration summary
1904 echo "$PACKAGE $VERSION"
1906 if test x"$enable_new_addrbook" = xyes; then
1907 echo "Using Address Book : New experimental interface"
1909 echo "Using Address Book : Old stable interface"
1910 echo "JPilot : $enable_jpilot"
1911 echo "LDAP : $enable_ldap"
1913 echo "gnuTLS : $enable_gnutls"
1914 echo "iconv : $am_cv_func_iconv"
1915 echo "compface : $enable_compface"
1916 echo "IPv6 : $enable_ipv6"
1917 echo "enchant : $enable_enchant"
1918 echo "IMAP4 : $enable_libetpan"
1919 echo "NNTP : $enable_libetpan"
1920 echo "Crash dialog : $enable_crash_dialog"
1921 echo "LibSM : $enable_libsm"
1922 echo "DBUS : $enable_dbus"
1923 echo "NetworkManager : $enable_networkmanager"
1924 echo "Manual : $enable_manual"
1925 echo "Generic UMPC code : $enable_generic_umpc"
1926 echo "Maemo build : $enable_maemo"
1927 echo "Config dir : $ac_cv_with_config_dir"
1931 for plugin in $PLUGINS; do
1933 if test x"$plugin" = xnotification; then
1935 for notif_feature in $notification_features; do
1936 echo " $notif_feature"
1938 if test "x$notification_missing_dependencies" != x; then
1939 echo " Disabled due to missing dependencies:"
1940 for notif_miss_dep in $notification_missing_dependencies; do
1941 echo " $notif_miss_dep"
1946 if test "x$DISABLED_PLUGINS" != x; then
1948 for plugin in $DISABLED_PLUGINS; do
1953 if test "x$MISSING_DEPS_PLUGINS" != x; then
1954 echo " Disabled due to missing dependencies:"
1955 for plugin in $MISSING_DEPS_PLUGINS; do
1960 echo "The binary will be installed in $prefix/bin"
1962 echo "Configure finished, type 'make' to build."