summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/ac_attribute.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ac_attribute.m4 b/m4/ac_attribute.m4
index 34bb4db..3926d23 100644
--- a/m4/ac_attribute.m4
+++ b/m4/ac_attribute.m4
@@ -3,7 +3,7 @@ dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
3dnl That code is public domain and can be freely used or copied. 3dnl That code is public domain and can be freely used or copied.
4dnl Originally snatched from somewhere... 4dnl Originally snatched from somewhere...
5 5
6dnl Macro for checking if the compiler supports __atribute__ 6dnl Macro for checking if the compiler supports __attribute__
7 7
8dnl Usage: AC_C___ATTRIBUTE__ 8dnl Usage: AC_C___ATTRIBUTE__
9dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__ 9dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__
@@ -21,14 +21,14 @@ AC_CACHE_VAL([ac_cv___attribute__],
21 [AC_TRY_COMPILE( 21 [AC_TRY_COMPILE(
22 [ 22 [
23#include <stdlib.h> 23#include <stdlib.h>
24 ], 24
25 [
26int func(int x); 25int func(int x);
27int foo(int x __attribute__ ((unused))) 26int foo(int x __attribute__ ((unused)))
28{ 27{
29 exit(1); 28 exit(1);
30} 29}
31 ], 30 ],
31 [],
32 [ac_cv___attribute__="yes"], 32 [ac_cv___attribute__="yes"],
33 [ac_cv___attribute__="no"] 33 [ac_cv___attribute__="no"]
34 )] 34 )]