1 AC_DEFUN([AX_C___ATTRIBUTE__], [
2 AC_MSG_CHECKING(for __attribute__)
3 AC_CACHE_VAL(ac_cv___attribute__, [
6 static void foo(void) __attribute__ ((unused));
7 void foo(void) { exit(1); }],
9 ac_cv___attribute__=yes,
10 ac_cv___attribute__=no
12 if test "$ac_cv___attribute__" = "yes"; then
13 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
15 AC_MSG_RESULT($ac_cv___attribute__)