Index: couchdb-0.0.2/config.m4
--- couchdb-0.0.2/config.m4.orig	2009-10-19 10:52:42.000000000 +0200
+++ couchdb-0.0.2/config.m4	2010-07-31 15:10:55.000000000 +0200
@@ -9,9 +9,9 @@
 	PHP_SUBST(COUCHDB_SHARED_LIBADD)
 
 	PHP_ADD_LIBRARY(curl,,COUCHDB_SHARED_LIBADD) 
+	COUCHDB_SHARED_LIBADD="$COUCHDB_SHARED_LIBADD -lssl -lcrypto"
 
 	PHP_NEW_EXTENSION(couchdb, couchdb.c, $ext_shared)
-	CFLAGS="$CFLAGS -Wall -g"
 
 	PHP_ADD_EXTENSION_DEP(couchdb, curl)
 	PHP_ADD_EXTENSION_DEP(couchdb, json)
