Blame m4/eealloc.m4

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