]> granicus.if.org Git - mutt/commitdiff
Replace --enable-ssl by --with-ssl. From Tommi Komulainen.
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Feb 2000 22:28:52 +0000 (22:28 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 29 Feb 2000 22:28:52 +0000 (22:28 +0000)
configure.in

index 82a43ddf0abb701a944960a1a207239e1e78e7a0..97604998fc58e5e9650b34a74f0756fb231ed74c 100644 (file)
@@ -487,12 +487,17 @@ AC_ARG_WITH(gss,    [    --with-gss[=DIR]         Compile in GSSAPI authenticati
 ])
 AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
 
-AC_ARG_ENABLE(ssl, [    --enable-ssl             Enable SSL support for IMAP],
+AC_ARG_WITH(ssl, [    --with-ssl[=PFX]         Compile in SSL socket support for IMAP],
 [      if test "$need_imap" != "yes"; then
           AC_MSG_ERROR([SSL support is only for IMAP, but IMAP is not enabled])
        fi
-
+       
+        if test "x$withval" != "x"; then
+          LDFLAGS="$LDFLAGS -L$withval/lib"
+          CPPFLAGS="$CPPFLAGS -I$withval/include"
+       fi
        saved_LIBS="$LIBS"
+
        AC_CHECK_LIB(crypto, X509_new,, AC_MSG_ERROR([Unable to find SSL library]))
        AC_CHECK_LIB(ssl, SSL_new,, AC_MSG_ERROR([Unable to find SSL library]), -lcrypto)
        AC_DEFINE(USE_SSL)