Make sure LG_PAGE <= LG_HUGEPAGE.

This resolves #883.
This commit is contained in:
Jason Evans 2017-06-23 12:35:17 -07:00
parent aa363f9388
commit c99e570a48

View File

@ -1373,6 +1373,10 @@ if test "x${je_cv_lg_hugepage}" = "x" ; then
je_cv_lg_hugepage=21 je_cv_lg_hugepage=21
fi fi
fi fi
if test "x${LG_PAGE}" != "xundefined" -a \
"${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
AC_MSG_ERROR([Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})])
fi
AC_DEFINE_UNQUOTED([LG_HUGEPAGE], [${je_cv_lg_hugepage}]) AC_DEFINE_UNQUOTED([LG_HUGEPAGE], [${je_cv_lg_hugepage}])
AC_ARG_WITH([lg_page_sizes], AC_ARG_WITH([lg_page_sizes],