##***************************************************************************** # AUTHOR: # Morris Jette # # SYNOPSIS: # X_AC_PTRACE # # DESCRIPTION: # Test argument count of ptrace function. # # WARNINGS: # This macro must be placed after AC_PROG_CC or equivalent. ##***************************************************************************** AC_DEFUN([X_AC_PTRACE], [ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include #include ]], [[ptrace(PT_TRACE_ME,0,0,0,0);]])],[AC_DEFINE(PTRACE_FIVE_ARGS, 1, [Define to 1 if ptrace takes five arguments.])],[]) AC_CHECK_FUNCS(ptrace64, [], []) ])