422
431
AC_SEARCH_LIBS([gethostent],[nsl], [(LIBS="$LIBS -lnsl"; CLAMAV_MILTER_LIBS="$CLAMAV_MILTER_LIBS -lnsl"; FRESHCLAM_LIBS="$FRESHCLAM_LIBS -lnsl"; CLAMD_LIBS="$CLAMD_LIBS -lnsl")])
424
433
AC_CHECK_FUNCS([poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat strcasestr inet_ntop setgroups initgroups ctime_r mkstemp mallinfo])
428
439
AC_ARG_ENABLE([mempool],[ --disable-mempool disable memory pools], enable_mempool=$enableval, enable_mempool="yes")
429
440
if test "$enable_mempool" = "yes"; then
430
441
if test "$ac_cv_c_mmap_private" != "yes"; then
431
442
AC_MSG_NOTICE([****** mempool support disabled (mmap not available or not usable)])
435
448
if test "$ac_cv_c_mmap_anonymous" = "no"; then
436
449
AC_MSG_NOTICE([****** mempool support disabled (anonymous mmap not available)])
438
451
AC_DEFINE([USE_MPOOL],1,[enable memory pools])