diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-27 12:43:51 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-10-27 13:05:43 -0700 |
commit | 610ca128a2e9199fcb4ae780dac2f7b34a65a4a6 (patch) | |
tree | 48e9415f3de5b585b123232dc5c150e6f873a8da /m4 | |
parent | a8bd8dfca5a4e7691d91857e546ac8abe0f4b0f7 (diff) | |
download | gnulib-610ca128a2e9199fcb4ae780dac2f7b34a65a4a6.tar.gz |
Adjust to Bruno's comments.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/stdalign.m4 | 17 |
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"]) ]) |