- Notifications
You must be signed in to change notification settings - Fork28
Commit0bc8ceb
committed
Use pkg-config, if available, to locate libxml2 during configure.
If pkg-config is installed and knows about libxml2, use its informationrather than asking xml2-config. Otherwise proceed as before. Thispatch allows "configure --with-libxml" to succeed on platforms thathave pkg-config but not xml2-config, which is likely to soon becomea typical situation.The old mechanism can be forced by setting XML2_CONFIG explicitly(hence, build processes that were already doing so will certainlynot need adjustment). Also, it's now possible to set XML2_CFLAGSand XML2_LIBS explicitly to override both programs.There is a small risk of this breaking existing build processes,if there are multiple libxml2 installations on the machine andpkg-config disagrees with xml2-config about which to use. Theonly case where that seems really likely is if a builder has triedto select a non-default xml2-config by putting it early in his PATHrather than setting XML2_CONFIG. Plan to warn against that in theminor release notes.Back-patch to v10; before that we had no pkg-config infrastructure,and it doesn't seem worth adding it for this.Hugh McMaster and Tom Lane; Peter Eisentraut also made an earlierattempt at this, from which I lifted most of the docs changes.Discussion:https://postgr.es/m/CAN9BcdvfUwc9Yx5015bLH2TOiQ-M+t_NADBSPhMF7dZ=pLa_iw@mail.gmail.com1 parent28e0a10 commit0bc8ceb
3 files changed
+283
-161
lines changed0 commit comments
Comments
(0)