diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/align.m4 | 12 |
1 files 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. | |||
11 | # see some message along those lines on the console). | 11 | # see some message along those lines on the console). |
12 | AC_DEFUN([AC_UNALIGNED_64_ACCESS], | 12 | AC_DEFUN([AC_UNALIGNED_64_ACCESS], |
13 | [AC_CACHE_CHECK([whether unaligned 64-bit access works], | 13 | [AC_CACHE_CHECK([whether unaligned 64-bit access works], |
14 | ac_cv_unaligned_64_access, | 14 | ac_cv_unaligned_64_access, |
15 | [ | 15 | [ |
16 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]], | 16 | AC_RUN_IFELSE([AC_LANG_PROGRAM([[struct S { int a,b,c;};]], |
17 | [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; | 17 | [[struct S s = {0,0,0}; long long * p = (long long *) &s.b; |
18 | void *bp = malloc (50); | 18 | void *bp = malloc (50); |
19 | long long x = *p; | 19 | long long x = *p; |
20 | long long *be = (long long*) &bp[1]; | 20 | long long *be = (long long*) &bp[1]; |
21 | long long y = *be; | 21 | long long y = *be; |
22 | return (int) x*y;]]), | 22 | return (int) x*y;]])], |
23 | ac_cv_unaligned_64_access=yes, | 23 | ac_cv_unaligned_64_access=yes, |
24 | ac_cv_unaligned_64_access=no, | 24 | ac_cv_unaligned_64_access=no, |
25 | ac_cv_unaligned_64_access=no]) | 25 | ac_cv_unaligned_64_access=no) |
26 | ]) | 26 | ]) |
27 | case "$ac_cv_unaligned_64_access" in | 27 | case "$ac_cv_unaligned_64_access" in |
28 | *yes) value=1;; | 28 | *yes) value=1;; |