Blame SOURCES/0008-build-Protect-against-unsupported-CPU-types.patch

14ed36
From 75ef0de24167daa84c11774f4bc9d1b4a9eaacfa Mon Sep 17 00:00:00 2001
14ed36
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
14ed36
Date: Tue, 5 Jul 2016 18:07:45 -0400
14ed36
Subject: [PATCH 08/16] build: Protect against unsupported CPU types
14ed36
14ed36
---
14ed36
 configure.ac | 6 ++++--
14ed36
 1 file changed, 4 insertions(+), 2 deletions(-)
14ed36
14ed36
diff --git a/configure.ac b/configure.ac
14ed36
index 5ec8517..1fcbd53 100644
14ed36
--- a/configure.ac
14ed36
+++ b/configure.ac
14ed36
@@ -73,7 +73,8 @@ AS_CASE(["${host}"],
14ed36
         [
14ed36
          PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
14ed36
          HAVE_WIN=1
14ed36
-        ]
14ed36
+        ],
14ed36
+    [AC_MSG_ERROR([Unsupported host $host])]
14ed36
 )
14ed36
 AC_SUBST(PLATFORM_CFLAGS)
14ed36
 AM_CONDITIONAL(HAVE_POSIX, [test "x${HAVE_POSIX}" = "x1"])
14ed36
@@ -94,8 +95,9 @@ AS_CASE(["${host_cpu}"],
14ed36
         [
14ed36
          HAVE_ARM=1
14ed36
          ARCH_CFLAGS="-DWEBRTC_ARCH_ARM"
14ed36
-        ]
14ed36
+        ],
14ed36
     # FIXME: Add MIPS support, see webrtc/BUILD.gn for defines
14ed36
+    [AC_MSG_ERROR([Unsupported CPU type $host_cpu])]
14ed36
 )
14ed36
 AM_CONDITIONAL(HAVE_X86, [test "x${HAVE_X86}" = "x1"])
14ed36
 AM_CONDITIONAL(HAVE_ARM, [test "x${HAVE_ARM}" = "x1"])
14ed36
-- 
14ed36
2.14.3
14ed36