==============================================================================
-acinclude/ax_cxx_0x_types.m4:
-
-##
-## AX_CXX_TYPE_NULLPTR shamelessly copied from the DUNE sources under GPL version 2
-##
-
-==============================================================================
-
acinclude/ax_cxx_compile_stdcxx_11.m4:
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
## Please see the COPYING and CONTRIBUTORS files for details.
##
-##
-## AX_CXX_TYPE_NULLPTR shamelessly copied from the DUNE sources under GPL version 2
-##
-AC_DEFUN([AX_CXX_TYPE_NULLPTR],[
- AC_REQUIRE([AC_PROG_CXX])
- AC_LANG_PUSH([C++])
- AC_MSG_CHECKING([whether nullptr is supported])
- AC_TRY_COMPILE([],[char* ch = nullptr;], [
- HAVE_NULLPTR=yes
- AC_MSG_RESULT(yes)], [
- HAVE_NULLPTR=no
- AC_MSG_RESULT(no)])
- if test "x$HAVE_NULLPTR" = xno; then
- AC_DEFINE(nullptr, NULL, [Leave undefined if nullptr is supported])
- fi
- AC_MSG_CHECKING([whether nullptr_t is supported])
- AC_TRY_COMPILE([#include <cstddef>],[typedef nullptr_t peng;], [
- HAVE_NULLPTR_T=yes
- AC_MSG_RESULT(yes)], [
- HAVE_NULLPTR_T=no
- AC_MSG_RESULT(no)])
- if test "x$HAVE_NULLPTR_T" = xyes; then
- AC_DEFINE(HAVE_NULLPTR_T, 1, [Define to 1 if nullptr_t is supported])
- fi
- AC_LANG_POP
-])
-
-## Hand crafted for Squid under GPL version 2
-AC_DEFUN([AX_CXX_TYPE_UNIQUE_PTR],[
- AC_REQUIRE([AC_PROG_CXX])
- AC_LANG_PUSH([C++])
- AC_MSG_CHECKING([whether std::unique_ptr<T> is supported])
- AC_TRY_COMPILE([#include <memory>],[std::unique_ptr<char> c;], [
- HAVE_UNIQUE_PTR=yes
- AC_MSG_RESULT(yes)], [
- HAVE_UNIQUE_PTR=no
- AC_MSG_RESULT(no)])
- if test "x$HAVE_UNIQUE_PTR" = xno; then
- AC_DEFINE(unique_ptr, auto_ptr, [Leave undefined if std::unique_ptr<T> is supported])
- fi
- if test "x$HAVE_UNIQUE_PTR" = xyes; then
- AC_DEFINE(HAVE_UNIQUE_PTR, 1, [Define to 1 if std::unique_ptr<T> is supported])
- fi
- AC_LANG_POP
-])
-
## Hand crafted for Squid under GPL version 2
AC_DEFUN([AX_CXX_TYPE_UNIFORM_DISTRIBUTIONS],[
AC_REQUIRE([AC_PROG_CXX])
// CPPUNIT test suite uses auto_ptr which is deprecated in C++0x
#if HAVE_CPPUNIT_EXTENSIONS_HELPERMACROS_H
-#if defined(__cplusplus) && HAVE_UNIQUE_PTR
+#if defined(__cplusplus)
#include <cppunit/extensions/HelperMacros.h>
#undef CPPUNIT_TEST_SUITE_END
private: /* dummy typedef so that the macro can still end with ';'*/ \
typedef int CppUnitDummyTypedefForSemiColonEnding__
-#endif /* HAVE_UNIQUE_PTR */
+#endif /* __cplusplus */
#endif /* HAVE_CPPUNIT_EXTENSIONS_HELPERMACROS_H */
#endif /* SQUID_COMPAT_CPPUNIT_H */