From ae22732e85d6c314545b2b4772e56d7b541ef2d2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 9 Jan 2008 17:22:52 -0800 Subject: [PATCH] gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally. See . * NEWS: announce this. * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H. --- ChangeLog | 7 +++++++ NEWS | 6 ++++++ m4/alloca.m4 | 8 ++------ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 721b9e26d..472efb36e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-09 Paul Eggert + + gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally. + See . + * NEWS: announce this. + * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H. + 2008-01-09 Simon Josefsson and Eric Blake diff --git a/NEWS b/NEWS index df2676ffe..89ecd9fd8 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,12 @@ User visible incompatible changes Date Modules Changes +2008-01-09 alloca-opt Now defines HAVE_ALLOCA_H only when the system + supplies an . Gnulib-using code is now + expected to include unconditionally. + Non-gnulib-using code can continue to include + only if HAVE_ALLOCA_H is defined. + 2008-01-08 memmem This module now replaces worst-case inefficient implementations; clients that use controlled needles and thus do not care about worst-case diff --git a/m4/alloca.m4 b/m4/alloca.m4 index eb62e0e7a..95f54a6d4 100644 --- a/m4/alloca.m4 +++ b/m4/alloca.m4 @@ -1,5 +1,5 @@ -# alloca.m4 serial 7 -dnl Copyright (C) 2002-2004, 2006 Free Software Foundation, Inc. +# alloca.m4 serial 8 +dnl Copyright (C) 2002-2004, 2006, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -39,10 +39,6 @@ AC_DEFUN([gl_FUNC_ALLOCA], ALLOCA_H=alloca.h fi AC_SUBST([ALLOCA_H]) - - AC_DEFINE(HAVE_ALLOCA_H, 1, - [Define HAVE_ALLOCA_H for backward compatibility with older code - that includes only if HAVE_ALLOCA_H is defined.]) ]) # Prerequisites of lib/alloca.c. -- 2.11.0