« Prev 4.2.5 Checking for a Program | Table of Contents | Next » 4.2.7 Custom Configuration Checks |
The check_cfg
method can be used to check for the existence of a package as
well as import any build options (e.g. include path, defines, libraries to link
against, etc...) required to use the package.
This method takes a Hash of options as its only argument.
Example calls:
configure do check_cfg package: "zlib" check_cfg program: "freetype-config", fail: false, set_define: "HAVE_FREETYPE" end
:package
If the :package
option is set to a value, the pkg-config
program will be
used to look for package configuration flags for the specified package.
:program
If the :program
option is given, the program specified will be used to look
for configuration flags.
:use
If not set, the library will be used by default in all Environment
objects.
If set, the library will only be used in Environment
objects that have a
matching :use
flag set.
« Prev 4.2.5 Checking for a Program | Table of Contents | Next » 4.2.7 Custom Configuration Checks |