]> git.sur5r.net Git - openldap/commitdiff
ITS#7890
authorQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Jul 2014 18:58:36 +0000 (13:58 -0500)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 22 Jul 2014 19:00:14 +0000 (14:00 -0500)
Drop support for BDB 6.0.20 and later, incompatible license

build/openldap.m4

index 98b038183defa9ee5585fe0e346aa7ea30708387..5d27cc3525375451264e4c48b526057a74e7a903 100644 (file)
@@ -547,12 +547,18 @@ AC_DEFUN([OL_BDB_COMPAT],
 #ifndef DB_VERSION_MINOR
 #      define DB_VERSION_MINOR 0
 #endif
+#ifndef DB_VERSION_PATCH
+#      define DB_VERSION_PATCH 0
+#endif
 
-#define DB_VERSION_MM  ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
+#define DB_VERSION_FULL        ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH)
 
-/* require 4.4 or later */
-#if DB_VERSION_MM >= 0x0404
+/* require 4.4 or later, but less than 6.0.20 */
+#if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014
        __db_version_compat
+#endif
+#if DB_VERSION_FULL >= 0x060014
+#error "BerkeleyDB 6.0.20+ license is incompatible with LDAP"
 #endif
        ], [ol_cv_bdb_compat=yes], [ol_cv_bdb_compat=no])])
 ])