venus: Remove dedebug
[openafs.git] / src / cf / c-attribute.m4
1 dnl
2 dnl GCC-style function __attribute__ checks.
3 dnl
4 dnl Define HAVE___ATTRIBUTE__ if and only if we specifically support the
5 dnl `format' function attribute. This is done for the imported roken
6 dnl headers, which use that symbol to conditionally declare functions with
7 dnl printf-like arguments. This is the only use of function attributes in
8 dnl roken.  The HAVE___ATTRIBUTE__ symbol is not used in the OpenAFS code.
9 dnl
10 AC_DEFUN([OPENAFS_C_ATTRIBUTE], [
11   AX_GCC_FUNC_ATTRIBUTE([always_inline])
12   AX_GCC_FUNC_ATTRIBUTE([format])
13   AX_GCC_FUNC_ATTRIBUTE([nonnull])
14   AX_GCC_FUNC_ATTRIBUTE([noreturn])
15   AX_GCC_FUNC_ATTRIBUTE([unused])
16
17   AS_IF([test "$ax_cv_have_func_attribute_format" = "yes"], [
18     AC_DEFINE([HAVE___ATTRIBUTE__], [1],
19       [define if your compiler has __attribute__((format))])
20   ])
21 ])