Blame m4/eealloc.m4

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