summaryrefslogtreecommitdiffstats
path: root/lib/replace/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript22
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index fd53999dce1..a26de0f8bae 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -458,20 +458,26 @@ removeea setea
if conf.CONFIG_SET('HAVE_PTHREAD'):
conf.CHECK_DECLS('pthread_mutexattr_setrobust', headers='pthread.h')
- conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust', 'pthread',
- checklibc=True, headers='pthread.h')
+ if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEXATTR_SETROBUST'):
+ conf.CHECK_DECLS('pthread_mutexattr_setrobust_np',
+ headers='pthread.h')
- conf.CHECK_DECLS('pthread_mutexattr_setrobust_np', headers='pthread.h')
- conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
+ conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust', 'pthread',
checklibc=True, headers='pthread.h')
+ if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST'):
+ conf.CHECK_FUNCS_IN('pthread_mutexattr_setrobust_np', 'pthread',
+ checklibc=True, headers='pthread.h')
conf.CHECK_DECLS('pthread_mutex_consistent', headers='pthread.h')
- conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
- checklibc=True, headers='pthread.h')
+ if not conf.CONFIG_SET('HAVE_DECL_PTHREAD_MUTEX_CONSISTENT'):
+ conf.CHECK_DECLS('pthread_mutex_consistent_np',
+ headers='pthread.h')
- conf.CHECK_DECLS('pthread_mutex_consistent_np', headers='pthread.h')
- conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
+ conf.CHECK_FUNCS_IN('pthread_mutex_consistent', 'pthread',
checklibc=True, headers='pthread.h')
+ if not conf.CONFIG_SET('HAVE_PTHREAD_MUTEX_CONSISTENT'):
+ conf.CHECK_FUNCS_IN('pthread_mutex_consistent_np', 'pthread',
+ checklibc=True, headers='pthread.h')
if ((conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST') or
conf.CONFIG_SET('HAVE_PTHREAD_MUTEXATTR_SETROBUST_NP')) and