summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2016-07-05 22:07:45 (GMT)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-07-06 15:35:43 (GMT)
commit3190f90874cd577ed557b3eed0b703da48a00eab (patch)
treecb1de58d6dff4349f6ba5fcac318c80ac7c6f838
parentc3f28010a64db0239474a565ff4251a390d6ee16 (diff)
downloadwebrtc-audio-processing-3190f90874cd577ed557b3eed0b703da48a00eab.tar.gz
webrtc-audio-processing-3190f90874cd577ed557b3eed0b703da48a00eab.tar.xz
Protect against unsupported CPU types
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2ca5ea9..d6c2457 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,7 +75,8 @@ AS_CASE(["${host}"],
[
PLATFORM_CFLAGS="-DWEBRTC_WIN -D_WIN32 -U__STRICT_ANSI__"
HAVE_WIN=1
- ]
+ ],
+ [AC_MSG_ERROR([Unsupported host $host])]
)
AC_SUBST(PLATFORM_CFLAGS)
AM_CONDITIONAL(HAVE_POSIX, [test "x${HAVE_POSIX}" = "x1"])
@@ -96,8 +97,9 @@ AS_CASE(["${host_cpu}"],
[
HAVE_ARM=1
ARCH_CFLAGS="-DWEBRTC_ARCH_ARM"
- ]
+ ],
# FIXME: Add MIPS support, see webrtc/BUILD.gn for defines
+ [AC_MSG_ERROR([Unsupported CPU type $host_cpu])]
)
AM_CONDITIONAL(HAVE_X86, [test "x${HAVE_X86}" = "x1"])
AM_CONDITIONAL(HAVE_ARM, [test "x${HAVE_ARM}" = "x1"])