From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2854 invoked by alias); 16 Mar 2011 01:40:34 -0000 Received: (qmail 2838 invoked by uid 22791); 16 Mar 2011 01:40:32 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 01:40:28 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 83BA32BAFDA; Tue, 15 Mar 2011 21:40:26 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id i4dNJzlmEVfI; Tue, 15 Mar 2011 21:40:26 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 595442BAFB3; Tue, 15 Mar 2011 21:40:26 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 1E2FC1459B0; Wed, 16 Mar 2011 05:40:23 +0400 (RET) Date: Wed, 16 Mar 2011 04:48:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Add 'getthrds' declaration check in configure for AIX Message-ID: <20110316014023.GO31264@adacore.com> References: <1300231553-27938-1-git-send-email-brobecker@adacore.com> <201103160017.45295.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103160017.45295.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00829.txt.bz2 > > +# Older versions of AIX do not provide the declaration for the getthrds > > +# function (it appears that it was introduced with AIX 6.x). > > +AC_CHECK_DECLS(getthrds, [], [], [[#include ]]) > > + > > Any reason this isn't done close to where we check for AIX > thread support, and decide to whether to build aix-thread.c in the > first place? Look for "AiX thread debugging library" further down. No specific reason, no. I placed the check there because it seemed to be the general area where we make cheks of this kind (checks for library functions, ptrace prototypes, etc). But I'm happy to move it next to the AIX thread detection check. We could even perform the check on AIX only, although I had the feeling that we usually this type of check regardless of the host (this is the case for the ptrace checks, for instance). -- Joel