2010-10-17 [colin] 3.7.6cvs56
[claws.git] / configure.ac
index 3df7c647ca3fb0f00be596b68e0dbcacebee900a..ac89abff7bc8fbc8c6171ff1a1046ca0c0bceea7 100644 (file)
@@ -1,5 +1,5 @@
 
-AC_PREREQ(2.60)
+AC_PREREQ(2.59)
 AC_INIT(src/main.c)
 AC_CONFIG_AUX_DIR(config)
 AC_CONFIG_MACRO_DIR([m4])
@@ -9,10 +9,10 @@ PACKAGE=claws-mail
 dnl version number
 MAJOR_VERSION=3
 MINOR_VERSION=7
-MICRO_VERSION=5
+MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=21
+EXTRA_VERSION=56
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
@@ -174,7 +174,7 @@ case "$target" in
        ;;
 *-*-solaris*)
        CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
-       CFLAGS="$CFLAGS -DSOLARIS"
+       CFLAGS="$CFLAGS -std=gnu99 -DSOLARIS"
        ;;
 esac
   
@@ -190,7 +190,7 @@ AC_CHECK_FUNCS(bind_textdomain_codeset)
 LIBS=$syl_save_LIBS
 
 dnl for gettext
-ALL_LINGUAS="bg ca cs de en_GB es fi fr hu id it ja nl pl pt_BR pt_PT ru sk sv zh_CN"
+ALL_LINGUAS="bg ca cs de en_GB es fi fr hu id it ja nl pl pt_BR pt_PT ru sk sv uk zh_CN"
 GETTEXT_PACKAGE=claws-mail
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
@@ -208,6 +208,50 @@ AC_ARG_ENABLE(manual,
        [  --disable-manual           do not build manual],
        [ac_cv_enable_manual=$enableval], [ac_cv_enable_manual=yes])
 
+dnl ******************************
+dnl ** Check for required tools **
+dnl ** to build manuals         **
+dnl ******************************
+SAXON=`which saxon 2> /dev/null`
+if test $? -ne 0; then
+       SAXON=
+fi
+if test -z "$SAXON"; then
+        SAXONJAR='/usr/share/java/saxon.jar'
+        if test ! -f "$SAXONJAR"; then
+                SAXONJAR='/usr/local/share/java/saxon.jar'
+                if test ! -f "$SAXONJAR"; then
+                        SAXONJAR=
+                fi
+        fi
+fi
+AM_CONDITIONAL(MANUAL_PDF, test -n "$SAXON" -o -n "$SAXONJAR")
+
+DOCBOOK2TXT=`which docbook2txt 2> /dev/null`
+if test $? -ne 0; then
+       DOCBOOK2TXT=
+fi
+AM_CONDITIONAL(MANUAL_TXT, test -n "$DOCBOOK2TXT")
+
+DOCBOOK2HTML=`which docbook2html 2> /dev/null`
+if test $? -ne 0; then
+        DOCBOOK2HTML=
+fi
+AM_CONDITIONAL(MANUAL_HTML, test -n "$DOCBOOK2HTML")
+
+DOCBOOK2PS=`which docbook2ps 2> /dev/null`
+if test $? -ne 0; then
+        DOCBOOK2PS=
+fi
+AM_CONDITIONAL(MANUAL_PS, test -n "$DOCBOOK2PS")
+
+if test -n "$DOCBOOK2TXT" -o -n "$DOCBOOK2HTML" -o -n "$DOCBOOK2PS" \
+       -o -n "$SAXON" -o -n "$SAXONJAR"; then
+       ac_cv_enable_manual="yes"
+else
+       ac_cv_enable_manual="no"
+fi
+
 AM_CONDITIONAL(BUILD_MANUAL, test x"$ac_cv_enable_manual" = xyes)
 
 dnl Set PACKAGE_DATA_DIR in config.h.
@@ -382,16 +426,9 @@ fi
 
 dnl GNUTLS
 AC_MSG_CHECKING([whether to use GnuTLS])
-AC_ARG_ENABLE(openssl,    [  --enable-openssl      enable GnuTLS support],
-            [ac_cv_enable_openssl=$enableval], [ac_cv_enable_openssl=no])
 AC_ARG_ENABLE(gnutls,    [  --enable-gnutls      enable GnuTLS support],
             [ac_cv_enable_gnutls=$enableval], [ac_cv_enable_gnutls=yes])
 
-if test "x$ac_cv_enable_gnutls" != "xyes"; then
-       if test "x$ac_cv_enable_openssl" = "xyes"; then
-               AC_MSG_ERROR(*** Use GnuTLS instead of OpenSSL due to licensing ***)
-       fi
-fi
 AC_MSG_RESULT($ac_cv_enable_gnutls)
 if test "x$ac_cv_enable_gnutls" != "xno"; then
   OCPPFLAGS="$CPPFLAGS"
@@ -973,7 +1010,11 @@ if test x"$ac_cv_enable_libetpan" = xyes; then
        if test "x$libetpan_result" = "xyes"; then
           LIBETPAN_CPPFLAGS="`$libetpanconfig --cflags`"
           LIBETPAN_LIBS="`$libetpanconfig --libs`"
+           LIBETPAN_STABLE=`$libetpanconfig --version | grep -v ^0`
           LIBETPAN_VERSION=`$libetpanconfig --version | sed "s/\.//g" | sed "s/-.*$//"`
+           if test x"$LIBETPAN_STABLE" != "x"; then
+                LIBETPAN_VERSION="100"
+           fi
           if test "$LIBETPAN_VERSION" -lt "057"; then
                AC_MSG_RESULT([*** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/])
                AC_MSG_RESULT([*** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support.])
@@ -1030,7 +1071,6 @@ src/plugins/bogofilter/Makefile
 src/plugins/spamassassin/Makefile
 src/plugins/dillo_viewer/Makefile
 src/plugins/trayicon/Makefile
-src/plugins/trayicon/libeggtrayicon/Makefile
 src/plugins/pgpcore/Makefile
 src/plugins/pgpmime/Makefile
 src/plugins/pgpinline/Makefile
@@ -1064,6 +1104,12 @@ manual/es/dist/pdf/Makefile
 manual/es/dist/ps/Makefile
 manual/es/dist/html/Makefile
 manual/es/dist/txt/Makefile
+manual/de/Makefile
+manual/de/dist/Makefile
+manual/de/dist/pdf/Makefile
+manual/de/dist/ps/Makefile
+manual/de/dist/html/Makefile
+manual/de/dist/txt/Makefile
 claws-mail.pc
 ])