configure-linux-kernel-detection-should-set-afsconfig-items-20010711
authorDerrick Brashear <shadow@dementia.org>
Wed, 11 Jul 2001 16:40:40 +0000 (16:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 11 Jul 2001 16:40:40 +0000 (16:40 +0000)
we test for linux kernel features; might even be useful to use the results

acconfig.h
configure.in
src/afs/afsincludes.h

index 5ddd41f..1a1aa2a 100644 (file)
@@ -26,3 +26,6 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 
 #undef FAST_RESTART
 #undef BITMAP_LATER
+
+#undef INODE_SETATTR_NOT_VOID
+#undef STRUCT_INODE_HAS_I_BYTES
index e824c0a..95424f5 100644 (file)
@@ -94,6 +94,12 @@ case $system in
                 LINUX_INODE_SETATTR_RETURN_TYPE
                 LINUX_NEED_RHCONFIG
                 LINUX_WHICH_MODULES
+                if test "x$ac_cv_linux_func_inode_setattr_returns_int" = "xyes" ; then
+                 AC_DEFINE(INODE_SETATTR_NOT_VOID)
+                fi
+                if test "x$ac_cv_linux_fs_struct_inode_has_i_bytes" = "xyes"; then 
+                 AC_DEFINE(STRUCT_INODE_HAS_I_BYTES)
+                fi
                 :
                fi
                 ;;
index 834b45f..613d996 100644 (file)
@@ -7,6 +7,8 @@
  * directory or online at http://www.openafs.org/dl/license10.html
  */
 
+#include <afsconfig.h>
+
 /* AFS based headers */
 #include "../afs/stds.h"
 #ifdef AFS_AIX_ENV