* 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.
This commit is contained in:
Ralf Wildenhues 2006-10-13 05:19:20 +00:00
parent ccf4393e35
commit 85033df7df
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-10-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* 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 <eggert@cs.ucla.edu>
* lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Set as_executable_p,

View File

@ -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],