diff options
author | nia <nia@pkgsrc.org> | 2020-05-24 05:35:51 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-05-24 05:35:51 +0000 |
commit | 8c218dc01b376e7a560d2b7fcbacca532b75fe4b (patch) | |
tree | 934e95ccea73f17c420a7617a820bc6a2596e583 /devel/bmake/files/aclocal.m4 | |
parent | 41f4d684ea949e703f7e4cdb02fffeb278231228 (diff) | |
download | pkgsrc-8c218dc01b376e7a560d2b7fcbacca532b75fe4b.tar.gz |
Import bmake-BMAKE
Diffstat (limited to 'devel/bmake/files/aclocal.m4')
-rw-r--r-- | devel/bmake/files/aclocal.m4 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/bmake/files/aclocal.m4 b/devel/bmake/files/aclocal.m4 index ca977067415..6e75218a24d 100644 --- a/devel/bmake/files/aclocal.m4 +++ b/devel/bmake/files/aclocal.m4 @@ -1,5 +1,5 @@ dnl RCSid: -dnl $Id: aclocal.m4,v 1.1.1.3 2009/09/18 20:55:24 joerg Exp $ +dnl $Id: aclocal.m4,v 1.1.1.4 2020/05/24 05:35:51 nia Exp $ dnl dnl @@ -55,10 +55,9 @@ dnl AC_DEFUN(AC_C___ATTRIBUTE__, [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ -AC_TRY_COMPILE([ +AC_LINK_IFELSE([ #include <stdlib.h> -], -[ + static void foo(void) __attribute__ ((noreturn)); static void @@ -66,6 +65,12 @@ foo(void) { exit(1); } + +int +main(int argc, char **argv) +{ + foo(); +} ], ac_cv___attribute__=yes, ac_cv___attribute__=no)]) |