]> Savannah Git Hosting - gnulib.git/commitdiff
ansi-c++-opt: Complete the 2011-06-05 change.
authorBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 21:33:25 +0000 (22:33 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 6 Nov 2011 22:53:13 +0000 (23:53 +0100)
* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
does not support namespaces, set the variable to "no", not to ":".

ChangeLog
m4/ansi-c++.m4

index 8cb5575c4197b41123639d23ce02eb3c81579382..e10966127bb0912784a1cae1318832ce341d41e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-11-06  Bruno Haible  <bruno@clisp.org>
+
+       ansi-c++-opt: Complete the 2011-06-05 change.
+       * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
+       does not support namespaces, set the variable to "no", not to ":".
+
 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
 
        * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
index fbb5d64240d7f858be26c144d62e17b33e075ffc..34779530db773f52a46cdc1d9a719853faa2aec0 100644 (file)
@@ -1,4 +1,4 @@
-# ansi-c++.m4 serial 8
+# ansi-c++.m4 serial 9
 dnl Copyright (C) 2002-2003, 2005, 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -84,7 +84,7 @@ AC_DEFUN([gl_PROG_ANSI_CXX],
     AC_LANG_POP([C++])
     AC_MSG_RESULT([$gl_cv_prog_ansicxx_works])
     if test $gl_cv_prog_ansicxx_works = no; then
-      CXX=:
+      CXX=no
     else
       dnl Test for namespaces.
       dnl We don't bother supporting pre-ANSI-C++ compilers.
@@ -105,7 +105,7 @@ EOF
       AC_LANG_POP([C++])
       AC_MSG_RESULT([$gl_cv_prog_ansicxx_namespaces])
       if test $gl_cv_prog_ansicxx_namespaces = no; then
-        CXX=:
+        CXX=no
       fi
     fi
   fi