+2024-11-01 Bruno Haible <bruno@clisp.org>
+
+ eealloc: Revert last change.
+ * m4/eealloc.m4 (gl_EEMALLOC): Invoke _AC_FUNC_MALLOC_IF, not
+ gl_CHECK_MALLOC_POSIX.
+
2024-11-01 Bruno Haible <bruno@clisp.org>
realloc-posix: Fix test failure on AIX (regression 2024-10-27).
# eealloc.m4
-# serial 6
+# serial 5
dnl Copyright (C) 2003, 2009-2024 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_EEMALLOC],
[
- gl_CHECK_MALLOC_POSIX
- case "$gl_cv_func_malloc_posix" in
- *yes) gl_cv_func_malloc_0_nonnull=1 ;;
- *) gl_cv_func_malloc_0_nonnull=0 ;;
- esac
+ _AC_FUNC_MALLOC_IF(
+ [gl_cv_func_malloc_0_nonnull=1],
+ [gl_cv_func_malloc_0_nonnull=0],
+ ["$gl_cross_guess_normal"])
AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
[If malloc(0) is != NULL, define this to 1. Otherwise define this
to 0.])