Changeset 3891:edccac2079c8
- Timestamp:
- 2005-02-10 20:12:03 (4 years ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
autoconf support for gnutls using a slightly modified version of gnutls' own libgnutls.m4
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3869
|
r3891
|
|
| 611 | 611 | fi |
| 612 | 612 | ]) |
| | 613 | |
| | 614 | AC_ARG_WITH([gnutls], [ --with-gnutls[=PFX] Enable SSL support using gnutls], |
| | 615 | [gnutls_prefix="$withval"], [gnutls_prefix="no"]) |
| | 616 | if test "$gnutls_prefix" != "no" |
| | 617 | then |
| | 618 | if test "$need_socket" != "yes" |
| | 619 | then |
| | 620 | AC_MSG_ERROR([SSL support is only useful with POP or IMAP support]) |
| | 621 | fi |
| | 622 | MUTT_AM_PATH_GNUTLS([$gnutls_prefix], |
| | 623 | [dnl GNUTLS found |
| | 624 | CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS" |
| | 625 | MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS" |
| | 626 | AC_DEFINE(USE_GNUTLS, 1, [Define if you want support for SSL via the gnutls library.]) |
| | 627 | |
| | 628 | MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o" |
| | 629 | need_ssl=yes], |
| | 630 | [dnl GNUTLS not found |
| | 631 | AC_MSG_ERROR([could not find libgnutls]) |
| | 632 | ]) |
| | 633 | fi |
| 613 | 634 | |
| 614 | 635 | AC_ARG_WITH(sasl, [ --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication], |
-
|
r3873
|
r3891
|
|
| 23 | 23 | #include <gnutls/gnutls.h> |
| 24 | 24 | #include <gnutls/x509.h> |
| | 25 | #ifdef HAVE_GNUTLS_OPENSSL_H |
| | 26 | #include <gnutls/openssl.h> |
| | 27 | #endif |
| 25 | 28 | |
| 26 | 29 | #include "mutt.h" |