From 35d5b6c4e101c92e2c242bb75029db24eb1aa7d7 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sat, 26 Dec 2009 18:22:32 +0000 Subject: [PATCH] Remove unused configuration tests Remove configure tests that are no longer used by the build. Testing for unused features just slows down the configuration process. Change-Id: I18e161e8e608a69801c53980e545c3077a7578d7 Reviewed-on: http://gerrit.openafs.org/1033 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- acinclude.m4 | 80 ++------------------ src/cf/function-macro.m4 | 15 ---- src/cf/kerberos.m4 | 6 +- src/cf/linux-test3.m4 | 21 ------ src/cf/linux-test4.m4 | 133 --------------------------------- src/cf/solaris-pcorefile.m4 | 17 ----- src/config/afsconfig-windows.h | 30 -------- 7 files changed, 7 insertions(+), 295 deletions(-) delete mode 100644 src/cf/function-macro.m4 delete mode 100644 src/cf/solaris-pcorefile.m4 diff --git a/acinclude.m4 b/acinclude.m4 index 1064410d8..8be2c7b91 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -53,7 +53,6 @@ AH_VERBATIM([OPENAFS_HEADER], #undef COMPLETION_H_EXISTS #undef DEFINED_FOR_EACH_PROCESS #undef DEFINED_PREV_TASK -#undef EXPORTED_KALLSYMS_ADDRESS #undef EXPORTED_KALLSYMS_SYMBOL #undef EXPORTED_SYS_CALL_TABLE #undef EXPORTED_IA32_SYS_CALL_TABLE @@ -61,13 +60,8 @@ AH_VERBATIM([OPENAFS_HEADER], #undef INODE_SETATTR_NOT_VOID #undef IRIX_HAS_MEM_FUNCS #undef RECALC_SIGPENDING_TAKES_VOID -#undef STRUCT_ADDRESS_SPACE_HAS_GFP_MASK -#undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK #undef STRUCT_FS_HAS_FS_ROLLED -#undef STRUCT_INODE_HAS_I_DEVICES -#undef STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS #undef STRUCT_INODE_HAS_I_ALLOC_SEM -#undef STRUCT_INODE_HAS_I_TRUNCATE_SEM #undef STRUCT_TASK_STRUCT_HAS_PARENT #undef STRUCT_TASK_STRUCT_HAS_REAL_PARENT #undef STRUCT_TASK_STRUCT_HAS_SIG @@ -299,7 +293,6 @@ dnl AC_MINIX dnl Various compiler setup. AC_TYPE_PID_T AC_TYPE_SIZE_T -COMPILER_HAS_FUNCTION_MACRO dnl Checks for programs. AC_PROG_INSTALL @@ -399,7 +392,6 @@ case $system in AC_PATH_PROG(SOLARISCC, [cc], , [/opt/SUNWspro/bin:/opt/SunStudioExpress/bin]) SOLARIS_UFSVFS_HAS_DQRWLOCK - SOLARIS_PROC_HAS_P_COREFILE SOLARIS_FS_HAS_FS_ROLLED SOLARIS_SOLOOKUP_TAKES_SOCKPARAMS ;; @@ -884,7 +876,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) LINUX_STRUCT_TASK_HAS_CRED LINUX_STRUCT_PROC_DIR_ENTRY_HAS_OWNER LINUX_HAVE_KMEM_CACHE_T - LINUX_KMEM_CACHE_CREATE_TAKES_DTOR LINUX_KMEM_CACHE_CREATE_CTOR_TAKES_VOID LINUX_D_PATH_TAKES_STRUCT_PATH LINUX_NEW_EXPORT_OPS @@ -896,22 +887,12 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) LINUX_DEFINES_PREV_TASK LINUX_FS_STRUCT_SUPER_HAS_ALLOC_INODE LINUX_STRUCT_SUPER_BLOCK_HAS_S_BDI - LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK - LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_GFP_MASK LINUX_FS_STRUCT_INODE_HAS_I_ALLOC_SEM LINUX_FS_STRUCT_INODE_HAS_I_BLKBITS LINUX_FS_STRUCT_INODE_HAS_I_BLKSIZE - LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM - LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS - LINUX_FS_STRUCT_INODE_HAS_I_DEVICES - LINUX_FS_STRUCT_INODE_HAS_I_MMAP_SHARED LINUX_FS_STRUCT_INODE_HAS_I_MUTEX - LINUX_FS_STRUCT_INODE_HAS_I_SB_LIST LINUX_FS_STRUCT_INODE_HAS_I_SECURITY - LINUX_FS_STRUCT_INODE_HAS_INOTIFY_LOCK - LINUX_FS_STRUCT_INODE_HAS_INOTIFY_SEM LINUX_INODE_SETATTR_RETURN_TYPE - LINUX_WRITE_INODE_RETURN_TYPE LINUX_IOP_I_CREATE_TAKES_NAMEIDATA LINUX_IOP_I_LOOKUP_TAKES_NAMEIDATA LINUX_IOP_I_PERMISSION_TAKES_NAMEIDATA @@ -922,12 +903,10 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) LINUX_FS_STRUCT_FOP_HAS_FLOCK LINUX_FS_STRUCT_FOP_HAS_SENDFILE LINUX_FS_STRUCT_FOP_HAS_SPLICE - LINUX_KERNEL_LINUX_SYSCALL_H LINUX_KERNEL_LINUX_SEQ_FILE_H LINUX_KERNEL_POSIX_LOCK_FILE_WAIT_ARG LINUX_POSIX_TEST_LOCK_RETURNS_CONFLICT LINUX_POSIX_TEST_LOCK_CONFLICT_ARG - LINUX_KERNEL_SELINUX LINUX_KERNEL_SOCK_CREATE LINUX_KERNEL_PAGE_FOLLOW_LINK LINUX_KERNEL_HLIST_UNHASHED @@ -977,9 +956,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) LINUX_FS_STRUCT_NAMEIDATA_HAS_PATH LINUX_EXPORTS_INIT_MM LINUX_EXPORTS_SYS_CHDIR - LINUX_EXPORTS_SYS_CLOSE LINUX_EXPORTS_SYS_OPEN - LINUX_EXPORTS_SYS_WAIT4 LINUX_EXPORTS_RCU_READ_LOCK if test "x$with_linux_kernel_packaging" = "xno" ; then LINUX_WHICH_MODULES @@ -1020,21 +997,12 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) if test -f "$LINUX_KERNEL_PATH/include/linux/mm_inline.h"; then AC_DEFINE(HAVE_MM_INLINE_H, 1, [define if you have mm_inline.h header file]) fi - if test -f "$LINUX_KERNEL_PATH/include/linux/in_systm.h"; then - AC_DEFINE(HAVE_IN_SYSTM_H, 1, [define if you have in_systm.h header file]) - fi if test "x$ac_cv_linux_exports_sys_chdir" = "xyes" ; then AC_DEFINE(EXPORTED_SYS_CHDIR, 1, [define if your linux kernel exports sys_chdir]) fi if test "x$ac_cv_linux_exports_sys_open" = "xyes" ; then AC_DEFINE(EXPORTED_SYS_OPEN, 1, [define if your linux kernel exports sys_open]) fi - if test "x$ac_cv_linux_exports_sys_close" = "xyes" ; then - AC_DEFINE(EXPORTED_SYS_CLOSE, 1, [define if your linux kernel exports sys_close]) - fi - if test "x$ac_cv_linux_exports_sys_wait4" = "xyes" ; then - AC_DEFINE(EXPORTED_SYS_WAIT4, 1, [define if your linux kernel exports sys_wait4]) - fi if test "x$ac_cv_linux_exports_sys_call_table" = "xyes"; then AC_DEFINE(EXPORTED_SYS_CALL_TABLE, 1, [define if your linux kernel exports sys_call_table]) fi @@ -1068,57 +1036,27 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) if test "x$ac_cv_linux_func_inode_setattr_returns_int" = "xyes" ; then AC_DEFINE(INODE_SETATTR_NOT_VOID, 1, [define if your setattr return return non-void]) fi - if test "x$ac_cv_linux_func_write_inode_returns_int" = "xyes" ; then - AC_DEFINE(WRITE_INODE_NOT_VOID, 1, [define if your sops.write_inode returns non-void]) - fi if test "x$ac_cv_linux_fs_struct_super_has_alloc_inode" = "xyes" ; then AC_DEFINE(STRUCT_SUPER_HAS_ALLOC_INODE, 1, [define if your struct super_operations has alloc_inode]) fi - if test "x$ac_cv_linux_fs_struct_address_space_has_page_lock" = "xyes"; then - AC_DEFINE(STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK, 1, [define if your struct address_space has page_lock]) - fi - if test "x$ac_cv_linux_fs_struct_address_space_has_gfp_mask" = "xyes"; then - AC_DEFINE(STRUCT_ADDRESS_SPACE_HAS_GFP_MASK, 1, [define if your struct address_space has gfp_mask]) - fi - if test "x$ac_cv_linux_fs_struct_inode_has_i_truncate_sem" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_I_TRUNCATE_SEM, 1, [define if your struct inode has truncate_sem]) - fi if test "x$ac_cv_linux_fs_struct_inode_has_i_alloc_sem" = "xyes"; then AC_DEFINE(STRUCT_INODE_HAS_I_ALLOC_SEM, 1, [define if your struct inode has alloc_sem]) fi if test "x$ac_cv_linux_fs_struct_inode_has_i_blksize" = "xyes"; then AC_DEFINE(STRUCT_INODE_HAS_I_BLKSIZE, 1, [define if your struct inode has i_blksize]) fi - if test "x$ac_cv_linux_fs_struct_inode_has_i_devices" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_I_DEVICES, 1, [define if you struct inode has i_devices]) - fi if test "x$ac_cv_linux_fs_struct_inode_has_i_security" = "xyes"; then AC_DEFINE(STRUCT_INODE_HAS_I_SECURITY, 1, [define if you struct inode has i_security]) fi if test "x$ac_cv_linux_fs_struct_inode_has_i_mutex" = "xyes"; then AC_DEFINE(STRUCT_INODE_HAS_I_MUTEX, 1, [define if you struct inode has i_mutex]) fi - if test "x$ac_cv_linux_fs_struct_inode_has_i_sb_list" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_I_SB_LIST, 1, [define if you struct inode has i_sb_list]) - fi - if test "x$ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS, 1, [define if your struct inode has data_buffers]) - fi - if test "x$ac_cv_linux_fs_struct_inode_has_inotify_lock" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_INOTIFY_LOCK, 1, [define if your struct inode has inotify_lock]) - fi - if test "x$ac_cv_linux_fs_struct_inode_has_inotify_sem" = "xyes"; then - AC_DEFINE(STRUCT_INODE_HAS_INOTIFY_SEM, 1, [define if your struct inode has inotify_sem]) - fi - if test "x$ac_cv_linux_func_recalc_sigpending_takes_void" = "xyes"; then + if test "x$ac_cv_linux_func_recalc_sigpending_takes_void" = "xyes"; then AC_DEFINE(RECALC_SIGPENDING_TAKES_VOID, 1, [define if your recalc_sigpending takes void]) fi if test "x$ac_cv_linux_kernel_posix_lock_file_wait_arg" = "xyes" ; then AC_DEFINE(POSIX_LOCK_FILE_WAIT_ARG, 1, [define if your linux kernel uses 3 arguments for posix_lock_file]) fi - if test "x$ac_cv_linux_kernel_is_selinux" = "xyes" ; then - AC_DEFINE(LINUX_KERNEL_IS_SELINUX, 1, [define if your linux kernel uses SELinux features]) - fi if test "x$ac_cv_linux_kernel_sock_create_v" = "xyes" ; then AC_DEFINE(LINUX_KERNEL_SOCK_CREATE_V, 1, [define if your linux kernel uses 5 arguments for sock_create]) fi @@ -1128,9 +1066,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*) if test "x$ac_cv_linux_kernel_hlist_unhashed" = "xyes" ; then AC_DEFINE(HAVE_KERNEL_HLIST_UNHASHED, 1, [define if your linux kernel provides hlist_unhashed]) fi - if test "x$ac_linux_syscall" = "xyes" ; then - AC_DEFINE(HAVE_KERNEL_LINUX_SYSCALL_H, 1, [define if your linux kernel has linux/syscall.h]) - fi if test "x$ac_linux_seq_file" = "xyes" ; then AC_DEFINE(HAVE_KERNEL_LINUX_SEQ_FILE_H, 1, [define if your linux kernel has linux/seq_file.h]) fi @@ -1488,12 +1423,12 @@ dnl checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_DIRENT -AC_CHECK_HEADERS(stdlib.h string.h unistd.h poll.h fcntl.h sys/time.h sys/file.h grp.h) +AC_CHECK_HEADERS(stdlib.h string.h unistd.h fcntl.h sys/time.h sys/file.h grp.h) AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h) AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h sys/fstyp.h) -AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h poll.h sys/pag.h) -AC_CHECK_HEADERS(windows.h malloc.h winsock2.h direct.h io.h sys/user.h sys/ipc.h) -AC_CHECK_HEADERS(security/pam_modules.h siad.h usersec.h ucontext.h regex.h values.h sys/statvfs.h sys/statfs.h sys/bitypes.h) +AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h sys/pag.h) +AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h) +AC_CHECK_HEADERS(security/pam_modules.h ucontext.h regex.h sys/statvfs.h sys/statfs.h sys/bitypes.h) AC_CHECK_HEADERS(linux/errqueue.h,,,[#include ]) AC_CHECK_HEADERS(et/com_err.h) @@ -1532,7 +1467,7 @@ else fi AC_SUBST(BUILD_LOGIN) -AC_CHECK_FUNCS(utimes random srandom getdtablesize snprintf strlcat strlcpy re_comp re_exec flock) +AC_CHECK_FUNCS(snprintf strlcat strlcpy flock) AC_CHECK_FUNCS(setprogname getprogname sigaction mkstemp vsnprintf strerror strcasestr) AC_CHECK_FUNCS(setvbuf vsyslog getcwd) AC_CHECK_FUNCS(regcomp regexec regerror) @@ -1553,9 +1488,6 @@ AC_CHECK_SIZEOF(void *) AC_TYPE_INTPTR_T AC_TYPE_UINTPTR_T AC_CHECK_TYPE(ssize_t, int) -AC_CHECK_TYPES(sig_t, , , - [#include - #include ]) AC_CHECK_TYPE([sig_atomic_t], , [AC_DEFINE([sig_atomic_t], [int], [Define to int if does not define.])], diff --git a/src/cf/function-macro.m4 b/src/cf/function-macro.m4 deleted file mode 100644 index 18d729162..000000000 --- a/src/cf/function-macro.m4 +++ /dev/null @@ -1,15 +0,0 @@ -AC_DEFUN([COMPILER_HAS_FUNCTION_MACRO], [ -AC_MSG_CHECKING(for __FUNCTION__ and __LINE__ macros) -AC_CACHE_VAL(ac_cv_compiler_has_function_macro, -[ -AC_TRY_COMPILE( -[#include ], -[printf("%s:%d", __FUNCTION__, __LINE__);], -ac_cv_compiler_has_function_macro=yes, -ac_cv_compiler_has_function_macro=no)]) -AC_MSG_RESULT($ac_cv_compiler_has_function_macro) -if test "$ac_cv_compiler_has_function_macro" = "yes"; then - AC_DEFINE(HAVE_FUNCTION_MACRO, 1, [define if compiler has __FUNCTION__]) -fi -]) - diff --git a/src/cf/kerberos.m4 b/src/cf/kerberos.m4 index 05266835e..bc7140dac 100644 --- a/src/cf/kerberos.m4 +++ b/src/cf/kerberos.m4 @@ -65,7 +65,7 @@ if test X$conf_krb5 = XYES; then CPPFLAGS="$CPPFLAGS $KRB5CFLAGS" save_LIBS="$LIBS" LIBS="$LIBS $KRB5LIBS" - AC_CHECK_FUNCS([add_to_error_table add_error_table krb5_princ_size krb5_principal_get_comp_string encode_krb5_enc_tkt_part encode_krb5_ticket krb5_c_encrypt krb5_c_encrypt_length krb5_cc_register krb5_decode_ticket krb5_get_prompt_types]) + AC_CHECK_FUNCS([add_to_error_table add_error_table krb5_princ_size krb5_principal_get_comp_string encode_krb5_enc_tkt_part encode_krb5_ticket krb5_c_encrypt krb5_decode_ticket krb5_get_prompt_types]) AC_CHECK_FUNCS([krb5_524_convert_creds], , [AC_CHECK_FUNCS([krb524_convert_creds_kdc], , [AC_CHECK_LIB([krb524], [krb524_convert_creds_kdc], @@ -124,10 +124,6 @@ dnl AC_CHECK_MEMBERS([krb5_creds.keyblock, krb5_creds.session],,, [#include ], [], - [ac_linux_syscall=yes], [ac_linux_syscall=no]) - AC_MSG_RESULT($ac_linux_syscall) -]) - AC_DEFUN([LINUX_NEED_RHCONFIG],[ RHCONFIG_SP="" RHCONFIG_MP="" @@ -69,20 +62,6 @@ fi AC_SUBST(MPS) ]) -AC_DEFUN([LINUX_KERNEL_SELINUX],[ -AC_MSG_CHECKING(for SELinux kernel) -AC_CACHE_VAL(ac_cv_linux_kernel_is_selinux, -[ -AC_TRY_KBUILD( - [#include ], - [#ifndef CONFIG_SECURITY_SELINUX - #error not SELINUX - #endif], - ac_cv_linux_kernel_is_selinux=yes, - ac_cv_linux_kernel_is_selinux=no)]) -AC_MSG_RESULT($ac_cv_linux_kernel_is_selinux) -]) - AC_DEFUN([LINUX_KERNEL_LINUX_SEQ_FILE_H],[ AC_MSG_CHECKING(for linux/seq_file.h in kernel) AC_TRY_KBUILD([#include ], [], diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 4d26a054d..05e872bd1 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -151,19 +151,6 @@ printk("%p\n", address);], ac_cv_linux_exports_sys_chdir=no)]) AC_MSG_RESULT($ac_cv_linux_exports_sys_chdir)]) - -AC_DEFUN([LINUX_EXPORTS_SYS_CLOSE], [ - AC_MSG_CHECKING([for exported sys_close]) - AC_CACHE_VAL([ac_cv_linux_exports_sys_close], [ - AC_TRY_KBUILD( -[extern asmlinkage long sys_close(void) __attribute__((weak));], -[void *address = &sys_close; -printk("%p\n", address);], - ac_cv_linux_exports_sys_close=yes, - ac_cv_linux_exports_sys_close=no)]) - AC_MSG_RESULT($ac_cv_linux_exports_sys_close)]) - - AC_DEFUN([LINUX_EXPORTS_SYS_OPEN], [ AC_MSG_CHECKING([for exported sys_open]) AC_CACHE_VAL([ac_cv_linux_exports_sys_open], [ @@ -176,18 +163,6 @@ printk("%p\n", address);], AC_MSG_RESULT($ac_cv_linux_exports_sys_open)]) -AC_DEFUN([LINUX_EXPORTS_SYS_WAIT4], [ - AC_MSG_CHECKING([for exported sys_wait4]) - AC_CACHE_VAL([ac_cv_linux_exports_sys_wait4], [ - AC_TRY_KBUILD( -[extern asmlinkage long sys_wait4(void) __attribute__((weak));], -[void *address = &sys_wait4; -printk("%p\n", address);], - ac_cv_linux_exports_sys_wait4=yes, - ac_cv_linux_exports_sys_wait4=no)]) - AC_MSG_RESULT($ac_cv_linux_exports_sys_wait4)]) - - AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_BLKSIZE], [ AC_MSG_CHECKING([for i_blksize in struct inode]) AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_blksize], [ @@ -226,53 +201,6 @@ printk("%d\n", _inode.i_cdev);], AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_cdev)]) -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_DEVICES], [ - AC_MSG_CHECKING([for i_devices in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_devices], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -printk("%d\n", _inode.i_devices);], - ac_cv_linux_fs_struct_inode_has_i_devices=yes, - ac_cv_linux_fs_struct_inode_has_i_devices=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_devices)]) - - -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS], [ - AC_MSG_CHECKING([for i_dirty_data_buffers in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -printk("%d\n", _inode.i_dirty_data_buffers);], - ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=yes, - ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_dirty_data_buffers)]) - - -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_INOTIFY_LOCK], [ - AC_MSG_CHECKING([for inotify_lock in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_inotify_lock], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -printk("%d\n", _inode.inotify_lock);], - ac_cv_linux_fs_struct_inode_has_inotify_lock=yes, - ac_cv_linux_fs_struct_inode_has_inotify_lock=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_inotify_lock)]) - -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_INOTIFY_SEM], [ - AC_MSG_CHECKING([for inotify_sem in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_inotify_sem], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -printk("%x\n", _inode.inotify_sem);], - ac_cv_linux_fs_struct_inode_has_inotify_sem=yes, - ac_cv_linux_fs_struct_inode_has_inotify_sem=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_inotify_sem)]) - - AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_MAPPING_OVERLOAD], [ AC_MSG_CHECKING([for i_mapping_overload in struct inode]) AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_mapping_overload], [ @@ -321,18 +249,6 @@ printk("%d\n", _inode.i_security);], AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_security)]) -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_SB_LIST], [ - AC_MSG_CHECKING([for i_sb_list in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_sb_list], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -printk("%d\n", _inode.i_sb_list);], - ac_cv_linux_fs_struct_inode_has_i_sb_list=yes, - ac_cv_linux_fs_struct_inode_has_i_sb_list=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_sb_list)]) - - AC_DEFUN([LINUX_RECALC_SIGPENDING_ARG_TYPE], [ AC_MSG_CHECKING([for recalc_sigpending arg type]) AC_CACHE_VAL([ac_cv_linux_func_recalc_sigpending_takes_void], [ @@ -523,17 +439,6 @@ AC_DEFUN([LINUX_KERNEL_HLIST_UNHASHED], [ CPPFLAGS="$save_CPPFLAGS"]) AC_MSG_RESULT($ac_cv_linux_kernel_hlist_unhashed)]) -AC_DEFUN([LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_GFP_MASK], [ - AC_MSG_CHECKING([for gfp_mask in struct address_space]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_address_space_has_gfp_mask], [ - AC_TRY_KBUILD( -[#include ], -[struct address_space _a; -printk("%d\n", _a.gfp_mask);], - ac_cv_linux_fs_struct_address_space_has_gfp_mask=yes, - ac_cv_linux_fs_struct_address_space_has_gfp_mask=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_address_space_has_gfp_mask)]) - AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_BYTES], [ AC_MSG_CHECKING([for i_bytes in struct inode]) @@ -559,30 +464,6 @@ printk("%x\n", _i.i_alloc_sem);], AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_alloc_sem)]) -AC_DEFUN([LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM], [ - AC_MSG_CHECKING([for i_truncate_sem in struct inode]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_inode_has_i_truncate_sem], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _i; -printk("%x\n", _i.i_truncate_sem);], - ac_cv_linux_fs_struct_inode_has_i_truncate_sem=yes, - ac_cv_linux_fs_struct_inode_has_i_truncate_sem=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_truncate_sem)]) - - -AC_DEFUN([LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK], [ - AC_MSG_CHECKING([for page_lock in struct address_space]) - AC_CACHE_VAL([ac_cv_linux_fs_struct_address_space_has_page_lock], [ - AC_TRY_KBUILD( -[#include ], -[struct address_space _a_s; -printk("%x\n", _a_s.page_lock);], - ac_cv_linux_fs_struct_address_space_has_page_lock=yes, - ac_cv_linux_fs_struct_address_space_has_page_lock=no)]) - AC_MSG_RESULT($ac_cv_linux_fs_struct_address_space_has_page_lock)]) - - AC_DEFUN([LINUX_INODE_SETATTR_RETURN_TYPE], [ AC_MSG_CHECKING([for inode_setattr return type]) AC_CACHE_VAL([ac_cv_linux_func_inode_setattr_returns_int], [ @@ -597,20 +478,6 @@ i = inode_setattr(&_inode, &_iattr);], AC_MSG_RESULT($ac_cv_linux_func_inode_setattr_returns_int)]) -AC_DEFUN([LINUX_WRITE_INODE_RETURN_TYPE], [ - AC_MSG_CHECKING([for write_inode return type]) - AC_CACHE_VAL([ac_cv_linux_func_write_inode_returns_int], [ - AC_TRY_KBUILD( -[#include ], -[struct inode _inode; -struct super_operations _sops; -int i; -i = _sops.write_inode(&_inode, 0);], - ac_cv_linux_func_write_inode_returns_int=yes, - ac_cv_linux_func_write_inode_returns_int=no)]) - AC_MSG_RESULT($ac_cv_linux_func_write_inode_returns_int)]) - - AC_DEFUN([LINUX_AOP_WRITEBACK_CONTROL], [ AC_MSG_CHECKING([whether address_space_operations.writepage takes a writeback_control]) AC_CACHE_VAL([ac_cv_linux_func_a_writepage_takes_writeback_control], [ diff --git a/src/cf/solaris-pcorefile.m4 b/src/cf/solaris-pcorefile.m4 deleted file mode 100644 index a350a6000..000000000 --- a/src/cf/solaris-pcorefile.m4 +++ /dev/null @@ -1,17 +0,0 @@ -AC_DEFUN([SOLARIS_PROC_HAS_P_COREFILE], [ -AC_MSG_CHECKING(for p_corefile in struct proc) -AC_CACHE_VAL(ac_cv_solaris_proc_has_p_corefile, -[ -AC_TRY_COMPILE( -[#define _KERNEL -#include ], -[struct proc _proc; -(void) _proc.p_corefile;], -ac_cv_solaris_proc_has_p_corefile=yes, -ac_cv_solaris_proc_has_p_corefile=no)]) -AC_MSG_RESULT($ac_cv_solaris_proc_has_p_corefile) -if test "$ac_cv_solaris_proc_has_p_corefile" = "yes"; then - AC_DEFINE(HAVE_P_COREFILE, 1, [define if struct proc has p_corefile]) -fi -]) - diff --git a/src/config/afsconfig-windows.h b/src/config/afsconfig-windows.h index 0331a8a27..83b7f6e8a 100644 --- a/src/config/afsconfig-windows.h +++ b/src/config/afsconfig-windows.h @@ -48,21 +48,9 @@ /* Define if you have the connect function. */ #undef HAVE_CONNECT -/* Define if you have the getdtablesize function. */ -#undef HAVE_GETDTABLESIZE - /* Define if you have the gethostbyname function. */ #define HAVE_GETHOSTBYNAME -/* Define if you have the random function. */ -#define HAVE_RANDOM - -/* Define if you have the re_comp function. */ -#undef HAVE_RE_COMP - -/* Define if you have the re_exec function. */ -#undef HAVE_RE_EXEC - /* Define if you have the res_search function. */ #undef HAVE_RES_SEARCH @@ -72,12 +60,6 @@ /* Define if you have the socket function. */ #define HAVE_SOCKET -/* Define if you have the srandom function. */ -#undef HAVE_SRANDOM - -/* Define if you have the utimes function. */ -#define HAVE_UTIMES - /* Define if you have the header file. */ #undef HAVE_DIRECT_H @@ -87,12 +69,6 @@ /* Define if you have the header file. */ #define HAVE_FCNTL_H -/* Define if you have the header file. */ -#define HAVE_IO_H - -/* Define if you have the header file. */ -#define HAVE_MALLOC_H - /* Define if you have the header file. */ #undef HAVE_MNTENT_H @@ -108,9 +84,6 @@ /* Define if you have the header file. */ #undef HAVE_SECURITY_PAM_MODULES_H -/* Define if you have the header file. */ -#undef HAVE_SIAD_H - /* Define if you have the header file. */ #define HAVE_SIGNAL_H @@ -162,9 +135,6 @@ /* Define if you have the header file. */ #undef HAVE_UNISTD_H -/* Define if you have the header file. */ -#undef HAVE_USERSEC_H - /* Define if you have the header file. */ #define HAVE_WINDOWS_H -- 2.39.5