summaryrefslogtreecommitdiff
path: root/pkgtools/digest/files/aclocal.m4
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-01 16:44:28 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-01 16:44:28 +0000
commit9534013f8cde847d3db48ba72740f999da120093 (patch)
treecfa90cdcff9e1e2782e65ba856ddab73799f74eb /pkgtools/digest/files/aclocal.m4
parent7b9cca05017f1594b356f96cadbfda45085f8464 (diff)
downloadpkgsrc-9534013f8cde847d3db48ba72740f999da120093.tar.gz
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.
Diffstat (limited to 'pkgtools/digest/files/aclocal.m4')
-rw-r--r--pkgtools/digest/files/aclocal.m417
1 files changed, 7 insertions, 10 deletions
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 <stdlib.h>
-],
-[
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
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