diff options
author | Kevin Ryde <user42@zip.com.au> | 2001-06-12 00:28:48 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2001-06-12 00:28:48 +0200 |
commit | b9e51c65f1d84e5732324416fae7cfe728b296ca (patch) | |
tree | aff3c6b963277588fef00954608eeb7608276ae6 /acinclude.m4 | |
parent | b85b1c48f8be27b605f5d5fc5240f78b1741aaea (diff) | |
download | gmp-b9e51c65f1d84e5732324416fae7cfe728b296ca.tar.gz |
* acinclude.m4 (GMP_C_ATTRIBUTE_MODE): New macro.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 796cc6485..fbe3154ab 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1350,6 +1350,23 @@ fi ]) +dnl GMP_C_ATTRIBUTE_MODE +dnl -------------------- +dnl Introduced in gcc 2.2, but perhaps not in all Apple derived versions. + +AC_DEFUN(GMP_C_ATTRIBUTE_MODE, +[AC_CACHE_CHECK([whether gcc __attribute__ ((mode (XX))) works], + gmp_cv_c_attribute_mode, +[AC_TRY_COMPILE([typedef int SItype __attribute__ ((mode (SI)));], , + gmp_cv_c_attribute_mode=yes, gmp_cv_c_attribute_mode=no) +]) +if test $gmp_cv_c_attribute_mode = yes; then + AC_DEFINE(HAVE_ATTRIBUTE_MODE, 1, + [Define if the compiler accepts gcc style __attribute__ ((mode (XX)))]) +fi +]) + + dnl GMP_C_ATTRIBUTE_NORETURN dnl ------------------------ |