dovecot-2.0: configure: Allow --with-linux-quota=n to be only 1 ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Aug 7 23:54:55 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/48324f717aca
changeset: 9746:48324f717aca
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 07 16:54:36 2009 -0400
description:
configure: Allow --with-linux-quota=n to be only 1 or 2.

diffstat:

1 file changed, 3 insertions(+)
configure.in |    3 +++

diffs (13 lines):

diff -r b7c589751c5b -r 48324f717aca configure.in
--- a/configure.in	Fri Aug 07 16:47:51 2009 -0400
+++ b/configure.in	Fri Aug 07 16:54:36 2009 -0400
@@ -64,6 +64,9 @@ AC_ARG_WITH(notify,
 
 AC_ARG_WITH(linux-quota,
 [  --with-linux-quota=n    Linux quota version to use (default: system's)],
+	if test "$withval" != "1" && test "$withval" != "2"; then
+		AC_ERROR([--with-linux-quota can be only 1 or 2])
+	fi
 	AC_DEFINE_UNQUOTED(_LINUX_QUOTA_VERSION, $withval,
 		[Linux quota version to use])
 )


More information about the dovecot-cvs mailing list