I guess that you have glib-2.0, but its version is lower that 2.6.4, that's why ./configure complains. Usually these libraries are installed in /usr/lib and you can run
pkg-config --modversion glib-2.0
to find the vesrion.
Use your distro's package manager to see if it's installed and to upgrade to the latest version.
If you have installed the library yourself in a non standard place you can adjust the PKG_CONFIG_PATH like this: