From patchwork Sat Dec 31 05:00:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Klose X-Patchwork-Id: 89414 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp6716511qgi; Fri, 30 Dec 2016 21:01:14 -0800 (PST) X-Received: by 10.99.130.72 with SMTP id w69mr89515977pgd.139.1483160474338; Fri, 30 Dec 2016 21:01:14 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id d23si32627620plj.108.2016.12.30.21.01.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Dec 2016 21:01:14 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-445141-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-445141-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-445141-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=ROjyk+2iYBtEtZ85DSxTT9P1PbVUWBJT/GklfzNRVB6bLDPto0 kq9/jlKOIfz/0B7sgTAVEzFKbNQAZg3rWu7qI143e58bmwFjLRuzcy20AGO163QR k1P7nb7Vmb0Bu/DESz2A94g/6OxvwGJcT+YxWJaQ5jhB3Hh+QBp9RE014= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=s/laN2C3VsQ440XCuD8o73BWYhE=; b=aBYxsLo7YoHdgNZQxZAq b/9CLsSX8I1/DsOtefrCY5U3DZHdqZKjOFf00vJej15OOOmLFFXwm9C44qgCOHXQ MuwH6+QuKIv/bMN/QK2/l+uvqRUT90LHUVg0CUmLBHHheiEPUArib8Ou0oGrEAtI ND+WFVdu6FBngCTsQ15aeyE= Received: (qmail 81357 invoked by alias); 31 Dec 2016 05:00:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 81338 invoked by uid 89); 31 Dec 2016 05:00:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=U*doko, sd, D*ubuntu.com, dokoubuntucom X-HELO: einhorn.in-berlin.de Received: from einhorn.in-berlin.de (HELO einhorn.in-berlin.de) (192.109.42.8) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 31 Dec 2016 05:00:48 +0000 X-Envelope-From: doko@ubuntu.com Received: from [192.168.1.235] ([49.228.228.119]) (authenticated bits=0) by einhorn.in-berlin.de (8.14.4/8.14.4/Debian-8+deb8u1) with ESMTP id uBV50eCC004799 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 31 Dec 2016 06:00:42 +0100 To: GCC Patches , Rainer Orth , Andrew Pinski From: Matthias Klose Subject: [patch] [libobjc] allow default/fallback in --with-target-bdw-gc-include configure option Message-ID: Date: Sat, 31 Dec 2016 06:00:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 This addresses PR libobjc/78697, allowing a common include dir for all multilib variants. Tested with a libgc installation in /opt/gcc/include, /opt/gcc/lib32, /opt/gcc/lib64 and configured with --prefix=/opt/gcc7 --enable-languages=c,c++,objc --disable-shared --enable-objc-gc=yes --with-multilib-list=m32,m64 --enable-checking=release --disable-bootstrap --with-target-bdw-gc-include=/opt/gcc/include --with-target-bdw-gc-lib=/opt/gcc/lib64,32=/opt/gcc/lib32 Ok for the trunk? Matthias libobjc/ 2016-12-24 Matthias Klose PR libobjc/78697 * configure.ac: Allow default for --with-target-bdw-gc-include. * configure: Regenerate. libobjc/ 2016-12-24 Matthias Klose PR libobjc/78697 * configure.ac: Allow default for --with-target-bdw-gc-include. * configure: Regenerate. Index: libobjc/configure.ac =================================================================== --- libobjc/configure.ac (revision 243987) +++ libobjc/configure.ac (working copy) @@ -256,16 +256,19 @@ for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do case "$i" in *=*) sd=${i%%=*}; d=${i#*=} ;; - *) sd=.; d=$i ;; + *) sd=.; d=$i; fallback=$i ;; esac if test "$mldir" = "$sd"; then bdw_val=$d fi done - if test "x$bdw_val" = x; then + if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then + bdw_inc_dir="$fallback" + elif test "x$bdw_val" = x; then AC_MSG_ERROR([no multilib path ($mldir) found in --with-target-bdw-gc-include]) + else + bdw_inc_dir="$bdw_val" fi - bdw_inc_dir="$bdw_val" fi bdw_val= if test "x$with_target_bdw_gc_lib" != x; then