dovecot-sieve-1.0: Fail if trying to compile the plugin against ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jun 6 16:56:42 EEST 2008
details: http://hg.dovecot.org/dovecot-sieve-1.0/rev/aa6896701baf
changeset: 37:aa6896701baf
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 06 16:56:38 2008 +0300
description:
Fail if trying to compile the plugin against other than Dovecot v1.0.
diffstat:
1 file changed, 7 insertions(+)
configure.in | 7 +++++++
diffs (17 lines):
diff -r 53730547aa32 -r aa6896701baf configure.in
--- a/configure.in Fri May 16 16:25:27 2008 +0300
+++ b/configure.in Fri Jun 06 16:56:38 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.0 works only with Dovecot v1.0])
+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