From 33e54195ac25be24016763fc272b613283f65c44 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 25 Jan 2023 09:38:00 +0100 Subject: [PATCH] threadlib: Fix support for Solaris 9 and older. * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Allow case patterns to survive m4 processing by using changequote. --- ChangeLog | 6 ++++++ m4/threadlib.m4 | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd7fd9ab5d..917bb85017 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-01-25 Nick Bowler (tiny change) + + threadlib: Fix support for Solaris 9 and older. + * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Allow case patterns to survive + m4 processing by using changequote. + 2023-01-24 Bruno Haible stdalign: Fix a compilation error on FreeBSD 12.0. diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index ff959346c0..b536b04750 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -1,4 +1,4 @@ -# threadlib.m4 serial 32 +# threadlib.m4 serial 32a dnl Copyright (C) 2005-2023 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -261,7 +261,9 @@ AC_DEFUN([gl_PTHREADLIB_BODY], # On Solaris 10 or newer, this test is no longer needed, because # libc contains the fully functional pthread functions. case "$host_os" in +changequote(,)dnl solaris | solaris2.[1-9] | solaris2.[1-9].* | hpux*) +changequote([,])dnl AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1], [Define if the pthread_in_use() detection is hard.]) esac -- 2.39.5