View | Details | Raw Unified | Return to bug 171255
Collapse All | Expand All

(-)files/patch-bug786995 (+36 lines)
Line 0 Link Here
1
# Bug 786995 - configure should check for SSSE3 support in the whole toolchain
2
3
--- configure.in.orig	2012-09-02 00:37:29.000000000 +0200
4
+++ configure.in	2012-09-02 00:38:50.000000000 +0200
5
@@ -1710,15 +1710,15 @@
6
     _MOZ_RTTI_FLAGS_OFF=-fno-rtti
7
 
8
     # Check for -mssse3 on $CC
9
-    AC_MSG_CHECKING([for -mssse3 option to $CC])
10
-    HAVE_COMPILER_FLAG_MSSSE3=
11
+    AC_MSG_CHECKING([if toolchain supports -mssse3 option])
12
+    HAVE_TOOLCHAIN_SUPPORT_MSSSE3=
13
     _SAVE_CFLAGS=$CFLAGS
14
     CFLAGS="$CFLAGS -mssse3"
15
-    AC_TRY_COMPILE(,,AC_MSG_RESULT([yes])
16
-                     [HAVE_COMPILER_FLAG_MSSSE3=1],
17
+    AC_TRY_COMPILE([asm ("pmaddubsw %xmm2,%xmm3");],,AC_MSG_RESULT([yes])
18
+                     [HAVE_TOOLCHAIN_SUPPORT_MSSSE3=1],
19
                      AC_MSG_RESULT([no]))
20
     CFLAGS=$_SAVE_CFLAGS
21
-    AC_SUBST(HAVE_COMPILER_FLAG_MSSSE3)
22
+    AC_SUBST(HAVE_TOOLCHAIN_SUPPORT_MSSSE3)
23
 
24
     # Turn on GNU-specific warnings:
25
     # -Wall - turn on a lot of warnings
26
--- gfx/skia/Makefile.in.orig	2012-09-02 00:39:00.000000000 +0200
27
+++ gfx/skia/Makefile.in	2012-09-02 00:39:21.000000000 +0200
28
@@ -365,7 +365,7 @@
29
 	SkUtils_opts_SSE2.cpp \
30
 	opts_check_SSE2.cpp \
31
 	$(NULL)
32
-ifdef HAVE_COMPILER_FLAG_MSSSE3
33
+ifdef HAVE_TOOLCHAIN_SUPPORT_MSSSE3
34
 DEFINES += -DSK_BUILD_SSSE3
35
 CPPSRCS += SkBitmapProcState_opts_SSSE3.cpp
36
 endif

Return to bug 171255