From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 604651F47C for ; Wed, 25 Jan 2023 03:54:11 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKWrE-00005Y-Oe; Tue, 24 Jan 2023 22:53:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKWrD-00005D-C0 for bug-gnulib@gnu.org; Tue, 24 Jan 2023 22:53:55 -0500 Received: from mta01.start.ca ([162.250.196.97]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pKWrB-0000WG-Vb for bug-gnulib@gnu.org; Tue, 24 Jan 2023 22:53:55 -0500 Received: from mta01.start.ca (localhost [127.0.0.1]) by mta01.start.ca (Postfix) with ESMTP id EEAC92085E; Tue, 24 Jan 2023 22:53:51 -0500 (EST) Received: from localhost (dhcp-24-53-241-20.cable.user.start.ca [24.53.241.20]) by mta01.start.ca (Postfix) with ESMTPS id C4BC52084A; Tue, 24 Jan 2023 22:53:51 -0500 (EST) From: Nick Bowler To: bug-gnulib@gnu.org Subject: [PATCH] threadlib: fix case patterns for older Solaris. Date: Tue, 24 Jan 2023 22:53:45 -0500 Message-Id: <20230125035345.26562-1-nbowler@draconx.ca> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: none client-ip=162.250.196.97; envelope-from=nbowler@draconx.ca; helo=mta01.start.ca X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org The case pattern which matches solaris2.[1-9] etc. is not fully quoted, so the brackets get eaten by m4 and don't actually make it into the resulting configure script, giving just: case "$host_os" in solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) which is obviously not correct. * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): Allow case patterns to survive m4 processing by using changequote. --- m4/threadlib.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index 48ced460b3..49bc99ef3b 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -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.35.1