1From 0d8ab9b020870c62c216fca77e7f8bd3eeb710c3 Mon Sep 17 00:00:00 2001
2From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3Date: Sat, 9 Oct 2021 19:23:46 +0200
4Subject: [PATCH] config/ac-macros/alloca.m4: Remove obsolete Cray support
5
6Remove obsolete Cray support to avoid the following build failure since
7autoconf >= 2.70 and
8http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=15edf7fd8094fd14a89d9891dd72a9624762597a:
9
10autoheader: warning: missing template: CRAY_STACKSEG_END
11autoheader: warning: Use AC_DEFINE([CRAY_STACKSEG_END], [], [Description])
12autoreconf: error: /home/buildroot/autobuild/instance-2/output-1/host/bin/autoheader failed with exit status: 1
13package/pkg-generic.mk:273: recipe for target '/home/buildroot/autobuild/instance-2/output-1/build/oracle-mysql-5.1.73/.stamp_configured' failed
14
15Fixes:
16 - http://autobuild.buildroot.org/results/e5329bcf166d46b2eb17f2bc727c0307bef5ed02
17
18Upstream: switched to CMake a very long time ago, so not sent upstream
19Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
20---
21 config/ac-macros/alloca.m4 | 14 --------------
22 1 file changed, 14 deletions(-)
23
24diff --git a/config/ac-macros/alloca.m4 b/config/ac-macros/alloca.m4
25index 8c730dd671f..eecb8249573 100644
26--- a/config/ac-macros/alloca.m4
27+++ b/config/ac-macros/alloca.m4
28@@ -46,20 +46,6 @@ then
29    ALLOCA=alloca.o
30    AC_DEFINE(C_ALLOCA, 1)
31
32- AC_CACHE_CHECK(whether alloca needs Cray hooks, ac_cv_os_cray,
33- [AC_EGREP_CPP(webecray,
34- [#if defined(CRAY) && ! defined(CRAY2)
35- webecray
36- #else
37- wenotbecray
38- #endif
39- ], ac_cv_os_cray=yes, ac_cv_os_cray=no)])
40- if test "$ac_cv_os_cray" = "yes"; then
41- for ac_func in _getb67 GETB67 getb67; do
42-   AC_CHECK_FUNC($ac_func, [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func)
43-   break])
44- done
45- fi
46  fi
47  AC_SUBST(ALLOCA)dnl
48 else
49--
502.33.0
51
52