X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure;h=c7d91c7e171e014592c4046a1486210429774261;hb=ee66ed41d0cb0ac2a45ab07dba369299d4733970;hp=5ea0cfa253fa84eee8e6cebc9d4da8d21fae87ab;hpb=d800cd71fe67bb5ee9e10867db2442da30f0d9d7;p=openldap diff --git a/configure b/configure index 5ea0cfa253..c7d91c7e17 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Id: 792cf0cd7da87fae39dca56961bcad11cf8b3d38 . +# From configure.in Id: f63cfff0f30d7e5aaab41a7810ce0fa5e7d3b661 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65. # @@ -15639,6 +15639,23 @@ done if test $ac_cv_header_gnutls_gnutls_h = yes ; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#if GNUTLS_VERSION_NUMBER < 0x020c00 +#error "GnuTLS 2.12.0 or newer required" +#endif +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + +else + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error "GnuTLS is too old +See \`config.log' for more details." "$LINENO" 5; } +fi +rm -f conftest.err conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; } if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then : @@ -20361,13 +20378,19 @@ else #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 _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | @@ -21617,7 +21640,7 @@ done sql_LIBS="$LIBS" - LIBS="$LTHREAD_LIBS" + LIBS="$LTHREAD_LIBS $LIBS" if test $ol_with_odbc = auto ; then ol_with_odbc="iodbc unixodbc odbc32"