summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2014-04-02 09:45:09 -0400
committerMichael Stahl <mstahl@redhat.com>2014-04-02 13:49:48 +0000
commitdb1c9e4dadc90c5afe3190776a60cc5dcbbce3ac (patch)
tree4e47ec87aef66465184437da318336e3217da9f8
parent463952bff239c53862430e865b1b01f580205af0 (diff)
configure.ac: require g++ 4.1 or above
it's known that GCC 4.0 is unable to build LibreOffice; also remove check for "a buggy version of g++ (3.4.x)" Change-Id: I97a030c4a214033cab13a69b4c4a599970f9e1cd Reviewed-on: https://gerrit.libreoffice.org/8812 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--configure.ac33
1 files changed, 7 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac
index 3bd45759b6c9..cebff526cd57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5387,40 +5387,21 @@ else
fi
fi
-dnl check if we are using a buggy version of g++ (currently 3.4.0, 3.4.1 and trunk)
+dnl check for GNU C++ compiler version
if test "$GXX" = "yes"; then
AC_MSG_CHECKING([the GNU C++ compiler version])
_gpp_version=`$CXX -dumpversion`
_gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
- AC_MSG_RESULT([checked (g++ $_gpp_version)])
-
- if test "$_gpp_majmin" = "304"; then
- AC_MSG_CHECKING([whether $CXX has the enum bug])
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
- extern "C" void abort (void);
- extern "C" void exit (int status);
-
- enum E { E0, E1, E2, E3, E4, E5 };
-
- void test (enum E e)
- {
- if (e == E2 || e == E3 || e == E1)
- exit (1);
- }
-
- int main (void)
- {
- test (E4);
- test (E5);
- test (E0);
- return 0;
- }
- ]])],[AC_MSG_ERROR([your version of the GNU C++ compile has a bug which prevents LibreOffice from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details.])],[AC_MSG_RESULT([no])],[])
+ if test "$_gpp_majmin" -lt "410"; then
+ AC_MSG_ERROR([You need to use GNU C++ compiler version >= 4.1 to build LibreOffice.])
+ else
+ AC_MSG_RESULT([checked (g++ $_gpp_version)])
fi
+
dnl see https://code.google.com/p/android/issues/detail?id=41770
- if test "$_gpp_majmin" -ge "407"; then
+ if test "$_gpp_majmin" -ge "410"; then
glibcxx_threads=no
AC_LANG_PUSH([C++])
AC_REQUIRE_CPP