]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Make the g++ check more lenient.
authorWayne Davison <wayne@opencoder.net>
Thu, 18 Jun 2020 16:31:47 +0000 (09:31 -0700)
committerWayne Davison <wayne@opencoder.net>
Thu, 18 Jun 2020 16:31:47 +0000 (09:31 -0700)
configure.ac

index 9a0e4d1ed63ed860ab7b8a3560660d81672dc6cb..f9a889869f348f4aadb4a10a5adb4ee4923f94b6 100644 (file)
@@ -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