Blame m4/eealloc.m4

Packit 8f70b4
# eealloc.m4 serial 3
Packit 8f70b4
dnl Copyright (C) 2003, 2009-2018 Free Software Foundation, Inc.
Packit 8f70b4
dnl This file is free software; the Free Software Foundation
Packit 8f70b4
dnl gives unlimited permission to copy and/or distribute it,
Packit 8f70b4
dnl with or without modifications, as long as this notice is preserved.
Packit 8f70b4
Packit 8f70b4
AC_DEFUN([gl_EEALLOC],
Packit 8f70b4
[
Packit 8f70b4
  AC_REQUIRE([gl_EEMALLOC])
Packit 8f70b4
  AC_REQUIRE([gl_EEREALLOC])
Packit 8f70b4
])
Packit 8f70b4
Packit 8f70b4
AC_DEFUN([gl_EEMALLOC],
Packit 8f70b4
[
Packit 8f70b4
  _AC_FUNC_MALLOC_IF(
Packit 8f70b4
    [gl_cv_func_malloc_0_nonnull=1],
Packit 8f70b4
    [gl_cv_func_malloc_0_nonnull=0])
Packit 8f70b4
  AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull],
Packit 8f70b4
    [If malloc(0) is != NULL, define this to 1.  Otherwise define this
Packit 8f70b4
     to 0.])
Packit 8f70b4
])
Packit 8f70b4
Packit 8f70b4
AC_DEFUN([gl_EEREALLOC],
Packit 8f70b4
[
Packit 8f70b4
  _AC_FUNC_REALLOC_IF(
Packit 8f70b4
    [gl_cv_func_realloc_0_nonnull=1],
Packit 8f70b4
    [gl_cv_func_realloc_0_nonnull=0])
Packit 8f70b4
  AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull],
Packit 8f70b4
    [If realloc(NULL,0) is != NULL, define this to 1.  Otherwise define this
Packit 8f70b4
     to 0.])
Packit 8f70b4
])