From: Timo Sirainen Date: Fri, 7 Aug 2009 20:54:36 +0000 (-0400) Subject: configure: Allow --with-linux-quota=n to be only 1 or 2. X-Git-Tag: 2.0.alpha1~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7aaca6ed7ef70cd059f22715e810002ba6d2342a;p=thirdparty%2Fdovecot%2Fcore.git configure: Allow --with-linux-quota=n to be only 1 or 2. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index f77109a5b5..f2e877f970 100644 --- a/configure.in +++ b/configure.in @@ -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]) )