mirror of
git://git.sv.gnu.org/autoconf
synced 2025-04-12 15:20:26 +08:00
* 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:
parent
ccf4393e35
commit
85033df7df
@ -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,
|
||||
|
@ -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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user