Skip to content
Snippets Groups Projects
Commit fd46bf0b authored by Andrew Perepechko's avatar Andrew Perepechko
Browse files

Branch HEAD

b=16091
i=Johann Lombardi (johann@sun.com)

check if CONFIG_QUOTA defined when --enable-quota is passed
parent ed587060
No related branches found
No related tags found
No related merge requests found
...@@ -1660,20 +1660,32 @@ fi ...@@ -1660,20 +1660,32 @@ fi
# whether to enable quota support # whether to enable quota support
# #
AC_DEFUN([LC_CONFIG_QUOTA], AC_DEFUN([LC_CONFIG_QUOTA],
[AC_MSG_CHECKING([whether to disable quota support]) [AC_ARG_ENABLE([quota],
AC_ARG_ENABLE([quota], AC_HELP_STRING([--enable-quota],
AC_HELP_STRING([--disable-quota], [enable quota support]),
[disable quota support]), [],[enable_quota='default'])
[],[enable_quota='yes'])
AC_MSG_RESULT([$enable_quota])
if test x$linux25 != xyes; then if test x$linux25 != xyes; then
enable_quota='no' enable_quota='no'
fi fi
LB_LINUX_CONFIG([QUOTA],[
if test x$enable_quota = xdefault; then
enable_quota='yes'
fi
],[
if test x$enable_quota = xdefault; then
enable_quota='no'
AC_MSG_WARN([quota is not enabled because the kernel lacks quota support])
else
if test x$enable_quota = xyes; then
AC_MSG_ERROR([cannot enable quota because the kernel lacks quota support])
fi
fi
])
if test x$enable_quota != xno; then if test x$enable_quota != xno; then
AC_DEFINE(HAVE_QUOTA_SUPPORT, 1, [Enable quota support]) AC_DEFINE(HAVE_QUOTA_SUPPORT, 1, [Enable quota support])
fi fi
]) ])
# #
# LC_CONFIG_SPLIT # LC_CONFIG_SPLIT
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment