Skip to content
Snippets Groups Projects
Commit dcff702c authored by Christian Engwer's avatar Christian Engwer
Browse files

split cxx0x related m4 files

[[Imported from SVN: r6305]]
parent 0dbd80ca
No related branches found
No related tags found
No related merge requests found
......@@ -5,10 +5,13 @@ ALLM4S = \
acx_lapack.m4 \
acx_mpi.m4 \
acx_pthread.m4 \
ax_boost_base.m4 \
ax_boost_base.m4 \
ax_check_gl.m4 \
ax_lang_compiler_ms.m4 \
boost_fusion.m4 \
cxx0x_compiler.m4 \
cxx0x_nullptr.m4 \
cxx0x_static_assert.m4 \
dune.m4 \
dune_all.m4 \
dune_autobuild.m4 \
......@@ -35,7 +38,6 @@ ALLM4S = \
pardiso.m4 \
parmetis.m4 \
shared_ptr.m4 \
static_assert.m4 \
superlu-dist.m4 \
superlu.m4 \
xdr.m4
......
......@@ -22,37 +22,3 @@ AC_DEFUN([GXX0X],[
AC_LANG_POP
fi
])
AC_DEFUN([STATIC_ASSERT_CHECK],[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([GXX0X])
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether static_assert is supported])
AC_TRY_COMPILE([],[static_assert(true,"MSG")], [
HAVE_STATIC_ASSERT=yes
AC_MSG_RESULT(yes)], [
HAVE_STATIC_ASSERT=no
AC_MSG_RESULT(no)])
if test "x$HAVE_STATIC_ASSERT" = xyes; then
AC_DEFINE(HAVE_STATIC_ASSERT, 1, [Define to 1 if static_assert is supported])
fi
AC_LANG_POP
])
AC_DEFUN([NULLPTR_CHECK],[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([GXX0X])
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether nullptr is supported])
AC_TRY_COMPILE([],[typedef nullptr_t peng;
char* ch = nullptr;
], [
HAVE_NULLPTR=yes
AC_MSG_RESULT(yes)], [
HAVE_NULLPTR=no
AC_MSG_RESULT(no)])
if test "x$HAVE_NULLPTR" = xyes; then
AC_DEFINE(HAVE_NULLPTR, 1, [Define to 1 if nullptr is supported])
fi
AC_LANG_POP
])
AC_DEFUN([NULLPTR_CHECK],[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([GXX0X])
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether nullptr is supported])
AC_TRY_COMPILE([],[typedef nullptr_t peng;
char* ch = nullptr;
], [
HAVE_NULLPTR=yes
AC_MSG_RESULT(yes)], [
HAVE_NULLPTR=no
AC_MSG_RESULT(no)])
if test "x$HAVE_NULLPTR" = xyes; then
AC_DEFINE(HAVE_NULLPTR, 1, [Define to 1 if nullptr is supported])
fi
AC_LANG_POP
])
AC_DEFUN([STATIC_ASSERT_CHECK],[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([GXX0X])
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether static_assert is supported])
AC_TRY_COMPILE([],[static_assert(true,"MSG")], [
HAVE_STATIC_ASSERT=yes
AC_MSG_RESULT(yes)], [
HAVE_STATIC_ASSERT=no
AC_MSG_RESULT(no)])
if test "x$HAVE_STATIC_ASSERT" = xyes; then
AC_DEFINE(HAVE_STATIC_ASSERT, 1, [Define to 1 if static_assert is supported])
fi
AC_LANG_POP
])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment