X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=configure.in;h=810b2fa7f4d7cddaa014d0727a62cd13d1b7068f;hb=5791f9e938cad776c319e96ff7834a150cfa6961;hp=84bfc8afb7ab27da80a7fcd61c212e89ba29ed41;hpb=c415e81f755d339608c6667d539631d65380695c;p=openldap diff --git a/configure.in b/configure.in index 84bfc8afb7..810b2fa7f4 100644 --- a/configure.in +++ b/configure.in @@ -1207,6 +1207,13 @@ if test $ol_link_tls = no ; then AC_CHECK_HEADERS(gnutls/gnutls.h) if test $ac_cv_header_gnutls_gnutls_h = yes ; then + AC_PREPROC_IFELSE( + [[#include ] +[#if GNUTLS_VERSION_NUMBER < 0x020c00] +[#error "GnuTLS 2.12.0 or newer required"] +[#endif]], + , [AC_MSG_FAILURE([GnuTLS is too old])]) + AC_CHECK_LIB(gnutls, gnutls_init, [have_gnutls=yes], [have_gnutls=no]) @@ -1972,7 +1979,7 @@ if test $ol_enable_sql != no ; then ]) sql_LIBS="$LIBS" - LIBS="$LTHREAD_LIBS" + LIBS="$LTHREAD_LIBS $LIBS" if test $ol_with_odbc = auto ; then ol_with_odbc="iodbc unixodbc odbc32"