mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
STABLE12-linux-one-more-stupid-configure-test-20030321
pointed out by zacheiss@mit.edu that i missed this. oops
(cherry picked from commit 4731e86a44
)
This commit is contained in:
parent
7109a0d3a3
commit
c9481ff6b2
@ -45,6 +45,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
|
|||||||
#undef STRUCT_INODE_HAS_I_TRUNCATE_SEM
|
#undef STRUCT_INODE_HAS_I_TRUNCATE_SEM
|
||||||
#undef STRUCT_TASK_STRUCT_HAS_PARENT
|
#undef STRUCT_TASK_STRUCT_HAS_PARENT
|
||||||
#undef STRUCT_TASK_STRUCT_HAS_REAL_PARENT
|
#undef STRUCT_TASK_STRUCT_HAS_REAL_PARENT
|
||||||
|
#undef STRUCT_TASK_STRUCT_HAS_SIG
|
||||||
#undef STRUCT_TASK_STRUCT_HAS_SIGHAND
|
#undef STRUCT_TASK_STRUCT_HAS_SIGHAND
|
||||||
#undef STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK
|
#undef STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK
|
||||||
#undef ssize_t
|
#undef ssize_t
|
||||||
|
@ -154,6 +154,7 @@ case $system in
|
|||||||
LINUX_RECALC_SIGPENDING_ARG_TYPE
|
LINUX_RECALC_SIGPENDING_ARG_TYPE
|
||||||
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_PARENT
|
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_PARENT
|
||||||
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_REAL_PARENT
|
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_REAL_PARENT
|
||||||
|
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIG
|
||||||
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGHAND
|
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGHAND
|
||||||
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK
|
LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK
|
||||||
LINUX_WHICH_MODULES
|
LINUX_WHICH_MODULES
|
||||||
@ -243,6 +244,9 @@ case $system in
|
|||||||
if test "x$ac_cv_linux_sched_struct_task_struct_has_sighand" = "xyes"; then
|
if test "x$ac_cv_linux_sched_struct_task_struct_has_sighand" = "xyes"; then
|
||||||
AC_DEFINE(STRUCT_TASK_STRUCT_HAS_SIGHAND, 1, [define if your struct task_struct has sighand])
|
AC_DEFINE(STRUCT_TASK_STRUCT_HAS_SIGHAND, 1, [define if your struct task_struct has sighand])
|
||||||
fi
|
fi
|
||||||
|
if test "x$ac_cv_linux_sched_struct_task_struct_has_sig" = "xyes"; then
|
||||||
|
AC_DEFINE(STRUCT_TASK_STRUCT_HAS_SIG, 1, [define if your struct task_struct has sig])
|
||||||
|
fi
|
||||||
:
|
:
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
@ -298,6 +298,21 @@ AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_real_parent)
|
|||||||
CPPFLAGS="$save_CPPFLAGS"])
|
CPPFLAGS="$save_CPPFLAGS"])
|
||||||
|
|
||||||
|
|
||||||
|
AC_DEFUN(LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIG, [
|
||||||
|
AC_MSG_CHECKING(for sig in struct task_struct)
|
||||||
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
|
||||||
|
AC_CACHE_VAL(ac_cv_linux_sched_struct_task_struct_has_sig,
|
||||||
|
[
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#include <linux/sched.h>],
|
||||||
|
[struct task_struct _tsk;
|
||||||
|
printf("%d\n", _tsk.sig);],
|
||||||
|
ac_cv_linux_sched_struct_task_struct_has_sig=yes,
|
||||||
|
ac_cv_linux_sched_struct_task_struct_has_sig=no)])
|
||||||
|
AC_MSG_RESULT($ac_cv_linux_sched_struct_task_struct_has_sig)
|
||||||
|
CPPFLAGS="$save_CPPFLAGS"])
|
||||||
|
|
||||||
AC_DEFUN(LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK, [
|
AC_DEFUN(LINUX_SCHED_STRUCT_TASK_STRUCT_HAS_SIGMASK_LOCK, [
|
||||||
AC_MSG_CHECKING(for sigmask_lock in struct task_struct)
|
AC_MSG_CHECKING(for sigmask_lock in struct task_struct)
|
||||||
save_CPPFLAGS="$CPPFLAGS"
|
save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user