 + 	    hasConnectionHeader = YES;
 + 	}
 + 	
---- sope-4.9.r1660.orig/sope-core/NGStreams/GNUmakefile.preamble
-+++ sope-4.9.r1660/sope-core/NGStreams/GNUmakefile.preamble
-@@ -1,6 +1,6 @@
- # compilation settings
- 
--MACHCPU = $(shell echo $$MACHTYPE | cut -f 1 -d '-')
-+MACHCPU = $(shell /usr/bin/arch)
- 
- libNGStreams_INCLUDE_DIRS += \
- 	-I$(GNUSTEP_TARGET_CPU)/$(GNUSTEP_TARGET_OS) \
+--- sope-4.9.r1660.orig/debian/patches/debian-build-mysql.diff
++++ sope-4.9.r1660/debian/patches/debian-build-mysql.diff
+@@ -0,0 +1,13 @@
++diff -durpN sope-4.9.r1660.orig/configure sope-4.9.r1660/configure
++--- configure.orig	2009-10-28 09:46:53.000000000 -0400
+++++ configure	2009-10-28 09:48:41.000000000 -0400
++@@ -475,8 +475,8 @@ checkDependencies() {
++     checkLinking "ssl"         required; # TODO: make optional
++   fi
++   checkLinking "pq"          optional;
++-  checkLinking "sqlite3"     optional;
++   checkLinking "mysqlclient" optional;
+++  checkLinking "sqlite3"     optional;
++ }
++ 
++ runIt() {

--- sope-4.9.r1660.orig/configure
+++ sope-4.9.r1660/configure
@@ -427,8 +427,8 @@
   checkLinking "ldap"        optional;
   checkLinking "ssl"         required; # TODO: make optional
   checkLinking "pq"          optional;
-  checkLinking "sqlite3"     optional;
   checkLinking "mysqlclient" optional;
+  checkLinking "sqlite3"     optional;
 }
 
 function runIt() {
--- sope-4.9.r1660.orig/debian/sope_SOPEVER_-gdl1-postgresql.install
+++ sope-4.9.r1660/debian/sope_SOPEVER_-gdl1-postgresql.install
@@ -1 +1 @@

 
 	-. $(GNUSTEP_SETUP); $(MAKE) clean
 	-. $(GNUSTEP_SETUP); $(MAKE) distclean
@@ -116,24 +121,24 @@
 	dh_clean -k 
 	dh_installdirs
 
