aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-25 20:28:46 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-25 20:28:46 +0100
commitda783b99128623ec97d355b286b452f6b60dda43 (patch)
tree58b7eec8477260b96d6386fa44e81fb5543ad79e
parent5d7f996f3d137c03802f83dc9fb784e34389da72 (diff)
downloadpaludis-da783b99128623ec97d355b286b452f6b60dda43.tar.gz
paludis-da783b99128623ec97d355b286b452f6b60dda43.tar.xz
static_assert is required
-rw-r--r--configure.ac13
1 files changed, 7 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 5d6dc27..3395e1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -637,12 +637,13 @@ int main(int, char **)
static_assert(false, "works");
}
],
- [AC_MSG_RESULT([no])],
- [AC_MSG_RESULT([yes])
- PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_STATIC_ASSERT=1"
- PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_STATIC_ASSERT=1"
- ])],
- [AC_MSG_RESULT([no])])
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([your compiler's static_assert is broken (try GCC 4.4+)])
+ ],
+ [AC_MSG_RESULT([yes])])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([your compiler doesn't do static_assert (try GCC 4.4+)])
+ ])
dnl }}}
dnl {{{ check for hashes