mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
A more helpful error when --without-jemalloc is impossible
When jemalloc is the system allocator (on FreeBSD and NetBSD), trying to build --without-jemalloc caused an obscure compiler error. Instead, complain at configure time that --without-jemalloc cannot work. (It needs to remain an error because it is vexing when configure quietly ignores an explicit direction.) (cherry picked from commit f0e79458beebfb7f247f38bdd9991b6998f97040)
This commit is contained in:
parent
6173e62147
commit
9ec7f4399f
@ -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"])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user