m4: Fix ARM compiler detection
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 21 Dec 2010 20:03:03 +0000 (12:03 -0800)
committerDavid Schleef <ds@schleef.org>
Tue, 21 Dec 2010 20:03:35 +0000 (12:03 -0800)
The assumption that the host_cpu will be 'arm' is incorrect. It can also
be 'armel', 'armv7a' or something else along these lines.

m4/as-host-defines.m4

index d43596f..6a85cbc 100644 (file)
@@ -23,7 +23,7 @@ AC_DEFUN([AS_HOST_DEFINES],
       HAVE_POWERPC=yes
       AC_DEFINE(HAVE_POWERPC, 1, [Defined if host is powerpc])
       ;;
-    xarm)
+    xarm*)
       HAVE_ARM=yes
       AC_DEFINE(HAVE_ARM, 1, [Defined if host is arm])
       ;;