aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-27 19:03:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-08-27 19:03:45 +0100
commit682812145fdd8ff945d892838cbb995116b8233f (patch)
tree4497de945effa60629760ecf39d6e1aeb0b7eb86
parentc58fddb7774f1d688f4f26f16bafd285e9b2f69b (diff)
downloadpaludis-682812145fdd8ff945d892838cbb995116b8233f.tar.gz
paludis-682812145fdd8ff945d892838cbb995116b8233f.tar.xz
Check for 0x enum class
-rw-r--r--configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 244cc54..ddaf90c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -367,6 +367,19 @@ struct S
])
dnl }}}
+dnl {{{ c++0x enum classes
+AC_MSG_CHECKING([for c++0x enum class support])
+AC_COMPILE_IFELSE([
+enum class C : long { c };
+],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_ENUM_CLASS=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_ENUM_CLASS=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
need_xml_check=
need_pcrepp_check=
need_syck_check=