[dovecot-cvs] dovecot configure.in,1.82,1.83

cras at procontrol.fi cras at procontrol.fi
Sun Jan 5 17:19:52 EET 2003


Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv2361

Modified Files:
	configure.in 
Log Message:
Initial support for Cyrus SASL 2 library. I couldn't get it to work yet
though :)



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- configure.in	5 Jan 2003 13:09:51 -0000	1.82
+++ configure.in	5 Jan 2003 15:19:50 -0000	1.83
@@ -97,6 +97,15 @@
 	fi,
 	want_vpopmail=yes)
 
+AC_ARG_WITH(cyrus-sasl2,
+[  --with-cyrus-sasl2      Build with Cyrus SASL 2 library support],
+	if test x$withval = xno; then
+		want_cyrus_sasl2=no
+	else
+		want_cyrus_sasl2=yes
+	fi,
+	want_cyrus_sasl2=no)
+
 AC_ARG_WITH(rawlog,
 [  --with-rawlog           Build support for logging user traffic],
 	if test x$withval = xyes; then
@@ -702,6 +711,18 @@
 
 AC_SUBST(VPOPMAIL_CFLAGS)
 AC_SUBST(VPOPMAIL_LIBS)
+
+if test $want_cyrus_sasl2 = yes; then
+	AC_CHECK_LIB(sasl2, sasl_server_start, [
+		AC_CHECK_HEADER(sasl/sasl.h, [
+			AC_DEFINE(USE_CYRUS_SASL2,,
+				  Define if you want to use Cyrus SASL library)
+			SASL_LIBS="-lsasl2"
+		])
+	])
+fi
+
+AC_SUBST(SASL_LIBS)
 
 if test $need_crypt = yes; then
 	AC_CHECK_LIB(crypt, crypt, [




More information about the dovecot-cvs mailing list