From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115934 invoked by alias); 22 May 2017 07:18:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 115920 invoked by uid 89); 22 May 2017 07:18:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 May 2017 07:18:06 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 535E08133F for ; Mon, 22 May 2017 09:18:06 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DzwPGPq6K77a for ; Mon, 22 May 2017 09:18:06 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 1511C812E0 for ; Mon, 22 May 2017 09:18:06 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Add check for sys/capability.h Date: Mon, 22 May 2017 07:27:00 -0000 Message-ID: <3562696.NdlOsQfm3r@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-53-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart1969811.bODDlz421r" Content-Transfer-Encoding: 7Bit X-SW-Source: 2017-05/txt/msg01652.txt.bz2 This is a multi-part message in MIME format. --nextPart1969811.bODDlz421r Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Content-length: 360 In preparation for an upcoming improvement. Tested on x86_64-suse-linux, applied on the mainline. 2017-05-22 Eric Botcazou libada/ * configure.ac: Add check for sys/capability.h header. (have_capability): New substitution. * configure: Regenerate. * Makefile.in (GNATLIBCFLAGS_FOR_C): Add @have_capability@. -- Eric Botcazou --nextPart1969811.bODDlz421r Content-Disposition: attachment; filename="p.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="p.diff" Content-length: 988 Index: Makefile.in =================================================================== --- Makefile.in (revision 248140) +++ Makefile.in (working copy) @@ -61,7 +61,7 @@ PICFLAG = @PICFLAG@ GNATLIBFLAGS= -W -Wall -gnatpg -nostdinc GNATLIBCFLAGS= -g -O2 GNATLIBCFLAGS_FOR_C = -W -Wall $(GNATLIBCFLAGS) $(CFLAGS_FOR_TARGET) \ - -fexceptions -DIN_RTS @have_getipinfo@ + -fexceptions -DIN_RTS @have_getipinfo@ @have_capability@ host_subdir = @host_subdir@ GCC_DIR=$(MULTIBUILDTOP)../../$(host_subdir)/gcc Index: configure.ac =================================================================== --- configure.ac (revision 248140) +++ configure.ac (working copy) @@ -144,6 +144,10 @@ if test x$have_unwind_getipinfo = xyes; fi AC_SUBST(have_getipinfo) +# Check for +AC_CHECK_HEADER([sys/capability.h], have_capability=-DHAVE_CAPABILITY, have_capability=) +AC_SUBST(have_capability) + # Determine what GCC version number to use in filesystem paths. GCC_BASE_VER --nextPart1969811.bODDlz421r--