From 8c218dc01b376e7a560d2b7fcbacca532b75fe4b Mon Sep 17 00:00:00 2001 From: nia Date: Sun, 24 May 2020 05:35:51 +0000 Subject: Import bmake- --- devel/bmake/files/aclocal.m4 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'devel/bmake/files/aclocal.m4') 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 -], -[ + 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)]) -- cgit v1.2.3