From 1cc069cb0afb228f2aaa79f9ed813d5ece2c1e8b Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 26 Sep 2021 21:11:57 +0300 Subject: [PATCH 38/38] configure.ac: Improve malloc(0) test output See osdn #41100 Signed-off-by: Marko Lindqvist --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index f3b452df26..13c587e472 100644 --- a/configure.ac +++ b/configure.ac @@ -82,7 +82,7 @@ dnl Sed is needed for the configuration dnl of the clients, database setting and the mapimg toolkits. AC_PROG_SED -AC_CACHE_CHECK([for malloc(0) return value], [fc_cv_malloc_zero_ok], [ +AC_CACHE_CHECK([can we call malloc(0)], [fc_cv_malloc_zero_ok], [ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include @@ -97,9 +97,9 @@ main() return (allocation == NULL); } -]])], [fc_cv_malloc_zero_ok=true], [fc_cv_malloc_zero_ok=false], [fc_cv_malloc_zero_ok=false])]) +]])], [fc_cv_malloc_zero_ok=yes], [fc_cv_malloc_zero_ok=no], [fc_cv_malloc_zero_ok=no])]) -if test "x$fc_cv_malloc_zero_ok" = "xtrue" ; then +if test "x$fc_cv_malloc_zero_ok" = "xyes" ; then AC_DEFINE([MALLOC_ZERO_OK], [1], [It's ok to call malloc() for zero bytes]) fi -- 2.33.0