-AC_ARG_WITH(gss, AC_HELP_STRING([--with-gss[=PFX]], [Compile in GSSAPI authentication for IMAP]),
- gss_prefix="$withval", gss_prefix="no")
-if test "$gss_prefix" != "no"
-then
- MUTT_AM_PATH_GSSAPI(gss_prefix)
- AC_MSG_CHECKING(GSSAPI implementation)
- AC_MSG_RESULT($GSSAPI_IMPL)
- if test "$GSSAPI_IMPL" = "none"
- then
- AC_CACHE_SAVE
- AC_MSG_RESULT([GSSAPI libraries not found])
- fi
- if test "$GSSAPI_IMPL" = "Heimdal"
- then
- AC_DEFINE(HAVE_HEIMDAL,1,[ Define if your GSSAPI implementation is Heimdal ])
- fi
- CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
- MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
- AC_DEFINE(USE_GSS,1,[ Define if you have GSSAPI libraries available ])
- need_gss="yes"
-fi
-AM_CONDITIONAL(USE_GSS, test x$need_gss = xyes)
-
-dnl -- end imap dependencies --
-
-AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl[=PFX]], [Compile in SSL support for POP/IMAP]),
-[ if test "$with_ssl" != "no"
- then
- if test "$with_ssl" != "yes"
- 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_CHECK_FUNCS(RAND_status RAND_egd)
-
- AC_DEFINE(USE_SSL,1,[ Define if you want support for SSL. ])
- LIBS="$saved_LIBS"
- MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
- MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
- need_ssl=yes
-
- fi