Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
diff --git a/configure.in b/configure.in
index 81de0d4..0efe7d1 100644
--- a/configure.in
+++ b/configure.in
@@ -928,9 +928,10 @@
         fi
 
         # Clang also needs -fwrapv
-        if test "$CC" = "clang" ; then
-            WRAP="-fwrapv"
-        fi
+        case $CC in
+            *clang*) WRAP="-fwrapv"
+            ;;
+        esac
 
 	case $ac_cv_prog_cc_g in
 	yes)