1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 07:37:38 +01:00

Fix tests for PTRACE_* and PT_*.

Submitted by:	Arun Sharma
This commit is contained in:
Konstantin Belousov 2010-04-05 23:19:03 +03:00
parent 979af4502f
commit ad6b2f94b9

View file

@ -61,21 +61,17 @@ AC_CHECK_TYPES([sighandler_t], [], [],
#endif
])
AC_DEFUN([AC_CHECK_PTRACE_DECL],
[for pxxx in $1; do
AC_CHECK_DECLS($pxxx, [], [],
AC_CHECK_DECLS([PTRACE_POKEUSER, PTRACE_POKEDATA, PTRACE_CONT,
PTRACE_TRACEME, PTRACE_CONT, PTRACE_SIGNLESTEP,
PTRACE_SYSCALL, PT_IO, PT_GETREGS,
PT_GETFPREGS, PT_CONTINUE, PT_TRACE_ME,
PT_STEP, PT_SYSCALL], [], [],
[$ac_includes_default
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/ptrace.h>
])
done]
)
AC_CHECK_PTRACE_DECL([PTRACE_POKEUSER PTRACE_POKEDATA PTRACE_CONT \
PTRACE_TRACEME PTRACE_CONT PTRACE_SIGNLESTEP PTRACE_SYSCALL PT_IO PT_GETREGS \
PT_GETFPREGS PT_CONTINUE PT_TRACE_ME PT_STEP PT_SYSCALL])
dnl Checks for library functions.
AC_FUNC_MEMCMP