From: Fraser Tweedale Date: Thu, 22 May 2014 04:04:36 +0000 (+1000) Subject: Re: [PATCH] configure: use cc/c++ when GCC not installed X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1929b7766090fb2bd140cbbe66b299b8a28f2f6;p=notmuch-archives.git Re: [PATCH] configure: use cc/c++ when GCC not installed --- diff --git a/77/174777e76fc5251c63a20bd9c80383ab6c8f12 b/77/174777e76fc5251c63a20bd9c80383ab6c8f12 new file mode 100644 index 000000000..c174ef4aa --- /dev/null +++ b/77/174777e76fc5251c63a20bd9c80383ab6c8f12 @@ -0,0 +1,94 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 1904E431FC4 + for ; Wed, 21 May 2014 21:04:51 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id C4Nf98SYxASv for ; + Wed, 21 May 2014 21:04:47 -0700 (PDT) +Received: from captainmorgan.hollandpark.frase.id.au + (110-174-235-130.static.tpgi.com.au [110.174.235.130]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 1B31F431FAE + for ; Wed, 21 May 2014 21:04:45 -0700 (PDT) +Received: from bacardi.hollandpark.frase.id.au + (bacardi.hollandpark.frase.id.au [192.168.0.100]) + by captainmorgan.hollandpark.frase.id.au (8.14.5/8.14.5) with ESMTP id + s4M44cj7030323; Thu, 22 May 2014 14:04:38 +1000 (EST) + (envelope-from frase@frase.id.au) +Received: from bacardi.hollandpark.frase.id.au (localhost [127.0.0.1]) + by bacardi.hollandpark.frase.id.au (8.14.7/8.14.7) with ESMTP id + s4M44cNe093343 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 + verify=NO); Thu, 22 May 2014 14:04:38 +1000 (EST) + (envelope-from frase@frase.id.au) +Received: (from fraser@localhost) + by bacardi.hollandpark.frase.id.au (8.14.7/8.14.7/Submit) id + s4M44a1f093342; Thu, 22 May 2014 14:04:36 +1000 (EST) + (envelope-from frase@frase.id.au) +X-Authentication-Warning: bacardi.hollandpark.frase.id.au: fraser set sender + to frase@frase.id.au using -f +Date: Thu, 22 May 2014 14:04:36 +1000 +From: Fraser Tweedale +To: Felipe Contreras +Subject: Re: [PATCH] configure: use cc/c++ when GCC not installed +Message-ID: <20140522040434.GW62147@bacardi.hollandpark.frase.id.au> +References: <1400662721-68562-1-git-send-email-frase@frase.id.au> + <537d73afe956_1bf76cb3085c@nysa.notmuch> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +Content-Disposition: inline +In-Reply-To: <537d73afe956_1bf76cb3085c@nysa.notmuch> +User-Agent: Mutt/1.5.23 (2014-03-12) +Cc: notmuch@notmuchmail.org +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 22 May 2014 04:04:51 -0000 + +On Wed, May 21, 2014 at 10:49:03PM -0500, Felipe Contreras wrote: +> Fraser Tweedale wrote: +> > Some systems (e.g. FreeBSD 10) do not ship with the GNU Compiler +> > Collection. Use generic cc/c++ as a fallback when gcc/g++ are not +> > available. +> > --- +> > configure | 12 ++++++++++-- +> > 1 file changed, 10 insertions(+), 2 deletions(-) +> > +> > diff --git a/configure b/configure +> > index 9bde2eb..3f4942b 100755 +> > --- a/configure +> > +++ b/configure +> > @@ -43,8 +43,16 @@ fi +> > +> > # Set several defaults (optionally specified by the user in +> > # environment variables) +> > -CC=${CC:-gcc} +> > -CXX=${CXX:-g++} +> +> Why not just use cc and c++? + +I intended to change the behaviour as little as possible, however, +if you and others are satisfied to simply use cc/c++ then I will +make it so. + +> -- +> Felipe Contreras