[vlc-devel] [PATCH 2/6] configure: add check for attributes
Filip Roséen
filip at atch.se
Sun Feb 26 20:13:12 CET 2017
---
configure.ac | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5387d71301..c2af1bd93e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1099,6 +1099,14 @@ AC_CACHE_CHECK([if linker supports -z,defs], [ac_cv_ld_z_defs], [
])
AS_IF([test "${ac_cv_ld_z_defs}" = "no"], [VLC_RESTORE_FLAGS])
+dnl
+dnl Conditionally create define if attribute is available
+dnl
+AM_ATTRIBUTE_FN_COND_DEFINE([unused], [HAVE_ATTRIBUTE_UNUSED])
+AM_ATTRIBUTE_FN_COND_DEFINE([error("")], [HAVE_ATTRIBUTE_ERROR])
+AM_ATTRIBUTE_FN_COND_DEFINE([warning("")], [HAVE_ATTRIBUTE_WARNING])
+AM_ATTRIBUTE_FN_COND_DEFINE([noinline], [HAVE_ATTRIBUTE_NOINLINE])
+
dnl Checks for __attribute__(aligned()) directive
VLC_SAVE_FLAGS
CFLAGS="${CFLAGS} -Werror"
--
2.11.1
More information about the vlc-devel
mailing list