From cc5ec2bd1cd070c7a55e8233e45305d8b89ca63a Mon Sep 17 00:00:00 2001
From: John Ericson <John.Ericson@Obsidian.Systems>
Date: Sat, 6 Nov 2021 20:50:18 +0000
Subject: [PATCH] RTS configure: Move over misc function checks

These are for general use in the RTS.

All of this should boil down to `AC_DEFINE` not `AC_SUBST`, so it
belongs in the RTS configure and should be safe to move without
modification.

Progress towards #17191
---
 configure.ac     | 2 --
 rts/configure.ac | 2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 16500818c036..73cf86818337 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1044,8 +1044,6 @@ dnl ** check for eventfd which is needed by the I/O manager
 AC_CHECK_HEADERS([sys/eventfd.h])
 AC_CHECK_FUNCS([eventfd])
 
-AC_CHECK_FUNCS([getpid getuid raise])
-
 GHC_ADJUSTORS_METHOD([Target])
 AC_SUBST([UseLibffiForAdjustors])
 
diff --git a/rts/configure.ac b/rts/configure.ac
index 706f579a9c57..ff9afdb6bf58 100644
--- a/rts/configure.ac
+++ b/rts/configure.ac
@@ -33,6 +33,8 @@ GHC_CONVERT_PLATFORM_PARTS([host], [Host])
 FPTOOLS_SET_PLATFORM_VARS([host], [Host])
 FPTOOLS_SET_HASKELL_PLATFORM_VARS([Host])
 
+AC_CHECK_FUNCS([getpid getuid raise])
+
 dnl ** Check for __thread support in the compiler
 AC_MSG_CHECKING(for __thread support)
 AC_COMPILE_IFELSE(
-- 
GitLab