michael@0: dnl This Source Code Form is subject to the terms of the Mozilla Public michael@0: dnl License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: dnl Check if the compiler is gcc and has pr39608. If so michael@0: dnl disable vrp. michael@0: michael@0: AC_DEFUN([MOZ_GCC_PR39608], michael@0: [ michael@0: AC_MSG_CHECKING(for gcc pr39608) michael@0: ac_have_gcc_pr39608="yes" michael@0: AC_LANG_SAVE michael@0: AC_LANG_CPLUSPLUS michael@0: michael@0: AC_TRY_COMPILE([ michael@0: typedef void (*FuncType)(); michael@0: template michael@0: void f(); michael@0: template class C { michael@0: typedef C ThisC; michael@0: template michael@0: static void h() { michael@0: f >(); michael@0: } michael@0: }; michael@0: ], true, michael@0: ac_have_gcc_pr39608="no", michael@0: true) michael@0: michael@0: AC_LANG_RESTORE michael@0: michael@0: AC_MSG_RESULT($ac_have_gcc_pr39608) michael@0: if test "$ac_have_gcc_pr39608" = "yes"; then michael@0: echo This compiler would fail to build firefox, please upgrade. michael@0: exit 1 michael@0: fi michael@0: ])