Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/autoconf/dist/lib/autoconf autoconf: AC_FUNC_A...



details:   https://anonhg.NetBSD.org/src/rev/f7fa63dae69b
branches:  trunk
changeset: 375973:f7fa63dae69b
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue May 23 20:15:58 2023 +0000

description:
autoconf: AC_FUNC_ALLOCA(): add local fix for BSD support

Add local fix to AC_FUNC_ALLOCA() to include <stdlib.h> on BSD:
 # elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
 #   include <stdlib.h>

This change avoids regen losing this change in tools/compat/configure
that was added in rev 1.75 on 2013-03-05 of tools/compat/configure,
and subsequent commits that keep re-adding these lines back
manually (e.g., rev 1.97 on 2019-06-22 of tools/compat/configure)

XXX: Arguably this could be fixed in a separate way to allow us to
use an unmodified modern autoconf in the future ?

diffstat:

 external/gpl3/autoconf/dist/lib/autoconf/functions.m4 |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 1816e2488d09 -r f7fa63dae69b external/gpl3/autoconf/dist/lib/autoconf/functions.m4
--- a/external/gpl3/autoconf/dist/lib/autoconf/functions.m4     Tue May 23 20:07:21 2023 +0000
+++ b/external/gpl3/autoconf/dist/lib/autoconf/functions.m4     Tue May 23 20:15:58 2023 +0000
@@ -384,6 +384,8 @@ AC_CACHE_CHECK([for alloca], ac_cv_func_
 # 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>



Home | Main Index | Thread Index | Old Index