1 dnl Process this file with autoconf to produce a configure script.
4 AC_CONFIG_AUX_DIR(config)
18 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
19 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
21 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}${EXTRA_GTK2_VERSION}
28 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
29 dnl AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
30 dnl AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
33 AC_SUBST(MAJOR_VERSION)
34 AC_SUBST(MINOR_VERSION)
35 AC_SUBST(MICRO_VERSION)
36 AC_SUBST(EXTRA_VERSION)
39 AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
40 if test "$GNOME_CONFIG" != no; then
41 gnomedatadir="`gnome-config --datadir`"
42 gnomeprefix="`gnome-config --prefix`"
43 if test "${prefix}" = "NONE"; then
44 gnomedatadir="${ac_default_prefix}/${gnomedatadir#${gnomeprefix}}"
46 gnomedatadir="${prefix}/${gnomedatadir#${gnomeprefix}}"
48 AC_SUBST(gnomedatadir)
50 AM_CONDITIONAL(SYLPHEED_GNOME, test -n "$gnomedatadir")
53 AC_DEFINE(CLAWS, 1, Compiling Claws branch of sylpheed)
55 dnl libtool versioning
56 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
57 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
58 LT_REVISION=$INTERFACE_AGE
59 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
65 dnl Specify a header configuration file
66 AC_CONFIG_HEADERS(config.h)
70 dnl Checks for programs.
83 SYLPHEED_ACLOCAL_INCLUDE(m4)
85 dnl ******************************
87 dnl ******************************
90 dnl Copied from the official gtk+-2 configure.in
91 AC_MSG_CHECKING([for some Win32 platform])
93 *-*-mingw*|*-*-cygwin*)
95 LDFLAGS="$LDFLAGS -mwindows"
101 AC_MSG_RESULT([$platform_win32])
102 AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = x"yes")
104 if test x"$platform_win32" = x"yes"; then
109 AC_MSG_CHECKING([for native Win32])
118 AC_MSG_RESULT([$os_win32])
119 AM_CONDITIONAL(OS_WIN32, test x"$os_win32" = x"yes")
123 CFLAGS="$CFLAGS -traditional-cpp -fno-common"
131 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
134 LIBS="$LIBS $GTK_LIBS"
135 AC_CHECK_FUNCS(bind_textdomain_codeset)
139 ALL_LINGUAS="bg cs de el en_GB es fr hr hu it ja ko nl pl pt_BR ru sk sr sv zh_CN zh_TW.Big5"
140 GETTEXT_PACKAGE=sylpheed-claws
141 AC_SUBST(GETTEXT_PACKAGE)
142 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
146 dnl AC_CHECK_FUNC(gettext, AC_CHECK_LIB(intl, gettext))
147 localedir='${prefix}/${DATADIRNAME}/locale'
150 manualdir='${prefix}/${DATADIRNAME}/${PACKAGE}/manual'
152 faqdir='${prefix}/${DATADIRNAME}/${PACKAGE}/faq'
155 dnl Set PACKAGE_DATA_DIR in config.h.
156 if test "x${datadir}" = 'x${prefix}/share'; then
157 if test "x${prefix}" = "xNONE"; then
158 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}", PACKAGE_DATA_DIR)
160 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}", PACKAGE_DATA_DIR)
163 AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}", PACKAGE_DATA_DIR)
166 AC_CHECK_LIB(xpg4, setlocale)
168 dnl for GThread support (currently disabled)
169 dnl AC_ARG_ENABLE(threads,
170 dnl [ --enable-threads Enable multithread support [default=no]],
171 dnl [use_threads=$enableval], [use_threads=no])
173 AC_MSG_CHECKING([whether to use threads])
174 if test x"$use_threads" = xyes ; then
176 if test ! -z `$GLIB_CONFIG --help 2>&1 |grep 'gthread'` ; then
177 CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`"
178 LIBS="$LIBS `$GLIB_CONFIG --libs gthread`"
179 AC_DEFINE(USE_THREADS, 1, Whether to use multithread or not)
181 AC_MSG_ERROR([Sylpheed requires GThread from GLib to use threading.])
187 dnl Check for d_type member in struct dirent
188 AC_MSG_CHECKING([whether struct dirent has d_type member])
189 AC_CACHE_VAL(ac_cv_dirent_d_type,[
190 AC_TRY_COMPILE([#include <dirent.h>],
191 [struct dirent d; d.d_type = DT_REG;],
192 ac_cv_dirent_d_type=yes, ac_cv_dirent_d_type=no)
194 AC_MSG_RESULT($ac_cv_dirent_d_type)
195 if test $ac_cv_dirent_d_type = yes; then
196 AC_DEFINE(HAVE_DIRENT_D_TYPE, 1,
197 Define if `struct dirent' has `d_type' member.)
200 dnl Checks for header files.
204 AC_CHECK_HEADERS(fcntl.h sys/file.h unistd.h paths.h \
205 sys/param.h sys/utsname.h sys/select.h \
206 wchar.h wctype.h locale.h)
208 dnl alf - Check for apache installation f*ck up. apache may also install an
209 dnl fnmatch, which includes their own regex stuff if USE_HSREGEX is defined
210 AC_TRY_COMPILE([#include <stdlib.h>
211 #include <fnmatch.h>],
212 [int x = USE_HSREGEX;],
213 ac_cv_have_apache_fnmatch=yes, ac_cv_have_apache_fnmatch=no)
214 if test $ac_cv_have_apache_fnmatch = yes; then
215 AC_DEFINE(HAVE_APACHE_FNMATCH, 1, Define if you need to work around apache regex/fnmatch !KLUDGE!)
217 AC_MSG_CHECKING([whether to use Apache regex header kludge])
218 AC_MSG_RESULT($ac_cv_have_apache_fnmatch)
220 dnl Checks for typedefs, structures, and compiler characteristics.
227 dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
228 dnl may be defined only in wchar.h (this happens with gcc-2.96).
229 dnl So we need to use this extended macro.
230 SYLPHEED_CHECK_TYPE(wint_t, unsigned int,
235 ], Define to `unsigned int' if <stddef.h> or <wchar.h> doesn't define.)
237 GNUPG_CHECK_TYPEDEF(u32, HAVE_U32_TYPEDEF, Used to test for a u32 typedef)
238 AC_CHECK_SIZEOF(unsigned short, 2)
239 AC_CHECK_SIZEOF(unsigned int, 4)
240 AC_CHECK_SIZEOF(unsigned long, 4)
242 dnl Checks for library functions.
244 AC_CHECK_FUNCS(gethostname mkdir mktime socket strstr strchr \
245 wcsstr wcswcs iswalnum iswspace towlower \
246 wcslen wcscpy wcsncpy \
247 uname flock lockf inet_aton inet_addr \
250 dnl *****************
251 dnl ** common code **
252 dnl *****************
255 AM_PATH_GLIB_2_0(2.0.0,,
256 AC_MSG_ERROR(Test for GLIB failed. See the file 'INSTALL' for help.),
257 gmodule gobject gthread)
259 dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
261 LIBS="$LIBS $GTK_LIBS"
262 AC_CHECK_FUNCS(bind_textdomain_codeset)
265 dnl check for IPv6 option
267 [ --disable-ipv6 Disable IPv6 support],
268 [ac_cv_enable_ipv6=$enableval], [ac_cv_enable_ipv6=yes])
270 dnl automated checks for IPv6 support.
271 AC_MSG_CHECKING([whether to use IPv6])
272 if test x"$ac_cv_enable_ipv6" = xyes; then
274 AC_MSG_CHECKING([for IPv6 support])
275 AC_CACHE_VAL(ac_cv_ipv6,[
276 AC_TRY_COMPILE([#define INET6
277 #include <sys/types.h>
278 #include <netinet/in.h>],
279 [int x = IPPROTO_IPV6; struct in6_addr a;],
280 ac_cv_ipv6=yes, ac_cv_ipv6=no)
282 AC_MSG_RESULT($ac_cv_ipv6)
283 if test $ac_cv_ipv6 = yes; then
284 AC_DEFINE(INET6, 1, Define if you want IPv6 support.)
286 AC_MSG_WARN(*** IPv6 will not be supported ***)
293 dnl Check for OpenSSL
294 AC_ARG_ENABLE(openssl,
295 [ --enable-openssl Attempt to use OpenSSL for SSL support.],
296 [ac_cv_enable_openssl=$enableval], [ac_cv_enable_openssl=yes])
297 if test x"$ac_cv_enable_openssl" = xyes; then
298 PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.7, :, ac_cv_enable_openssl=no)
299 if test x$ac_cv_enable_openssl = xyes; then
300 AC_DEFINE(USE_OPENSSL, 1, Define if you want OpenSSL support)
303 AC_SUBST(OPENSSL_CFLAGS)
304 AC_SUBST(OPENSSL_LIBS)
306 dnl password encryption
309 AC_SEARCH_LIBS(encrypt, crypt, [], AC_MSG_ERROR(['encrypt'-function not found.]))
314 AC_ARG_WITH(passcrypt-key, [ --with-passcrypt-key=KEY Key used to encode passwords (8 byte string)],
315 with_passcrypt_key="$withval", with_passcrypt_key="passkey0")
316 AC_SUBST(PASSCRYPT_KEY, $with_passcrypt_key)
318 dnl RC dir (will be default at a certain point in time)
319 AC_ARG_WITH(config-dir, [ --with-config-dir=RCDIR Local configuration dir (default: .sylpheed-gtk2)],
320 ac_cv_with_config_dir="$withval", ac_cv_with_config_dir=".sylpheed-gtk2")
321 if test x"$ac_cv_with_config_dir" = x""; then
322 ac_cv_with_config_dir=".sylpheed-gtk2"
324 AC_DEFINE_UNQUOTED(CFG_RC_DIR, "$ac_cv_with_config_dir", Configuration directory)
326 dnl ************************
327 dnl ** GTK user interface **
328 dnl ************************
331 AM_PATH_GTK_2_0(2.4.0,,
332 AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))
334 dnl --disable-deprecated switch for GTK2 purification
335 AC_ARG_ENABLE(deprecated, [ --disable-deprecated Disable deprecated GTK functions. ],
336 [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], [])
341 dnl GNU/Aspell is used for spell checking
342 AC_ARG_ENABLE(aspell,
343 [ --enable-aspell Enable GNU/aspell support [default=no]],
344 [ac_cv_enable_aspell=$enableval], [ac_cv_enable_aspell=no])
345 AC_MSG_CHECKING([whether to use GNU/aspell])
346 if test $ac_cv_enable_aspell = yes; then
348 AM_PATH_ASPELL(0.50, AC_DEFINE(USE_ASPELL, 1, Define if you use ASPELL to support spell checking),
349 [use_aspell=no ac_cv_enable_aspell=no])
354 dnl want crash dialog
355 AC_ARG_ENABLE(crash-dialog,
356 [ --enable-crash-dialog Enable crash dialog [default=no]],
357 [ac_cv_enable_crash_dialog=$enableval], [ac_cv_enable_crash_dialog=no])
358 if test $ac_cv_enable_crash_dialog = yes; then
359 dnl check if GDB is somewhere
360 AC_CHECK_PROG(ac_cv_enable_crash_dialog, gdb, yes, no)
361 AC_MSG_CHECKING([whether to use crash dialog])
362 if test $ac_cv_enable_crash_dialog = yes; then
363 AC_DEFINE(CRASH_DIALOG, 1, Pop up crash dialog)
365 AC_MSG_RESULT($ac_cv_enable_crash_dialog)
368 dnl Check for X-Face support
369 AC_ARG_ENABLE(compface,
370 [ --disable-compface Do not use compface (X-Face)],
371 [ac_cv_enable_compface=$enableval], [ac_cv_enable_compface=yes])
372 AC_MSG_CHECKING([whether to use compface])
373 if test x"$ac_cv_enable_compface" = xyes; then
375 AC_CHECK_LIB(compface, uncompface,
376 [AC_DEFINE(HAVE_LIBCOMPFACE, 1, Define if you want compface support.)],
377 [ac_cv_enable_compface=no])
378 if test x"$ac_cv_enable_compface" = xyes; then
379 COMPFACE_LIBS="-lcompface"
383 AC_SUBST(COMPFACE_LIBS)
388 dnl check for pthread support
389 AC_ARG_ENABLE(pthread,
390 [ --disable-pthread Disable pthread support],
391 [ac_cv_enable_pthread=$enableval], [ac_cv_enable_pthread=yes])
392 AC_MSG_CHECKING([whether to use pthread])
393 if test x$ac_cv_enable_pthread = xno; then
398 AC_CHECK_LIB(pthread, pthread_create, :, ac_cv_enable_pthread=no)
399 AC_CHECK_HEADERS(pthread.h, :, ac_cv_enable_pthread=no)
401 if test x$ac_cv_enable_pthread = xyes; then
402 AC_DEFINE(USE_PTHREAD, 1, Define if you have pthread)
403 PTHREAD_LIBS="-lpthread"
407 AC_SUBST(PTHREAD_LIBS)
409 dnl for LDAP support in addressbook
410 dnl no check for libraries; dynamically loaded
412 [ --enable-ldap Enable LDAP support [default=no]],
413 [ac_cv_enable_ldap=$enableval], [ac_cv_enable_ldap=no])
414 AC_MSG_CHECKING([whether to use LDAP])
415 if test x"$ac_cv_enable_ldap" = xno; then
417 elif test x"$ac_cv_enable_ldap" = xyes -a x"$ac_cv_enable_pthread" = xno; then
418 AC_MSG_RESULT(no - LDAP support needs pthread support)
424 dnl check for available libraries, and pull them in
425 AC_CHECK_LIB(resolv, res_query, LDAP_LIBS="$LDAP_LIBS -lresolv")
426 AC_CHECK_LIB(socket, bind, LDAP_LIBS="$LDAP_LIBS -lsocket")
427 AC_CHECK_LIB(nsl, gethostbyaddr, LDAP_LIBS="$LDAP_LIBS -lnsl")
428 AC_CHECK_LIB(lber, ber_get_tag, LDAP_LIBS="$LDAP_LIBS -llber",,
431 AC_CHECK_HEADERS(ldap.h lber.h,
432 [ ac_cv_enable_ldap=yes ],
433 [ ac_cv_enable_ldap=no ])
435 if test "$ac_cv_enable_ldap" = yes; then
436 AC_CHECK_LIB(ldap, ldap_open,
437 [ ac_cv_enable_ldap=yes ],
438 [ ac_cv_enable_ldap=no ],
441 AC_CHECK_LIB(ldap, ldap_start_tls_s,
442 [ ac_cv_have_tls=yes ],
443 [ ac_cv_have_tls=no ])
447 AC_MSG_CHECKING([whether ldap library is available])
448 AC_MSG_RESULT($ac_cv_enable_ldap)
450 AC_MSG_CHECKING([whether TLS library is available])
451 AC_MSG_RESULT($ac_cv_have_tls)
453 if test "$ac_cv_enable_ldap" = yes; then
454 CFLAGS="$CFLAGS `$GLIB_CONFIG --cflags gthread`"
455 LDAP_LIBS="$LDAP_LIBS -lldap `$GLIB_CONFIG --libs gthread`"
456 AC_DEFINE(USE_LDAP, 1, Define if you want LDAP support in addressbook.)
458 if test "$ac_cv_have_tls" = yes; then
459 AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
464 dnl for JPilot support in addressbook
465 dnl no check for libraries; these are dynamically loaded
466 AC_ARG_ENABLE(jpilot,
467 [ --enable-jpilot Enable JPilot support [default=no]],
468 [ac_cv_enable_jpilot=$enableval], [ac_cv_enable_jpilot=no])
469 AC_MSG_CHECKING([whether to use JPilot])
470 if test "$ac_cv_enable_jpilot" = yes; then
472 AC_CHECK_HEADERS(pi-args.h pi-appinfo.h pi-address.h,
473 [ AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ],
474 [ ac_cv_enable_jpilot=no ])
475 if test "$ac_cv_enable_jpilot" = no; then
476 AC_CHECK_HEADERS(libpisock/pi-args.h libpisock/pi-appinfo.h libpisock/pi-address.h,
477 [ ac_cv_enable_jpilot=yes
478 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.) ])
481 AC_CHECK_LIB(pisock, unpack_Address, [JPILOT_LIBS="-lpisock"], [JPILOT_LIBS="" ac_cv_enable_jpilot="no"])
482 if test x"$ac_cv_enable_jpilot" = xyes; then
483 AC_DEFINE(USE_JPILOT, 1, Define if you want JPilot support in addressbook.)
485 AC_MSG_NOTICE([JPilot support not available])
487 AC_SUBST(JPILOT_LIBS)
492 dnl #######################################################################
493 dnl # Check for startup notification
494 dnl #######################################################################
495 AC_ARG_ENABLE(startup-notification, [ --disable-startup-notification compile without startup notification support],,enable_startup_notification=yes)
497 if test "x$enable_startup_notification" = "xyes"; then
498 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, libstartup-notification-1.0 >= 0.5,
500 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
501 echo "Building with libstartup-notification"
502 enable_startup_notification=yes
505 echo "Building without libstartup-notification"
506 enable_startup_notification=no
509 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
510 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
513 dnl *************************
514 dnl ** section for plugins **
515 dnl *************************
520 AC_ARG_ENABLE(trayicon-plugin,
521 [ --disable-trayicon-plugin Do not build System Tray Icon plugin],
522 [ac_cv_enable_trayicon_plugin=$enableval], [ac_cv_enable_trayicon_plugin=yes])
523 if test x"$ac_cv_enable_trayicon_plugin" = xyes; then
524 PLUGINS="trayicon $PLUGINS"
526 AM_CONDITIONAL(BUILD_TRAYICON_PLUGIN, test x"$ac_cv_enable_trayicon_plugin" = xyes)
528 dnl --- SpamAssassin ---
529 AC_ARG_ENABLE(spamassassin-plugin,
530 [ --enable-spamassassin-plugin Build SpamAssassin plugin [default=no]],
531 [ac_cv_enable_spamassassin_plugin=$enableval], [ac_cv_enable_spamassassin_plugin=no])
532 if test x"$ac_cv_enable_spamassassin_plugin" = xyes; then
534 PLUGINS="spamassassin $PLUGINS"
536 AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$ac_cv_enable_spamassassin_plugin" = xyes)
539 AC_ARG_ENABLE(pgpmime-plugin,
540 [ --disable-pgpmime-plugin Do not build PGP/MIME plugin],
541 [ac_cv_enable_pgpmime_plugin=$enableval], [ac_cv_enable_pgpmime_plugin=yes])
542 if test x"$ac_cv_enable_pgpmime_plugin" = xyes; then
543 AM_PATH_GPGME(0.3.10, AC_DEFINE(USE_GPGME, 1, Define if you use GPGME to support OpenPGP.),
544 [ac_cv_enable_pgpmime_plugin=no])
545 if test x"$ac_cv_enable_pgpmime_plugin" = xyes; then
546 PLUGINS="pgpmime $PLUGINS"
549 AM_CONDITIONAL(BUILD_PGPMIME_PLUGIN, test x"$ac_cv_enable_pgpmime_plugin" = xyes)
551 dnl --- MathML Viewer ---
552 AC_ARG_ENABLE(mathml-viewer-plugin,
553 [ --disable-mathml-viewer-plugin Do not build MathML-Viewer plugin],
554 [ac_cv_enable_mathml_viewer_plugin=$enableval], [ac_cv_enable_mathml_viewer_plugin=yes])
555 if test x"$ac_cv_enable_mathml_viewer_plugin" = xyes; then
556 PKG_CHECK_MODULES(GTK_MATH_VIEW, gtkmathview >= 0.5, :, ac_cv_enable_mathml_viewer_plugin=no)
558 if test x"$ac_cv_enable_mathml_viewer_plugin" = xyes; then
560 PLUGINS="mathml-viewer $PLUGINS"
563 AC_SUBST(GTK_MATH_VIEW_CFLAGS)
564 AC_SUBST(GTK_MATH_VIEW_LIBS)
565 AM_CONDITIONAL(BUILD_MATHML_VIEWER_PLUGIN, test x"$ac_cv_enable_mathml_viewer_plugin" = xyes)
567 dnl --- Image Viewer ---
568 AC_ARG_ENABLE(image-viewer-plugin,
569 [ --disable-image-viewer-plugin Do not build image viewer plugin],
570 [ac_cv_enable_image_viewer_plugin=$enableval], [ac_cv_enable_image_viewer_plugin=yes])
571 if test x"$ac_cv_enable_image_viewer_plugin" = xyes; then
572 AC_ARG_ENABLE(gdk-pixbuf,
573 [ --disable-gdk-pixbuf Do not use gdk-pixbuf],
574 [ac_cv_enable_gdk_pixbuf=$enableval], [ac_cv_enable_gdk_pixbuf=yes])
576 [ --disable-imlib Do not use imlib],
577 [ac_cv_enable_imlib=$enableval], [ac_cv_enable_imlib=yes])
579 if test "$ac_cv_enable_gdk_pixbuf" = yes; then
580 PKG_CHECK_MODULES(GDK_PIXBUF, \
582 [ AC_DEFINE(HAVE_GDK_PIXBUF, 1, Define if you use gdk-pixbuf to support image viewer) ],
583 [ ac_cv_enable_gdk_pixbuf=no ])
586 if test "$ac_cv_enable_gdk_pixbuf" = yes; then
587 PLUGINS="image-viewer(gdk-pixbuf) $PLUGINS"
589 ac_cv_enable_image_viewer_plugin=no
592 AM_CONDITIONAL(BUILD_IMAGE_VIEWER_PLUGIN, test x"$ac_cv_enable_image_viewer_plugin" = xyes)
594 dnl --- Dillo Viewer ---
595 AC_ARG_ENABLE(dillo-viewer-plugin,
596 [ --disable-dillo-viewer-plugin Do not build Dillo plugin for html mail rendering],
597 [ac_cv_enable_dillo_viewer_plugin=$enableval], [ac_cv_enable_dillo_viewer_plugin=yes])
598 if test x"$ac_cv_enable_dillo_viewer_plugin" = xyes; then
599 PLUGINS="dillo-viewer $PLUGINS"
601 AM_CONDITIONAL(BUILD_DILLO_VIEWER_PLUGIN, test x"$ac_cv_enable_dillo_viewer_plugin" = xyes)
604 AC_ARG_ENABLE(demo-plugin,
605 [ --enable-demo-plugin Build demo plugin [default=no]],
606 [ac_cv_enable_demo_plugin=$enableval], [ac_cv_enable_demo_plugin=no])
607 if test x"$ac_cv_enable_demo_plugin" = xyes; then
608 PLUGINS="demo $PLUGINS"
610 AM_CONDITIONAL(BUILD_DEMO_PLUGIN, test x"$ac_cv_enable_demo_plugin" = xyes)
613 AC_ARG_ENABLE(clamav-plugin,
614 [ --disable-clamav-plugin Do not build Clam AntiVirus plugin],
615 [ac_cv_enable_clamav_plugin=$enableval], [ac_cv_enable_clamav_plugin=yes])
616 if test x"$ac_cv_enable_clamav_plugin" = xyes; then
617 AC_CHECK_LIB(clamav, cl_scanfile, clamav_lib=-lclamav, ac_cv_enable_clamav_plugin=no)
618 AC_CHECK_HEADERS(clamav.h, :, ac_cv_enable_clamav_plugin=no)
619 if test x"$ac_cv_enable_clamav_plugin" = xyes; then
620 CLAMAV_LIBS="${clamav_lib}"
622 PLUGINS="clamav $PLUGINS"
624 AC_MSG_NOTICE([clamav library not found, will not build clamav plugin])
627 AC_SUBST(CLAMAV_LIBS)
628 AM_CONDITIONAL(BUILD_CLAMAV_PLUGIN, test x"$ac_cv_enable_clamav_plugin" = xyes)
630 dnl ****************************
631 dnl ** Final configure output **
632 dnl ****************************
642 src/common/passcrypt.h
645 src/plugins/demo/Makefile
646 src/plugins/spamassassin/Makefile
647 src/plugins/mathml_viewer/Makefile
648 src/plugins/dillo_viewer/Makefile
649 src/plugins/image_viewer/Makefile
650 src/plugins/trayicon/Makefile
651 src/plugins/trayicon/libeggtrayicon/Makefile
652 src/plugins/clamav/Makefile
653 src/plugins/pgpmime/Makefile
663 doc/manual/de/Makefile
664 doc/manual/en/Makefile
665 doc/manual/es/Makefile
666 doc/manual/fr/Makefile
667 doc/manual/ja/Makefile
673 dnl Output the configuration summary
675 echo "$PACKAGE $VERSION"
677 echo "JPilot : $ac_cv_enable_jpilot"
678 echo "LDAP : $ac_cv_enable_ldap"
679 echo "OpenSSL : $ac_cv_enable_openssl"
680 echo "iconv : $am_cv_func_iconv"
681 echo "compface : $ac_cv_enable_compface"
682 echo "IPv6 : $ac_cv_enable_ipv6"
683 echo "GNU/aspell : $ac_cv_enable_aspell"
684 echo "Crash dialog : $ac_cv_enable_crash_dialog"
685 echo "Plugins : $PLUGINS"
686 echo "Config dir : $ac_cv_with_config_dir"
688 echo "The binary will be installed in $prefix/bin"
690 echo "Configure finished, type 'make' to build."