• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision6bbf22f049f230c6e8338a3ce907820ed59bd231 (tree)
Time2013-08-23 21:08:37
AuthorKatsuhiko Nishimra <ktns.87@gmai...>
CommiterKatsuhiko Nishimra

Log Message

Downloaded m4/ac_cxx_namespaces.m4.

see http://ac-archive.sourceforge.net/ac-archive/ac_cxx_namespaces.html.

git-svn-id: https://svn.sourceforge.jp/svnroot/molds/branches/automake@1497 1136aad2-a195-0410-b898-f5ea1d11b9d8

Change Summary

Incremental Difference

--- /dev/null
+++ b/src/m4/ac_cxx_namespaces.m4
@@ -0,0 +1,25 @@
1+dnl @synopsis AC_CXX_NAMESPACES
2+dnl
3+dnl If the compiler can prevent names clashes using namespaces, define
4+dnl HAVE_NAMESPACES.
5+dnl
6+dnl @category Cxx
7+dnl @author Todd Veldhuizen
8+dnl @author Luc Maisonobe <luc@spaceroots.org>
9+dnl @version 2004-02-04
10+dnl @license AllPermissive
11+
12+AC_DEFUN([AC_CXX_NAMESPACES],
13+[AC_CACHE_CHECK(whether the compiler implements namespaces,
14+ac_cv_cxx_namespaces,
15+[AC_LANG_SAVE
16+ AC_LANG_CPLUSPLUS
17+ AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],
18+ [using namespace Outer::Inner; return i;],
19+ ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)
20+ AC_LANG_RESTORE
21+])
22+if test "$ac_cv_cxx_namespaces" = yes; then
23+ AC_DEFINE(HAVE_NAMESPACES,,[define if the compiler implements namespaces])
24+fi
25+])