changeset 9294:e92a9c18fd5b HEAD

configure: Allow --with-linux-quota=n to be only 1 or 2.
author Timo Sirainen <tss@iki.fi>
date Fri, 07 Aug 2009 16:54:36 -0400
parents c50f133f0acc
children 4fcb729cfadc
files configure.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Fri Aug 07 16:47:51 2009 -0400
+++ b/configure.in	Fri Aug 07 16:54:36 2009 -0400
@@ -58,6 +58,9 @@
 
 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])
 )