summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2003-01-13 23:01:30 +0000
committerWojciech Polak <polak@gnu.org>2003-01-13 23:01:30 +0000
commitb0ccfea9cb042f8a95fe6dbad2a5597362bc2b65 (patch)
tree5e97f0f75f322a64c076cd91d0d2fe9717b8749b /m4
parent681f85c7baa8e618864718251e16d844034e9ad4 (diff)
downloadmailutils-b0ccfea9cb042f8a95fe6dbad2a5597362bc2b65.tar.gz
mailutils-b0ccfea9cb042f8a95fe6dbad2a5597362bc2b65.tar.bz2
Added TLS/SSL support (via GnuTLS)
Diffstat (limited to 'm4')
-rw-r--r--m4/Makefile.am9
-rw-r--r--m4/tls.m430
2 files changed, 35 insertions, 4 deletions
diff --git a/m4/Makefile.am b/m4/Makefile.am
index 15d240258..1daf1cb09 100644
--- a/m4/Makefile.am
+++ b/m4/Makefile.am
@@ -1,19 +1,19 @@
## Process this file with GNU Automake to create Makefile.in
-## Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+## Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
##
-## GNU Mailtuils is free software; you can redistribute it and/or
+## GNU Mailutils is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2, or (at
## your option) any later version.
##
-## This program is distributed in the hope that it will be useful, but
+## GNU Mailutils is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
+## along with GNU Mailutils; if not, write to the Free Software
## Foundation, Inc.
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -27,6 +27,7 @@ EXTRA_DIST = \
realloc.m4 \
regex.m4 \
utmp.m4 \
+ tls.m4 \
iconv.m4 \
codeset.m4 \
gettext.m4 \
diff --git a/m4/tls.m4 b/m4/tls.m4
new file mode 100644
index 000000000..7cbd278b3
--- /dev/null
+++ b/m4/tls.m4
@@ -0,0 +1,30 @@
+AC_DEFUN(MU_CHECK_TLS,
+[
+ if test "x$WITH_GNUTLS" = x; then
+ cached=""
+ AC_ARG_WITH([gnutls],
+ AC_HELP_STRING([--with-gnutls],
+ [use GNU TLS library]),
+ [WITH_GNUTLS=$withval],
+ [WITH_GNUTLS=no])
+
+ if test "$WITH_GNUTLS" != "no"; then
+ AC_CHECK_HEADER(gnutls/gnutls.h,
+ [:],
+ [WITH_GNUTLS=no])
+ if test "$WITH_GNUTLS" != "no"; then
+ saved_LIBS=$LIBS
+ AC_CHECK_LIB(gnutls, gnutls_global_init,
+ [TLS_LIBS="-lgnutls"],
+ [WITH_GNUTLS=no])
+ AC_CHECK_LIB(gcrypt, main,
+ [TLS_LIBS="$TLS_LIBS -lgcrypt"],
+ [WITH_GNUTLS=no])
+ LIBS=$saved_LIBS
+ fi
+ fi
+ else
+ cached=" (cached) "
+ fi
+ AC_MSG_CHECKING([whether to use TLS libraries])
+ AC_MSG_RESULT(${cached}${WITH_GNUTLS})])

Return to:

Send suggestions and report system problems to the System administrator.