]> git.lyx.org Git - lyx.git/blobdiff - configure.ac
Cmake build: Adapt detection of C++11 mode to automake
[lyx.git] / configure.ac
index eace28557a8c5ae818b9dcdb98a266f71b928868..17a463af5a6771ac076a95746ff31d4988875b6a 100644 (file)
@@ -276,6 +276,10 @@ AH_BOTTOM([
 /************************************************************
  ** You should not need to change anything beyond this point */
 
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
+#define LYX_USE_CXX11
+#endif
+
 #ifndef HAVE_STRERROR
 #if defined(__cplusplus)
 extern "C"