https://github.com/WayneD/rsync/pull/24

--- rsync-3.2.0/configure.ac	2020-06-19 23:11:01.000000000 +0200
+++ rsync-3.2.0/configure.ac	2020-06-19 23:11:01.000000000 +0200
@@ -207,7 +207,7 @@
 	if test x"$CXX" != x""; then
 	    CXX_VERSION=`$CXX --version 2>/dev/null | head -n 1`
 	    case "$CXX_VERSION" in
-	    g++*)
+	    *g++*)
 		CXX_VERSION=`$CXX -dumpversion | sed 's/\..*//g'`
 		if test "$CXX_VERSION" -ge "5"; then
 		    CXX_OK=yes
