Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNmDL-0001Ko-KZ for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 00:45:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNmDJ-0000K4-HX for pgsql-hackers@arkaria.postgresql.org; Sun, 21 Mar 2021 00:45:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNmDJ-0000Jx-AW for pgsql-hackers@lists.postgresql.org; Sun, 21 Mar 2021 00:45:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNmDH-0004hA-07 for pgsql-hackers@lists.postgresql.org; Sun, 21 Mar 2021 00:45:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12L0irDY309338; Sat, 20 Mar 2021 20:44:54 -0400 From: Tom Lane To: Justin Pryzby cc: Robert Haas , Dilip Kumar , Andres Freund , Tomas Vondra , Alexander Korotkov , David Steele , Ildus Kurbangaliev , Dmitry Dolgov <9erthalion6@gmail.com>, Andrey Borodin , pgsql-hackers@lists.postgresql.org Subject: Re: [HACKERS] Custom compression methods (mac+lz4.h) In-reply-to: <20210320231957.GX11765@telsasoft.com> References: <20210319163511.GL11765@telsasoft.com> <20210319174425.GM11765@telsasoft.com> <20210320212302.GW11765@telsasoft.com> <301730.1616276227@sss.pgh.pa.us> <20210320231957.GX11765@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Sat, 20 Mar 2021 18:19:57 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <309336.1616287493.1@sss.pgh.pa.us> Date: Sat, 20 Mar 2021 20:44:53 -0400 Message-ID: <309337.1616287493@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > On Sat, Mar 20, 2021 at 05:37:07PM -0400, Tom Lane wrote: >> Digging around, it looks like the "-I/opt/local/include" bit came >> from LZ4_CFLAGS, which we then stuck into CFLAGS, but it needed >> to be put in CPPFLAGS in order to make this test work. > If it's the same as the issue Andrey reported, then it causes a ./configure > WARNING, which is resolved by the ac_save hack, which I copied from ICU. I think probably what we need to do, rather than shove the pkg-config results willy-nilly into our flags, is to disassemble them like we do with the same results for xml2. If you ask me, the way we are handling ICU flags is a poor precedent that is going to blow up at some point; the only reason it hasn't is that people aren't building --with-icu that much yet. regards, tom lane