1 #* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 #* vim:expandtab:shiftwidth=8:tabstop=8:
6 # Wrapper for AC_CONFIG_SUBDIR
8 AC_DEFUN([LC_CONFIG_SRCDIR],
9 [AC_CONFIG_SRCDIR([lustre/obdclass/obdo.c])
17 # lustre specific paths
19 AC_DEFUN([LC_PATH_DEFAULTS],
20 [# ptlrpc kernel build requires this
28 demodir='$(docdir)/demo'
31 pkgexampledir='${pkgdatadir}/examples'
32 AC_SUBST(pkgexampledir)
38 # is the target os supported?
40 AC_DEFUN([LC_TARGET_SUPPORTED],
52 # Ensure stack size big than 8k in Lustre server (all kernels)
54 AC_DEFUN([LC_STACK_SIZE],
55 [AC_MSG_CHECKING([stack size big than 8k])
56 LB_LINUX_TRY_COMPILE([
57 #include <linux/thread_info.h>
59 #if THREAD_SIZE < 8192
60 #error "stack size < 8192"
65 AC_MSG_ERROR([Lustre requires that Linux is configured with at least a 8KB stack.])
70 # LC_FUNC_DEV_SET_RDONLY
72 # check for the old-style dev_set_rdonly which took an extra "devno" param
73 # and can only set a single device to discard writes at one time
75 AC_DEFUN([LC_FUNC_DEV_SET_RDONLY],
76 [AC_MSG_CHECKING([if kernel has new dev_set_rdonly])
77 LB_LINUX_TRY_COMPILE([
79 #include <linux/blkdev.h>
81 #ifndef HAVE_CLEAR_RDONLY_ON_PUT
82 #error needs to be patched by lustre kernel patches from Lustre version 1.4.3 or above.
86 AC_DEFINE(HAVE_DEV_SET_RDONLY, 1, [kernel has new dev_set_rdonly])
88 AC_MSG_ERROR([no, Linux kernel source needs to be patches by lustre
89 kernel patches from Lustre version 1.4.3 or above.])
96 # setup, check the backing filesystem
98 AC_DEFUN([LC_CONFIG_BACKINGFS],
102 if test x$with_ldiskfs = xno ; then
103 if test x$linux25$enable_server = xyesyes ; then
104 AC_MSG_ERROR([ldiskfs is required for 2.6-based servers.])
108 LB_DEFINE_LDISKFS_OPTIONS
111 AC_MSG_CHECKING([which backing filesystem to use])
112 AC_MSG_RESULT([$BACKINGFS])
119 # the pinger is temporary, until we have the recovery node in place
121 AC_DEFUN([LC_CONFIG_PINGER],
122 [AC_MSG_CHECKING([whether to enable pinger support])
123 AC_ARG_ENABLE([pinger],
124 AC_HELP_STRING([--disable-pinger],
125 [disable recovery pinger support]),
126 [],[enable_pinger='yes'])
127 AC_MSG_RESULT([$enable_pinger])
128 if test x$enable_pinger != xno ; then
129 AC_DEFINE(ENABLE_PINGER, 1, Use the Pinger)
136 # do checksum of bulk data between client and OST
138 AC_DEFUN([LC_CONFIG_CHECKSUM],
139 [AC_MSG_CHECKING([whether to enable data checksum support])
140 AC_ARG_ENABLE([checksum],
141 AC_HELP_STRING([--disable-checksum],
142 [disable data checksum support]),
143 [],[enable_checksum='yes'])
144 AC_MSG_RESULT([$enable_checksum])
145 if test x$enable_checksum != xno ; then
146 AC_DEFINE(ENABLE_CHECKSUM, 1, do data checksums)
151 # LC_HEADER_LDISKFS_XATTR
153 # CHAOS kernel-devel package will not include fs/ldiskfs/xattr.h
155 AC_DEFUN([LC_HEADER_LDISKFS_XATTR],
156 [AC_MSG_CHECKING([if ldiskfs has xattr.h header])
157 tmp_flags="$EXTRA_KCFLAGS"
158 EXTRA_KCFLAGS="-I$LINUX/fs -I$LDISKFS_DIR -I$LDISKFS_DIR/ldiskfs"
159 LB_LINUX_TRY_COMPILE([
160 #include <ldiskfs/xattr.h>
162 ldiskfs_xattr_get(NULL, 0, "", NULL, 0);
163 ldiskfs_xattr_set_handle(NULL, NULL, 0, "", NULL, 0, 0);
167 AC_DEFINE(HAVE_LDISKFS_XATTR_H, 1, [ldiskfs/xattr.h found])
171 EXTRA_KCFLAGS="$tmp_flags"
175 # LC_CONFIG_HEALTH_CHECK_WRITE
177 # Turn off the actual write to the disk
179 AC_DEFUN([LC_CONFIG_HEALTH_CHECK_WRITE],
180 [AC_MSG_CHECKING([whether to enable a write with the health check])
181 AC_ARG_ENABLE([health_write],
182 AC_HELP_STRING([--enable-health_write],
183 [enable disk writes when doing health check]),
184 [],[enable_health_write='no'])
185 AC_MSG_RESULT([$enable_health_write])
186 if test x$enable_health_write != xno ; then
187 AC_DEFINE(USE_HEALTH_CHECK_WRITE, 1, Write when Checking Health)
192 # LC_CONFIG_LIBLUSTRE_RECOVERY
194 AC_DEFUN([LC_CONFIG_LIBLUSTRE_RECOVERY],
195 [AC_MSG_CHECKING([whether to enable liblustre recovery support])
196 AC_ARG_ENABLE([liblustre-recovery],
197 AC_HELP_STRING([--disable-liblustre-recovery],
198 [disable liblustre recovery support]),
199 [],[enable_liblustre_recovery='yes'])
200 AC_MSG_RESULT([$enable_liblustre_recovery])
201 if test x$enable_liblustre_recovery != xno ; then
202 AC_DEFINE(ENABLE_LIBLUSTRE_RECOVERY, 1, Liblustre Can Recover)
207 # LC_CONFIG_OBD_BUFFER_SIZE
209 # the maximum buffer size of lctl ioctls
211 AC_DEFUN([LC_CONFIG_OBD_BUFFER_SIZE],
212 [AC_MSG_CHECKING([maximum OBD ioctl size])
213 AC_ARG_WITH([obd-buffer-size],
214 AC_HELP_STRING([--with-obd-buffer-size=[size]],
215 [set lctl ioctl maximum bytes (default=8192)]),
217 OBD_BUFFER_SIZE=$with_obd_buffer_size
221 AC_MSG_RESULT([$OBD_BUFFER_SIZE bytes])
222 AC_DEFINE_UNQUOTED(OBD_MAX_IOCTL_BUFFER, $OBD_BUFFER_SIZE, [IOCTL Buffer Size])
228 # AIX does not have statfs.f_namelen
230 AC_DEFUN([LC_STRUCT_STATFS],
231 [AC_MSG_CHECKING([if struct statfs has a f_namelen field])
232 LB_LINUX_TRY_COMPILE([
233 #include <linux/vfs.h>
239 AC_DEFINE(HAVE_STATFS_NAMELEN, 1, [struct statfs has a namelen field])
246 # LC_READLINK_SSIZE_T
248 AC_DEFUN([LC_READLINK_SSIZE_T],
249 [AC_MSG_CHECKING([if readlink returns ssize_t])
253 ssize_t readlink(const char *, char *, size_t);
256 AC_DEFINE(HAVE_POSIX_1003_READLINK, 1, [readlink returns ssize_t])
263 # LC_FUNC_MS_FLOCK_LOCK
265 # 2.6.5 kernel has MS_FLOCK_LOCK sb flag
267 AC_DEFUN([LC_FUNC_MS_FLOCK_LOCK],
268 [AC_MSG_CHECKING([if kernel has MS_FLOCK_LOCK sb flag])
269 LB_LINUX_TRY_COMPILE([
270 #include <linux/fs.h>
272 int flags = MS_FLOCK_LOCK;
274 AC_DEFINE(HAVE_MS_FLOCK_LOCK, 1,
275 [kernel has MS_FLOCK_LOCK flag])
283 # LC_FUNC_HAVE_CAN_SLEEP_ARG
285 # 2.6.5 kernel has third arg can_sleep in fs/locks.c: flock_lock_file_wait()
287 AC_DEFUN([LC_FUNC_HAVE_CAN_SLEEP_ARG],
288 [AC_MSG_CHECKING([if kernel has third arg can_sleep in fs/locks.c: flock_lock_file_wait()])
289 LB_LINUX_TRY_COMPILE([
290 #include <linux/fs.h>
294 struct file_lock *file_lock;
295 flock_lock_file_wait(file, file_lock, cansleep);
297 AC_DEFINE(HAVE_CAN_SLEEP_ARG, 1,
298 [kernel has third arg can_sleep in fs/locks.c: flock_lock_file_wait()])
306 # LC_FUNC_RELEASEPAGE_WITH_GFP
308 # 2.6.9 ->releasepage() takes a gfp_t arg
309 # This kernel defines gfp_t (HAS_GFP_T) but doesn't use it for this function,
310 # while others either don't have gfp_t or pass gfp_t as the parameter.
312 AC_DEFUN([LC_FUNC_RELEASEPAGE_WITH_GFP],
313 [AC_MSG_CHECKING([if releasepage has a gfp_t parameter])
314 RELEASEPAGE_WITH_GFP="$(grep -c 'releasepage.*gfp_t' $LINUX/include/linux/fs.h)"
315 if test "$RELEASEPAGE_WITH_GFP" != 0 ; then
316 AC_DEFINE(HAVE_RELEASEPAGE_WITH_GFP, 1,
317 [releasepage with gfp_t parameter])
325 # between 2.6.5 - 2.6.22 filemap_populate is exported in some kernels
327 AC_DEFUN([LC_FILEMAP_POPULATE],
328 [AC_MSG_CHECKING([for exported filemap_populate])
329 LB_LINUX_TRY_COMPILE([
330 #include <asm/page.h>
331 #include <linux/mm.h>
333 filemap_populate(NULL, 0, 0, __pgprot(0), 0, 0);
336 AC_DEFINE(HAVE_FILEMAP_POPULATE, 1, [Kernel exports filemap_populate])
345 AC_DEFUN([LC_D_ADD_UNIQUE],
346 [AC_MSG_CHECKING([for d_add_unique])
347 LB_LINUX_TRY_COMPILE([
348 #include <linux/dcache.h>
350 d_add_unique(NULL, NULL);
353 AC_DEFINE(HAVE_D_ADD_UNIQUE, 1, [Kernel has d_add_unique])
362 AC_DEFUN([LC_BIT_SPINLOCK_H],
363 [LB_CHECK_FILE([$LINUX/include/linux/bit_spinlock.h],[
364 AC_MSG_CHECKING([if bit_spinlock.h can be compiled])
365 LB_LINUX_TRY_COMPILE([
366 #include <asm/processor.h>
367 #include <linux/spinlock.h>
368 #include <linux/bit_spinlock.h>
371 AC_DEFINE(HAVE_BIT_SPINLOCK_H, 1, [Kernel has bit_spinlock.h])
380 # After 2.6.26 we no longer have xattr_acl.h
382 AC_DEFUN([LC_XATTR_ACL],
383 [LB_CHECK_FILE([$LINUX/include/linux/xattr_acl.h],[
384 AC_MSG_CHECKING([if xattr_acl.h can be compiled])
385 LB_LINUX_TRY_COMPILE([
386 #include <linux/xattr_acl.h>
389 AC_DEFINE(HAVE_XATTR_ACL, 1, [Kernel has xattr_acl])
400 AC_DEFUN([LC_STRUCT_INTENT_FILE],
401 [AC_MSG_CHECKING([if struct open_intent has a file field])
402 LB_LINUX_TRY_COMPILE([
403 #include <linux/fs.h>
404 #include <linux/namei.h>
406 struct open_intent intent;
410 AC_DEFINE(HAVE_FILE_IN_STRUCT_INTENT, 1, [struct open_intent has a file field])
418 # After 2.6.16 the xattr_acl API is removed, and posix_acl is used instead
420 AC_DEFUN([LC_POSIX_ACL_XATTR_H],
421 [LB_CHECK_FILE([$LINUX/include/linux/posix_acl_xattr.h],[
422 AC_MSG_CHECKING([if linux/posix_acl_xattr.h can be compiled])
423 LB_LINUX_TRY_COMPILE([
424 #include <linux/posix_acl_xattr.h>
427 AC_DEFINE(HAVE_LINUX_POSIX_ACL_XATTR_H, 1, [linux/posix_acl_xattr.h found])
440 # starting from 2.6.19 linux kernel exports __iget()
442 AC_DEFUN([LC_EXPORT___IGET],
443 [LB_CHECK_SYMBOL_EXPORT([__iget],
445 AC_DEFINE(HAVE_EXPORT___IGET, 1, [kernel exports __iget])
451 # only for Lustre-patched kernels
453 AC_DEFUN([LC_LUSTRE_VERSION_H],
454 [LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],[
455 rm -f "$LUSTRE/include/linux/lustre_version.h"
457 touch "$LUSTRE/include/linux/lustre_version.h"
458 if test x$enable_server = xyes ; then
459 AC_MSG_WARN([Unpatched kernel detected.])
460 AC_MSG_WARN([Lustre servers cannot be built with an unpatched kernel;])
461 AC_MSG_WARN([disabling server build])
470 AC_DEFUN([LC_CAPA_CRYPTO],
471 [LB_LINUX_CONFIG_IM([CRYPTO],[],[
472 AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO is enabled in your kernel.])
474 LB_LINUX_CONFIG_IM([CRYPTO_HMAC],[],[
475 AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO_HMAC is enabled in your kernel.])
477 LB_LINUX_CONFIG_IM([CRYPTO_SHA1],[],[
478 AC_MSG_ERROR([Lustre capability require that CONFIG_CRYPTO_SHA1 is enabled in your kernel.])
483 # LC_CONFIG_RMTCLIENT
486 dnl the AES symbol usually tied with arch, e.g. CRYPTO_AES_586
488 AC_DEFUN([LC_CONFIG_RMTCLIENT],
489 [LB_LINUX_CONFIG_IM([CRYPTO_AES],[],[
490 AC_MSG_WARN([Lustre remote client require that CONFIG_CRYPTO_AES is enabled in your kernel.])
494 AC_DEFUN([LC_SUNRPC_CACHE],
495 [AC_MSG_CHECKING([if sunrpc struct cache_head uses kref])
496 LB_LINUX_TRY_COMPILE([
497 #include <linux/sunrpc/cache.h>
499 struct cache_head ch;
503 AC_DEFINE(HAVE_SUNRPC_CACHE_V2, 1, [sunrpc cache facility v2])
509 AC_DEFUN([LC_CONFIG_SUNRPC],
510 [LB_LINUX_CONFIG_IM([SUNRPC],[],
511 [AC_MSG_ERROR([kernel SUNRPC support is required by using GSS.])])
516 # LC_CONFIG_GSS_KEYRING (default enabled, if gss is enabled)
518 AC_DEFUN([LC_CONFIG_GSS_KEYRING],
519 [AC_MSG_CHECKING([whether to enable gss keyring backend])
520 AC_ARG_ENABLE([gss_keyring],
521 [AC_HELP_STRING([--disable-gss-keyring],
522 [disable gss keyring backend])],
523 [],[enable_gss_keyring='yes'])
524 AC_MSG_RESULT([$enable_gss_keyring])
526 if test x$enable_gss_keyring != xno; then
527 LB_LINUX_CONFIG_IM([KEYS],[],
528 [AC_MSG_ERROR([GSS keyring backend require that CONFIG_KEYS be enabled in your kernel.])])
530 AC_CHECK_LIB([keyutils], [keyctl_search], [],
531 [AC_MSG_ERROR([libkeyutils is not found, which is required by gss keyring backend])],)
533 AC_DEFINE([HAVE_GSS_KEYRING], [1],
534 [Define this if you enable gss keyring backend])
539 # LC_CONFIG_GSS (default disabled)
541 # Build gss and related tools of Lustre. Currently both kernel and user space
542 # parts are depend on linux platform.
544 AC_DEFUN([LC_CONFIG_GSS],
545 [AC_MSG_CHECKING([whether to enable gss/krb5 support])
547 [AC_HELP_STRING([--enable-gss], [enable gss/krb5 support])],
548 [],[enable_gss='no'])
549 AC_MSG_RESULT([$enable_gss])
551 if test x$enable_gss == xyes; then
552 LC_CONFIG_GSS_KEYRING
555 AC_DEFINE([HAVE_GSS], [1], [Define this if you enable gss])
557 LB_LINUX_CONFIG_IM([CRYPTO_MD5],[],
558 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
559 LB_LINUX_CONFIG_IM([CRYPTO_SHA1],[],
560 [AC_MSG_WARN([kernel SHA1 support is recommended by using GSS.])])
561 LB_LINUX_CONFIG_IM([CRYPTO_SHA256],[],
562 [AC_MSG_WARN([kernel SHA256 support is recommended by using GSS.])])
563 LB_LINUX_CONFIG_IM([CRYPTO_SHA512],[],
564 [AC_MSG_WARN([kernel SHA512 support is recommended by using GSS.])])
566 AC_CHECK_LIB([gssapi], [gss_init_sec_context],
567 [GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi"],
568 [AC_CHECK_LIB([gssglue], [gss_init_sec_context],
569 [GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssglue"],
570 [AC_MSG_ERROR([libgssapi or libgssglue is not found, which is required by GSS.])])],)
572 AC_SUBST(GSSAPI_LIBS)
578 # LC_EXPORT_SYNCHRONIZE_RCU
579 # after 2.6.12 synchronize_rcu is preferred over synchronize_kernel
580 AC_DEFUN([LC_EXPORT_SYNCHRONIZE_RCU],
581 [LB_CHECK_SYMBOL_EXPORT([synchronize_rcu],
582 [kernel/rcupdate.c],[
583 AC_DEFINE(HAVE_SYNCHRONIZE_RCU, 1,
584 [in 2.6.12 synchronize_rcu preferred over synchronize_kernel])
590 # after 2.6.15 inode have i_mutex intead of i_sem
591 AC_DEFUN([LC_INODE_I_MUTEX],
592 [AC_MSG_CHECKING([if inode has i_mutex ])
593 LB_LINUX_TRY_COMPILE([
594 #include <linux/mutex.h>
595 #include <linux/fs.h>
600 mutex_unlock(&i.i_mutex);
603 AC_DEFINE(HAVE_INODE_I_MUTEX, 1,
604 [after 2.6.15 inode have i_mutex intead of i_sem])
611 # after 2.6.18 seq_file has lock intead of sem
612 AC_DEFUN([LC_SEQ_LOCK],
613 [AC_MSG_CHECKING([if struct seq_file has lock field])
614 LB_LINUX_TRY_COMPILE([
615 #include <linux/seq_file.h>
619 mutex_unlock(&seq.lock);
622 AC_DEFINE(HAVE_SEQ_LOCK, 1,
623 [after 2.6.18 seq_file has lock intead of sem])
630 # after 2.6.17 dquote use mutex instead if semaphore
631 AC_DEFUN([LC_DQUOTOFF_MUTEX],
632 [AC_MSG_CHECKING([use dqonoff_mutex])
633 LB_LINUX_TRY_COMPILE([
634 #include <linux/mutex.h>
635 #include <linux/fs.h>
636 #include <linux/quota.h>
638 struct quota_info dq;
640 mutex_unlock(&dq.dqonoff_mutex);
643 AC_DEFINE(HAVE_DQUOTOFF_MUTEX, 1,
644 [after 2.6.17 dquote use mutex instead if semaphore])
651 # LC_STATFS_DENTRY_PARAM
652 # starting from 2.6.18 linux kernel uses dentry instead of
653 # super_block for first vfs_statfs argument
655 AC_DEFUN([LC_STATFS_DENTRY_PARAM],
656 [AC_MSG_CHECKING([first vfs_statfs parameter is dentry])
657 LB_LINUX_TRY_COMPILE([
658 #include <linux/fs.h>
660 int vfs_statfs(struct dentry *, struct kstatfs *);
662 AC_DEFINE(HAVE_STATFS_DENTRY_PARAM, 1,
663 [first parameter of vfs_statfs is dentry])
672 # starting from 2.6.18 kernel don't export do_kern_mount
673 # and want to use vfs_kern_mount instead.
675 AC_DEFUN([LC_VFS_KERN_MOUNT],
676 [AC_MSG_CHECKING([vfs_kern_mount exist in kernel])
677 LB_LINUX_TRY_COMPILE([
678 #include <linux/mount.h>
680 vfs_kern_mount(NULL, 0, NULL, NULL);
682 AC_DEFINE(HAVE_VFS_KERN_MOUNT, 1,
683 [vfs_kern_mount exist in kernel])
691 # LC_INVALIDATEPAGE_RETURN_INT
692 # 2.6.17 changes return type for invalidatepage to 'void' from 'int'
694 AC_DEFUN([LC_INVALIDATEPAGE_RETURN_INT],
695 [AC_MSG_CHECKING([invalidatepage has return int])
696 LB_LINUX_TRY_COMPILE([
697 #include <linux/buffer_head.h>
699 int rc = block_invalidatepage(NULL, 0);
702 AC_DEFINE(HAVE_INVALIDATEPAGE_RETURN_INT, 1,
703 [Define if return type of invalidatepage should be int])
709 # LC_UMOUNTBEGIN_HAS_VFSMOUNT
710 # after 2.6.18 umount_begin has different parameters
711 AC_DEFUN([LC_UMOUNTBEGIN_HAS_VFSMOUNT],
712 [AC_MSG_CHECKING([if umount_begin needs vfsmount parameter instead of super_block])
713 tmp_flags="$EXTRA_KCFLAGS"
714 EXTRA_KCFLAGS="-Werror"
715 LB_LINUX_TRY_COMPILE([
716 #include <linux/fs.h>
719 static void cfg_umount_begin (struct vfsmount *v, int flags)
724 static struct super_operations cfg_super_operations = {
725 .umount_begin = cfg_umount_begin,
728 cfg_super_operations.umount_begin(NULL,0);
731 AC_DEFINE(HAVE_UMOUNTBEGIN_VFSMOUNT, 1,
732 [Define umount_begin need second argument])
736 EXTRA_KCFLAGS="$tmp_flags"
739 # inode have i_private field since 2.6.17
740 AC_DEFUN([LC_INODE_IPRIVATE],
741 [AC_MSG_CHECKING([if inode has a i_private field])
742 LB_LINUX_TRY_COMPILE([
743 #include <linux/fs.h>
749 AC_DEFINE(HAVE_INODE_IPRIVATE, 1,
750 [struct inode has i_private field])
757 # inode don't have i_blksize field
758 AC_DEFUN([LC_INODE_BLKSIZE],
759 [AC_MSG_CHECKING([inode has i_blksize field])
760 LB_LINUX_TRY_COMPILE([
761 #include <linux/fs.h>
767 AC_DEFINE(HAVE_INODE_BLKSIZE, 1,
768 [struct inode has i_blksize field])
774 # LC_VFS_READDIR_U64_INO
775 # 2.6.19 use u64 for inode number instead of inode_t
776 AC_DEFUN([LC_VFS_READDIR_U64_INO],
777 [AC_MSG_CHECKING([check vfs_readdir need 64bit inode number])
778 tmp_flags="$EXTRA_KCFLAGS"
779 EXTRA_KCFLAGS="-Werror"
780 LB_LINUX_TRY_COMPILE([
781 #include <linux/fs.h>
782 int fillonedir(void * __buf, const char * name, int namlen, loff_t offset,
783 u64 ino, unsigned int d_type)
794 AC_DEFINE(HAVE_VFS_READDIR_U64_INO, 1,
795 [if vfs_readdir need 64bit inode number])
799 EXTRA_KCFLAGS="$tmp_flags"
803 # 2.6.19 replaced writev with aio_write
804 AC_DEFUN([LC_FILE_WRITEV],
805 [AC_MSG_CHECKING([writev in fops])
806 LB_LINUX_TRY_COMPILE([
807 #include <linux/fs.h>
809 struct file_operations *fops = NULL;
813 AC_DEFINE(HAVE_FILE_WRITEV, 1,
820 # LC_GENERIC_FILE_READ
821 # 2.6.19 replaced readv with aio_read
822 AC_DEFUN([LC_FILE_READV],
823 [AC_MSG_CHECKING([readv in fops])
824 LB_LINUX_TRY_COMPILE([
825 #include <linux/fs.h>
827 struct file_operations *fops = NULL;
831 AC_DEFINE(HAVE_FILE_READV, 1,
839 # 2.6.18 don't export nr_pagecahe
840 AC_DEFUN([LC_NR_PAGECACHE],
841 [AC_MSG_CHECKING([kernel export nr_pagecache])
842 LB_LINUX_TRY_COMPILE([
843 #include <linux/pagemap.h>
845 return atomic_read(&nr_pagecache);
848 AC_DEFINE(HAVE_NR_PAGECACHE, 1,
849 [is kernel export nr_pagecache])
855 # LC_CANCEL_DIRTY_PAGE
856 # 2.6.20 introduse cancel_dirty_page instead of
858 AC_DEFUN([LC_CANCEL_DIRTY_PAGE],
859 [AC_MSG_CHECKING([kernel has cancel_dirty_page])
860 LB_LINUX_TRY_COMPILE([
861 #include <linux/mm.h>
862 #include <linux/page-flags.h>
864 /* tmp workaround for broken OFED 1.4.1 at SLES10 */
865 #if defined(CONFIG_SLE_VERSION) && CONFIG_SLE_VERSION == 10 && defined(_BACKPORT_LINUX_MM_H_)
866 #error badly implementation of cancel_dirty_pages
868 cancel_dirty_page(NULL, 0);
871 AC_DEFINE(HAVE_CANCEL_DIRTY_PAGE, 1,
872 [kernel has cancel_dirty_page instead of clear_page_dirty])
881 # In order to support raid5 zerocopy patch, we have to patch the kernel to make
882 # it support constant page, which means the page won't be modified during the
885 AC_DEFUN([LC_PAGE_CONSTANT],
886 [AC_MSG_CHECKING([if kernel have PageConstant defined])
887 LB_LINUX_TRY_COMPILE([
888 #include <linux/mm.h>
889 #include <linux/page-flags.h>
892 #error "Have no raid5 zcopy patch"
896 AC_DEFINE(HAVE_PAGE_CONSTANT, 1, [kernel have PageConstant supported])
902 # RHEL5 in FS-cache patch rename PG_checked flag into PG_fs_misc
903 AC_DEFUN([LC_PG_FS_MISC],
904 [AC_MSG_CHECKING([kernel has PG_fs_misc])
905 LB_LINUX_TRY_COMPILE([
906 #include <linux/mm.h>
907 #include <linux/page-flags.h>
910 #error PG_fs_misc not defined in kernel
914 AC_DEFINE(HAVE_PG_FS_MISC, 1,
915 [is kernel have PG_fs_misc])
921 # RHEL5 PageChecked and SetPageChecked defined
922 AC_DEFUN([LC_PAGE_CHECKED],
923 [AC_MSG_CHECKING([kernel has PageChecked and SetPageChecked])
924 LB_LINUX_TRY_COMPILE([
925 #include <linux/autoconf.h>
926 #ifdef HAVE_LINUX_MMTYPES_H
927 #include <linux/mm_types.h>
929 #include <linux/page-flags.h>
933 /* before 2.6.26 this define*/
935 /* 2.6.26 use function instead of define for it */
941 AC_DEFINE(HAVE_PAGE_CHECKED, 1,
942 [does kernel have PageChecked and SetPageChecked])
948 AC_DEFUN([LC_EXPORT_TRUNCATE_COMPLETE],
949 [LB_CHECK_SYMBOL_EXPORT([truncate_complete_page],
951 AC_DEFINE(HAVE_TRUNCATE_COMPLETE_PAGE, 1,
952 [kernel export truncate_complete_page])
957 AC_DEFUN([LC_EXPORT_TRUNCATE_RANGE],
958 [LB_CHECK_SYMBOL_EXPORT([truncate_inode_pages_range],
960 AC_DEFINE(HAVE_TRUNCATE_RANGE, 1,
961 [kernel export truncate_inode_pages_range])
966 AC_DEFUN([LC_EXPORT_D_REHASH_COND],
967 [LB_CHECK_SYMBOL_EXPORT([d_rehash_cond],
969 AC_DEFINE(HAVE_D_REHASH_COND, 1,
970 [d_rehash_cond is exported by the kernel])
975 AC_DEFUN([LC_EXPORT___D_REHASH],
976 [LB_CHECK_SYMBOL_EXPORT([__d_rehash],
978 AC_DEFINE(HAVE___D_REHASH, 1,
979 [__d_rehash is exported by the kernel])
984 AC_DEFUN([LC_EXPORT_D_MOVE_LOCKED],
985 [LB_CHECK_SYMBOL_EXPORT([d_move_locked],
987 AC_DEFINE(HAVE_D_MOVE_LOCKED, 1,
988 [d_move_locked is exported by the kernel])
993 AC_DEFUN([LC_EXPORT___D_MOVE],
994 [LB_CHECK_SYMBOL_EXPORT([__d_move],
996 AC_DEFINE(HAVE___D_MOVE, 1,
997 [__d_move is exported by the kernel])
1003 # LC_EXPORT_INVALIDATE_MAPPING_PAGES
1005 # SLES9, RHEL4, RHEL5, vanilla 2.6.24 export invalidate_mapping_pages() but
1006 # SLES10 2.6.16 does not, for some reason. For filter cache invalidation.
1008 AC_DEFUN([LC_EXPORT_INVALIDATE_MAPPING_PAGES],
1009 [LB_CHECK_SYMBOL_EXPORT([invalidate_mapping_pages], [mm/truncate.c], [
1010 AC_DEFINE(HAVE_INVALIDATE_MAPPING_PAGES, 1,
1011 [exported invalidate_mapping_pages])],
1012 [LB_CHECK_SYMBOL_EXPORT([invalidate_inode_pages], [mm/truncate.c], [
1013 AC_DEFINE(HAVE_INVALIDATE_INODE_PAGES, 1,
1014 [exported invalidate_inode_pages])], [
1015 AC_MSG_ERROR([no way to invalidate pages])
1021 # LC_EXPORT_FILEMAP_FDATASYNC_RANGE
1023 # No standard kernels export this
1025 AC_DEFUN([LC_EXPORT_FILEMAP_FDATAWRITE_RANGE],
1026 [LB_CHECK_SYMBOL_EXPORT([filemap_fdatawrite_range],
1028 AC_DEFINE(HAVE_FILEMAP_FDATAWRITE_RANGE, 1,
1029 [filemap_fdatawrite_range is exported by the kernel])
1034 # The actual symbol exported varies among architectures, so we need
1035 # to check many symbols (but only in the current architecture.) No
1036 # matter what symbol is exported, the kernel #defines node_to_cpumask
1037 # to the appropriate function and that's what we use.
1038 AC_DEFUN([LC_EXPORT_NODE_TO_CPUMASK],
1039 [LB_CHECK_SYMBOL_EXPORT([node_to_cpumask],
1040 [arch/$LINUX_ARCH/mm/numa.c],
1041 [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
1042 [node_to_cpumask is exported by
1043 the kernel])]) # x86_64
1044 LB_CHECK_SYMBOL_EXPORT([node_to_cpu_mask],
1045 [arch/$LINUX_ARCH/kernel/smpboot.c],
1046 [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
1047 [node_to_cpumask is exported by
1048 the kernel])]) # ia64
1049 LB_CHECK_SYMBOL_EXPORT([node_2_cpu_mask],
1050 [arch/$LINUX_ARCH/kernel/smpboot.c],
1051 [AC_DEFINE(HAVE_NODE_TO_CPUMASK, 1,
1052 [node_to_cpumask is exported by
1053 the kernel])]) # i386
1056 # 2.6.22 lost second parameter for invalidate_bdev
1057 AC_DEFUN([LC_INVALIDATE_BDEV_2ARG],
1058 [AC_MSG_CHECKING([if invalidate_bdev has second argument])
1059 LB_LINUX_TRY_COMPILE([
1060 #include <linux/buffer_head.h>
1062 invalidate_bdev(NULL,0);
1064 AC_MSG_RESULT([yes])
1065 AC_DEFINE(HAVE_INVALIDATE_BDEV_2ARG, 1,
1066 [invalidate_bdev has second argument])
1075 # 2.6.23 have return type 'void' for unregister_blkdev
1076 AC_DEFUN([LC_UNREGISTER_BLKDEV_RETURN_INT],
1077 [AC_MSG_CHECKING([if unregister_blkdev return int])
1078 LB_LINUX_TRY_COMPILE([
1079 #include <linux/fs.h>
1081 int i = unregister_blkdev(0,NULL);
1083 AC_MSG_RESULT([yes])
1084 AC_DEFINE(HAVE_UNREGISTER_BLKDEV_RETURN_INT, 1,
1085 [unregister_blkdev return int])
1091 # 2.6.23 change .sendfile to .splice_read
1092 # RHEL4 (-92 kernel) have both sendfile and .splice_read API
1093 AC_DEFUN([LC_KERNEL_SENDFILE],
1094 [AC_MSG_CHECKING([if kernel has .sendfile])
1095 LB_LINUX_TRY_COMPILE([
1096 #include <linux/fs.h>
1098 struct file_operations file;
1100 file.sendfile = NULL;
1102 AC_MSG_RESULT([yes])
1103 AC_DEFINE(HAVE_KERNEL_SENDFILE, 1,
1104 [kernel has .sendfile])
1110 # 2.6.23 change .sendfile to .splice_read
1111 AC_DEFUN([LC_KERNEL_SPLICE_READ],
1112 [AC_MSG_CHECKING([if kernel has .splice_read])
1113 LB_LINUX_TRY_COMPILE([
1114 #include <linux/fs.h>
1116 struct file_operations file;
1118 file.splice_read = NULL;
1120 AC_MSG_RESULT([yes])
1121 AC_DEFINE(HAVE_KERNEL_SPLICE_READ, 1,
1122 [kernel has .slice_read])
1128 # 2.6.23 extract nfs export related data into exportfs.h
1129 AC_DEFUN([LC_HAVE_EXPORTFS_H],
1130 [LB_CHECK_FILE([$LINUX/include/linux/exportfs.h], [
1131 AC_DEFINE(HAVE_LINUX_EXPORTFS_H, 1,
1132 [kernel has include/exportfs.h])
1138 # 2.6.23 has new page fault handling API
1139 AC_DEFUN([LC_VM_OP_FAULT],
1140 [AC_MSG_CHECKING([kernel has .fault in vm_operation_struct])
1141 LB_LINUX_TRY_COMPILE([
1142 #include <linux/mm.h>
1144 struct vm_operations_struct op;
1148 AC_MSG_RESULT([yes])
1149 AC_DEFINE(HAVE_VM_OP_FAULT, 1,
1150 [kernel has .fault in vm_operation_struct])
1156 #2.6.23 has new shrinker API
1157 AC_DEFUN([LC_REGISTER_SHRINKER],
1158 [AC_MSG_CHECKING([if kernel has register_shrinker])
1159 LB_LINUX_TRY_COMPILE([
1160 #include <linux/mm.h>
1162 register_shrinker(NULL);
1164 AC_MSG_RESULT([yes])
1165 AC_DEFINE(HAVE_REGISTER_SHRINKER, 1,
1166 [kernel has register_shrinker])
1172 # 2.6.24 has bio_endio with 2 args
1173 AC_DEFUN([LC_BIO_ENDIO_2ARG],
1174 [AC_MSG_CHECKING([if kernel has bio_endio with 2 args])
1175 LB_LINUX_TRY_COMPILE([
1176 #include <linux/bio.h>
1180 AC_MSG_RESULT([yes])
1181 AC_DEFINE(HAVE_BIO_ENDIO_2ARG, 1,
1182 [kernel has bio_endio with 2 args])
1188 # 2.6.24 has new members in exports struct.
1189 AC_DEFUN([LC_FH_TO_DENTRY],
1190 [AC_MSG_CHECKING([if kernel has .fh_to_dentry member in export_operations struct])
1191 LB_LINUX_TRY_COMPILE([
1192 #ifdef HAVE_LINUX_EXPORTFS_H
1193 #include <linux/exportfs.h>
1195 #include <linux/fs.h>
1198 struct export_operations exp;
1200 exp.fh_to_dentry = NULL;
1202 AC_MSG_RESULT([yes])
1203 AC_DEFINE(HAVE_FH_TO_DENTRY, 1,
1204 [kernel has .fh_to_dentry member in export_operations struct])
1210 # 2.6.24 need linux/mm_types.h included
1211 AC_DEFUN([LC_HAVE_MMTYPES_H],
1212 [LB_CHECK_FILE([$LINUX/include/linux/mm_types.h], [
1213 AC_DEFINE(HAVE_LINUX_MMTYPES_H, 1,
1214 [kernel has include/mm_types.h])
1220 # 2.6.24 removes long aged procfs entry -> deleted member
1221 AC_DEFUN([LC_PROCFS_DELETED],
1222 [AC_MSG_CHECKING([if kernel has deleted member in procfs entry struct])
1223 LB_LINUX_TRY_COMPILE([
1224 #include <linux/proc_fs.h>
1226 struct proc_dir_entry pde;
1230 AC_MSG_RESULT([yes])
1231 AC_DEFINE(HAVE_PROCFS_DELETED, 1,
1232 [kernel has deleted member in procfs entry struct])
1238 # 2.6.25 change define to inline
1239 AC_DEFUN([LC_MAPPING_CAP_WRITEBACK_DIRTY],
1240 [AC_MSG_CHECKING([if kernel have mapping_cap_writeback_dirty])
1241 LB_LINUX_TRY_COMPILE([
1242 #include <linux/backing-dev.h>
1244 #ifndef mapping_cap_writeback_dirty
1245 mapping_cap_writeback_dirty(NULL);
1248 AC_MSG_RESULT([yes])
1249 AC_DEFINE(HAVE_MAPPING_CAP_WRITEBACK_DIRTY, 1,
1250 [kernel have mapping_cap_writeback_dirty])
1258 # 2.6.26 isn't export set_fs_pwd and change paramter in fs struct
1259 AC_DEFUN([LC_FS_STRUCT_USE_PATH],
1260 [AC_MSG_CHECKING([fs_struct use path structure])
1261 LB_LINUX_TRY_COMPILE([
1262 #include <asm/atomic.h>
1263 #include <linux/spinlock.h>
1264 #include <linux/fs_struct.h>
1267 struct fs_struct fs;
1271 AC_MSG_RESULT([yes])
1272 AC_DEFINE(HAVE_FS_STRUCT_USE_PATH, 1,
1273 [fs_struct use path structure])
1280 # LC_VFS_INTENT_PATCHES
1282 # check if the kernel has the VFS intent patches
1283 AC_DEFUN([LC_VFS_INTENT_PATCHES],
1284 [AC_MSG_CHECKING([if the kernel has the VFS intent patches])
1285 LB_LINUX_TRY_COMPILE([
1286 #include <linux/fs.h>
1287 #include <linux/namei.h>
1289 struct nameidata nd;
1290 struct lookup_intent *it;
1293 intent_init(it, IT_OPEN);
1294 it->d.lustre.it_disposition = 0;
1295 it->d.lustre.it_data = NULL;
1297 AC_MSG_RESULT([yes])
1298 AC_DEFINE(HAVE_VFS_INTENT_PATCHES, 1, [VFS intent patches are applied])
1304 AC_DEFUN([LC_S_TIME_GRAN],
1305 [AC_MSG_CHECKING([if super block has s_time_gran member])
1306 LB_LINUX_TRY_COMPILE([
1307 #include <linux/fs.h>
1309 struct super_block sb;
1311 return sb.s_time_gran;
1313 AC_MSG_RESULT([yes])
1314 AC_DEFINE(HAVE_S_TIME_GRAN, 1, [super block has s_time_gran member])
1320 AC_DEFUN([LC_SB_TIME_GRAN],
1321 [AC_MSG_CHECKING([if kernel has old get_sb_time_gran])
1322 LB_LINUX_TRY_COMPILE([
1323 #include <linux/fs.h>
1325 return get_sb_time_gran(NULL);
1327 AC_MSG_RESULT([yes])
1328 AC_DEFINE(HAVE_SB_TIME_GRAN, 1, [kernel has old get_sb_time_gran])
1335 # LC_FUNC_GRAB_CACHE_PAGE_NOWAIT_GFP
1337 # Check for our patched grab_cache_page_nowait_gfp() function
1338 # after 2.6.29 we can emulate this using add_to_page_cache_lru()
1340 AC_DEFUN([LC_FUNC_GRAB_CACHE_PAGE_NOWAIT_GFP],
1341 [LB_CHECK_SYMBOL_EXPORT([grab_cache_page_nowait_gfp],
1343 AC_DEFINE(HAVE_GRAB_CACHE_PAGE_NOWAIT_GFP, 1,
1344 [kernel exports grab_cache_page_nowait_gfp])
1346 [LB_CHECK_SYMBOL_EXPORT([add_to_page_cache_lru],
1348 AC_DEFINE(HAVE_ADD_TO_PAGE_CACHE_LRU, 1,
1349 [kernel exports add_to_page_cache_lru])
1355 # ~2.6.12 merge patch from oracle to convert tree_lock from spinlock to rwlock
1356 AC_DEFUN([LC_RW_TREE_LOCK],
1357 [AC_MSG_CHECKING([if kernel has tree_lock as rwlock])
1358 tmp_flags="$EXTRA_KCFLAGS"
1359 EXTRA_KCFLAGS="-Werror"
1360 LB_LINUX_TRY_COMPILE([
1361 #include <linux/fs.h>
1363 struct address_space a;
1365 write_lock(&a.tree_lock);
1367 AC_MSG_RESULT([yes])
1368 AC_DEFINE(HAVE_RW_TREE_LOCK, 1, [kernel has tree_lock as rw_lock])
1372 EXTRA_KCFLAGS="$tmp_flags"
1375 AC_DEFUN([LC_CONST_ACL_SIZE],
1376 [AC_MSG_CHECKING([calc acl size])
1378 CFLAGS="$CFLAGS -I$LINUX/include -I$LINUX_OBJ/include -I$LINUX_OBJ/include2 $EXTRA_KCFLAGS"
1381 #include <linux/autoconf.h>
1382 #include <linux/types.h>
1385 #define __LINUX_POSIX_ACL_H
1387 # ifdef CONFIG_FS_POSIX_ACL
1388 # ifdef HAVE_XATTR_ACL
1389 # include <linux/xattr_acl.h>
1391 # ifdef HAVE_LINUX_POSIX_ACL_XATTR_H
1392 # include <linux/posix_acl_xattr.h>
1396 #include <lustre_acl.h>
1402 int size = mds_xattr_acl_size(LUSTRE_POSIX_ACL_MAX_ENTRIES);
1403 FILE *f = fopen("acl.size","w+");
1404 fprintf(f,"%d", size);
1411 acl_size=`cat acl.size`
1412 AC_MSG_RESULT([ACL size $acl_size])
1413 AC_DEFINE_UNQUOTED(XATTR_ACL_SIZE, AS_TR_SH([$acl_size]), [size of xattr acl])
1415 AC_ERROR([ACL size can't computed])
1421 # check for crypto API
1423 AC_DEFUN([LC_ASYNC_BLOCK_CIPHER],
1424 [AC_MSG_CHECKING([if kernel has block cipher support])
1425 LB_LINUX_TRY_COMPILE([
1426 #include <linux/err.h>
1427 #include <linux/crypto.h>
1429 struct crypto_blkcipher *tfm;
1430 tfm = crypto_alloc_blkcipher("aes", 0, 0 );
1432 AC_MSG_RESULT([yes])
1433 AC_DEFINE(HAVE_ASYNC_BLOCK_CIPHER, 1, [kernel has block cipher support])
1440 # check for struct hash_desc
1442 AC_DEFUN([LC_STRUCT_HASH_DESC],
1443 [AC_MSG_CHECKING([if kernel has struct hash_desc])
1444 LB_LINUX_TRY_COMPILE([
1445 #include <linux/err.h>
1446 #include <linux/crypto.h>
1448 struct hash_desc foo;
1450 AC_MSG_RESULT([yes])
1451 AC_DEFINE(HAVE_STRUCT_HASH_DESC, 1, [kernel has struct hash_desc])
1458 # check for struct blkcipher_desc
1460 AC_DEFUN([LC_STRUCT_BLKCIPHER_DESC],
1461 [AC_MSG_CHECKING([if kernel has struct blkcipher_desc])
1462 LB_LINUX_TRY_COMPILE([
1463 #include <linux/err.h>
1464 #include <linux/crypto.h>
1466 struct blkcipher_desc foo;
1468 AC_MSG_RESULT([yes])
1469 AC_DEFINE(HAVE_STRUCT_BLKCIPHER_DESC, 1, [kernel has struct blkcipher_desc])
1476 # 2.6.19 check for FS_RENAME_DOES_D_MOVE flag
1478 AC_DEFUN([LC_FS_RENAME_DOES_D_MOVE],
1479 [AC_MSG_CHECKING([if kernel has FS_RENAME_DOES_D_MOVE flag])
1480 LB_LINUX_TRY_COMPILE([
1481 #include <linux/fs.h>
1483 int v = FS_RENAME_DOES_D_MOVE;
1485 AC_MSG_RESULT([yes])
1486 AC_DEFINE(HAVE_FS_RENAME_DOES_D_MOVE, 1, [kernel has FS_RENAME_DOES_D_MOVE flag])
1493 # LC_FUNC_F_OP_FLOCK
1495 # rhel4.2 kernel has f_op->flock field
1497 AC_DEFUN([LC_FUNC_F_OP_FLOCK],
1498 [AC_MSG_CHECKING([if struct file_operations has flock field])
1499 LB_LINUX_TRY_COMPILE([
1500 #include <linux/fs.h>
1502 struct file_operations ll_file_operations_flock;
1503 ll_file_operations_flock.flock = NULL;
1505 AC_DEFINE(HAVE_F_OP_FLOCK, 1,
1506 [struct file_operations has flock field])
1507 AC_MSG_RESULT([yes])
1513 # vfs_symlink seems to have started out with 3 args until 2.6.7 where a
1514 # "mode" argument was added, but then again, in some later version it was
1516 AC_DEFUN([LC_4ARGS_VFS_SYMLINK],
1517 [AC_MSG_CHECKING([if vfs_symlink wants 4 args])
1518 LB_LINUX_TRY_COMPILE([
1519 #include <linux/fs.h>
1522 struct dentry *dentry;
1523 const char *oldname = NULL;
1526 vfs_symlink(dir, dentry, oldname, mode);
1529 AC_DEFINE(HAVE_4ARGS_VFS_SYMLINK, 1,
1530 [vfs_symlink wants 4 args])
1536 # 2.6.23 has new shrinker API
1537 AC_DEFUN([LC_REGISTER_SHRINKER],
1538 [LB_CHECK_SYMBOL_EXPORT([register_shrinker],
1540 AC_DEFINE(HAVE_REGISTER_SHRINKER, 1,
1541 [kernel exports register_shrinker])
1547 AC_DEFUN([LC_INODE_PERMISION_2ARGS],
1548 [AC_MSG_CHECKING([inode_operations->permission has two args])
1549 LB_LINUX_TRY_COMPILE([
1550 #include <linux/fs.h>
1552 struct inode *inode;
1554 inode->i_op->permission(NULL,0);
1556 AC_DEFINE(HAVE_INODE_PERMISION_2ARGS, 1,
1557 [inode_operations->permission has two args])
1558 AC_MSG_RESULT([yes])
1564 # 2.6.27 has file_remove_suid instead of remove_suid
1565 AC_DEFUN([LC_FILE_REMOVE_SUID],
1566 [AC_MSG_CHECKING([kernel has file_remove_suid])
1567 LB_LINUX_TRY_COMPILE([
1568 #include <linux/fs.h>
1570 file_remove_suid(NULL);
1572 AC_DEFINE(HAVE_FILE_REMOVE_SUID, 1,
1573 [kernel have file_remove_suid])
1574 AC_MSG_RESULT([yes])
1580 # 2.6.27 have new page locking API
1581 AC_DEFUN([LC_TRYLOCKPAGE],
1582 [AC_MSG_CHECKING([kernel uses trylock_page for page lock])
1583 LB_LINUX_TRY_COMPILE([
1584 #include <linux/pagemap.h>
1588 AC_DEFINE(HAVE_TRYLOCK_PAGE, 1,
1589 [kernel uses trylock_page for page lock])
1590 AC_MSG_RESULT([yes])
1596 # vfs_symlink seems to have started out with 3 args until 2.6.7 where a
1597 # "mode" argument was added, but then again, in some later version it was
1599 AC_DEFUN([LC_4ARGS_VFS_SYMLINK],
1600 [AC_MSG_CHECKING([if vfs_symlink wants 4 args])
1601 LB_LINUX_TRY_COMPILE([
1602 #include <linux/fs.h>
1605 struct dentry *dentry;
1606 const char *oldname = NULL;
1609 vfs_symlink(dir, dentry, oldname, mode);
1612 AC_DEFINE(HAVE_4ARGS_VFS_SYMLINK, 1,
1613 [vfs_symlink wants 4 args])
1619 # 2.6.27 sles11 remove the bi_hw_segments
1620 AC_DEFUN([LC_BI_HW_SEGMENTS],
1621 [AC_MSG_CHECKING([struct bio has a bi_hw_segments field])
1622 LB_LINUX_TRY_COMPILE([
1623 #include <linux/bio.h>
1626 io.bi_hw_segments = 0;
1628 AC_DEFINE(HAVE_BI_HW_SEGMENTS, 1,
1629 [struct bio has a bi_hw_segments field])
1630 AC_MSG_RESULT([yes])
1636 # 2.6.27 sles11 move the quotaio_v1.h to fs
1637 AC_DEFUN([LC_HAVE_QUOTAIO_V1_H],
1638 [LB_CHECK_FILE([$LINUX/include/linux/quotaio_v1.h],[
1639 AC_DEFINE(HAVE_QUOTAIO_V1_H, 1,
1640 [kernel has include/linux/quotaio_v1.h])
1646 # sles10 sp2 need 5 parameter for vfs_symlink
1647 AC_DEFUN([LC_VFS_SYMLINK_5ARGS],
1648 [AC_MSG_CHECKING([vfs_symlink need 5 parameter])
1649 LB_LINUX_TRY_COMPILE([
1650 #include <linux/fs.h>
1652 struct inode *dir = NULL;
1653 struct dentry *dentry = NULL;
1654 struct vfsmount *mnt = NULL;
1655 const char * path = NULL;
1656 vfs_symlink(dir, dentry, mnt, path, 0);
1658 AC_DEFINE(HAVE_VFS_SYMLINK_5ARGS, 1,
1659 [vfs_symlink need 5 parameteres])
1660 AC_MSG_RESULT([yes])
1666 # 2.6.27 removed the read_inode from super_operations.
1667 AC_DEFUN([LC_READ_INODE_IN_SBOPS],
1668 [AC_MSG_CHECKING([super_operations has a read_inode field])
1669 LB_LINUX_TRY_COMPILE([
1670 #include <linux/fs.h>
1672 struct super_operations *sop;
1673 sop->read_inode(NULL);
1675 AC_DEFINE(HAVE_READ_INODE_IN_SBOPS, 1,
1676 [super_operations has a read_inode])
1677 AC_MSG_RESULT([yes])
1683 # 2.6.27 sles11 has sb_any_quota_active
1684 AC_DEFUN([LC_SB_ANY_QUOTA_ACTIVE],
1685 [AC_MSG_CHECKING([Kernel has sb_any_quota_active])
1686 LB_LINUX_TRY_COMPILE([
1687 #include <linux/quotaops.h>
1689 sb_any_quota_active(NULL);
1691 AC_DEFINE(HAVE_SB_ANY_QUOTA_ACTIVE, 1,
1692 [Kernel has a sb_any_quota_active])
1693 AC_MSG_RESULT([yes])
1699 # 2.6.27 sles11 has sb_has_quota_active
1700 AC_DEFUN([LC_SB_HAS_QUOTA_ACTIVE],
1701 [AC_MSG_CHECKING([Kernel has sb_has_quota_active])
1702 LB_LINUX_TRY_COMPILE([
1703 #include <linux/quotaops.h>
1705 sb_has_quota_active(NULL, 0);
1707 AC_DEFINE(HAVE_SB_HAS_QUOTA_ACTIVE, 1,
1708 [Kernel has a sb_has_quota_active])
1709 AC_MSG_RESULT([yes])
1715 # 2.6.27 has inode_permission instead of permisson
1716 AC_DEFUN([LC_EXPORT_INODE_PERMISSION],
1717 [LB_CHECK_SYMBOL_EXPORT([inode_permission],
1719 AC_DEFINE(HAVE_EXPORT_INODE_PERMISSION, 1,
1720 [inode_permission is exported by the kernel])
1725 # 2.6.27 use 5th parameter in quota_on for remount.
1726 AC_DEFUN([LC_QUOTA_ON_5ARGS],
1727 [AC_MSG_CHECKING([quota_on needs 5 parameters])
1728 LB_LINUX_TRY_COMPILE([
1729 #include <linux/quota.h>
1731 struct quotactl_ops *qop;
1732 qop->quota_on(NULL, 0, 0, NULL, 0);
1734 AC_DEFINE(HAVE_QUOTA_ON_5ARGS, 1,
1735 [quota_on needs 5 paramters])
1736 AC_MSG_RESULT([yes])
1742 # 2.6.27 use 3th parameter in quota_off for remount.
1743 AC_DEFUN([LC_QUOTA_OFF_3ARGS],
1744 [AC_MSG_CHECKING([quota_off needs 3 parameters])
1745 LB_LINUX_TRY_COMPILE([
1746 #include <linux/quota.h>
1748 struct quotactl_ops *qop;
1749 qop->quota_off(NULL, 0, 0);
1751 AC_DEFINE(HAVE_QUOTA_OFF_3ARGS, 1,
1752 [quota_off needs 3 paramters])
1753 AC_MSG_RESULT([yes])
1759 # 2.6.27 has vfs_dq_off inline function.
1760 AC_DEFUN([LC_VFS_DQ_OFF],
1761 [AC_MSG_CHECKING([vfs_dq_off is defined])
1762 LB_LINUX_TRY_COMPILE([
1763 #include <linux/quotaops.h>
1765 vfs_dq_off(NULL, 0);
1767 AC_DEFINE(HAVE_VFS_DQ_OFF, 1, [vfs_dq_off is defined])
1768 AC_MSG_RESULT([yes])
1777 # If we have fiemap.h
1778 # after 2.6.27 use fiemap.h in include/linux
1780 AC_DEFUN([LC_LINUX_FIEMAP_H],
1781 [LB_CHECK_FILE([$LINUX/include/linux/fiemap.h],[
1782 AC_MSG_CHECKING([if fiemap.h can be compiled])
1783 LB_LINUX_TRY_COMPILE([
1784 #include <linux/types.h>
1785 #include <linux/fiemap.h>
1787 AC_MSG_RESULT([yes])
1788 AC_DEFINE(HAVE_LINUX_FIEMAP_H, 1, [Kernel has fiemap.h])
1799 # Lustre linux kernel checks
1801 AC_DEFUN([LC_PROG_LINUX],
1802 [LC_LUSTRE_VERSION_H
1803 if test x$enable_server = xyes ; then
1804 AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])
1805 LC_FUNC_DEV_SET_RDONLY
1811 LC_CONFIG_LIBLUSTRE_RECOVERY
1812 LC_CONFIG_HEALTH_CHECK_WRITE
1813 LC_CONFIG_LRU_RESIZE
1817 LC_EXPORT_TRUNCATE_COMPLETE
1818 LC_EXPORT_TRUNCATE_RANGE
1819 LC_EXPORT_D_REHASH_COND
1820 LC_EXPORT___D_REHASH
1821 LC_EXPORT_D_MOVE_LOCKED
1823 LC_EXPORT_NODE_TO_CPUMASK
1825 LC_HEADER_LDISKFS_XATTR
1826 LC_FUNC_GRAB_CACHE_PAGE_NOWAIT_GFP
1833 LC_POSIX_ACL_XATTR_H
1836 LC_STRUCT_INTENT_FILE
1841 LC_FUNC_MS_FLOCK_LOCK
1842 LC_FUNC_HAVE_CAN_SLEEP_ARG
1845 LC_COOKIE_FOLLOW_LINK
1849 LC_4ARGS_VFS_SYMLINK
1851 # does the kernel have VFS intent patches?
1852 LC_VFS_INTENT_PATCHES
1860 LC_EXPORT_SYNCHRONIZE_RCU
1866 LC_SECURITY_PLUG # for SLES10 SP2
1874 LC_STATFS_DENTRY_PARAM
1876 LC_INVALIDATEPAGE_RETURN_INT
1877 LC_UMOUNTBEGIN_HAS_VFSMOUNT
1879 LC_EXPORT_FILEMAP_FDATAWRITE_RANGE
1880 if test x$enable_server = xyes ; then
1881 LC_EXPORT_INVALIDATE_MAPPING_PAGES
1884 #2.6.18 + RHEL5 (fc6)
1891 LC_VFS_READDIR_U64_INO
1896 LC_CANCEL_DIRTY_PAGE
1898 # raid5-zerocopy patch
1902 LC_INVALIDATE_BDEV_2ARG
1903 LC_ASYNC_BLOCK_CIPHER
1905 LC_STRUCT_BLKCIPHER_DESC
1906 LC_FS_RENAME_DOES_D_MOVE
1908 LC_UNREGISTER_BLKDEV_RETURN_INT
1909 LC_KERNEL_SPLICE_READ
1913 LC_REGISTER_SHRINKER
1922 LC_MAPPING_CAP_WRITEBACK_DIRTY
1925 LC_FS_STRUCT_USE_PATH
1928 LC_INODE_PERMISION_2ARGS
1931 LC_READ_INODE_IN_SBOPS
1932 LC_EXPORT_INODE_PERMISSION
1937 # 2.6.27.15-2 sles11
1939 LC_HAVE_QUOTAIO_V1_H
1940 LC_VFS_SYMLINK_5ARGS
1941 LC_SB_ANY_QUOTA_ACTIVE
1942 LC_SB_HAS_QUOTA_ACTIVE
1946 # LC_CONFIG_CLIENT_SERVER
1948 # Build client/server sides of Lustre
1950 AC_DEFUN([LC_CONFIG_CLIENT_SERVER],
1951 [AC_MSG_CHECKING([whether to build Lustre server support])
1952 AC_ARG_ENABLE([server],
1953 AC_HELP_STRING([--disable-server],
1954 [disable Lustre server support]),
1955 [],[enable_server='yes'])
1956 AC_MSG_RESULT([$enable_server])
1958 AC_MSG_CHECKING([whether to build Lustre client support])
1959 AC_ARG_ENABLE([client],
1960 AC_HELP_STRING([--disable-client],
1961 [disable Lustre client support]),
1962 [],[enable_client='yes'])
1963 AC_MSG_RESULT([$enable_client])])
1966 # LC_CONFIG_LIBLUSTRE
1968 # whether to build liblustre
1970 AC_DEFUN([LC_CONFIG_LIBLUSTRE],
1971 [AC_MSG_CHECKING([whether to build Lustre library])
1972 AC_ARG_ENABLE([liblustre],
1973 AC_HELP_STRING([--disable-liblustre],
1974 [disable building of Lustre library]),
1975 [],[enable_liblustre=$with_sysio])
1976 AC_MSG_RESULT([$enable_liblustre])
1977 # only build sysio if liblustre is built
1978 with_sysio="$enable_liblustre"
1980 AC_MSG_CHECKING([whether to build liblustre tests])
1981 AC_ARG_ENABLE([liblustre-tests],
1982 AC_HELP_STRING([--enable-liblustre-tests],
1983 [enable liblustre tests, if --disable-tests is used]),
1984 [],[enable_liblustre_tests=$enable_tests])
1985 if test x$enable_liblustre != xyes ; then
1986 enable_liblustre_tests='no'
1988 AC_MSG_RESULT([$enable_liblustre_tests])
1990 AC_MSG_CHECKING([whether to enable liblustre acl])
1991 AC_ARG_ENABLE([liblustre-acl],
1992 AC_HELP_STRING([--disable-liblustre-acl],
1993 [disable ACL support for liblustre]),
1994 [],[enable_liblustre_acl=yes])
1995 AC_MSG_RESULT([$enable_liblustre_acl])
1996 if test x$enable_liblustre_acl = xyes ; then
1997 AC_DEFINE(LIBLUSTRE_POSIX_ACL, 1, Liblustre Support ACL-enabled MDS)
2003 AC_ARG_ENABLE(mpitests,
2004 AC_HELP_STRING([--enable-mpitests=yes|no|mpicc wrapper],
2005 [include mpi tests]),
2016 MPICC_WRAPPER=$enableval
2026 if test x$enable_mpitests != xno; then
2027 AC_MSG_CHECKING([whether mpitests can be built])
2035 MPI_Initialized(&flag);
2038 AC_MSG_RESULT([yes])
2045 AC_SUBST(MPICC_WRAPPER)
2047 AC_MSG_NOTICE([Enabling Lustre configure options for libsysio])
2048 ac_configure_args="$ac_configure_args --with-lustre-hack --with-sockets"
2051 LC_CONFIG_LIBLUSTRE_RECOVERY
2054 AC_DEFUN([LC_CONFIG_LRU_RESIZE],
2055 [AC_MSG_CHECKING([whether to enable lru self-adjusting])
2056 AC_ARG_ENABLE([lru_resize],
2057 AC_HELP_STRING([--enable-lru-resize],
2058 [enable lru resize support]),
2059 [],[enable_lru_resize='yes'])
2060 AC_MSG_RESULT([$enable_lru_resize])
2061 if test x$enable_lru_resize != xno; then
2062 AC_DEFINE(HAVE_LRU_RESIZE_SUPPORT, 1, [Enable lru resize support])
2069 # whether to enable quota support global control
2071 AC_DEFUN([LC_CONFIG_QUOTA],
2072 [AC_ARG_ENABLE([quota],
2073 AC_HELP_STRING([--enable-quota],
2074 [enable quota support]),
2075 [],[enable_quota='yes'])
2078 # whether to enable quota support(kernel modules)
2079 AC_DEFUN([LC_QUOTA_MODULE],
2080 [if test x$enable_quota != xno; then
2081 LB_LINUX_CONFIG([QUOTA],[
2082 enable_quota_module='yes'
2083 AC_DEFINE(HAVE_QUOTA_SUPPORT, 1, [Enable quota support])
2085 enable_quota_module='no'
2086 AC_MSG_WARN([quota is not enabled because the kernel - lacks quota support])
2091 AC_DEFUN([LC_QUOTA],
2095 AC_CHECK_HEADER(sys/quota.h,
2096 [AC_DEFINE(HAVE_SYS_QUOTA_H, 1, [Define to 1 if you have <sys/quota.h>.])],
2097 [AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
2100 AC_DEFUN([LC_QUOTA_READ],
2101 [AC_MSG_CHECKING([if kernel supports quota_read])
2102 LB_LINUX_TRY_COMPILE([
2103 #include <linux/fs.h>
2105 struct super_operations sp;
2106 void *i = (void *)sp.quota_read;
2108 AC_MSG_RESULT([yes])
2109 AC_DEFINE(KERNEL_SUPPORTS_QUOTA_READ, 1, [quota_read found])
2118 # whether to enable split support
2120 AC_DEFUN([LC_CONFIG_SPLIT],
2121 [AC_MSG_CHECKING([whether to enable split support])
2122 AC_ARG_ENABLE([split],
2123 AC_HELP_STRING([--enable-split],
2124 [enable split support]),
2125 [],[enable_split='no'])
2126 AC_MSG_RESULT([$enable_split])
2127 if test x$enable_split != xno; then
2128 AC_DEFINE(HAVE_SPLIT_SUPPORT, 1, [enable split support])
2133 # LC_COOKIE_FOLLOW_LINK
2135 # kernel 2.6.13+ ->follow_link returns a cookie
2138 AC_DEFUN([LC_COOKIE_FOLLOW_LINK],
2139 [AC_MSG_CHECKING([if inode_operations->follow_link returns a cookie])
2140 LB_LINUX_TRY_COMPILE([
2141 #include <linux/fs.h>
2142 #include <linux/namei.h>
2144 struct dentry dentry;
2145 struct nameidata nd;
2147 dentry.d_inode->i_op->put_link(&dentry, &nd, NULL);
2149 AC_DEFINE(HAVE_COOKIE_FOLLOW_LINK, 1, [inode_operations->follow_link returns a cookie])
2150 AC_MSG_RESULT([yes])
2159 # kernels prior than 2.6.0(?) have no RCU supported; in kernel 2.6.5(SUSE),
2160 # call_rcu takes three parameters.
2162 AC_DEFUN([LC_FUNC_RCU],
2163 [AC_MSG_CHECKING([if kernel have RCU supported])
2164 LB_LINUX_TRY_COMPILE([
2165 #include <linux/rcupdate.h>
2167 AC_DEFINE(HAVE_RCU, 1, [have RCU defined])
2168 AC_MSG_RESULT([yes])
2170 AC_MSG_CHECKING([if call_rcu takes three parameters])
2171 LB_LINUX_TRY_COMPILE([
2172 #include <linux/rcupdate.h>
2175 call_rcu(&rh, (void (*)(struct rcu_head *))1, NULL);
2177 AC_DEFINE(HAVE_CALL_RCU_PARAM, 1, [call_rcu takes three parameters])
2178 AC_MSG_RESULT([yes])
2190 # linux kernel have 64-bit limits support
2192 AC_DEFUN([LC_QUOTA64],
2193 [if test x$enable_quota_module = xyes -a x$enable_server = xyes ; then
2194 AC_MSG_CHECKING([if kernel has 64-bit quota limits support])
2195 LB_LINUX_TRY_COMPILE([
2196 #include <linux/kernel.h>
2197 #include <linux/fs.h>
2198 #include <linux/quotaio_v2.h>
2199 int versions[] = V2_INITQVERSIONS_R1;
2200 struct v2_disk_dqblk_r1 dqblk_r1;
2202 AC_DEFINE(HAVE_QUOTA64, 1, [have quota64])
2203 AC_MSG_RESULT([yes])
2205 tmp_flags="$EXTRA_KCFLAGS"
2206 EXTRA_KCFLAGS="-I $LINUX/fs"
2207 LB_LINUX_TRY_COMPILE([
2208 #include <linux/kernel.h>
2209 #include <linux/fs.h>
2210 #include <quotaio_v2.h>
2211 struct v2r1_disk_dqblk dqblk_r1;
2213 AC_DEFINE(HAVE_QUOTA64, 1, [have quota64])
2214 AC_MSG_RESULT([yes])
2216 LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],[
2217 AC_MSG_ERROR([You have got no 64-bit kernel quota support.])
2221 EXTRA_KCFLAGS=$tmp_flags
2226 # LC_SECURITY_PLUG # for SLES10 SP2
2227 # check security plug in sles10 sp2 kernel
2228 AC_DEFUN([LC_SECURITY_PLUG],
2229 [AC_MSG_CHECKING([If kernel has security plug support])
2230 LB_LINUX_TRY_COMPILE([
2231 #include <linux/fs.h>
2233 struct dentry *dentry;
2234 struct vfsmount *mnt;
2235 struct iattr *iattr;
2237 notify_change(dentry, mnt, iattr);
2240 AC_DEFINE(HAVE_SECURITY_PLUG, 1,
2241 [SLES10 SP2 use extra parameter in vfs])
2247 AC_DEFUN([LC_PERCPU_COUNTER],
2248 [AC_MSG_CHECKING([if have struct percpu_counter defined])
2249 LB_LINUX_TRY_COMPILE([
2250 #include <linux/percpu_counter.h>
2252 AC_DEFINE(HAVE_PERCPU_COUNTER, 1, [percpu_counter found])
2253 AC_MSG_RESULT([yes])
2255 AC_MSG_CHECKING([if percpu_counter_inc takes the 2nd argument])
2256 LB_LINUX_TRY_COMPILE([
2257 #include <linux/percpu_counter.h>
2259 struct percpu_counter c;
2260 percpu_counter_init(&c, 0);
2262 AC_DEFINE(HAVE_PERCPU_2ND_ARG, 1, [percpu_counter_init has two
2264 AC_MSG_RESULT([yes])
2276 # other configure checks
2278 AC_DEFUN([LC_CONFIGURE],
2279 [LC_CONFIG_OBD_BUFFER_SIZE
2281 if test $target_cpu == "i686" -o $target_cpu == "x86_64"; then
2282 CFLAGS="$CFLAGS -Werror"
2285 # include/liblustre.h
2286 AC_CHECK_HEADERS([sys/user.h sys/vfs.h stdint.h blkid/blkid.h])
2288 # liblustre/llite_lib.h
2289 AC_CHECK_HEADERS([xtio.h file.h])
2292 AC_CHECK_HEADERS([linux/types.h sys/types.h linux/unistd.h unistd.h])
2295 AC_CHECK_HEADERS([netinet/in.h arpa/inet.h catamount/data.h])
2296 AC_CHECK_FUNCS([inet_ntoa])
2298 # libsysio/src/readlink.c
2301 # lvfs/prng.c - depends on linux/types.h from liblustre/dir.c
2302 AC_CHECK_HEADERS([linux/random.h], [], [],
2303 [#ifdef HAVE_LINUX_TYPES_H
2304 # include <linux/types.h>
2309 AC_CHECK_HEADERS([ext2fs/ext2fs.h])
2311 # check for -lz support
2315 [AC_CHECK_HEADERS([zlib.h],
2317 AC_DEFINE([HAVE_ADLER], 1,
2318 [support alder32 checksum type])],
2319 [AC_MSG_WARN([No zlib-devel package found,
2320 unable to use adler32 checksum])])],
2321 [AC_MSG_WARN([No zlib package found, unable to use adler32 checksum])]
2326 AC_ARG_ENABLE([mindf],
2327 AC_HELP_STRING([--enable-mindf],
2328 [Make statfs report the minimum available space on any single OST instead of the sum of free space on all OSTs]),
2330 if test "$enable_mindf" = "yes" ; then
2331 AC_DEFINE([MIN_DF], 1, [Report minimum OST free space])
2334 AC_ARG_ENABLE([fail_alloc],
2335 AC_HELP_STRING([--disable-fail-alloc],
2336 [disable randomly alloc failure]),
2337 [],[enable_fail_alloc=yes])
2338 AC_MSG_CHECKING([whether to randomly failing memory alloc])
2339 AC_MSG_RESULT([$enable_fail_alloc])
2340 if test x$enable_fail_alloc != xno ; then
2341 AC_DEFINE([RANDOM_FAIL_ALLOC], 1, [enable randomly alloc failure])
2344 AC_ARG_ENABLE([invariants],
2345 AC_HELP_STRING([--enable-invariants],
2346 [enable invariant checking (cpu intensive)]),
2348 AC_MSG_CHECKING([whether to check invariants (expensive cpu-wise)])
2349 AC_MSG_RESULT([$enable_invariants])
2350 if test x$enable_invariants = xyes ; then
2351 AC_DEFINE([INVARIANT_CHECK], 1, [enable invariant checking])
2354 AC_ARG_ENABLE([lu_ref],
2355 AC_HELP_STRING([--enable-lu_ref],
2356 [enable lu_ref reference tracking code]),
2358 AC_MSG_CHECKING([whether to track references with lu_ref])
2359 AC_MSG_RESULT([$enable_lu_ref])
2360 if test x$enable_lu_ref = xyes ; then
2361 AC_DEFINE([USE_LU_REF], 1, [enable lu_ref reference tracking code])
2369 # AM_CONDITIONALS for lustre
2371 AC_DEFUN([LC_CONDITIONALS],
2372 [AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes)
2373 AM_CONDITIONAL(USE_QUILT, test x$QUILT != xno)
2374 AM_CONDITIONAL(LIBLUSTRE_TESTS, test x$enable_liblustre_tests = xyes)
2375 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
2376 AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
2377 AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
2378 AM_CONDITIONAL(QUOTA, test x$enable_quota_module = xyes)
2379 AM_CONDITIONAL(SPLIT, test x$enable_split = xyes)
2380 AM_CONDITIONAL(BLKID, test x$ac_cv_header_blkid_blkid_h = xyes)
2381 AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes)
2382 AM_CONDITIONAL(GSS, test x$enable_gss = xyes)
2383 AM_CONDITIONAL(GSS_KEYRING, test x$enable_gss_keyring = xyes)
2384 AM_CONDITIONAL(GSS_PIPEFS, test x$enable_gss_pipefs = xyes)
2385 AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes)
2391 # files that should be generated with AC_OUTPUT
2393 AC_DEFUN([LC_CONFIG_FILES],
2397 lustre/autoconf/Makefile
2398 lustre/contrib/Makefile
2400 lustre/include/Makefile
2401 lustre/include/lustre_ver.h
2402 lustre/include/linux/Makefile
2403 lustre/include/lustre/Makefile
2404 lustre/kernel_patches/targets/2.6-vanilla.target
2405 lustre/kernel_patches/targets/2.6-rhel4.target
2406 lustre/kernel_patches/targets/2.6-rhel5.target
2407 lustre/kernel_patches/targets/2.6-fc5.target
2408 lustre/kernel_patches/targets/2.6-patchless.target
2409 lustre/kernel_patches/targets/2.6-sles10.target
2410 lustre/kernel_patches/targets/2.6-sles11.target
2411 lustre/kernel_patches/targets/2.6-oel5.target
2412 lustre/ldlm/Makefile
2414 lustre/fid/autoMakefile
2415 lustre/liblustre/Makefile
2416 lustre/liblustre/tests/Makefile
2417 lustre/liblustre/tests/mpi/Makefile
2418 lustre/llite/Makefile
2419 lustre/llite/autoMakefile
2420 lustre/lclient/Makefile
2422 lustre/lov/autoMakefile
2423 lustre/lvfs/Makefile
2424 lustre/lvfs/autoMakefile
2426 lustre/mdc/autoMakefile
2428 lustre/lmv/autoMakefile
2430 lustre/mds/autoMakefile
2432 lustre/mdt/autoMakefile
2434 lustre/cmm/autoMakefile
2436 lustre/mdd/autoMakefile
2438 lustre/fld/autoMakefile
2439 lustre/obdclass/Makefile
2440 lustre/obdclass/autoMakefile
2441 lustre/obdclass/linux/Makefile
2442 lustre/obdecho/Makefile
2443 lustre/obdecho/autoMakefile
2444 lustre/obdfilter/Makefile
2445 lustre/obdfilter/autoMakefile
2447 lustre/osc/autoMakefile
2449 lustre/ost/autoMakefile
2451 lustre/osd/autoMakefile
2453 lustre/mgc/autoMakefile
2455 lustre/mgs/autoMakefile
2456 lustre/ptlrpc/Makefile
2457 lustre/ptlrpc/autoMakefile
2458 lustre/ptlrpc/gss/Makefile
2459 lustre/ptlrpc/gss/autoMakefile
2460 lustre/quota/Makefile
2461 lustre/quota/autoMakefile
2462 lustre/scripts/Makefile
2463 lustre/tests/Makefile
2464 lustre/tests/mpi/Makefile
2465 lustre/utils/Makefile
2466 lustre/utils/gss/Makefile
2468 case $lb_target_os in
2470 AC_CONFIG_FILES([ lustre/obdclass/darwin/Makefile ])