This commit is contained in:
Tatsuhiro Tsujikawa 2016-01-22 22:37:45 +09:00
parent efc3206ae0
commit cf06c3fbc5
1 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,6 @@ 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], [],
[$PTHREAD_LDFLAGS]) [$PTHREAD_LDFLAGS])
LIBS=$LIBS_OLD
if test "x${have_jemalloc}" = "xyes"; then if test "x${have_jemalloc}" = "xyes"; then
jemalloc_libs=${ac_cv_search_malloc_stats_print} jemalloc_libs=${ac_cv_search_malloc_stats_print}
@ -360,13 +359,14 @@ if test "x${request_jemalloc}" != "xno"; then
# On Darwin, malloc_stats_print is je_malloc_stats_print # On Darwin, malloc_stats_print is je_malloc_stats_print
AC_SEARCH_LIBS([je_malloc_stats_print], [jemalloc], [have_jemalloc=yes], [], AC_SEARCH_LIBS([je_malloc_stats_print], [jemalloc], [have_jemalloc=yes], [],
[$PTHREAD_LDFLAGS]) [$PTHREAD_LDFLAGS])
LIBS=$LIBS_OLD
if test "x${have_jemalloc}" = "xyes"; then if test "x${have_jemalloc}" = "xyes"; then
jemalloc_libs=${ac_cv_search_je_malloc_stats_print} jemalloc_libs=${ac_cv_search_je_malloc_stats_print}
fi fi
fi fi
LIBS=$LIBS_OLD
if test "x${have_jemalloc}" = "xyes" && if test "x${have_jemalloc}" = "xyes" &&
test "x${jemalloc_libs}" != "xnone required"; then test "x${jemalloc_libs}" != "xnone required"; then
JEMALLOC_LIBS=${jemalloc_libs} JEMALLOC_LIBS=${jemalloc_libs}