From: Ralf Wildenhues Date: Fri, 13 Oct 2006 05:19:20 +0000 (+0000) Subject: * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test, X-Git-Tag: AUTOCONF-2.60b~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85033df7df78e566df88333cfacf501dee41e8d4;p=thirdparty%2Fautoconf.git * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test, include the default headers, and redefine obstack_chunk_alloc and obstack_chunk_free. Fixes false failure with glibc. --- diff --git a/ChangeLog b/ChangeLog index c564bddc7..474f92dbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-10-13 Ralf Wildenhues + + * lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test, + include the default headers, and redefine obstack_chunk_alloc + and obstack_chunk_free. Fixes false failure with glibc. + 2006-10-12 Paul Eggert * lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p, diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4 index 4d02641c9..6f2cb1217 100644 --- a/lib/autoconf/functions.m4 +++ b/lib/autoconf/functions.m4 @@ -1335,8 +1335,11 @@ AC_DEFUN([AC_FUNC_OBSTACK], [AC_LIBSOURCES([obstack.h, obstack.c])dnl AC_CACHE_CHECK([for obstacks], ac_cv_func_obstack, [AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[@%:@include "obstack.h"]], + [AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT + [@%:@include "obstack.h"]], [[struct obstack mem; + @%:@define obstack_chunk_alloc malloc + @%:@define obstack_chunk_free free obstack_init (&mem); obstack_free (&mem, 0);]])], [ac_cv_func_obstack=yes],