0.8.11claws48
[claws.git] / configure.ac
index a9fe79ac51aae8822ba39abf5797a3ee0b0a36a7..b3964ccfa9c1b696ef71b534dc694dcd460de124 100644 (file)
@@ -8,10 +8,10 @@ PACKAGE=sylpheed
 dnl version number
 MAJOR_VERSION=0
 MINOR_VERSION=8
-MICRO_VERSION=10
+MICRO_VERSION=11
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws101
+EXTRA_VERSION=claws48
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
@@ -335,28 +335,6 @@ else
        AC_MSG_RESULT(no)
 fi
 
-dnl Check for built-in image view support
-AC_ARG_ENABLE(gdk-pixbuf,
-       [  --disable-gdk-pixbuf    Do not use gdk-pixbuf],
-       [ac_cv_enable_gdk_pixbuf=$enableval], [ac_cv_enable_gdk_pixbuf=yes])
-AC_ARG_ENABLE(imlib,
-       [  --disable-imlib         Do not use imlib],
-       [ac_cv_enable_imlib=$enableval], [ac_cv_enable_imlib=yes])
-
-if test "$ac_cv_enable_gdk_pixbuf" = yes; then
-       AM_PATH_GDK_PIXBUF(0.8.0,
-               [AC_DEFINE(HAVE_GDK_PIXBUF, 1, Define if you use gdk-pixbuf to support image view)
-                ac_cv_enable_imlib=no], [ac_cv_enable_gdk_pixbuf=no])
-fi
-if test "$ac_cv_enable_imlib" = yes; then
-       AM_PATH_GDK_IMLIB(1.9,
-               AC_DEFINE(HAVE_GDK_IMLIB, 1, Define if you use gdk_imlib to support image view),
-               [ac_cv_enable_imlib=no])
-fi
-if test "$ac_cv_enable_gdk_pixbuf" = no -a "$ac_cv_enable_imlib" = no; then
-       AC_MSG_WARN(*** Built-in image view will not be supported ***)
-fi
-
 dnl GPGME is used to support OpenPGP 
 AC_ARG_ENABLE(gpgme,
        [  --enable-gpgme          Enable GnuPG support using GPGME [default=no]],
@@ -392,7 +370,65 @@ AM_CONDITIONAL(BUILD_SPAMASSASSIN_PLUGIN, test x"$ac_cv_enable_spamassassin_plug
 if test x"$ac_cv_enable_spamassassin_plugin" = xyes; then
        AC_SPAMASSASSIN
        PLUGINS="spamassassin $PLUGINS"
-       AC_DEFINE(USE_SPAMASSASSIN, 1, Define if you use the SpamAssassin plugin)
+fi
+
+AC_ARG_ENABLE(mathml-viewer-plugin,
+       [  --enable-mathml-viewer-plugin    Build MarhML-Viewer plugin [default=no]],
+       [ac_cv_enable_mathml_viewer_plugin=$enableval], [ac_cv_enable_mathml_viewer_plugin=no])
+AM_CONDITIONAL(BUILD_MATHML_VIEWER_PLUGIN, test x"$ac_cv_enable_mathml_viewer_plugin" = xyes)
+if test x"$ac_cv_enable_mathml_viewer_plugin" = xyes; then
+       GTK_MATH_VIEW_CFLAGS=$( gtkmathview-config --cflags )
+       GTK_MATH_VIEW_LIBS=$( gtkmathview-config --libs )
+       AC_SUBST(GTK_MATH_VIEW_CFLAGS)
+       AC_SUBST(GTK_MATH_VIEW_LIBS)
+
+       PLUGINS="mathml-viewer $PLUGINS"
+fi
+
+AC_ARG_ENABLE(dillo-viewer-plugin,
+       [  --enable-dillo-viewer-plugin   Build Dillo plugin for html mail rendering [default=no]],
+       [ac_cv_enable_dillo_viewer_plugin=$enableval], [ac_cv_enable_dillo_viewer_plugin=no])
+AM_CONDITIONAL(BUILD_DILLO_VIEWER_PLUGIN, test x"$ac_cv_enable_dillo_viewer_plugin" = xyes)
+if test x"$ac_cv_enable_dillo_viewer_plugin" = xyes; then
+       PLUGINS="dillo-viewer $PLUGINS"
+fi
+
+AC_ARG_ENABLE(image-viewer-plugin,
+       [  --disable-image-viewer-plugin   Do not build image viewer plugin],
+       [ac_cv_enable_image_viewer_plugin=$enableval], [ac_cv_enable_image_viewer_plugin=yes])
+if test x"$ac_cv_enable_image_viewer_plugin" = xyes; then
+       AC_ARG_ENABLE(gdk-pixbuf,
+               [  --disable-gdk-pixbuf    Do not use gdk-pixbuf],
+               [ac_cv_enable_gdk_pixbuf=$enableval], [ac_cv_enable_gdk_pixbuf=yes])
+       AC_ARG_ENABLE(imlib,
+               [  --disable-imlib         Do not use imlib],
+               [ac_cv_enable_imlib=$enableval], [ac_cv_enable_imlib=yes])
+
+       if test "$ac_cv_enable_gdk_pixbuf" = yes; then
+               AM_PATH_GDK_PIXBUF(0.8.0,
+                       [AC_DEFINE(HAVE_GDK_PIXBUF, 1, Define if you use gdk-pixbuf to support image viewer)
+                        ac_cv_enable_imlib=no], [ac_cv_enable_gdk_pixbuf=no])
+       fi
+       if test "$ac_cv_enable_imlib" = yes; then
+               AM_PATH_GDK_IMLIB(1.9,
+                       AC_DEFINE(HAVE_GDK_IMLIB, 1, Define if you use gdk_imlib to support image viewer),
+                       [ac_cv_enable_imlib=no])
+       fi
+       if test "$ac_cv_enable_gdk_pixbuf" = no -a "$ac_cv_enable_imlib" = no; then
+               $ac_cv_enable_image_viewer_plugin = no
+       fi
+fi
+AM_CONDITIONAL(BUILD_IMAGE_VIEWER_PLUGIN, test x"$ac_cv_enable_image_viewer_plugin" = xyes)
+if test x"$ac_cv_enable_image_viewer_plugin" = xyes; then
+       PLUGINS="image $PLUGINS"
+fi
+
+AC_ARG_ENABLE(trayicon-plugin,
+       [  --enable-trayicon-plugin   System Tray Icon [default=no]],
+       [ac_cv_enable_trayicon_plugin=$enableval], [ac_cv_enable_trayicon_plugin=no])
+AM_CONDITIONAL(BUILD_TRAYICON_PLUGIN, test x"$ac_cv_enable_trayicon_plugin" = xyes)
+if test x"$ac_cv_enable_trayicon_plugin" = xyes; then
+       PLUGINS="trayicon $PLUGINS"
 fi
 
 dnl ****************************
@@ -413,6 +449,10 @@ src/gtk/Makefile
 src/plugins/Makefile
 src/plugins/demo/Makefile
 src/plugins/spamassassin/Makefile
+src/plugins/mathml_viewer/Makefile
+src/plugins/dillo_viewer/Makefile
+src/plugins/image_viewer/Makefile
+src/plugins/trayicon/Makefile
 faq/Makefile
 faq/de/Makefile
 faq/en/Makefile