File Imaging-1.1.7-64bit.patch of Package python-imaging

Index: setup.py
===================================================================
--- setup.py.orig
+++ setup.py
@@ -15,7 +15,7 @@ except OSError:
 
 def libinclude(root):
     # map root to (root/lib, root/include)
-    return os.path.join(root, "lib"), os.path.join(root, "include")
+    return os.path.join(root, sys.lib), os.path.join(root, "include")
 
 # --------------------------------------------------------------------
 # Library pointers.
@@ -147,12 +147,12 @@ class pil_build_ext(build_ext):
             add_directory(library_dirs, "/opt/local/lib")
             add_directory(include_dirs, "/opt/local/include")
 
-        add_directory(library_dirs, "/usr/local/lib")
+        add_directory(library_dirs, os.path.join("/usr/local",sys.lib))
         # FIXME: check /opt/stuff directories here?
 
         prefix = sysconfig.get_config_var("prefix")
         if prefix:
-            add_directory(library_dirs, os.path.join(prefix, "lib"))
+            add_directory(library_dirs, os.path.join(prefix, sys.lib))
             add_directory(include_dirs, os.path.join(prefix, "include"))
 
         #
@@ -208,10 +208,10 @@ class pil_build_ext(build_ext):
                 add_directory(include_dirs, tcl_dir)
 
         # standard locations
-        add_directory(library_dirs, "/usr/local/lib")
+        add_directory(library_dirs, os.path.join("/usr/local",sys.lib))
         add_directory(include_dirs, "/usr/local/include")
 
-        add_directory(library_dirs, "/usr/lib")
+        add_directory(library_dirs, os.path.join("/usr",sys.lib))
         add_directory(include_dirs, "/usr/include")
 
         #