God, this has gone from bad to worse!
OK, I patched that file, but it inserted some lines in config.mak that say "Perhaps you should add the directory containing `gtk+-2.0.pc' to the PKG_CONFIG_PATH environment variable." So, I went to verify that I had gtk+-2.0 installed:
whereis gtk+-2.0 produced no results, so I downloaded the source for gtk+ 2.2.3 and went to install it. It told me my glib-2.0 dependencies were not met. So, I installed glib-2.2.3, and went back to configure gtk+-2.2.3. It gives me this message:
error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
I looked and both glib and pango are installed, so I figured it must be atk that isn't installed. I went to configure atk-1.2.4, and got the following error message:
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
Executing grep glib config.log gives:
configure:9786:18: glib.h: No such file or directory
configure:9792: error: `glib_major_version' undeclared (first use in this function)
configure:9792: error: `glib_minor_version' undeclared (first use in this function)
configure:9792: error: `glib_micro_version' undeclared (first use in this function)
| #include <glib.h>
| return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
Doing a whereis glib.h shows that it is in /usr/lib/glib/
WHAT THE HECK IS GOING ON HERE? Sorry for the long post, but I'm trying to provide as much information as possible.