Commit eba28252 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Handle the case where jemalloc is available without linking extra library

parent a4a06947
...@@ -275,8 +275,9 @@ if test "x${request_jemalloc}" != "xno"; then ...@@ -275,8 +275,9 @@ if test "x${request_jemalloc}" != "xno"; then
LIBS_OLD=$LIBS LIBS_OLD=$LIBS
AC_SEARCH_LIBS([malloc_stats_print], [jemalloc], [have_jemalloc=yes]) AC_SEARCH_LIBS([malloc_stats_print], [jemalloc], [have_jemalloc=yes])
LIBS=$LIBS_OLD LIBS=$LIBS_OLD
if test "x${have_jemalloc}" = "xyes"; then if test "x${have_jemalloc}" = "xyes" &&
JEMALLOC_LIBS="-ljemalloc" test "x${ac_cv_search_malloc_stats_print}" != "xnone required"; then
JEMALLOC_LIBS=${ac_cv_search_malloc_stats_print}
AC_SUBST([JEMALLOC_LIBS]) AC_SUBST([JEMALLOC_LIBS])
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment