File 8297-erts-Remove-HAVE_VALGRIND.patch of Package erlang
From 6397331bd440474138a98d2585646044b1b4cfaf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= <lukas@erlang.org>
Date: Fri, 21 Feb 2025 14:24:46 +0100
Subject: [PATCH 07/10] erts: Remove HAVE_VALGRIND
This is done so that we in docker environments can install
valgrind after configure has been run.
---
erts/configure.ac | 4 ----
erts/emulator/Makefile.in | 6 ------
2 files changed, 10 deletions(-)
diff --git a/erts/configure.in b/erts/configure.in
index 76a5aab188..ed31f3db2f 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1858,10 +1858,6 @@ AC_CHECK_HEADERS([linux/types.h linux/errqueue.h], [], [],
#endif
]])
-HAVE_VALGRIND=no
-AC_CHECK_HEADER(valgrind/valgrind.h, HAVE_VALGRIND=yes)
-AC_SUBST(HAVE_VALGRIND)
-
LM_DECL_SO_BSDCOMPAT
LM_DECL_INADDR_LOOPBACK
LM_DECL_SYS_ERRLIST
diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in
index 0eaadfd187..8de649dfc3 100644
--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -247,12 +247,6 @@ endif # DIRTY_SCHEDULER_TEST
TF_MARKER=$(TYPEMARKER)$(FLAVOR_MARKER)
-ifeq ($(TYPE)-@HAVE_VALGRIND@,valgrind-no)
-VOID_EMULATOR = '*** valgrind emulator disabled by configure'
-else
-VOID_EMULATOR =
-endif
-
OPSYS=@OPSYS@
sol2CFLAGS=
--
2.43.0