remove pow_get
[oweals/gnunet.git] / configure.ac
index c57a56f9ffe8203c93c1d51f969010123bf9a42d..3b3c9cbe981621233d09a2886c95023b25606b73 100644 (file)
@@ -691,6 +691,14 @@ AC_RUN_IFELSE(
 AC_LANG_POP(C)
 ])     # $build = $target
 
+AC_COMPILE_IFELSE([AC_LANG_SOURCE(
+  [[int main() {
+      _Static_assert(sizeof(int) >= 4, "not big enough");
+      return 0;
+    };]])],
+  [AC_DEFINE([HAVE_STATIC_ASSERT],[1],[Static assertions supported])],
+  [AC_DEFINE([HAVE_STATIC_ASSERT],[0],[Static assertions not supported])])
+
 # check for bluetooth library
 bluetooth=0
 AC_MSG_CHECKING(for libbluetooth)