[Pkg-gnupg-commit] [gpgme] 130/412: Cpp: Set -std=c++11 also if CXXCPP is already set

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:26:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit b107fc8a92bd16bc0d868c771b6334d6594e6395
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Tue May 24 14:10:16 2016 +0200

    Cpp: Set -std=c++11 also if CXXCPP is already set
    
    * m4/ax_cxx_compile_stdxx.m4 (AX_CXX_COMPILE_STDCXX): Set CXXCPP if
    neccessary.
    
    --
    This fixes the build with scan-build where CXXCPP is already set but
    does not include stdc++11. While this deviates from the
    autotools-archive version of the script it does not make sense
    to me first to check if stdc++11 needs to be set and then not
    set it.
---
 m4/ax_cxx_compile_stdcxx.m4 | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4
index 2c18e49..de3d012 100644
--- a/m4/ax_cxx_compile_stdcxx.m4
+++ b/m4/ax_cxx_compile_stdcxx.m4
@@ -82,9 +82,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
          CXX="$ac_save_CXX"])
       if eval test x\$$cachevar = xyes; then
         CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
+        CXXCPP="$CXXCPP $switch"
         ac_success=yes
         break
       fi
@@ -108,9 +106,7 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl
          CXX="$ac_save_CXX"])
       if eval test x\$$cachevar = xyes; then
         CXX="$CXX $switch"
-        if test -n "$CXXCPP" ; then
-          CXXCPP="$CXXCPP $switch"
-        fi
+        CXXCPP="$CXXCPP $switch"
         ac_success=yes
         break
       fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list