Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcMlf-00085A-Ph for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 02:18:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcMlf-0007Ic-95 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 02:18:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcMld-0007Gg-V5 for pgsql-hackers@postgresql.org; Tue, 01 Aug 2017 02:18:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcMlb-0001HD-9G for pgsql-hackers@postgresql.org; Tue, 01 Aug 2017 02:18:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v712IYl4015283; Mon, 31 Jul 2017 22:18:34 -0400 From: Tom Lane To: Peter Eisentraut cc: Noah Misch , Andrew Dunstan , pgsql-hackers@postgresql.org Subject: Re: PL_stashcache, or, what's our minimum Perl version? In-reply-to: References: <20540.1501210115@sss.pgh.pa.us> <16894.1501392088@sss.pgh.pa.us> <20170730154814.GA2636941@rfd.leadboat.com> <22744.1501430710@sss.pgh.pa.us> <20170730163054.GA2630977@rfd.leadboat.com> <25937.1501433410@sss.pgh.pa.us> <9072.1501527316@sss.pgh.pa.us> <90a92a7d-938e-507a-3bd7-ecd2b4004689@2ndquadrant.com> <14432.1501529890@sss.pgh.pa.us> <7fbd4508-23c5-f426-d374-6c72e20bbce9@2ndquadrant.com> <18305.1501534485@sss.pgh.pa.us> Comments: In-reply-to Peter Eisentraut message dated "Mon, 31 Jul 2017 20:54:28 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15281.1501553914.1@sss.pgh.pa.us> Date: Mon, 31 Jul 2017 22:18:34 -0400 Message-ID: <15282.1501553914@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Peter Eisentraut writes: > On 7/31/17 16:54, Tom Lane wrote: >> Maybe "which" isn't the best tool for the job, not sure. > Yeah, "which" is not portable. This would need a bit more work and > portability testing. Fair enough. This late in beta is probably not the time to be adding new portability testing needs. However, I noticed that some places --- not consistently everywhere --- were solving this with the low-tech method of just skipping AC_PATH_PROG if the variable is already set. We could apply that hack more consistently by inventing a PGAC_PATH_PROGS wrapper macro as I previously sketched, but for now just defining it as # Let the user override the search for $1 if test -z "$$1"; then AC_PATH_PROGS($@) fi (untested, but you get the idea). In the long run I would like to improve this to force the supplied value into absolute-path form, but I'd be content to ship v10 like that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers