Having seen the message that a release might be imminent, I had a look
at the patches for autoconf in
http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/autoconf/patches

so the attached might want to go in...

Cheers,

Patrick
>From ffc83effa49340314d71ff266d94b512e1f00e3a Mon Sep 17 00:00:00 2001
From: Patrick Welche <pr...@cam.ac.uk>
Date: Thu, 20 Dec 2012 09:41:38 +0000
Subject: [PATCH] AC_FUNC_ALLOCA: Don't define a prototype for alloca() on BSDs

* alloca() is defined in stdlib.h on BSDs. From
  
http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/devel/autoconf/patches/patch-aa
---
 lib/autoconf/functions.m4 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index de7a6b8..c7b37df 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -384,6 +384,8 @@ AC_CACHE_CHECK([for alloca], ac_cv_func_alloca_works,
 # ifdef _MSC_VER
 #  include <malloc.h>
 #  define alloca _alloca
+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) 
|| defined(__OpenBSD__)
+#  include <stdlib.h>
 # else
 #  ifdef HAVE_ALLOCA_H
 #   include <alloca.h>
-- 
1.8.0.1

Reply via email to