From owner-svn-ports-all@freebsd.org Fri Jan 29 22:16:09 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE1EDA72335; Fri, 29 Jan 2016 22:16:09 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 725921BE8; Fri, 29 Jan 2016 22:16:09 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0TMG8TU064185; Fri, 29 Jan 2016 22:16:08 GMT (envelope-from netchild@FreeBSD.org) Received: (from netchild@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0TMG8x3064183; Fri, 29 Jan 2016 22:16:08 GMT (envelope-from netchild@FreeBSD.org) Message-Id: <201601292216.u0TMG8x3064183@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: netchild set sender to netchild@FreeBSD.org using -f From: Alexander Leidinger Date: Fri, 29 Jan 2016 22:16:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407500 - in head/audio/lame: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 22:16:09 -0000 Author: netchild Date: Fri Jan 29 22:16:08 2016 New Revision: 407500 URL: https://svnweb.freebsd.org/changeset/ports/407500 Log: Fix build with clang 3.8.0 (and gcc >= 4.9.0). This changes the XMM intrinsincs detection logic. Submitted by: dim PR: 206620 Added: head/audio/lame/files/ head/audio/lame/files/patch-configure (contents, props changed) Modified: head/audio/lame/Makefile Modified: head/audio/lame/Makefile ============================================================================== --- head/audio/lame/Makefile Fri Jan 29 22:10:04 2016 (r407499) +++ head/audio/lame/Makefile Fri Jan 29 22:16:08 2016 (r407500) @@ -3,7 +3,7 @@ PORTNAME= lame PORTVERSION= 3.99.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/3.99 Added: head/audio/lame/files/patch-configure ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/lame/files/patch-configure Fri Jan 29 22:16:08 2016 (r407500) @@ -0,0 +1,65 @@ +--- configure.in.orig 2012-02-28 19:50:27.000000000 +0100 ++++ configure.in 2016-01-25 20:15:46.034842000 +0100 +@@ -96,9 +96,19 @@ + sys/soundcard.h \ + sys/time.h \ + unistd.h \ +- xmmintrin.h \ + linux/soundcard.h) + ++dnl Checks for actually working SSE intrinsics ++AC_MSG_CHECKING(working SSE intrinsics) ++AC_COMPILE_IFELSE( ++ [AC_LANG_PROGRAM( ++ [[#include ]], ++ [[_mm_sfence();]])], ++ [AC_DEFINE([HAVE_XMMINTRIN_H], [1], [Define if SSE intrinsics work.]) ++ ac_cv_header_xmmintrin_h=yes], ++ [ac_cv_header_xmmintrin_h=no]) ++AC_MSG_RESULT(${ac_cv_header_xmmintrin_h}) ++ + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST + AC_C_INLINE +--- configure.orig 2012-02-28 19:54:37.000000000 +0100 ++++ configure 2016-01-25 20:16:07.429512000 +0100 +@@ -11922,7 +11918,6 @@ + sys/soundcard.h \ + sys/time.h \ + unistd.h \ +- xmmintrin.h \ + linux/soundcard.h + do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +@@ -11937,6 +11932,31 @@ + done + + ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking working SSE intrinsics" >&5 ++$as_echo_n "checking working SSE intrinsics... " >&6; } ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++#include ++int ++main () ++{ ++_mm_sfence(); ++ ; ++ return 0; ++} ++_ACEOF ++if ac_fn_c_try_compile "$LINENO"; then : ++ ++$as_echo "#define HAVE_XMMINTRIN_H 1" >>confdefs.h ++ ++ ac_cv_header_xmmintrin_h=yes ++else ++ ac_cv_header_xmmintrin_h=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_header_xmmintrin_h}" >&5 ++$as_echo "${ac_cv_header_xmmintrin_h}" >&6; } ++ + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 + $as_echo_n "checking for an ANSI C-conforming const... " >&6; } + if ${ac_cv_c_const+:} false; then :