From: Bruno Haible Date: Wed, 10 Sep 2025 21:18:04 +0000 (+0200) Subject: threadlib: Remove support for IRIX. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90af73632c211bd2eb19e627e07e22b4261f9c41;p=thirdparty%2Fgnulib.git threadlib: Remove support for IRIX. * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Assume that pthread_mutexattr_init and pthread_mutex_lock are defined in the same library. --- diff --git a/ChangeLog b/ChangeLog index 99f1d3b6f7..33aef6fcdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2025-09-10 Bruno Haible + threadlib: Remove support for IRIX. + * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Assume that + pthread_mutexattr_init and pthread_mutex_lock are defined in the same + library. + sys_select-h: Remove support for IRIX. * lib/sys_select.in.h: Remove code for IRIX. diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index fef2fe2ecb..c12729a948 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -1,5 +1,5 @@ # threadlib.m4 -# serial 46 +# serial 47 dnl Copyright (C) 2005-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -186,9 +186,7 @@ AC_DEFUN([gl_PTHREADLIB_BODY], # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads - # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist - # in libc. IRIX 6.5 has the first one in both libc and libpthread, but - # the second one only in libpthread, and lock.c needs it. + # Test whether both pthread_mutex_lock exists in libc. # # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 # needs -pthread for some reason. See: @@ -200,10 +198,8 @@ AC_DEFUN([gl_PTHREADLIB_BODY], [AC_LANG_PROGRAM( [[#include pthread_mutex_t m; - pthread_mutexattr_t ma; ]], - [[pthread_mutex_lock (&m); - pthread_mutexattr_init (&ma);]])], + [[pthread_mutex_lock (&m);]])], [gl_pthread_api=yes LIBPTHREAD=$gl_pthread LIBPMULTITHREAD=$gl_pthread]) @@ -648,8 +644,6 @@ dnl dnl HP-UX 11 posix -lpthread N (cc) OK dnl Y (gcc) dnl -dnl IRIX 6.5 posix -lpthread Y 0.5 -dnl dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK dnl dnl Cygwin posix -lpthread Y OK