1*49cdfc7eSAndroid Build Coastguard WorkerAC_DEFUN([REALTIME_CHECK_PRIO_INHERIT],[ 2*49cdfc7eSAndroid Build Coastguard WorkerAC_MSG_CHECKING([for PTHREAD_PRIO_INHERIT]) 3*49cdfc7eSAndroid Build Coastguard WorkerAC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 4*49cdfc7eSAndroid Build Coastguard Worker#include <pthread.h>]], [[int main(void) { 5*49cdfc7eSAndroid Build Coastguard Worker pthread_mutexattr_t attr; 6*49cdfc7eSAndroid Build Coastguard Worker return pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); 7*49cdfc7eSAndroid Build Coastguard Worker}]])],[has_priority_inherit="yes"],[]) 8*49cdfc7eSAndroid Build Coastguard Workerif test "x$has_priority_inherit" = "xyes" ; then 9*49cdfc7eSAndroid Build Coastguard Worker AC_DEFINE(HAS_PRIORITY_INHERIT,1,[Define to 1 if you have PTHREAD_PRIO_INHERIT]) 10*49cdfc7eSAndroid Build Coastguard Worker AC_MSG_RESULT(yes) 11*49cdfc7eSAndroid Build Coastguard Workerelse 12*49cdfc7eSAndroid Build Coastguard Worker AC_MSG_RESULT(no) 13*49cdfc7eSAndroid Build Coastguard Workerfi 14*49cdfc7eSAndroid Build Coastguard Worker]) 15