From 89097c5bc502d2dcdc9eec606f54600ee0abca93 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Sun, 5 Nov 1995 08:15:15 +0000 Subject: [PATCH] * configure.in: add check for stddef.h * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined. --- mmalloc/ChangeLog | 5 +++++ mmalloc/configure | 29 +++++++++++++++++++++++++++++ mmalloc/configure.in | 1 + mmalloc/mmalloc.h | 2 +- 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/mmalloc/ChangeLog b/mmalloc/ChangeLog index 06c9c55..e1f0c20 100644 --- a/mmalloc/ChangeLog +++ b/mmalloc/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 5 00:14:13 1995 Jason Molenda (crash@phydeaux.cygnus.com) + + * configure.in: add check for stddef.h + * mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined. + Sat Nov 4 19:10:13 1995 Jason Molenda (crash@phydeaux.cygnus.com) * configure.in: add AC_HEADER_STDC check. diff --git a/mmalloc/configure b/mmalloc/configure index 8e02020..bca7aed 100755 --- a/mmalloc/configure +++ b/mmalloc/configure @@ -847,6 +847,35 @@ EOF fi +ac_safe=`echo "stddef.h" | tr './\055' '___'` +echo $ac_n "checking for stddef.h""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +ac_err=`grep -v '^ *+' conftest.out` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + trap '' 1 2 15 cat > confcache <<\EOF diff --git a/mmalloc/configure.in b/mmalloc/configure.in index e7b9a4b..0c07e67 100644 --- a/mmalloc/configure.in +++ b/mmalloc/configure.in @@ -9,5 +9,6 @@ AC_PROG_RANLIB AC_FUNC_MMAP AC_HEADER_STDC +AC_CHECK_HEADER(stddef.h) AC_OUTPUT(Makefile) diff --git a/mmalloc/mmalloc.h b/mmalloc/mmalloc.h index a4a6dd8..8399876 100644 --- a/mmalloc/mmalloc.h +++ b/mmalloc/mmalloc.h @@ -1,7 +1,7 @@ #ifndef MMALLOC_H #define MMALLOC_H 1 -#ifdef STDC_HEADERS +#ifdef HAVE_STDDEF_H #include #endif -- 2.7.4