The following patch adds a PKG_CHECK_EXISTS() macro. A fair number of Gnome packages do things like this: PKG_CHECK_MODULES(NOTUSED, somepackage, somepackage_exists=yes, somepackage_exists=no) And don't use the resulting NOTUSED_CFLAGS / NOTUSED_LIBS environment variables. The PKG_CHECK_EXISTS() macro only does the --exists check, without setting variables or exiting if there is no ACTION-IF-NOT-FOUND and the check fails. It also logs the check to config.log. I also modified the _PKG_CONFIG() macro to use PKG_CHECK_EXISTS().
Created attachment 2885 [details] [review] check version requirement plus other minor fixes
2005-06-27 Tollef Fog Heen <tfheen@err.no> * pkg.m4: Add PKG_CHECK_EXISTS to check if a module exists. Thanks to James Henstridge for the patch.
pkg-config 0.18 has now been released with a fix for this bug.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.