From 4db5ba9a511564e4a3cb3d2b67bce4bb171eae4f Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 25 Jan 2015 18:52:13 -0700 Subject: * new version 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Ignore message from smtp server after a successful authentication challenge. * Alpine would not set include and lib paths for OpenSSL if this was installed in /usr/local/ssl. * If the .pinerc file is a symbolic link, Alpine might not write its contents when saving its configuration. * The _INIT_ token does not skip over non-alpha numeric characters in the name. Reported by Andreas Fehr. * If SSLDIR is defined somehow, do not disable S/MIME if the SSLCERTSDIR is not found. * Mismatch in size of UCS and CELL caused a corruption in the content of a pointer, which made the speller in PC-Alpine get the content of a word incorrectly. * Update splash screen to version 2.20 in main repository. * Skip testing openssl compatibility version when cross-compilation is detected. Fix contributed by Antti Seppälä. --- configure.ac | 56 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 21 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 30f380cf..ab83a4ad 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ dnl */ AC_PREREQ([2.69]) -AC_REVISION([Rev:14 by chappa@washington.edu]) +AC_REVISION([Rev:16 by chappa@washington.edu]) dnl Alpine Version Number is in $srcdir/VERSION AC_INIT([alpine],[m4_normalize(m4_include(VERSION))],[chappa@washington.edu]) @@ -903,6 +903,9 @@ dnl find it anywhere else. alpine_SSLLIB=$withval fi ]) +fi + +if test "x$alpine_SSLTYPE" != "xnone" ; then dnl setup globals so tests below work if test -n "$alpine_SSLINCLUDE" ; then CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS" @@ -916,6 +919,7 @@ dnl find it anywhere else. fi fi + dnl Include Kerberos? dnl Set GSSDIR for c-client make AC_ARG_WITH(krb5, @@ -1346,29 +1350,16 @@ if test "x$alpine_DL" = "xnone" ; then exit 1 fi -dnl Crypto support is needed +dnl Check Openssl/LibreSSL version first if test "x$alpine_SSLTYPE" != "xnone" ; then - AC_SEARCH_LIBS(SSLeay,crypto,, [ alpine_CRYPTO="none" ]) - if test "x$alpine_CRYPTO" = "xnone" ; then - AC_MSG_ERROR(crypto library NOT found) - exit 1 - fi -fi - -dnl provide SSL support? -if test "x$alpine_SSLTYPE" != "xnone" ; then - AC_SEARCH_LIBS(SSL_library_init,ssl,,[ alpine_SSLTYPE="none" ]) - - if test "x$alpine_SSLTYPE" = "xnone" ; then - AC_MSG_ERROR(No library containing SSL_library_init found in your path) - exit 1 - fi - - AC_MSG_CHECKING([Openssl library version >= 1.0.1c]) + AC_MSG_CHECKING([Openssl library version >= 1.0.0c]) AC_RUN_IFELSE( [AC_LANG_SOURCE([[ #include #include +#if HAVE_STDINT_H +#include +#endif /* HAVE_STDINT_H */ #include int main(void) { @@ -1379,10 +1370,11 @@ int main(void) { } ]])], [ AC_MSG_RESULT(yes) ], - [ alpine_SSLTYPE="none" ]) + [ alpine_SSLTYPE="none" ], + [ AC_MSG_WARN([cross compiling: not checking])]) if test "x$alpine_SSLTYPE" = "xnone" ; then - AC_MSG_ERROR(Install openssl version >= 1.0.1c) + AC_MSG_ERROR(Install openssl version >= 1.0.0c) exit 1 fi AC_SEARCH_LIBS(TLSv1_2_client_method,ssl, @@ -1391,6 +1383,26 @@ int main(void) { ]) fi +dnl Crypto support is needed +if test "x$alpine_SSLTYPE" != "xnone" ; then + AC_SEARCH_LIBS(SSLeay,crypto,, [ alpine_CRYPTO="none" ]) + if test "x$alpine_CRYPTO" = "xnone" ; then + AC_MSG_ERROR(crypto library NOT found) + exit 1 + fi +fi + +dnl provide SSL support? +if test "x$alpine_SSLTYPE" != "xnone" ; then + AC_SEARCH_LIBS(SSL_library_init,ssl,,[ alpine_SSLTYPE="none" ]) + + if test "x$alpine_SSLTYPE" = "xnone" ; then + AC_MSG_ERROR(No library containing SSL_library_init found in your path) + exit 1 + fi + +fi + dnl provide LDAP support? if test "$alpine_with_ldap" = "yes" ; then alpine_has_ldap= @@ -1848,6 +1860,8 @@ else certdir="${alpine_SSLDIR}/ssl/certs" elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then certdir="$alpine_SSLCERTS_ORIG" + elif test -n "$alpine_SSLCERTS" ; then + certdir="$alpine_SSLCERTS" else AC_MSG_NOTICE([SSL Problem: certificate directory not found]) fi -- cgit v1.2.3-54-g00ecf