Re: patch to have configure check if CC is intel C compiler

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jeremy Drake <pgsql-patches(at)jdrake(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: patch to have configure check if CC is intel C compiler
Date: 2006-04-21 23:11:42
Message-ID: 200604212311.k3LNBgN27708@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Comment added and patch applied. Thanks.

---------------------------------------------------------------------------

Jeremy Drake wrote:
> If configure sees that the compiler specified by $CC looks like gcc
> (defines __GNUC__), then it puts some extra command line options into the
> CFLAGS (mostly -W*). The intel C compiler for linux emulates gcc by
> default, which means it defines that and looks very much like gcc to
> configure. However, it does not get along with the added -W flags very
> well. They don't seem to kill it, but some of them give warnings about
> unsupported command line options and others produce insane amounts of
> output from the compiler.
>
> This patch makes configure check for the __INTEL_COMPILER define (which is
> the recommended way to detect the intel compiler) before adding the extra
> CFLAGS if it thinks the compiler is GCC. I am not an autoconf hacker, so
> I may have done it wrong or something, but it appears to work for me (ICC
> 9.0.032 on gentoo i686 with latest packages).
>
> The patch is against the HEAD but I think it should be similar for other
> branches (I have been compiling 8.0 and 8.1 for some time with the intel
> compiler by manually massaging the makefiles after configure ran).
>
>
> --
> We the unwilling, led by the ungrateful, are doing the impossible.
> We've done so much, for so long, with so little,
> that we are now qualified to do something with nothing.

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-04-21 23:30:10 Re: Win32 sysconfig -> pg_service.conf
Previous Message Simon Riggs 2006-04-21 23:11:09 Re: [PERFORM] WAL logging of SELECT ... INTO command