Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | dnl This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | dnl License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | dnl file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 4 | |
michael@0 | 5 | dnl Check if the compiler is gcc and has pr39608. If so |
michael@0 | 6 | dnl disable vrp. |
michael@0 | 7 | |
michael@0 | 8 | AC_DEFUN([MOZ_GCC_PR39608], |
michael@0 | 9 | [ |
michael@0 | 10 | AC_MSG_CHECKING(for gcc pr39608) |
michael@0 | 11 | ac_have_gcc_pr39608="yes" |
michael@0 | 12 | AC_LANG_SAVE |
michael@0 | 13 | AC_LANG_CPLUSPLUS |
michael@0 | 14 | |
michael@0 | 15 | AC_TRY_COMPILE([ |
michael@0 | 16 | typedef void (*FuncType)(); |
michael@0 | 17 | template<FuncType Impl> |
michael@0 | 18 | void f(); |
michael@0 | 19 | template<typename T> class C { |
michael@0 | 20 | typedef C<T> ThisC; |
michael@0 | 21 | template<int g()> |
michael@0 | 22 | static void h() { |
michael@0 | 23 | f<ThisC::h<g> >(); |
michael@0 | 24 | } |
michael@0 | 25 | }; |
michael@0 | 26 | ], true, |
michael@0 | 27 | ac_have_gcc_pr39608="no", |
michael@0 | 28 | true) |
michael@0 | 29 | |
michael@0 | 30 | AC_LANG_RESTORE |
michael@0 | 31 | |
michael@0 | 32 | AC_MSG_RESULT($ac_have_gcc_pr39608) |
michael@0 | 33 | if test "$ac_have_gcc_pr39608" = "yes"; then |
michael@0 | 34 | echo This compiler would fail to build firefox, please upgrade. |
michael@0 | 35 | exit 1 |
michael@0 | 36 | fi |
michael@0 | 37 | ]) |