summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-12-08 11:58:44 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-10 20:53:16 +0100
commit1c0a1ebba12c9c1fa02117b9a017c4ed3f7cd7c3 (patch)
tree5f3eecabf809b9bc95635999f915fc27689516d3 /configure
parent5a24211e0dab76b61a1631f0959274927ffe929d (diff)
downloadqt4-tools-1c0a1ebba12c9c1fa02117b9a017c4ed3f7cd7c3.tar.gz
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. (cherry-picked with modification from qtbase commit a071ba629b89dbbe458d0865a0c4ebc3f92d3524; modified because Qt 4 checks for SSE and MMX) Task-number: QTBUG-24773 Change-Id: I005258db52d8abcd407a99b8ebcc23cdea8e3d9f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 24 insertions, 0 deletions
diff --git a/configure b/configure
index 7d46c0263f..3447c89cfd 100755
--- a/configure
+++ b/configure
@@ -5163,6 +5163,9 @@ if [ "${CFG_MMX}" = "auto" ]; then
fi
# detect 3dnow support
+if [ "${CFG_MMX}" = "auto" ]; then
+ CFG_3DNOW=no
+fi
if [ "${CFG_3DNOW}" = "auto" ]; then
if compileTest unix/3dnow "3dnow" "-m3dnow"; then
CFG_3DNOW=yes
@@ -5172,6 +5175,9 @@ if [ "${CFG_3DNOW}" = "auto" ]; then
fi
# detect sse support
+if [ "${CFG_MMX}" = "auto" ]; then
+ CFG_SSE=no
+fi
if [ "${CFG_SSE}" = "auto" ]; then
if compileTest unix/sse "sse" "-msse"; then
CFG_SSE=yes
@@ -5181,6 +5187,9 @@ if [ "${CFG_SSE}" = "auto" ]; then
fi
# detect sse2 support
+if [ "${CFG_SSE}" = "auto" ]; then
+ CFG_SSE2=no
+fi
if [ "${CFG_SSE2}" = "auto" ]; then
if compileTest unix/sse2 "sse2" "-msse2"; then
CFG_SSE2=yes
@@ -5190,6 +5199,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 unix/sse3 "sse3" "-msse3"; then
CFG_SSE3=yes
@@ -5199,6 +5211,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 unix/ssse3 "ssse3" "-mssse3"; then
CFG_SSSE3=yes
@@ -5208,6 +5223,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 unix/sse4_1 "sse4_1" "-msse4.1"; then
CFG_SSE4_1=yes
@@ -5217,6 +5235,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 unix/sse4_2 "sse4_2" "-msse4.2"; then
CFG_SSE4_2=yes
@@ -5226,6 +5247,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 unix/avx "avx" "-mavx"; then
CFG_AVX=yes