diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-09 17:59:53 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-09 17:59:53 +0530 |
commit | e60bd6c6628e8ca7e8f2b464c155fa74527bcac9 (patch) | |
tree | 594d73d6307479882ae72e6de50e4132a43ba114 /m4 | |
parent | 958d791d3ce5aa3b3e4a9d39ef40d387aec2c7ab (diff) |
check: Don't check for malloc/realloc and try to fallback
When malloc is not available, this will set #define malloc rpl_malloc
which is implemented only inside libcheck, and not everything will link
to libcheck.
We don't really need to care too much about how malloc is implemented
and we don't care about platforms that don't implement malloc.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/check-checks.m4 | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/m4/check-checks.m4 b/m4/check-checks.m4 index 0a2cb59d0d..44baca4735 100644 --- a/m4/check-checks.m4 +++ b/m4/check-checks.m4 @@ -18,11 +18,6 @@ AC_SUBST(CHECK_VERSION) dnl Checks for header files and declarations AC_CHECK_HEADERS([unistd.h sys/wait.h sys/time.h], [], [], [AC_INCLUDES_DEFAULT]) -AC_FUNC_MALLOC -AC_FUNC_REALLOC -AM_CONDITIONAL(HAVE_MALLOC, test "x$ac_cv_func_malloc" = "xyes") -AM_CONDITIONAL(HAVE_REALLOC, test "x$ac_cv_func_realloc" = "xyes") - dnl Check for localtime_r() AC_CHECK_FUNCS([localtime_r]) AM_CONDITIONAL(HAVE_LOCALTIME_R, test "x$ac_cv_func_localtime_r" = "xyes") |