summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2017-02-24 12:57:33 +0100
committerFrancis Dupont <fdupont@isc.org>2017-02-24 12:57:33 +0100
commitefebb1a857ac6fe576318b160f0999df82738f07 (patch)
treefeb39b858c996e13d894698419982a444f7c8761 /configure.ac
parent[1205a] Rebased trac1205 into trac1205a (more things to add anyway) (diff)
downloadkea-efebb1a857ac6fe576318b160f0999df82738f07.tar.xz
kea-efebb1a857ac6fe576318b160f0999df82738f07.zip
[1205a] Added variadic template check in configure
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 4b8df8532e..770b5dd21f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -187,6 +187,20 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do
[AC_MSG_RESULT([no])
continue])
+ AC_MSG_CHECKING(variadic template support)
+ feature="variadic template"
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [template<typename ... Args>
+ struct A {
+ void foo(Args... myargs) { return; };
+ };],
+ [A<> a;
+ a.foo();])],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ continue])
+
AC_MSG_CHECKING(lambda support)
feature="lambda"
AC_COMPILE_IFELSE(