Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkZSt-0007E4-Il for pgsql-bugs@arkaria.postgresql.org; Tue, 31 Jul 2018 18:33:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkZSq-0005pk-U3 for pgsql-bugs@arkaria.postgresql.org; Tue, 31 Jul 2018 18:33:44 +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.89) (envelope-from ) id 1fkZSq-0005pd-KU for pgsql-bugs@lists.postgresql.org; Tue, 31 Jul 2018 18:33:44 +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.89) (envelope-from ) id 1fkZSj-0005lV-Mj for pgsql-bugs@lists.postgresql.org; Tue, 31 Jul 2018 18:33:43 +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 w6VIXY2o003695; Tue, 31 Jul 2018 14:33:34 -0400 From: Tom Lane To: dingxiangfei2009@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15306: Use pkg-config for searching libxml2 header In-reply-to: <153300834113.1397.11820371991264228844@wrigleys.postgresql.org> References: <153300834113.1397.11820371991264228844@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Tue, 31 Jul 2018 03:39:01 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3693.1533062014.1@sss.pgh.pa.us> Date: Tue, 31 Jul 2018 14:33:34 -0400 Message-ID: <3694.1533062014@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > This is an improvement suggestion. In the configure script, > https://github.com/postgres/postgres/blob/master/configure.in#L896 > this part uses `xml2-config` program to find the `libxml2` headers. Right ... > It would be more appropriate to use pkg-config program to search `libxml2` > headers. Why? Under what circumstances would xml2-config not be present (assuming that libxml2 is) or give a less desirable answer than pkg-config? What would you have us do on platforms lacking pkg-config? regards, tom lane