mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Move android back to c++0x to see if we have some hidden dependency
on it. r=revert. --HG-- extra : rebase_source : 5172df2e68d3881f8f19c89c209216778640f574
This commit is contained in:
parent
d764accfee
commit
64516c61e6
28
configure.in
28
configure.in
@ -2824,28 +2824,24 @@ fi
|
||||
|
||||
AC_SUBST(_MOZ_RTTI_FLAGS_ON)
|
||||
|
||||
dnl Check whether we can use gcc's c++0x mode. We check for some basic
|
||||
dnl features that we need.
|
||||
dnl Check whether we can use gcc's c++0x mode
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
if test "$GNU_CXX"; then
|
||||
_SAVE_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="$CXXFLAGS -std=gnu++0x"
|
||||
|
||||
CXXFLAGS="$CXXFLAGS $_MOZ_RTTI_FLAGS"
|
||||
AC_CACHE_CHECK(for c++0x support,
|
||||
ac_cv_cxx0x_support,
|
||||
[AC_TRY_COMPILE([#include <memory>
|
||||
#include <utility>
|
||||
void f(int&&);], [
|
||||
int a;
|
||||
f(std::move(a));
|
||||
],
|
||||
ac_cv_cxx0x_support="yes",
|
||||
ac_cv_cxx0x_support="no")])
|
||||
CXXFLAGS="$_SAVE_CXXFLAGS"
|
||||
if test "$ac_cv_cxx0x_support" = "yes"; then
|
||||
CXXFLAGS="$CXXFLAGS -std=gnu++0x"
|
||||
if test -z "$_MOZ_USE_RTTI"; then
|
||||
CXXFLAGS="$CXXFLAGS $_MOZ_RTTI_FLAGS"
|
||||
AC_CACHE_CHECK(for gcc c++0x headers bug without rtti,
|
||||
ac_cv_cxx0x_headers_bug,
|
||||
[AC_TRY_COMPILE([#include <memory>], [],
|
||||
ac_cv_cxx0x_headers_bug="no",
|
||||
ac_cv_cxx0x_headers_bug="yes")])
|
||||
CXXFLAGS="$_SAVE_CXXFLAGS"
|
||||
if test "$ac_cv_cxx0x_headers_bug" = "no"; then
|
||||
CXXFLAGS="$CXXFLAGS -std=gnu++0x"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user