diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-11-03 21:06:04 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-11-03 21:06:04 +0000 |
commit | a0f6da3d9590ece3c7a056f235aab28880dbd67c (patch) | |
tree | 67d4f9eeb6647e218dc4e5ff99f8fff5c3976e1e /autoconf/spl-build.m4 | |
parent | 550f1705259c9b97ad158354a921003bbbfe819f (diff) |
Add a SPL_AC_TYPE_ATOMIC64_T test to configure for systems which do
already supprt atomic64_t types.
* spl-07-kmem-cleanup.patch
This moves all the debugging code from sys/kmem.h to spl-kmem.c, because
the huge macros were hard to debug and were bloating functions that
allocated memory. I also fixed some other minor problems, including
32-bit fixes and a reported memory leak which was just due to using the
wrong free function.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@163 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'autoconf/spl-build.m4')
-rw-r--r-- | autoconf/spl-build.m4 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/autoconf/spl-build.m4 b/autoconf/spl-build.m4 index 585e3482e..0ac7ae8a6 100644 --- a/autoconf/spl-build.m4 +++ b/autoconf/spl-build.m4 @@ -329,6 +329,25 @@ AC_DEFUN([SPL_AC_TYPE_UINTPTR_T], ]) dnl # +dnl # 2.6.x API change, +dnl # check if atomic64_t typedef is defined +dnl # +AC_DEFUN([SPL_AC_TYPE_ATOMIC64_T], + [AC_MSG_CHECKING([whether kernel defines atomic64_t]) + SPL_LINUX_TRY_COMPILE([ + #include <asm/atomic.h> + ],[ + atomic64_t *ptr; + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_ATOMIC64_T, 1, + [kernel defines atomic64_t]) + ],[ + AC_MSG_RESULT([no]) + ]) +]) + +dnl # dnl # 2.6.20 API change, dnl # INIT_WORK use 2 args and not store data inside dnl # |