From: Wayne Davison Date: Thu, 18 Jun 2020 16:31:47 +0000 (-0700) Subject: Make the g++ check more lenient. X-Git-Tag: v3.2.0~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88c18ef6483fbc7dd89cbab969c1f325b7b55b8e;p=thirdparty%2Frsync.git Make the g++ check more lenient. --- 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