pkgconf

Find and manage compiler flags and library metadata for C/C++ projects

brewmacoslinux
Try with needOr install directly
Source

About

Package compiler and linker metadata toolkit

Commands

pkgconfpkg-config

Examples

get compiler flags for a library$ pkgconf --cflags openssl
get linker flags for a library$ pkgconf --libs openssl
check if a library is installed and get its version$ pkgconf --modversion openssl
get both compiler and linker flags at once$ pkgconf --cflags --libs openssl zlib
list all installed packages with their versions$ pkgconf --list-all