2008-11-24 23:49:18 +00:00
|
|
|
/* spl_config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
|
2009-10-30 17:55:25 +00:00
|
|
|
/* Atomic types use spinlocks */
|
|
|
|
#undef ATOMIC_SPINLOCK
|
|
|
|
|
2009-10-30 20:58:51 +00:00
|
|
|
/* Define to 1 to enable basic kmem accounting */
|
2008-11-24 23:49:18 +00:00
|
|
|
#undef DEBUG_KMEM
|
|
|
|
|
2009-10-30 20:58:51 +00:00
|
|
|
/* Define to 1 to enable detailed kmem tracking */
|
|
|
|
#undef DEBUG_KMEM_TRACKING
|
2008-11-24 23:49:18 +00:00
|
|
|
|
2012-01-21 00:39:12 +00:00
|
|
|
/* Define to 1 to enable basic debug logging */
|
|
|
|
#undef DEBUG_LOG
|
|
|
|
|
2011-04-18 20:47:43 +00:00
|
|
|
/* invalidate_inodes() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_INVALIDATE_INODES
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* register_sysctl_table() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_REGISTER_SYSCTL
|
|
|
|
|
2009-10-01 23:06:15 +00:00
|
|
|
/* set_fs_pwd() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_SET_FS_PWD
|
|
|
|
|
2011-11-09 20:45:35 +00:00
|
|
|
/* vfs_fsync() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_VFS_FSYNC
|
|
|
|
|
2009-05-20 18:31:55 +00:00
|
|
|
/* vfs_unlink() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_VFS_UNLINK
|
|
|
|
|
2011-04-20 21:22:35 +00:00
|
|
|
/* zlib_deflate_workspacesize() wants 2 args */
|
|
|
|
#undef HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* INIT_WORK wants 3 args */
|
|
|
|
#undef HAVE_3ARGS_INIT_WORK
|
|
|
|
|
2009-02-02 23:12:30 +00:00
|
|
|
/* on_each_cpu wants 3 args */
|
|
|
|
#undef HAVE_3ARGS_ON_EACH_CPU
|
|
|
|
|
2010-10-22 21:16:43 +00:00
|
|
|
/* shrinker callback wants 3 args */
|
|
|
|
#undef HAVE_3ARGS_SHRINKER_CALLBACK
|
|
|
|
|
2009-05-20 18:31:55 +00:00
|
|
|
/* vfs_rename() wants 4 args */
|
|
|
|
#undef HAVE_4ARGS_VFS_RENAME
|
|
|
|
|
2009-03-13 20:38:43 +00:00
|
|
|
/* device_create wants 5 args */
|
|
|
|
#undef HAVE_5ARGS_DEVICE_CREATE
|
|
|
|
|
2010-03-04 20:14:56 +00:00
|
|
|
/* proc_handler() wants 5 args */
|
|
|
|
#undef HAVE_5ARGS_PROC_HANDLER
|
|
|
|
|
2009-10-30 20:53:17 +00:00
|
|
|
/* kernel defines atomic64_cmpxchg */
|
|
|
|
#undef HAVE_ATOMIC64_CMPXCHG
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* kernel defines atomic64_t */
|
|
|
|
#undef HAVE_ATOMIC64_T
|
|
|
|
|
2009-10-30 20:53:17 +00:00
|
|
|
/* kernel defines atomic64_xchg */
|
|
|
|
#undef HAVE_ATOMIC64_XCHG
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* class_device_create() is available */
|
|
|
|
#undef HAVE_CLASS_DEVICE_CREATE
|
|
|
|
|
2012-06-06 16:51:53 +00:00
|
|
|
/* __clear_close_on_exec() is available */
|
|
|
|
#undef HAVE_CLEAR_CLOSE_ON_EXEC
|
|
|
|
|
2009-07-28 00:18:59 +00:00
|
|
|
/* struct cred exists */
|
|
|
|
#undef HAVE_CRED_STRUCT
|
|
|
|
|
2010-06-30 17:36:20 +00:00
|
|
|
/* struct ctl_table has ctl_name */
|
|
|
|
#undef HAVE_CTL_NAME
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* unnumbered sysctl support exists */
|
|
|
|
#undef HAVE_CTL_UNNUMBERED
|
|
|
|
|
|
|
|
/* device_create() is available */
|
|
|
|
#undef HAVE_DEVICE_CREATE
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
|
|
#undef HAVE_DLFCN_H
|
|
|
|
|
|
|
|
/* linux/fdtable.h exists */
|
|
|
|
#undef HAVE_FDTABLE_HEADER
|
|
|
|
|
|
|
|
/* files_fdtable() is available */
|
|
|
|
#undef HAVE_FILES_FDTABLE
|
|
|
|
|
2009-02-04 23:15:41 +00:00
|
|
|
/* first_online_pgdat() is available */
|
|
|
|
#undef HAVE_FIRST_ONLINE_PGDAT
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* fls64() is available */
|
|
|
|
#undef HAVE_FLS64
|
|
|
|
|
2010-11-09 19:15:32 +00:00
|
|
|
/* struct fs_struct uses spinlock_t */
|
|
|
|
#undef HAVE_FS_STRUCT_SPINLOCK
|
|
|
|
|
2009-02-25 21:20:40 +00:00
|
|
|
/* get_vmalloc_info() is available */
|
|
|
|
#undef HAVE_GET_VMALLOC_INFO
|
|
|
|
|
2009-02-05 20:26:34 +00:00
|
|
|
/* get_zone_counts() is available */
|
|
|
|
#undef HAVE_GET_ZONE_COUNTS
|
|
|
|
|
2009-05-20 17:08:37 +00:00
|
|
|
/* global_page_state() is available */
|
|
|
|
#undef HAVE_GLOBAL_PAGE_STATE
|
|
|
|
|
2009-07-28 00:18:59 +00:00
|
|
|
/* groups_search() is available */
|
|
|
|
#undef HAVE_GROUPS_SEARCH
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* init_utsname() is available */
|
|
|
|
#undef HAVE_INIT_UTSNAME
|
|
|
|
|
|
|
|
/* struct inode has i_mutex */
|
|
|
|
#undef HAVE_INODE_I_MUTEX
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
|
2011-02-23 20:25:45 +00:00
|
|
|
/* invalidate_inodes() is available */
|
|
|
|
#undef HAVE_INVALIDATE_INODES
|
|
|
|
|
2011-12-21 22:22:45 +00:00
|
|
|
/* invalidate_inodes_check() is available */
|
|
|
|
#undef HAVE_INVALIDATE_INODES_CHECK
|
|
|
|
|
2009-02-25 21:20:40 +00:00
|
|
|
/* kallsyms_lookup_name() is available */
|
|
|
|
#undef HAVE_KALLSYMS_LOOKUP_NAME
|
|
|
|
|
2011-04-20 19:25:59 +00:00
|
|
|
/* kern_path_parent() is available */
|
2011-11-09 20:29:51 +00:00
|
|
|
#undef HAVE_KERN_PATH_PARENT_HEADER
|
|
|
|
|
|
|
|
/* kern_path_parent() is available */
|
|
|
|
#undef HAVE_KERN_PATH_PARENT_SYMBOL
|
2011-04-20 19:25:59 +00:00
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* kmalloc_node() is available */
|
|
|
|
#undef HAVE_KMALLOC_NODE
|
|
|
|
|
2010-06-11 21:48:18 +00:00
|
|
|
/* kvasprintf() is available */
|
|
|
|
#undef HAVE_KVASPRINTF
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
|
|
#undef HAVE_MEMORY_H
|
|
|
|
|
|
|
|
/* monotonic_clock() is available */
|
|
|
|
#undef HAVE_MONOTONIC_CLOCK
|
|
|
|
|
2009-05-20 17:56:13 +00:00
|
|
|
/* mutex_lock_nested() is available */
|
|
|
|
#undef HAVE_MUTEX_LOCK_NESTED
|
|
|
|
|
2009-09-25 21:47:01 +00:00
|
|
|
/* struct mutex has owner */
|
|
|
|
#undef HAVE_MUTEX_OWNER
|
|
|
|
|
2011-06-24 18:57:14 +00:00
|
|
|
/* struct mutex owner is a task_struct */
|
|
|
|
#undef HAVE_MUTEX_OWNER_TASK_STRUCT
|
|
|
|
|
2009-02-04 23:15:41 +00:00
|
|
|
/* next_online_pgdat() is available */
|
|
|
|
#undef HAVE_NEXT_ONLINE_PGDAT
|
|
|
|
|
|
|
|
/* next_zone() is available */
|
|
|
|
#undef HAVE_NEXT_ZONE
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* struct path used in struct nameidata */
|
|
|
|
#undef HAVE_PATH_IN_NAMEIDATA
|
|
|
|
|
2009-05-20 21:23:13 +00:00
|
|
|
/* pgdat helpers are available */
|
|
|
|
#undef HAVE_PGDAT_HELPERS
|
|
|
|
|
|
|
|
/* pgdat_list is available */
|
|
|
|
#undef HAVE_PGDAT_LIST
|
|
|
|
|
2012-06-07 02:38:12 +00:00
|
|
|
/* pmd_alloc_with_mask exists */
|
|
|
|
#undef HAVE_PMD_ALLOC_WITH_MASK
|
|
|
|
|
2009-09-18 23:09:47 +00:00
|
|
|
/* __put_task_struct() is available */
|
|
|
|
#undef HAVE_PUT_TASK_STRUCT
|
|
|
|
|
2009-10-01 23:06:15 +00:00
|
|
|
/* set_fs_pwd() is available */
|
|
|
|
#undef HAVE_SET_FS_PWD
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* set_normalized_timespec() is available as export */
|
|
|
|
#undef HAVE_SET_NORMALIZED_TIMESPEC_EXPORT
|
|
|
|
|
|
|
|
/* set_normalized_timespec() is available as inline */
|
|
|
|
#undef HAVE_SET_NORMALIZED_TIMESPEC_INLINE
|
|
|
|
|
|
|
|
/* set_shrinker() available */
|
|
|
|
#undef HAVE_SET_SHRINKER
|
|
|
|
|
2011-06-16 22:39:08 +00:00
|
|
|
/* struct shrink_control exists */
|
|
|
|
#undef HAVE_SHRINK_CONTROL_STRUCT
|
|
|
|
|
2011-03-31 00:44:35 +00:00
|
|
|
/* shrink_dcache_memory() is available */
|
|
|
|
#undef HAVE_SHRINK_DCACHE_MEMORY
|
|
|
|
|
|
|
|
/* shrink_icache_memory() is available */
|
|
|
|
#undef HAVE_SHRINK_ICACHE_MEMORY
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
|
|
#undef HAVE_STDINT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
|
|
#undef HAVE_STDLIB_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
|
|
#undef HAVE_STRINGS_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
|
|
#undef HAVE_STRING_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
|
When checking for symbol exports, try compiling.
This patch adds a new autoconf function: SPL_LINUX_TRY_COMPILE_SYMBOL.
This new function does the following:
- Call LINUX_TRY_COMPILE with the specified parameters.
- If unsuccessful, return false.
- If successful and we're configuring with --enable-linux-builtin,
return true.
- Else, call CHECK_SYMBOL_EXPORT with the specified parameters and
return the result.
All calls to CHECK_SYMBOL_EXPORT are converted to
LINUX_TRY_COMPILE_SYMBOL so that the tests work even when configuring
for builtin on a kernel which doesn't have loadable module support, or
hasn't been built yet.
The only exception are:
- AC_GET_VMALLOC_INFO, because we don't even have a public header to
include in the test case, but that's okay considering this symbol can
be ignored just fine.
- SPL_AC_DEVICE_CREATE, which is legacy API for 2.6.18 kernels. Since
kernels this old are no longer supported it should arguably just be
removed entirely from the build system.
Note that we're also checking for the correct prototype with an actual
call, which was not the case with CHECK_SYMBOL_EXPORT. However, for
"complicated" test cases like with multiple symbol versions (e.g.
vfs_fsync), we stick with the original behavior and only check for the
function's existence.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue zfsonlinux/zfs#851
2012-07-16 15:04:05 +00:00
|
|
|
/* task_curr() is available */
|
2008-11-24 23:49:18 +00:00
|
|
|
#undef HAVE_TASK_CURR
|
|
|
|
|
|
|
|
/* timespec_sub() is available */
|
|
|
|
#undef HAVE_TIMESPEC_SUB
|
|
|
|
|
|
|
|
/* linux/uaccess.h exists */
|
|
|
|
#undef HAVE_UACCESS_HEADER
|
|
|
|
|
|
|
|
/* kernel defines uintptr_t */
|
|
|
|
#undef HAVE_UINTPTR_T
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
#undef HAVE_UNISTD_H
|
|
|
|
|
2010-07-01 20:37:43 +00:00
|
|
|
/* user_path_dir() is available */
|
|
|
|
#undef HAVE_USER_PATH_DIR
|
|
|
|
|
2011-11-09 20:45:35 +00:00
|
|
|
/* vfs_fsync() is available */
|
|
|
|
#undef HAVE_VFS_FSYNC
|
|
|
|
|
2009-07-28 22:06:42 +00:00
|
|
|
/* Page state NR_ACTIVE is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_ACTIVE
|
|
|
|
|
|
|
|
/* Page state NR_ACTIVE_ANON is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON
|
|
|
|
|
|
|
|
/* Page state NR_ACTIVE_FILE is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE
|
|
|
|
|
|
|
|
/* Page state NR_FREE_PAGES is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES
|
|
|
|
|
|
|
|
/* Page state NR_INACTIVE is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_INACTIVE
|
|
|
|
|
|
|
|
/* Page state NR_INACTIVE_ANON is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON
|
|
|
|
|
|
|
|
/* Page state NR_INACTIVE_FILE is available */
|
|
|
|
#undef HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE
|
|
|
|
|
2010-03-26 22:21:06 +00:00
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
|
|
*/
|
|
|
|
#undef LT_OBJDIR
|
|
|
|
|
2009-07-28 22:06:42 +00:00
|
|
|
/* get_zone_counts() is needed */
|
|
|
|
#undef NEED_GET_ZONE_COUNTS
|
2009-03-17 19:16:31 +00:00
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* Name of package */
|
|
|
|
#undef PACKAGE
|
|
|
|
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
#undef PACKAGE_NAME
|
|
|
|
|
|
|
|
/* Define to the full name and version of this package. */
|
|
|
|
#undef PACKAGE_STRING
|
|
|
|
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
|
|
#undef PACKAGE_TARNAME
|
|
|
|
|
|
|
|
/* Define to the version of this package. */
|
|
|
|
#undef PACKAGE_VERSION
|
|
|
|
|
2010-08-10 18:01:46 +00:00
|
|
|
/* rwsem_is_locked() acquires sem->wait_lock */
|
|
|
|
#undef RWSEM_IS_LOCKED_TAKES_WAIT_LOCK
|
|
|
|
|
2012-01-11 17:44:34 +00:00
|
|
|
/* struct rw_semaphore member wait_lock is raw_spinlock_t */
|
|
|
|
#undef RWSEM_SPINLOCK_IS_RAW
|
|
|
|
|
2008-11-26 21:26:05 +00:00
|
|
|
/* Define the project alias string. */
|
|
|
|
#undef SPL_META_ALIAS
|
|
|
|
|
2008-11-26 21:09:37 +00:00
|
|
|
/* Define the project author. */
|
|
|
|
#undef SPL_META_AUTHOR
|
|
|
|
|
|
|
|
/* Define the project release date. */
|
|
|
|
#undef SPL_META_DATA
|
|
|
|
|
|
|
|
/* Define the libtool library 'age' version information. */
|
|
|
|
#undef SPL_META_LT_AGE
|
|
|
|
|
|
|
|
/* Define the libtool library 'current' version information. */
|
|
|
|
#undef SPL_META_LT_CURRENT
|
|
|
|
|
|
|
|
/* Define the libtool library 'revision' version information. */
|
|
|
|
#undef SPL_META_LT_REVISION
|
|
|
|
|
|
|
|
/* Define the project name. */
|
|
|
|
#undef SPL_META_NAME
|
|
|
|
|
|
|
|
/* Define the project release. */
|
|
|
|
#undef SPL_META_RELEASE
|
|
|
|
|
|
|
|
/* Define the project version. */
|
|
|
|
#undef SPL_META_VERSION
|
|
|
|
|
2008-11-24 23:49:18 +00:00
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
|
|
#undef STDC_HEADERS
|
|
|
|
|
|
|
|
/* Version number of package */
|
|
|
|
#undef VERSION
|