diff -r dec00ae64ca8 configure --- a/configure Thu Sep 29 19:43:01 2011 +0200 +++ b/configure Thu Sep 29 21:54:14 2011 +0200 @@ -5412,10 +5412,11 @@ WRAP="-fwrapv" fi - # Clang also needs -fwrapv - if test "$CC" = "clang" ; then - WRAP="-fwrapv" - fi + # Clang and llvm-gcc also need -fwrapv + case "$CC" in + clang|llvm-gcc) + WRAP="-fwrapv";; + esac case $ac_cv_prog_cc_g in yes) diff -r dec00ae64ca8 configure.in --- a/configure.in Thu Sep 29 19:43:01 2011 +0200 +++ b/configure.in Thu Sep 29 21:54:14 2011 +0200 @@ -933,10 +933,11 @@ WRAP="-fwrapv" fi - # Clang also needs -fwrapv - if test "$CC" = "clang" ; then - WRAP="-fwrapv" - fi + # Clang and llvm-gcc also need -fwrapv + case "$CC" in + clang|llvm-gcc) + WRAP="-fwrapv";; + esac case $ac_cv_prog_cc_g in yes)