From: Christian Grothoff Date: Wed, 14 Sep 2011 14:31:29 +0000 (+0000) Subject: stuff X-Git-Tag: initial-import-from-subversion-38251~17110 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5f6bac4a191655d892ad2f04785647a96337da6b;p=oweals%2Fgnunet.git stuff --- diff --git a/m4/align.m4 b/m4/align.m4 index 256300e37..733afa6d4 100644 --- a/m4/align.m4 +++ b/m4/align.m4 @@ -14,8 +14,12 @@ AC_DEFUN([AC_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 = &s.b; - long long x = *p; return (int) x*x;]]), + [[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;]]), ac_cv_unaligned_64_access=yes, ac_cv_unaligned_64_access=no, ac_cv_unaligned_64_access=no)