Uh oh!
There was an error while loading. Please reload this page.
Correctly check for pkg-config - #1885
Conversation
It is a tool, and needs the correct prefix for cross-compiling. Also, if $PKG_CONFIG is set, either by the user or AC_PATh_TOOL, we can consider it will be executable. A bare "test -x" is not enough for package managers which set $PKG_CONFIG to <prefix>-pkg-config (not absolute). Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
krakjoe
commented
Jan 7, 2017
@remicollet can I ask that you review this please ? |
orlitzky
commented
Jul 19, 2017
You switched from |
orlitzky
commented
Jul 19, 2017
Nevermind, I see it now: the |
sardemff7
commented
Jul 19, 2017
What kind of failures are you trying to catch here? This check just seems annoying, since every other good user of Autotools just use the |
orlitzky
commented
Jul 19, 2017
You're right that the actual invocation of pkgconfig will fail if it's not executable, I just think it's a slightly better design to decide up front what the If, on the other hand, we let I just happened across this issue by accident and decided to look over the change, so my suggestion isn't the law =) I do however agree with the goal. |
sardemff7
commented
Jul 19, 2017
I see. However, |
KalleZ
commented
Aug 22, 2017
@remicollet with the recent changes to use pkg-config in curl I think it was, I suppose this could be merged as well? |
cmb69
commented
Nov 27, 2018
@eli-schwartz Is this PR obsolete due to PR #3632 and #3654? |
eli-schwartz
commented
Nov 28, 2018
Yes.
|
It is a tool, and needs the correct prefix for cross-compiling.
Also, if
$PKG_CONFIGis set, either by the user orAC_PATH_TOOL, we canconsider it will be executable.
A bare
test -xis not enough for package managers which set$PKG_CONFIGto<prefix>-pkg-config(not absolute).