-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Correctly check for pkg-config #1885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <[email protected]>
8cfe0db
to
8ec9a74
Compare
@remicollet can I ask that you review this please ? |
You switched from |
Nevermind, I see it now: the |
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 |
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. |
I see. However, |
@remicollet with the recent changes to use pkg-config in curl I think it was, I suppose this could be merged as well? |
@eli-schwartz Is this PR obsolete due to PR #3632 and #3654? |
Yes.
|
It is a tool, and needs the correct prefix for cross-compiling.
Also, if
$PKG_CONFIG
is set, either by the user orAC_PATH_TOOL
, we canconsider it will be executable.
A bare
test -x
is not enough for package managers which set$PKG_CONFIG
to<prefix>-pkg-config
(not absolute).