]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (AC_FUNC_OBSTACK): In the test,
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 13 Oct 2006 05:19:20 +0000 (05:19 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 13 Oct 2006 05:19:20 +0000 (05:19 +0000)
include the default headers, and redefine obstack_chunk_alloc
and obstack_chunk_free.  Fixes false failure with glibc.

ChangeLog
lib/autoconf/functions.m4

index c564bddc78c3024a18ba8f1ca0b8748c1c7e5bf2..474f92dbc6f85b94608f789ce54389b3c79801cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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,
index 4d02641c996a1facbcb4974080c7e9979b59a9a0..6f2cb12173c6dd93ff75246568d728f94d7a4daf 100644 (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],