fix folder update stats (I hope)
[claws.git] / configure.in
index 073755c023a01a26b62820f3cd7e03a3cc513ab6..e2801f37ff2c78b40c66d5ce997f83e3681303df 100644 (file)
@@ -5,10 +5,10 @@ PACKAGE=sylpheed
 dnl version number
 MAJOR_VERSION=0
 MINOR_VERSION=5
-MICRO_VERSION=0
+MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws
+EXTRA_VERSION=claws3
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
@@ -100,6 +100,29 @@ if test $ac_cv_enable_gpgme = yes; then
        AM_PATH_GPGME(0.2.1, AC_DEFINE(USE_GPGME), [use_gpgme=no])
 fi
 
+dnl Use OpenSSL for SSL connections 
+AC_MSG_CHECKING([whether to use ssl])
+AC_ARG_ENABLE(ssl,
+       [  --enable-ssl            Enable SSL support using OpenSSL [default=no]],
+       [ac_cv_enable_ssl=$enableval], [ac_cv_enable_ssl=no])
+if test $ac_cv_enable_ssl = yes; then
+       AC_MSG_RESULT(yes)
+else
+       AC_MSG_RESULT(no)
+fi
+
+if test $ac_cv_enable_ssl = yes; then
+       AC_MSG_CHECKING([whether to openssl is available])
+       LIBS="$LIBS -lssl"
+       AC_TRY_LINK([
+#include <openssl/opensslv.h>
+],     [ return(OPENSSL_VERSION_NUMBER); ],
+       [ AC_MSG_RESULT(yes)
+         AC_DEFINE(USE_SSL) ],
+       [ AC_MSG_RESULT(no) 
+         LIBS="$ac_save_LIBS" ])
+fi
+         
 dnl Check for X-Face support
 AC_ARG_ENABLE(compface,
        [  --disable-compface      Do not use compface (X-Face)],