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([MeshLink_ATTRIBUTE],
6 AC_CACHE_CHECK([for working $1 attribute], MeshLink_cv_attribute_$1,
9 CFLAGS="$CFLAGS -Wall -Werror"
12 [void *test(void *arg) __attribute__ (($1));
13 void *test(void *arg) { return arg; }
16 [MeshLink_cv_attribute_$1=yes],
17 [MeshLink_cv_attribute_$1=no]
22 if test ${MeshLink_cv_attribute_$1} = no; then
23 AC_DEFINE([$1], [], [Defined if the $1 attribute is not supported.])