2 dnl $Id: c-attribute.m4,v 1.3 2003/10/08 20:35:24 rjs3 Exp $
6 dnl Test for __attribute__
9 AC_DEFUN([CMU_C___ATTRIBUTE__], [
10 AC_MSG_CHECKING(for __attribute__)
11 AC_CACHE_VAL(ac_cv___attribute__, [
16 static void foo(void) __attribute__ ((noreturn));
24 ac_cv___attribute__=yes,
25 ac_cv___attribute__=no)])
26 if test "$ac_cv___attribute__" = "yes"; then
27 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
29 AC_MSG_RESULT($ac_cv___attribute__)