From: Timo Sirainen Date: Fri, 7 Aug 2009 21:57:36 +0000 (-0400) Subject: configure: Removed --with-linux-quota parameter. X-Git-Tag: 2.0.alpha1~303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64e33505784bb6f6ab83ce062d82870868751eb5;p=thirdparty%2Fdovecot%2Fcore.git configure: Removed --with-linux-quota parameter. It was useful only in some broken setups and even there it can be specified with CPPFLAGS instead. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index f2e877f970..76b816af01 100644 --- a/configure.in +++ b/configure.in @@ -62,15 +62,6 @@ AC_ARG_WITH(notify, notify=$withval, 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]) -) - AC_ARG_WITH(nss, [ --with-nss Build with NSS module support (auto)], TEST_WITH(nss, $withval), diff --git a/src/plugins/quota/quota-fs.c b/src/plugins/quota/quota-fs.c index 6d757735cb..c42dad9429 100644 --- a/src/plugins/quota/quota-fs.c +++ b/src/plugins/quota/quota-fs.c @@ -562,8 +562,9 @@ fs_quota_get_linux(struct fs_quota_root *root, bool group, bool bytes, if (errno == EINVAL) { i_error("Dovecot was compiled with Linux quota " "v%d support, try changing it " - "(--with-linux-quota configure option)", - _LINUX_QUOTA_VERSION); + "(CPPFLAGS=-D_LINUX_QUOTA_VERSION=%d configure)", + _LINUX_QUOTA_VERSION, + _LINUX_QUOTA_VERSION == 1 ? 2 : 1); } return -1; }