mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Check for GNUTLS 1.2 or newer (1.1 is too old)
The following patch makes the configure script of ELinks ignore an installed GNUTLS that is too old. If --with-gnutls was specified, this results in a fatal error. Tested with: - Debian libgnutls11-dev 1.0.16-14, configure --with-gnutls -> error at configure time - Debian libgnutls-dev 1.2.9-2, configure --with-gnutls -> compiles OK
This commit is contained in:
parent
0c1819b5d4
commit
9dd84f8248
11
configure.in
11
configure.in
@ -918,9 +918,12 @@ else
|
|||||||
CFLAGS="$CFLAGS_X $GNUTLS_CFLAGS"
|
CFLAGS="$CFLAGS_X $GNUTLS_CFLAGS"
|
||||||
CPPFLAGS="$CPPFLAGS_X $GNUTLS_CFLAGS"
|
CPPFLAGS="$CPPFLAGS_X $GNUTLS_CFLAGS"
|
||||||
|
|
||||||
# Verify if it's really usable
|
# Verify if it's really usable. gnutls_session was
|
||||||
|
# renamed to gnutls_session_t before GNU TLS 1.2.0
|
||||||
|
# (on 2004-06-13); ELinks now requires this.
|
||||||
AC_TRY_LINK([#include <gnutls/gnutls.h>],
|
AC_TRY_LINK([#include <gnutls/gnutls.h>],
|
||||||
[gnutls_check_version(NULL)],
|
[gnutls_session_t dummy;
|
||||||
|
gnutls_check_version(NULL)],
|
||||||
cf_result=yes, cf_result=no)
|
cf_result=yes, cf_result=no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -938,14 +941,14 @@ else
|
|||||||
MD5_Init)
|
MD5_Init)
|
||||||
else
|
else
|
||||||
if test -n "$gnutls_withval" && test "x$gnutls_withval" != xno; then
|
if test -n "$gnutls_withval" && test "x$gnutls_withval" != xno; then
|
||||||
AC_MSG_ERROR([GNUTLS not found])
|
AC_MSG_ERROR([GNUTLS (1.2 or later) not found. ELinks no longer supports GNUTLS 1.1.])
|
||||||
fi
|
fi
|
||||||
EL_RESTORE_FLAGS
|
EL_RESTORE_FLAGS
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([for GNU TLS])
|
AC_MSG_CHECKING([for GNU TLS (1.2 or later)])
|
||||||
AC_MSG_RESULT($cf_result)
|
AC_MSG_RESULT($cf_result)
|
||||||
|
|
||||||
dnl Final SSL setup
|
dnl Final SSL setup
|
||||||
|
Loading…
Reference in New Issue
Block a user