head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2013.01.10.23.03.35;	author svnexp;	state dead;
branches;
next	1.1;

1.1
date	2012.09.03.21.16.00;	author flo;	state Exp;
branches;
next	;


desc
@@


1.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310207
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r310207 | flo | 2013-01-10 22:29:23 +0000 (Thu, 10 Jan 2013) | 9 lines
## SVN ##
## SVN ## - update www/firefox to 18.0
## SVN ## - update www/firefox-esr to 17.0.2
## SVN ## - update www/seamonkey to 2.15 (enigmail to 1.5.0)
## SVN ## - remove QT4 option to avoid confusion (it turned out to be too experimental)
## SVN ##
## SVN ## In collaboration with: Jan Beich <jbeich@@tormail.org>
## SVN ##
## SVN ## Security:	http://www.vuxml.org/freebsd/a4ed6632-5aa9-11e2-8fcb-c8600054b392.html
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Bug 786995 - configure should check for SSSE3 support in the whole toolchain

--- configure.in.orig	2012-09-02 00:37:29.000000000 +0200
+++ configure.in	2012-09-02 00:38:50.000000000 +0200
@@@@ -1710,15 +1710,15 @@@@
     _MOZ_RTTI_FLAGS_OFF=-fno-rtti
 
     # Check for -mssse3 on $CC
-    AC_MSG_CHECKING([for -mssse3 option to $CC])
-    HAVE_COMPILER_FLAG_MSSSE3=
+    AC_MSG_CHECKING([if toolchain supports -mssse3 option])
+    HAVE_TOOLCHAIN_SUPPORT_MSSSE3=
     _SAVE_CFLAGS=$CFLAGS
     CFLAGS="$CFLAGS -mssse3"
-    AC_TRY_COMPILE(,,AC_MSG_RESULT([yes])
-                     [HAVE_COMPILER_FLAG_MSSSE3=1],
+    AC_TRY_COMPILE([asm ("pmaddubsw %xmm2,%xmm3");],,AC_MSG_RESULT([yes])
+                     [HAVE_TOOLCHAIN_SUPPORT_MSSSE3=1],
                      AC_MSG_RESULT([no]))
     CFLAGS=$_SAVE_CFLAGS
-    AC_SUBST(HAVE_COMPILER_FLAG_MSSSE3)
+    AC_SUBST(HAVE_TOOLCHAIN_SUPPORT_MSSSE3)
 
     # Turn on GNU-specific warnings:
     # -Wall - turn on a lot of warnings
--- gfx/skia/Makefile.in.orig	2012-09-02 00:39:00.000000000 +0200
+++ gfx/skia/Makefile.in	2012-09-02 00:39:21.000000000 +0200
@@@@ -365,7 +365,7 @@@@
 	SkUtils_opts_SSE2.cpp \
 	opts_check_SSE2.cpp \
 	$(NULL)
-ifdef HAVE_COMPILER_FLAG_MSSSE3
+ifdef HAVE_TOOLCHAIN_SUPPORT_MSSSE3
 DEFINES += -DSK_BUILD_SSSE3
 CPPSRCS += SkBitmapProcState_opts_SSSE3.cpp
 endif
@


1.1
log
@SVN rev 303621 on 2012-09-03 21:16:00Z by flo

- fix build of www/firefox, www/seamonkey and mail/thunderbird on stable/7 after
  r219639 which MFC'd SSSE3 instruction set to gcc but not to gas. Configure
  picks up SSSE3 support in gcc but linking fails with

{standard input}:283: Error: no such instruction: `pmaddubsw %xmm2,%xmm3'
{standard input}:400: Error: no such instruction: `pmaddubsw %xmm0,%xmm1'
{standard input}:544: Error: no such instruction: `pmaddubsw %xmm0,%xmm1'

PR:		ports/171255
Submitted by:	naddy, Jan Beich <jbeich@@tormail.org>
@
text
@@

