From 9534013f8cde847d3db48ba72740f999da120093 Mon Sep 17 00:00:00 2001 From: joerg Date: Wed, 1 Mar 2006 16:44:28 +0000 Subject: Update AC_C___ATTRIBUTE__ macro with newer version on Heimdal, the old one is just bogus and depends on GCC extensions. Unbreaks GCC 4 build. --- pkgtools/digest/files/aclocal.m4 | 17 +++++++---------- pkgtools/digest/files/configure | 9 --------- 2 files changed, 7 insertions(+), 19 deletions(-) (limited to 'pkgtools/digest') diff --git a/pkgtools/digest/files/aclocal.m4 b/pkgtools/digest/files/aclocal.m4 index d69553e2d4c..ac5b591a4d9 100644 --- a/pkgtools/digest/files/aclocal.m4 +++ b/pkgtools/digest/files/aclocal.m4 @@ -1,20 +1,17 @@ -dnl $Id: aclocal.m4,v 1.1 2002/12/21 04:06:13 schmonz Exp $ +dnl $Id: aclocal.m4,v 1.2 2006/03/01 16:44:28 joerg Exp $ dnl From heimdal sources -dnl Id: c-attribute.m4,v 1.2 1999/03/01 09:52:23 joda Exp +dnl Id: c-attribute.m4,v 1.5 2004/08/26 12:35:41 joda Exp dnl dnl dnl Test for __attribute__ dnl -AC_DEFUN(AC_C___ATTRIBUTE__, [ +AC_DEFUN([AC_C___ATTRIBUTE__], [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ -AC_TRY_COMPILE([ -#include -], -[ +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include static void foo(void) __attribute__ ((noreturn)); static void @@ -22,9 +19,9 @@ foo(void) { exit(1); } -], -ac_cv___attribute__=yes, -ac_cv___attribute__=no)]) +]])], +[ac_cv___attribute__=yes], +[ac_cv___attribute__=no])]) if test "$ac_cv___attribute__" = "yes"; then AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__]) fi diff --git a/pkgtools/digest/files/configure b/pkgtools/digest/files/configure index 1574667b48e..5b9bd694b6d 100755 --- a/pkgtools/digest/files/configure +++ b/pkgtools/digest/files/configure @@ -3465,13 +3465,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - #include - -int -main () -{ - static void foo(void) __attribute__ ((noreturn)); static void @@ -3480,9 +3474,6 @@ foo(void) exit(1); } - ; - return 0; -} _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- cgit v1.2.3