From a48b8ecc9ceb203be588d4eefa8de19800b91fe3 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 17 Nov 2015 00:11:53 -0800 Subject: [PATCH] configure: don't test AVX512 if AVX2 wasn't found Change-Id: I14839ba5678944c2864bffff14176f0e9236ad8c Reviewed-by: Oswald Buddenhagen --- configure | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure b/configure index b149970b7d6..fb9d3226840 100755 --- a/configure +++ b/configure @@ -4586,6 +4586,9 @@ if [ "${CFG_AVX2}" = "auto" ]; then fi # detect avx512 support +if [ "${CFG_AVX2}" = "no" ]; then + CFG_AVX512= +fi if [ "${CFG_AVX512}" = "auto" ]; then # First, test for AVX-512 Foundation if compileTest common/avx512 "avx512f" AVX512=F; then