Feature #9113 ยป 0001-configure.in-add-with-jemalloc-option.patch
configure.in | ||
---|---|---|
with_gmp="$ac_cv_lib_gmp___gmpz_init"
|
||
AS_IF([test -z "$with_gmp"], [with_gmp=no])])
|
||
dnl use jemalloc on GNU/Linux, assume non-GNU has a better malloc than glibc
|
||
AC_ARG_WITH([jemalloc],
|
||
[AS_HELP_STRING([--with-jemalloc],
|
||
[use jemalloc allocator. Default is yes on GNU/Linux, no elsewhere])],
|
||
[],
|
||
[AS_CASE(["$target"], [*-linux-gnu], [with_jemalloc=yes], [with_jemalloc=no])])
|
||
AS_IF([test "x$with_jemalloc" != xno],[
|
||
AC_CHECK_LIB([jemalloc],[malloc_conf],
|
||
[LIBS="-ljemalloc $LIBS"],
|
||
[AC_MSG_WARN([No jemalloc found, using system malloc])])])
|
||
dnl check for large file stuff
|
||
mv confdefs.h confdefs1.h
|
||
: > confdefs.h
|