From 54956c22c524c4c59203ecda432e1ab55b3786af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Mon, 3 Jun 2024 17:46:33 +0200
Subject: [PATCH] macOS package: Workaround for bug in Xcode 15.3 which does
 not include m4

See:
- https://github.com/Homebrew/homebrew-core/issues/165388
- https://trac.macports.org/ticket/69639
---
 macOS/build.sh | 5 +++++
 preprocessor   | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/macOS/build.sh b/macOS/build.sh
index 89eda98787..df4a9a21a8 100755
--- a/macOS/build.sh
+++ b/macOS/build.sh
@@ -40,6 +40,11 @@ else
 fi
 MATLAB_PATH=/Applications/"$PKG_ARCH"/MATLAB_R2024a.app
 
+# Workaround for bug in Xcode 15.3 which does not include m4
+# See https://github.com/Homebrew/homebrew-core/issues/165388
+# and https://trac.macports.org/ticket/69639
+path_prepend PATH "$BREWDIR"/opt/m4/bin
+
 # Append texbin to PATH to access latexmk and friends
 path_prepend PATH /Library/TeX/texbin
 
diff --git a/preprocessor b/preprocessor
index 2b4f28c7a2..31080eed6c 160000
--- a/preprocessor
+++ b/preprocessor
@@ -1 +1 @@
-Subproject commit 2b4f28c7a235fe8e05cd0ec4ecf5ca0d54a88ce6
+Subproject commit 31080eed6ce6c623863850d4e2da5f8317f2b5d0
-- 
GitLab