From 88c18ef6483fbc7dd89cbab969c1f325b7b55b8e Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Thu, 18 Jun 2020 09:31:47 -0700 Subject: [PATCH] Make the g++ check more lenient. --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 9a0e4d1e..f9a88986 100644 --- a/configure.ac +++ b/configure.ac @@ -202,14 +202,17 @@ AC_ARG_ENABLE(simd, if test x"$enable_simd" = x"yes"; then # For x86-64 SIMD, g++ is also required if test x"$build_cpu" = x"x86_64"; then - if test x"$CXX" = x"g++"; then - # AC_MSG_RESULT() called below + case "$CXX" in + *g++) + # AC_MSG_RESULT() is called below. SIMD="$SIMD x86_64" - else + ;; + *) AC_MSG_RESULT(no) AC_MSG_ERROR(Failed to find g++ for SIMD speedups. Omit --enable-simd to continue without it.) - fi + ;; + esac fi fi -- 2.47.2