You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.5 KiB

  1. diff -pU3 a/configure b/configure
  2. --- a/configure 2017-09-14 21:52:19.000000000 +0900
  3. +++ b/configure 2017-09-15 07:03:12.000000000 +0900
  4. @@ -10614,6 +10614,7 @@ fi
  5. ac_res=$ac_cv_search___gmpz_init
  6. if test "$ac_res" != no; then :
  7. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8. + $as_echo "#define HAVE_LIBGMP 1" >>confdefs.h
  9. fi
  10. @@ -10683,6 +10684,7 @@ fi
  11. ac_res=$ac_cv_search_malloc_conf
  12. if test "$ac_res" != no; then :
  13. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14. + $as_echo "#define HAVE_LIBJEMALLOC 1" >>confdefs.h
  15. else
  16. with_jemalloc=no
  17. diff -pU3 a/configure.in b/configure.in
  18. --- a/configure.in 2017-08-04 23:39:29.000000000 +0900
  19. +++ b/configure.in 2017-09-15 07:20:40.000000000 +0900
  20. @@ -1403,13 +1403,15 @@ AC_ARG_WITH([gmp],
  21. AS_IF([test "x$with_gmp" != xno],
  22. [AC_CHECK_HEADERS(gmp.h)
  23. AS_IF([test "x$ac_cv_header_gmp_h" != xno],
  24. - AC_SEARCH_LIBS([__gmpz_init], [gmp]))])
  25. + AC_SEARCH_LIBS([__gmpz_init], [gmp],
  26. + [AC_DEFINE(HAVE_LIBGMP, 1)]))])
  27. AC_ARG_WITH([jemalloc],
  28. [AS_HELP_STRING([--with-jemalloc],[use jemalloc allocator])],
  29. [with_jemalloc=$withval], [with_jemalloc=no])
  30. AS_IF([test "x$with_jemalloc" = xyes],[
  31. - AC_SEARCH_LIBS([malloc_conf], [jemalloc], [], [with_jemalloc=no])
  32. + AC_SEARCH_LIBS([malloc_conf], [jemalloc],
  33. + [AC_DEFINE(HAVE_LIBJEMALLOC, 1)], [with_jemalloc=no])
  34. AC_CHECK_HEADER(jemalloc/jemalloc.h, [
  35. AC_DEFINE(RUBY_ALTERNATIVE_MALLOC_HEADER, [<jemalloc/jemalloc.h>])
  36. ])