...
This script is very similar to what magics-config offered previously, but pkg-config is more general while magics-config was very Magics specific options. For example:
gcc gcc -o wind wind.c $(pkg-config --libs --cflags magics)
gfortran gfortran -o wind wind.f -lMagPlusSingle $(pkg-config --libs magics)
gfortran gfortran -o wind wind.f
-fdefault-real-8
-lMagPlusDouble $(pkg-config --libs magics)
To find the these information about the Magics compilation the environment, the variable PKG_CONFIG_PATH needs to contain the directory $MAGPLUS_HOME/lib/pkgconfig:
export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:$MAGPLUS_HOME/lib/pkgconfig
. For more information visit pkg-config on Wikipedia.