|
Revision 1, 0.7 KB
(checked in by cristy, 3 months ago)
|
|
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | AC_DEFUN([AC_CXX_HAVE_STD_NAMESPACE], |
|---|
| 13 | [AC_CACHE_CHECK(whether the compiler supports the std namespace, |
|---|
| 14 | ac_cv_cxx_have_std_namespace, |
|---|
| 15 | [AC_LANG_SAVE |
|---|
| 16 | AC_LANG_CPLUSPLUS |
|---|
| 17 | AC_TRY_COMPILE([ |
|---|
| 18 | std::istream& is = std::cin; |
|---|
| 19 | ],[return 0;], |
|---|
| 20 | ac_cv_cxx_have_std_namespace=yes, ac_cv_cxx_have_std_namespace=no) |
|---|
| 21 | AC_LANG_RESTORE |
|---|
| 22 | ]) |
|---|
| 23 | if test "$ac_cv_cxx_have_std_namespace" = yes; then |
|---|
| 24 | AC_DEFINE(HAVE_STD_NAMESPACE,,[define if the compiler supports the std namespace]) |
|---|
| 25 | fi |
|---|
| 26 | ]) |
|---|