From a071ba629b89dbbe458d0865a0c4ebc3f92d3524 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sun, 8 Dec 2013 11:58:44 -0800 Subject: Cascade detection of SSE3 support and up If SSE2 isn't supported, then SSE3 can't be either. Onwards and upwards for SSSE3, SSE4.1, SSE4.2 and AVX. The test for AVX2 was already there. Task-number: QTBUG-24773 Change-Id: I005258db52d8abcd407a99b8ebcc23cdea8e3d9f Reviewed-by: Oswald Buddenhagen --- configure | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 99023dc8b5..6f540fa814 100755 --- a/configure +++ b/configure @@ -4224,6 +4224,9 @@ if [ "${CFG_SSE2}" = "auto" ]; then fi # detect sse3 support +if [ "${CFG_SSE2}" = "no" ]; then + CFG_SSE3=no +fi if [ "${CFG_SSE3}" = "auto" ]; then if compileTest common/sse3 "sse3"; then CFG_SSE3=yes @@ -4233,6 +4236,9 @@ if [ "${CFG_SSE3}" = "auto" ]; then fi # detect ssse3 support +if [ "${CFG_SSE3}" = "no" ]; then + CFG_SSSE3=no +fi if [ "${CFG_SSSE3}" = "auto" ]; then if compileTest common/ssse3 "ssse3"; then CFG_SSSE3=yes @@ -4242,6 +4248,9 @@ if [ "${CFG_SSSE3}" = "auto" ]; then fi # detect sse4.1 support +if [ "${CFG_SSSE3}" = "no" ]; then + CFG_SSE4_1=no +fi if [ "${CFG_SSE4_1}" = "auto" ]; then if compileTest common/sse4_1 "sse4_1"; then CFG_SSE4_1=yes @@ -4251,6 +4260,9 @@ if [ "${CFG_SSE4_1}" = "auto" ]; then fi # detect sse4.2 support +if [ "${CFG_SSE4_1}" = "no" ]; then + CFG_SSE4_2=no +fi if [ "${CFG_SSE4_2}" = "auto" ]; then if compileTest common/sse4_2 "sse4_2"; then CFG_SSE4_2=yes @@ -4260,6 +4272,9 @@ if [ "${CFG_SSE4_2}" = "auto" ]; then fi # detect avx support +if [ "${CFG_SSE4_2}" = "no" ]; then + CFG_AVX=no +fi if [ "${CFG_AVX}" = "auto" ]; then if compileTest common/avx "avx"; then case "$XQMAKESPEC" in -- cgit v1.2.3