Bug 1117029 - Move the GCC minimum version checks to MOZ_TOOL_VARIABLES; r=glandium

This commit is contained in:
Ehsan Akhgari 2015-01-02 00:36:54 -05:00
parent 426da9317b
commit 73c5fb0761
3 changed files with 7 additions and 14 deletions

View File

@ -91,6 +91,13 @@ fi
AC_SUBST(CLANG_CXX)
AC_SUBST(CLANG_CL)
if test -n "$GNU_CC" -a -z "$CLANG_CC" ; then
if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 4 ||
test "$GCC_MAJOR_VERSION" -lt 4; then
AC_MSG_ERROR([Only GCC 4.4 or newer supported])
fi
fi
])
AC_DEFUN([MOZ_CROSS_COMPILER],

View File

@ -405,13 +405,6 @@ MOZ_TOOL_VARIABLES
MOZ_CHECK_COMPILER_WRAPPER
if test -n "$GNU_CC" -a -z "$CLANG_CC" ; then
if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 4 ||
test "$GCC_MAJOR_VERSION" -lt 4; then
AC_MSG_ERROR([Only GCC 4.4 or newer supported])
fi
fi
dnl ========================================================
dnl Special win32 checks
dnl ========================================================

View File

@ -337,13 +337,6 @@ MOZ_TOOL_VARIABLES
MOZ_CHECK_COMPILER_WRAPPER
if test -n "$GNU_CC" -a -z "$CLANG_CC" ; then
if test "$GCC_MAJOR_VERSION" -eq 4 -a "$GCC_MINOR_VERSION" -lt 4 ||
test "$GCC_MAJOR_VERSION" -lt 4; then
AC_MSG_ERROR([Only GCC 4.4 or newer supported])
fi
fi
dnl Special win32 checks
dnl ========================================================