Developer and Packager NotesUsing pkg-config to determine pathsDevelopers or packagers of PKCS#11 modules need to install various
files into specific locations so that p11-kit will recognize and load the
module correctly.You should use pkg-config as described below
to determine configuration paths. p11-kit installs a
pkg-config file called p11-kit-1.pc.
This file contains all the information about the various paths that p11-kit
looks for files at.Path to place module configurationAs described in the module configuration
documentation, each PKCS#11 module should install a config file describing
that module. These config files should be installed to a specific directory which
can be determined by running:
$ pkg-config p11-kit-1 --variable p11_system_config_modules
/etc/pkcs11/modulesDefault path for modules with relative pathsIf a module configuration
contains a relative path in its module: setting,
then that module will be loaded from the default module path. This
path can be determined by running:
$ pkg-config p11-kit-1 --variable p11_module_path
/usr/lib64/pkcs11