diff --git a/configure.ac b/configure.ac index 6eaac533a4..d2363f0e2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1354,7 +1354,10 @@ AS_CASE([$with_jemalloc], with_jemalloc=no])]) AS_IF([test "$with_jemalloc" = "no"], - [AC_CHECK_FUNCS([malloc_size malloc_usable_size])]) + [AS_CASE([$host], + [*-freebsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on FreeBSD])], + [*-netbsd*],[AC_MSG_ERROR([You cannot compile without jemalloc; jemalloc is the system allocator on NetBSD])]) + AC_CHECK_FUNCS([malloc_size malloc_usable_size])]) AM_CONDITIONAL([HAVE_JEMALLOC], [test "$with_jemalloc" = "yes"])