Port: Add configure check for __attribute__ support
[babeltrace.git] / configure.ac
index 18321ba9cc58a32cd2c05e57a04f04d20d5d70c0..c04e8fec3fa4085beb49437de852b934e34ec1b7 100644 (file)
@@ -32,6 +32,11 @@ AC_PROG_LEX
 AC_PROG_MKDIR_P
 AC_PROG_LN_S
 
+AX_C___ATTRIBUTE__
+AS_IF([test "x$ax_cv___attribute__" = "xyes"],
+       [:],
+       [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
+
 # Check linker option
 AX_APPEND_LINK_FLAGS([-Wl,--no-as-needed], [LD_NO_AS_NEEDED])
 AC_SUBST([LD_NO_AS_NEEDED])
This page took 0.02325 seconds and 4 git commands to generate.