From 4f397b288cd47331c0f7b289c7a616e54c306d8d Mon Sep 17 00:00:00 2001 From: Darrell Walisser Date: Mon, 27 Mar 2017 18:03:26 -0400 Subject: [PATCH] clang: correct detection of gcc --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3c4024c11..dbf71388a 100644 --- a/configure.ac +++ b/configure.ac @@ -206,7 +206,7 @@ fi if test x$enable_sse = xyes; then - if test "${ax_cv_cxx_compiler_vendor}" = "gnu"; then + if test "${CXX}" = "gnu"; then AX_CHECK_COMPILER_FLAGS(-msse, [SBSMS_CFLAGS="$SBSMS_CFLAGS -msse"],[AC_MSG_ERROR([Need a version of gcc with -msse])]) fi @@ -237,7 +237,7 @@ AC_CHECK_HEADERS_ONCE(alloca.h) dnl Enable C++ 11 support. Use gnu++11 on GCC since wxWidgets uses extensions -if test "${ax_cv_c_compiler_vendor}" = "gnu"; then +if "${CXX}" -v 2>&1 | grep -q '^gcc version'; then dnl GCC < 4.9 has known bugs (#1397) and can't be used AX_GCC_VERSION_ATLEAST(4,9,0,[gcc_ok=yes], [gcc_ok=no])