[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7757 - GNUnet/m4
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7757 - GNUnet/m4 |
Date: |
Sun, 12 Oct 2008 09:10:48 -0600 (MDT) |
Author: holindho
Date: 2008-10-12 09:10:48 -0600 (Sun, 12 Oct 2008)
New Revision: 7757
Modified:
GNUnet/m4/align.m4
Log:
use autoconf cache which also helps cross compilation by allowing command line
override
Modified: GNUnet/m4/align.m4
===================================================================
--- GNUnet/m4/align.m4 2008-10-12 08:13:34 UTC (rev 7756)
+++ GNUnet/m4/align.m4 2008-10-12 15:10:48 UTC (rev 7757)
@@ -10,10 +10,19 @@
# Note that the program intentionally causes a SIGBUS (so you may
# see some message along those lines on the console).
AC_DEFUN([AC_UNALIGNED_64_ACCESS],
-[AC_RUN_IFELSE(AC_LANG_PROGRAM([[struct S { int a,b,c;};]],
+[AC_CACHE_CHECK([whether unaligned 64-bit access works],
+ 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;]]),
- AC_DEFINE([HAVE_UNALIGNED_64_ACCESS], 1, [We can access-64 bit values that
are only 32-bit aligned]),
- AC_DEFINE([HAVE_UNALIGNED_64_ACCESS], 0),
- AC_DEFINE([HAVE_UNALIGNED_64_ACCESS], 0))
+ ac_cv_unaligned_64_access=yes,
+ ac_cv_unaligned_64_access=no,
+ ac_cv_unaligned_64_access=no)
+ ])
+ case "$ac_cv_unaligned_64_access" in
+ *yes) value=1;;
+ *) value=0;;
+ esac
+ AC_DEFINE_UNQUOTED([HAVE_UNALIGNED_64_ACCESS], $value, [We can access-64 bit
values that are only 32-bit aligned])
])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7757 - GNUnet/m4,
gnunet <=