From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6006 invoked by alias); 8 Nov 2017 21:24:27 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 5855 invoked by uid 89); 8 Nov 2017 21:24:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=08.11.2017, walton, Walton, H*M:online X-HELO: mailout11.t-online.de Received: from mailout11.t-online.de (HELO mailout11.t-online.de) (194.25.134.85) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Nov 2017 21:24:15 +0000 Received: from fwd37.aul.t-online.de (fwd37.aul.t-online.de [172.20.27.137]) by mailout11.t-online.de (Postfix) with SMTP id 9FEE842435D1 for ; Wed, 8 Nov 2017 22:24:06 +0100 (CET) Received: from [192.168.2.28] (GEQPSTZBghO7kyx-P1Cy9UuGTEVl-liH4dhcSoPtY+9edsvAmEcEWz+uhwRF9JkgIo@[91.59.1.114]) by fwd37.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eCXpO-2HloK80; Wed, 8 Nov 2017 22:24:06 +0100 Subject: Re: Autoconf stanza to test for Newlib? To: newlib@sourceware.org References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Thu, 09 Nov 2017 15:40:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017/txt/msg01101.txt.bz2 Am 08.11.2017 um 01:13 schrieb Jeffrey Walton: > Hi Everyone, > > We are trying to add Autoool support to an existing library. We don't > do much of anything special if Newlib is the runtime library. We just > need to add an _XOPEN_SOURCE=600. It doesn't make terribly much sense to have to define such a macro only for Newlib. If your code needs that macro for Newlib, it'll need it for all libc implementations, or at least all that do know about it. Given that, I believe you should be looking for AC_USE_SYSTEM_EXTENSIONS instead.