summaryrefslogtreecommitdiff
path: root/m4/stdalign.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-10-27 12:43:51 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-10-27 13:05:43 -0700
commit610ca128a2e9199fcb4ae780dac2f7b34a65a4a6 (patch)
tree48e9415f3de5b585b123232dc5c150e6f873a8da /m4/stdalign.m4
parenta8bd8dfca5a4e7691d91857e546ac8abe0f4b0f7 (diff)
downloadgnulib-610ca128a2e9199fcb4ae780dac2f7b34a65a4a6.tar.gz
Adjust to Bruno's comments.
Diffstat (limited to 'm4/stdalign.m4')
-rw-r--r--m4/stdalign.m417
1 files changed, 1 insertions, 16 deletions
diff --git a/m4/stdalign.m4 b/m4/stdalign.m4
index d90cee3756..da64dc6332 100644
--- a/m4/stdalign.m4
+++ b/m4/stdalign.m4
@@ -10,28 +10,13 @@ dnl with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_STDALIGN_H],
[
AC_CHECK_HEADERS_ONCE([stdalign.h])
- HAVE_ATTRIBUTE_ALIGNED='?'
- if test "$ac_cv_header_stdalign_h" = yes; then
+ if test $ac_cv_header_stdalign_h = yes; then
STDALIGN_H=''
else
STDALIGN_H='stdalign.h'
- AC_CACHE_CHECK([for __attribute__ ((__aligned__ (expr)))],
- [gl_cv_attribute_aligned],
- [AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[char __attribute__ ((__aligned__ (1 << 3))) c;]],
- [[]])],
- [gl_cv_attribute_aligned=yes],
- [gl_cv_attribute_aligned=no])])
- if test $gl_cv_attribute_aligned = yes; then
- HAVE_ATTRIBUTE_ALIGNED=1
- else
- HAVE_ATTRIBUTE_ALIGNED=0
- fi
fi
- AC_SUBST([HAVE_ATTRIBUTE_ALIGNED])
AC_SUBST([STDALIGN_H])
AM_CONDITIONAL([GL_GENERATE_STDALIGN_H], [test -n "$STDALIGN_H"])
])