--- Setup.py.orig	2005-03-10 21:29:59.000000000 -0700
+++ Setup.py	2009-04-14 21:29:03.000000000 -0600
@@ -40,6 +40,7 @@
 # Unixoid OS's I will just look for the usual suspects.
 
 libdirs = dirtest([
+    "PREFIX/lib",
     "/usr/local/lib", "/sw/lib", "/usr/lib",
     "/usr/lib/X11", "/usr/X11R6/lib",
     "/opt/gnome/lib",
@@ -48,6 +49,7 @@
 # include_dirs are also non-portable; same trick here.
 
 incdirs = dirtest([
+    "PREFIX/include",
     "/usr/local/include", "/sw/include", "/usr/include",
     "/usr/include/X11", "/usr/X11R6/include",
     "/opt/gnome/include",
@@ -56,7 +58,7 @@
 # Try to identify our libraries
 
 want_libs = [
-    "gd",
+    "gd", "iconv",
     "jpeg", "png", "gif", "z",
     "X11", "Xpm",
     "ttf", "freetype",