-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
bpo-45723: Add --with-pkg-config to configure (GH-29517) #29517
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
e6a5f7e to
d0e72b7
Compare
Let users require or ignore pkg-config. ``--with-pkg-config`` makes pkg-config mandatory. ``--without-pkg-config`` disables use of pkg-config. Disabling is also useful to check how configure behaves without pkg-config installed. Signed-off-by: Christian Heimes <[email protected]>
d0e72b7 to
f1bd071
Compare
erlend-aasland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think a note in Build Changes in What's New would be nice.
| if test -z "$PKG_CONFIG"; then | ||
| dnl invalidate stale config.cache values | ||
| AS_UNSET([PKG_CONFIG]) | ||
| AS_UNSET([ac_cv_path_ac_pt_PKG_CONFIG]) | ||
| AS_UNSET([ac_cv_prog_ac_ct_PKG_CONFIG]) | ||
| fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsetting PKG_CONFIG and friends if PKG_CONFIG is not set? Is there a missing ! in the test? Is this check needed at all; the config.cache guard is pretty strict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's un-declaring the variables when it's empty. This solves a corner case when going from ./configure -C --without-pkg-config to ./configure -C --with-pkg-config=yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you are able to find a better way...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. No, this is fine. I can't think of a better way.
|
Is it worth it listing the packages we actually use |
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
The pkg-config m4 macro will do that for us. |
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
Let users require or ignore pkg-config.
--with-pkg-configmakespkg-config mandatory.
--without-pkg-configdisables use ofpkg-config. Disabling is also useful to check how configure behaves
without pkg-config installed.
Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue45723