--- old/common/autoconf/build-performance.m4 2014-02-13 22:21:01.660336851 +0100 +++ new/common/autoconf/build-performance.m4 2014-02-13 22:21:01.560336289 +0100 @@ -261,7 +261,7 @@ if test "x$ENABLE_PRECOMPH" = xyes; then # Check that the compiler actually supports precomp headers. - if test "x$GCC" = xyes; then + if test "x$TOOLCHAIN_TYPE" = xgcc; then AC_MSG_CHECKING([that precompiled headers work]) echo "int alfa();" > conftest.h $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD