diff options
author | Matt Turner <[email protected]> | 2014-09-21 18:14:01 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-09-25 13:52:55 -0700 |
commit | 976464c210816ff0c90e2e24e766dda81193fc79 (patch) | |
tree | 2d5bc60e59715fc38693c9b41eec6de930319e81 /configure.ac | |
parent | 4a96df73e770bcca6396d3c8ffe3fd1693c73e50 (diff) |
mesa: Replace a priori knowledge of gcc attributes with configure tests.
Note that I had to add support for testing the packed attribute to
m4/ax_gcc_func_attribute.m4.
Reviewed-by: Jason Ekstrand <[email protected]> [C bits]
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index db134a2f35b..13b339eaaff 100644 --- a/configure.ac +++ b/configure.ac @@ -140,6 +140,10 @@ AX_GCC_BUILTIN([__builtin_popcount]) AX_GCC_BUILTIN([__builtin_popcountll]) AX_GCC_BUILTIN([__builtin_unreachable]) +AX_GCC_FUNC_ATTRIBUTE([flatten]) +AX_GCC_FUNC_ATTRIBUTE([format]) +AX_GCC_FUNC_ATTRIBUTE([packed]) + AM_CONDITIONAL([GEN_ASM_OFFSETS], test "x$GEN_ASM_OFFSETS" = xyes) dnl Make sure the pkg-config macros are defined |