1 dnl Check to find out whether function attributes are supported.
2 dnl If they are not, #define them to be nothing.
4 AC_DEFUN(tinc_ATTRIBUTE,
6 AC_CACHE_CHECK([for working $1 attribute], tinc_cv_attribute_$1,
9 CFLAGS="$CFLAGS -Wall -Werror"
12 [void test(void) __attribute__ (($1));
13 void test(void) { return; }
16 [tinc_cv_attribute_$1=yes],
17 [tinc_cv_attribute_$1=no]
22 if test ${tinc_cv_attribute_$1} = no; then
23 AC_DEFINE([$1], [], [Defined if the $1 attribute is not supported.])