The pkg-config package contains a tool for passing the include path and/or library paths to build tools during the configure and make file execution.
Pkg-Config will use an included version of Popt to parse command line options. If an external version of Popt is desired, install that version using the BLFS Popt build instructions before installing Pkg-config.
Fix a problem with one of Pkg-config's tests:
sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options
Prepare Pkg-config for compilation:
GLIB_LIBS="-L/usr/lib -lglib-2.0" \ GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" \ ./configure --prefix=/usr
Compile the package:
make
To test the results, issue:
make check
Install the package:
make install