I removed glib 1.2.10 by doing pkgrm SUNWGlib. I no longer have glib-config so I can't tell what is going on. I reinstall glib 2.14.1 but still didn't have it. When I try and install GTK+ 2.10.14 I get the below error. I added /lib:/usr/lib:/usr/X11R6/lib to the LD_LIBRARY_PATH and did the same in ld.so.conf. There is no ldconfig on my box. The issue still remains.
checking for GLIB - version >= 2.12.0... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error:
*** GLIB 2.12.0 or better is required. The latest version of
*** GLIB is always available from
ftp://ftp.gtk.org/pub/gtk/.