aboutsummaryrefslogtreecommitdiff
path: root/m4/c++11.m4
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-12-13 21:57:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-01-23 21:20:44 +0300
commitfc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch)
tree6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /m4/c++11.m4
parent02367faedb16b6186e8852de47e5b749dc48c2df (diff)
Switch to build2
Diffstat (limited to 'm4/c++11.m4')
-rw-r--r--m4/c++11.m437
1 files changed, 0 insertions, 37 deletions
diff --git a/m4/c++11.m4 b/m4/c++11.m4
deleted file mode 100644
index 42d38ad..0000000
--- a/m4/c++11.m4
+++ /dev/null
@@ -1,37 +0,0 @@
-dnl file : m4/cxx11.m4
-dnl license : GNU GPL v2; see accompanying LICENSE file
-dnl
-dnl CXX11(MACRO, DESCRIPTION)
-dnl
-dnl Check if we are compiling in the C++11 mode. If we are, define MACRO as
-dnl both a macro and conditional as well as set the cxx11 variable to 'yes'.
-dnl
-AC_DEFUN([CXX11],
-[
-cxx11=no
-
-AC_MSG_CHECKING([whether we are in C++11 mode])
-
-CXX_LIBTOOL_LINK_IFELSE([
-AC_LANG_SOURCE([
-#include <memory>
-
-int
-main ()
-{
- std::shared_ptr<int> p (new int (10));
- *p = 11;
-}
-])],
-[cxx11=yes])
-
-if test x"$cxx11" = xyes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE([$1], [1], [$2])
-else
- AC_MSG_RESULT([no])
-fi
-
-AM_CONDITIONAL([$1], [test x$cxx11 = xyes])
-
-])dnl