diff configure @ 5874:3ed83b4b4882

Fix unintended default of TLS to OpenSSL.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 21 Mar 2015 00:15:17 +0900
parents 83e5c3cd6be6
children abe88cd200c9
line wrap: on
line diff
--- a/configure	Fri Mar 20 13:48:16 2015 +0000
+++ b/configure	Sat Mar 21 00:15:17 2015 +0900
@@ -21365,8 +21365,6 @@
 
 fi
 if test "$with_tls" != "no"; then
-  $as_echo "#define WITH_TLS 1" >>confdefs.h
-
   if test "$with_tls" = "gnutls"; then
     $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
 
@@ -21401,7 +21399,7 @@
     if test "$?" = 0; then
       LIBS="$LIBS "$nss_libs"" &&  if test "$verbose" = "yes"; then echo "    Appending \""$nss_libs"\" to \$LIBS"; fi
     fi
-  else
+  elif test "$with_tls" = "openssl"; then
     $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
 
     openssl_cflags=`pkg-config --cflags openssl`
@@ -21418,7 +21416,13 @@
 
 fi
 
-  fi
+  else
+    with_tls=no
+  fi
+fi
+if test "$with_tls" != "no"; then
+  $as_echo "#define WITH_TLS 1" >>confdefs.h
+
 fi
 
 if test "$cross_compiling" = yes; then :