On Sun, Jun 26, 2016 at 03:58:07PM +0100, Guillaume Munch wrote:

> 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?

Does the attached patch help?

-- 
Enrico
diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index c43ae99..629247b 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -841,9 +841,17 @@ dnl Defines HAVE_DEF_{NAME}
 AC_DEFUN([LYX_CHECK_DEF],
 [LYX_AH_CHECK_DEF($1, $2)
  AC_MSG_CHECKING([whether $1 is defined by header $2])
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$AM_CPPFLAGS $CPPFLAGS"
+ save_CXXFLAGS=$CXXFLAGS
+ CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
+ AC_LANG_PUSH(C++)
  AC_TRY_COMPILE([#include <$2>], [$3],
      lyx_have_def_name=yes,
      lyx_have_def_name=no)
+ AC_LANG_POP(C++)
+ CXXFLAGS=$save_CXXFLAGS
+ CPPFLAGS=$save_CPPFLAGS
  AC_MSG_RESULT($lyx_have_def_name)
  if test "x$lyx_have_def_name" = xyes; then
    AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_DEF_$1))

Reply via email to