1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
AC_ARG_ENABLE([mempool],[ --disable-mempool disable memory pools], enable_mempool=$enableval, enable_mempool="yes")
have_mempool="no"
if test "$enable_mempool" = "yes"; then
if test "$ac_cv_c_mmap_private" != "yes"; then
AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)])
else
if test "$ac_cv_c_can_get_pagesize" != "yes"; then
AC_MSG_NOTICE([****** mempool support disabled (pagesize cannot be determined)])
else
if test "$ac_cv_c_mmap_anonymous" = "no"; then
AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)])
else
AC_DEFINE([USE_MPOOL],1,[enable memory pools])
have_mempool="yes"
fi
fi
fi
fi
|