dovecot-sieve-1.1: Fail if trying to compile the plugin against ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 6 16:56:45 EEST 2008
details: http://hg.dovecot.org/dovecot-sieve-1.1/rev/56dcc0a823af
changeset: 59:56dcc0a823af
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 06 16:56:42 2008 +0300
description:
Fail if trying to compile the plugin against Dovecot v1.0.
diffstat:
1 file changed, 7 insertions(+)
configure.in | 7 +++++++
diffs (17 lines):
diff -r bfed165c4db2 -r 56dcc0a823af configure.in
--- a/configure.in Fri May 16 16:25:38 2008 +0300
+++ b/configure.in Fri Jun 06 16:56:42 2008 +0300
@@ -47,6 +47,13 @@ if test $have_dovecot_libs = yes; then
dovecot_incdir="$dovecotdir"
fi
+version=`grep '^#define VERSION ' $dovecot_incdir/config.h | sed 's/.*VERSION "\([^"]*\)".*/\1/'`
+if test "$version" = ""; then
+ AC_MSG_WARN([Dovecot version not found from $dovecot_incdir/config.h])
+elif echo $version|grep ^1.0 > /dev/null; then
+ AC_MSG_ERROR([Sieve plugin v1.1 works only with Dovecot v1.1 and later])
+fi
+
dnl * Regexp library check, from Cyrus IMAP
AC_SEARCH_LIBS(regcomp, rx regex, [
CFLAGS="$CFLAGS -DENABLE_REGEX"
More information about the dovecot-cvs
mailing list