aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-05-11 14:50:11 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-05-11 14:54:45 +0100
commit798dcc3eec8d706662bdf8604e8212d9c175fed5 (patch)
treea926d2ca0322abddcc30b7a898191a66984827af
parent78568af8d6e872f172ca726756b7161405cc7f10 (diff)
downloadpaludis-798dcc3eec8d706662bdf8604e8212d9c175fed5.tar.gz
paludis-798dcc3eec8d706662bdf8604e8212d9c175fed5.tar.xz
Check for c++0x variadic templates, rvalue refs
-rw-r--r--configure.ac32
1 files changed, 32 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 54c85ed..44d80b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -786,6 +786,38 @@ struct S
])
dnl }}}
+dnl {{{ c++0x variadic templates
+AC_MSG_CHECKING([for c++0x variadic templates])
+AC_COMPILE_IFELSE([
+template <typename... T_>
+void f(const T_ & ... a)
+{
+}
+],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_VARIADIC_TEMPLATES=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_VARIADIC_TEMPLATES=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
+dnl {{{ c++0x rvalue references
+AC_MSG_CHECKING([for c++0x rvalue references])
+AC_COMPILE_IFELSE([
+int f(int && a)
+{
+ return a;
+}
+],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_RVALUE_REFERENCES=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_RVALUE_REFERENCES=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
dnl {{{ c++0x enum classes
AC_MSG_CHECKING([for c++0x enum class support])
AC_COMPILE_IFELSE([