aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2013-04-18 16:54:39 +0200
committerAvatar Wouter van Kesteren <woutershep@gmail.com> 2013-04-28 00:19:21 +0200
commit149850cb8bc0d261dd9f93161e5bf1f132fe6ed2 (patch)
tree1c67b193c15a090942d6ecf58eaa18b6d0bf24e4 /configure.ac
parenteb5bcb8eaf1a971491541ed646db224c3136063b (diff)
downloadpaludis-149850cb8bc0d261dd9f93161e5bf1f132fe6ed2.tar.gz
paludis-149850cb8bc0d261dd9f93161e5bf1f132fe6ed2.tar.xz
Mark ~RunningProcessHandle() as noexcept(false)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cc5eeb459..e405672f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -896,6 +896,20 @@ enum class C : long { c };
])
dnl }}}
+dnl {{{ c++0x noexcept
+AC_MSG_CHECKING([for c++0x noexcept])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+struct C { ~C() noexcept(false); };
+C::~C() noexcept(false) {}
+])],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_NOEXCEPT=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_NOEXCEPT=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
CXXFLAGS="$save_CXXFLAGS"
AC_MSG_CHECKING([whether to enable visibility])