mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Merge branch 'enable-cxx11'
This commit is contained in:
commit
46a5f60d3d
@ -232,6 +232,10 @@ AC_ARG_ENABLE(pch,
|
||||
enable_pch=no;)
|
||||
lyx_pch_comp=no
|
||||
|
||||
AC_ARG_ENABLE(cxx11,
|
||||
AC_HELP_STRING([--enable-cxx11],[enable C++11 mode]),,
|
||||
enable_cxx11=no;)
|
||||
|
||||
AC_ARG_ENABLE(assertions,
|
||||
AC_HELP_STRING([--enable-assertions],[add runtime sanity checks in the program]),,
|
||||
[AS_CASE([$build_type], [dev*|pre*], [enable_assertions=yes],
|
||||
@ -306,6 +310,18 @@ if test x$GXX = xyes; then
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if test x$enable_cxx11 = xyes ; then
|
||||
case $gxx_version in
|
||||
4.3*|4.4*|4.5*|4.6*)
|
||||
lyx_flags="$lyx_flags c++11-mode"
|
||||
CXXFLAGS="-std=gnu++0x $CXXFLAGS"
|
||||
;;
|
||||
4.7*|4.8*)
|
||||
lyx_flags="$lyx_flags c++11-mode"
|
||||
CXXFLAGS="-std=gnu++11 $CXXFLAGS"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
test "$lyx_pch_comp" = yes && lyx_flags="$lyx_flags pch"
|
||||
AM_CONDITIONAL(LYX_BUILD_PCH, test "$lyx_pch_comp" = yes)
|
||||
|
@ -119,7 +119,7 @@ bool Messages::available(string const & c)
|
||||
// this loops at most twice
|
||||
while (true) {
|
||||
string const filen = locale_dir + "/" + code
|
||||
+ "/LC_MESSAGES/"PACKAGE".mo";
|
||||
+ "/LC_MESSAGES/" PACKAGE ".mo";
|
||||
if (FileName(filen).isReadableFile())
|
||||
return true;
|
||||
if (contains(code, '_'))
|
||||
|
Loading…
Reference in New Issue
Block a user