configure: don't test AVX512 if AVX2 wasn't found

Change-Id: I14839ba5678944c2864bffff14176f0e9236ad8c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
Thiago Macieira 2015-11-17 00:11:53 -08:00
parent 8dc43adcbb
commit a48b8ecc9c

3
configure vendored
View File

@ -4586,6 +4586,9 @@ if [ "${CFG_AVX2}" = "auto" ]; then
fi fi
# detect avx512 support # detect avx512 support
if [ "${CFG_AVX2}" = "no" ]; then
CFG_AVX512=
fi
if [ "${CFG_AVX512}" = "auto" ]; then if [ "${CFG_AVX512}" = "auto" ]; then
# First, test for AVX-512 Foundation # First, test for AVX-512 Foundation
if compileTest common/avx512 "avx512f" AVX512=F; then if compileTest common/avx512 "avx512f" AVX512=F; then