LINUX_KMEM_CACHE_CREATE_TAKES_DTOR
LINUX_CONFIG_H_EXISTS
LINUX_COMPLETION_H_EXISTS
+ LINUX_SEMAPHORE_H_EXISTS
LINUX_DEFINES_FOR_EACH_PROCESS
LINUX_DEFINES_PREV_TASK
LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/string.h>
+#if defined(LINUX_SEMAPHORE_H)
+#include <linux/semaphore.h>
+#else
#include <asm/semaphore.h>
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
#include <linux/mutex.h>
#endif
AC_DEFINE([EXPORTED_PROC_ROOT_FS], 1, [define if proc_root_fs is exported])
fi])
+AC_DEFUN([LINUX_SEMAPHORE_H_EXISTS], [
+ AC_MSG_CHECKING([for linux/semaphore.h existance])
+ AC_CACHE_VAL([ac_cv_linux_semaphore_h_exists], [
+ AC_TRY_KBUILD(
+[#include <linux/semaphore.h>],
+[return;],
+ ac_cv_linux_semaphore_h_exists=yes,
+ ac_cv_linux_semaphore_h_exists=no)])
+ AC_MSG_RESULT($ac_cv_linux_semaphore_h_exists)
+ if test "x$ac_cv_linux_semaphore_h_exists" = "xyes"; then
+ AC_DEFINE([LINUX_SEMAPHORE_H], 1, [define if linux/semaphore.h exists])
+ fi])
+