From 394a28dfacbfe6d4557ed8f59152c58b17078f05 Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Sun, 30 Nov 2014 19:17:16 -0800
Subject: [PATCH] Don't bother to build clm or motifd on darwin/ppc. It's not
 likely we'll ever install motif on that machine.

---
 bin/build-utils.sh | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/bin/build-utils.sh b/bin/build-utils.sh
index e59fd1923..18d6f60e2 100755
--- a/bin/build-utils.sh
+++ b/bin/build-utils.sh
@@ -36,6 +36,7 @@ $TARGET/lisp/lisp \
 (setq *gc-verbose* nil *interactive* nil)
 (load "target:tools/clxcom")
 (load "target:clx/clx-library")
+#-ppc
 (load "target:tools/clmcom")
 (load "target:tools/hemcom")
 
@@ -61,4 +62,17 @@ fi
 
 export MAKE
 
-${MAKE} -C $TARGET/motif/server clean && ${MAKE} -C $TARGET/motif/server
+# Don't bother building motifd on ppc; we'll probably never support that again.
+
+SKIPMOTIF=no
+case `uname -s` in
+  Darwin)
+      case `uname -p` in
+	powerpc) SKIPMOTIF=yes ;;
+      esac ;;
+esac
+
+if [ "$SKIPMOTIF" = "no" ]; then
+    ${MAKE} -C $TARGET/motif/server clean && ${MAKE} -C $TARGET/motif/server
+fi
+
-- 
GitLab