2008-07-05 [colin] 3.5.0cvs12
[claws.git] / configure.ac
index 94d267c1ec99b5bbd9fab63fb7a96f5b60441e23..b02e50882bc15a5dc50e9c0e48d267c887a8b6cf 100644 (file)
@@ -7,11 +7,11 @@ PACKAGE=claws-mail
 
 dnl version number
 MAJOR_VERSION=3
-MINOR_VERSION=4
+MINOR_VERSION=5
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=35
+EXTRA_VERSION=12
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
@@ -173,7 +173,7 @@ AC_CHECK_FUNCS(bind_textdomain_codeset)
 LIBS=$syl_save_LIBS
 
 dnl for gettext
-ALL_LINGUAS="bg ca cs de el en_GB es fi fr he hr hu it ja ko nb nl pl pt_BR ru sk sr sv zh_CN zh_TW"
+ALL_LINGUAS="ca de en_GB es fi fr hu it pl pt_BR sk sr zh_CN"
 GETTEXT_PACKAGE=claws-mail
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define text domain.])
@@ -660,6 +660,29 @@ else
                if test "$ac_cv_have_tls" = yes; then
                        AC_DEFINE(USE_LDAP_TLS, 1, Define if you want LDAP TLS support in addressbook.)
                fi
+               dnl As of OpenLDAP API version 3000 a number of functions has
+               dnl been deprecated. As Claws-mail compiles and runs on many
+               dnl platforms and many versions of OpenLDAP we need to be able
+               dnl to switch between the old and new API because new API has
+               dnl added new functions replacing old ones and at the same time
+               dnl old functions has been changed.
+               dnl If cross-compiling defaults to enable deprecated features
+               dnl for maximum portability
+               AC_MSG_CHECKING([The API version of OpenLDAP])
+               AC_RUN_IFELSE(
+                       [AC_LANG_PROGRAM(
+                        [#include <ldap.h>],
+                        [if (LDAP_API_VERSION >= 3000)
+                                       return 1
+                       ])],
+                       [AC_MSG_RESULT([version < 3000])
+                        AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)],
+                       [AC_MSG_RESULT([version >= 3000])
+                        AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 1, Define if OpenLDAP API is at least version 3000.)],
+                       [AC_MSG_RESULT([Enabling deprecated features in OpenLDAP])
+                        AC_DEFINE(OPEN_LDAP_API_AT_LEAST_3000, 0, Define if OpenLDAP API is at least version 3000.)
+                        AC_DEFINE(LDAP_DEPRECATED, 1, Define to activate deprecated features in OpenLDAP)]
+               )
        fi
 fi