diff options
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | m4/ax_cxx_have_mem_fn.m4 | 14 |
2 files changed, 7 insertions, 11 deletions
@@ -25,8 +25,8 @@ AX_CXX_HAVE_REFERENCE_WRAPPER, AX_CXX_HAVE_BAD_FUNCTION_CALL, AX_CXX_HAVE_BIND, AX_CXX_HAVE_BIT_AND, AX_CXX_HAVE_BIT_OR, AX_CXX_HAVE_BIT_XOR, AX_CXX_HAVE_CREF, AX_CXX_HAVE_FUNCTION, - AX_CXX_HAVE_HASH, AX_CXX_HAVE_IS_BIND_EXPRESSION, AX_CXX_HAVE_IS_PLACEHOLDER: - remove dependency on AX_CXX_NAMESPACES. + AX_CXX_HAVE_HASH, AX_CXX_HAVE_IS_BIND_EXPRESSION, AX_CXX_HAVE_IS_PLACEHOLDER, + AX_CXX_HAVE_MEM_FN: remove dependency on AX_CXX_NAMESPACES. AX_PROG_FLEX has been extended to support OpenBSD. diff --git a/m4/ax_cxx_have_mem_fn.m4 b/m4/ax_cxx_have_mem_fn.m4 index febc69b..a4abca6 100644 --- a/m4/ax_cxx_have_mem_fn.m4 +++ b/m4/ax_cxx_have_mem_fn.m4 @@ -8,14 +8,12 @@ # # DESCRIPTION # -# This macros checks if std::mem_fn, added in C++11, is defined in the +# This macro checks if std::mem_fn, added in C++11, is defined in the # <functional> header. # # If it is, define the ax_cv_cxx_have_mem_fn environment variable to "yes" # and define HAVE_CXX_MEM_FN. # -# NOTE: This macros depends on AX_CXX_NAMESPACES. -# # LICENSE # # Copyright (c) 2014 Enrico M. Crisostomo <enrico.m.crisostomo@gmail.com> @@ -25,20 +23,18 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 1 +#serial 2 AC_DEFUN([AX_CXX_HAVE_MEM_FN], [AC_CACHE_CHECK( [for std::mem_fn in functional], ax_cv_cxx_have_mem_fn, - [AC_REQUIRE([AX_CXX_NAMESPACES]) + [dnl AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM( [ - [#include <functional> - #ifdef HAVE_NAMESPACES - using namespace std; - #endif] + [#include <functional>] + [using namespace std;] [struct st { int x; int fn() { return x; } };] ], [ |