summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2015-10-15 11:25:41 +0300
committerThiago Macieira <thiago.macieira@intel.com>2015-10-19 02:12:04 +0000
commitbd8d5810ddcd200ece3829880805be9828780233 (patch)
tree42449dae46d87a828e6bf31c3d6e18835542ecb1 /configure
parentf5eeadb92d36faac80dee04069f9eeea596d2012 (diff)
Fix avx512 feature test
The check was broken on non-bash and producing errors like this: /home/louai/work/qt5/qtbase/configure: 4528: [: Illegal number: Change-Id: I5e78ad002cd7cfb401f2646510e0923f77c55f98 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 80a335a350..3fbf97143d 100755
--- a/configure
+++ b/configure
@@ -4526,7 +4526,7 @@ if [ "${CFG_AVX512}" = "auto" ]; then
CFG_AVX512=f
CFG_AVX512_UPPER=AVX512F
for feature in er cd pf dq bw vl ifma vbmi; do
- if [ -n "BASH_VERSION" ] && [ "${BASH_VERSION%%.*}" -gt 3 ]; then
+ if [ -n "$BASH_VERSION" ] && [ "${BASH_VERSION%%.*}" -gt 3 ]; then
upper=${feature^^*}
elif [ -n "$ZSH_VERSION" ]; then
upper=${(U)feature}