* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
return type is 'void *', not 'char *'. Supply C89 prototype.
Reported by Thomas Klausner.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2010-08-05 Bruno Haible <bruno@clisp.org>
+ and Eric Blake <eblake@redhat.com>
+
+ AC_FUNC_ALLOCA: modernize
+ * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Assume that alloca's
+ return type is 'void *', not 'char *'. Supply C89 prototype.
+ Reported by Thomas Klausner.
+
2010-08-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix testsuite failure due to bugs in third-party aclocal macros.
AN_FUNCTION([alloca], [AC_FUNC_ALLOCA])
AN_HEADER([alloca.h], [AC_FUNC_ALLOCA])
AC_DEFUN([AC_FUNC_ALLOCA],
+[AC_REQUIRE([AC_TYPE_SIZE_T])]dnl
[# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments. Useless!
AC_CACHE_CHECK([for working alloca.h], ac_cv_working_alloca_h,
#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
+void *alloca (size_t);
# endif
# endif
# endif