The test currently only works with ELF and requires readelf, but OS X does not use ELF binaries.
Signed-off-by: Stefan Weil <s...@weilnetz.de> --- configure | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure b/configure index 10cb212..89ffd28 100755 --- a/configure +++ b/configure @@ -1778,6 +1778,11 @@ fi ########################################## # avx2 optimization requirement check +# This check currently only works for hosts with ELF, +# so don't run it on Darwin. + +if [ "$darwin" != "yes" ] ; then + cat > $TMPC << EOF #pragma GCC push_options #pragma GCC target("avx2") @@ -1797,6 +1802,8 @@ if compile_object "" ; then fi fi +fi # "$darwin" != "yes" + ######################################### # zlib check -- 2.1.4