/[MITgcm]/MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/c-attribute.m4
ViewVC logotype

Annotation of /MITgcm_contrib/mpack_src/mpack-1.6-4/cmulocal/c-attribute.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sat Feb 23 20:13:30 2008 UTC (17 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
- get new version from: http://packages.qa.debian.org/m/mpack.html
  (files: mpack_1.6.orig.tar.gz, mpack_1.6-4.diff.gz, mpack_1.6-4.dsc)
  and apply patch 'mpack_1.6-4.diff' to original dir: mpack_1.6/
- this fix the MD5 coding on 64.bit platforms (well, seems to).
- added in Contrib to allow separate test (since building mpack seems fishy)

1 jmc 1.1 dnl
2     dnl $Id: c-attribute.m4,v 1.2 2000/02/23 06:49:00 leg Exp $
3     dnl
4    
5     dnl
6     dnl Test for __attribute__
7     dnl
8    
9     AC_DEFUN(CMU_C___ATTRIBUTE__, [
10     AC_MSG_CHECKING(for __attribute__)
11     AC_CACHE_VAL(ac_cv___attribute__, [
12     AC_TRY_COMPILE([
13     #include <stdlib.h>
14     ],
15     [
16     static void foo(void) __attribute__ ((noreturn));
17    
18     static void
19     foo(void)
20     {
21     exit(1);
22     }
23     ],
24     ac_cv___attribute__=yes,
25     ac_cv___attribute__=no)])
26     if test "$ac_cv___attribute__" = "yes"; then
27     AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
28     fi
29     AC_MSG_RESULT($ac_cv___attribute__)
30     ])

  ViewVC Help
Powered by ViewVC 1.1.22