From fe4a45e34281094cbdb725e149396710d5f50e8d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 17 Jun 2015 08:47:23 +0000 Subject: -fix align.m4 macro based on Daniel Golle's report --- m4/align.m4 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/m4/align.m4 b/m4/align.m4 index 25e1ee2d4..7bcbae8fa 100644 --- a/m4/align.m4 +++ b/m4/align.m4 @@ -11,18 +11,18 @@ dnl the same distribution terms as the rest of that program. # see some message along those lines on the console). AC_DEFUN([AC_UNALIGNED_64_ACCESS], [AC_CACHE_CHECK([whether unaligned 64-bit access works], - ac_cv_unaligned_64_access, + ac_cv_unaligned_64_access, [ AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]], - [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; - void *bp = malloc (50); - long long x = *p; + [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; + void *bp = malloc (50); + long long x = *p; long long *be = (long long*) &bp[1]; long long y = *be; - return (int) x*y;]]), + return (int) x*y;]])], ac_cv_unaligned_64_access=yes, ac_cv_unaligned_64_access=no, - ac_cv_unaligned_64_access=no]) + ac_cv_unaligned_64_access=no) ]) case "$ac_cv_unaligned_64_access" in *yes) value=1;; -- cgit v1.2.3