Sync usage with man page.
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / c-attribute.m4
blobbfdf744e79129a12c7fdc70d256138069ed3ecc7
1 dnl
2 dnl $Heimdal: c-attribute.m4 14166 2004-08-26 12:35:42Z joda $
3 dnl $NetBSD$
4 dnl
6 dnl
7 dnl Test for __attribute__
8 dnl
10 AC_DEFUN([AC_C___ATTRIBUTE__], [
11 AC_MSG_CHECKING(for __attribute__)
12 AC_CACHE_VAL(ac_cv___attribute__, [
13 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
14 static void foo(void) __attribute__ ((noreturn));
16 static void
17 foo(void)
19   exit(1);
21 ]])],
22 [ac_cv___attribute__=yes],
23 [ac_cv___attribute__=no])])
24 if test "$ac_cv___attribute__" = "yes"; then
25   AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
27 AC_MSG_RESULT($ac_cv___attribute__)