File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1337,13 +1337,15 @@ AC_ARG_WITH([gmp],
13371337AS_IF([test "x$with_gmp" != xno],
13381338 [AC_CHECK_HEADERS(gmp.h)
13391339 AS_IF([test "x$ac_cv_header_gmp_h" != xno],
1340- AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
1340+ AC_SEARCH_LIBS([__gmpz_init], [gmp],
1341+ [AC_DEFINE(HAVE_LIBGMP, 1)]))])
13411342
13421343AC_ARG_WITH([jemalloc],
13431344 [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
13441345 [with_jemalloc=$withval], [with_jemalloc=no])
13451346AS_IF([test "x$with_jemalloc" = xyes],[
1346- AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
1347+ AC_SEARCH_LIBS([malloc_conf], [jemalloc],
1348+ [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
13471349 AC_CHECK_HEADER(jemalloc/jemalloc.h, [
13481350 AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
13491351 ])
You can’t perform that action at this time.
0 commit comments