Package: autoconf-archive
Version: 20150224-2.1
Severity: normal
File: /usr/share/aclocal/ax_cxx_compile_stdcxx_11.m4
Tags: patch

When AX_CXX_COMPILE_STDCXX_11 is called with the mandatory option, e.g.,

    AX_CXX_COMPILE_STDCXX_14([noext], [mandatory])

if C++ 11 support is found, HAVE_CXX11 is not set to 1.  This is because
if $ax_cxx_compile_cxx11_required is true, the HAVE_CXX11 clauses in the
else branch are never executed.  A patch for this is included:



--- a/ax_cxx_compile_stdcxx_11.m4       2015-07-10 08:06:29.000000000 -0400
+++ b/ax_cxx_compile_stdcxx_11.m4       2015-12-01 00:43:22.039014083 -0500
@@ -148,16 +148,15 @@
     if test x$ac_success = xno; then
       AC_MSG_ERROR([*** A compiler with support for C++11 language features is 
required.])
     fi
+  fi
+  if test x$ac_success = xno; then
+    HAVE_CXX11=0
+    AC_MSG_NOTICE([No compiler with C++11 support was found])
   else
-    if test x$ac_success = xno; then
-      HAVE_CXX11=0
-      AC_MSG_NOTICE([No compiler with C++11 support was found])
-    else
-      HAVE_CXX11=1
-      AC_DEFINE(HAVE_CXX11,1,
-                [define if the compiler supports basic C++11 syntax])
-    fi
-
-    AC_SUBST(HAVE_CXX11)
+    HAVE_CXX11=1
+    AC_DEFINE(HAVE_CXX11,1,
+              [define if the compiler supports basic C++11 syntax])
   fi
+
+  AC_SUBST(HAVE_CXX11)
 ])



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autoconf-archive depends on:
ii  dpkg  1.18.3

Versions of packages autoconf-archive recommends:
ii  autoconf  2.69-9

autoconf-archive suggests no packages.

-- no debconf information

-- 
Michael Welsh Duggan
(m...@md5i.com)

Reply via email to