--- setup.py.orig	2007-10-11 15:24:20.000000000 +0200
+++ setup.py	2007-10-11 15:24:54.000000000 +0200
@@ -56,11 +56,7 @@
 # - iconv.h 
 # - libxslt/xsltconfig.h
 includes_dir = [
-"/usr/include",
-"/usr/local/include",
-"/opt/include",
-os.path.join(ROOT,'include'),
-HOME
+"@PREFIX@/include",
 ];
 
 xml_includes=""
@@ -85,7 +81,7 @@
 
 # those are added in the linker search path for libraries
 libdirs = [
-os.path.join(ROOT,'lib'),
+"@PREFIX@/lib"
 ]
 
 xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
@@ -122,32 +118,6 @@
     result.close()
 
 with_xslt=0
-if missing("libxslt-py.c") or missing("libxslt.py"):
-    if missing("xsltgenerator.py") or missing("libxslt-api.xml"):
-        print "libxslt stub generator not found, libxslt not built"
-    else:
-	try:
-	    import xsltgenerator
-	except:
-	    print "failed to generate stubs for libxslt, aborting ..."
-	    print sys.exc_type, sys.exc_value
-	else:
-	    head = open("libxsl.py", "r")
-	    generated = open("libxsltclass.py", "r")
-	    result = open("libxslt.py", "w")
-	    for line in head.readlines():
-                if WITHDLLS:
-                    result.write(altImport(line))
-                else:
-                    result.write(line)
-	    for line in generated.readlines():
-		result.write(line)
-	    head.close()
-	    generated.close()
-	    result.close()
-	    with_xslt=1
-else:
-    with_xslt=1
 
 if with_xslt == 1:
     xslt_includes=""
