Le 26/06/2016 à 16:58, Guillaume Munch a écrit :
Le 26/06/2016 15:04, Jürgen Spitzmüller a écrit :
Am Sonntag, den 26.06.2016, 14:30 +0100 schrieb Guillaume Munch:
Hi Jürgen,

I can have a look. Please send your config.log.

Thank you. Log is attached.


Thank you. I think the problem is there:

configure:8141: checking whether make_unique is defined by header memory
configure:8154: g++ -c   conftest.cpp >&5
configure:8154: $? = 0
configure:8160: result: yes

The macro LYX_CHECK_DEF does not pass the option -std=X to g++ for the
test. Probably it has only been working by chance up to now. Can any
configure expert have a look?

What about this additional patch that does not force C++11 for gcc 6+, so that C++14 is available in this case?


>From 24a56e245a5286607107b5d44d0b5eca8e91ee35 Mon Sep 17 00:00:00 2001
From: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date: Thu, 30 Jun 2016 11:15:14 +0200
Subject: [PATCH] Gcc 6+ use C++14 as default, so there is no need to enforce
 C++11

---
 config/lyxinclude.m4 |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index 629247b..59a3753 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -373,7 +373,9 @@ if test x$GXX = xyes; then
       4.6*)
         dnl Note that this will define __GXX_EXPERIMENTAL_CXX0X__.
         dnl The source code relies on that.
-        cxx11_flags="-std=c++0x";;
+        cxx11_flags="-std=gnu++0x";;
+      4.7*|4.8*|4.9*|5.*)
+        cxx11_flags="-std=gnu++11";;
       clang-3.0*|clang-3.1*|clang-3.2*|clang-3.3*)
         dnl presumably all clang versions support c++11.
 	dnl boost contains pragmas that are annoying on older clang versions
@@ -383,10 +385,8 @@ if test x$GXX = xyes; then
         dnl which  is very annoying with Qt4.x right now.
         cxx11_flags="-std=c++11"
         AM_CXXFLAGS="$AM_CXXFLAGS -Wno-deprecated-register";;
-      *)
-        AS_CASE([$host], [*cygwin*],
-                [cxx11_flags="-std=gnu++11"],
-                [cxx11_flags="-std=c++11"]);;
+      *) # gcc 6 and newer use C++14 as default
+	 ;;
     esac
     # cxx11_flags is useful when running preprocessor alone
     # (see detection of regex).
-- 
1.7.9.5

Reply via email to