Index: configure
--- configure.orig	2008-12-06 16:13:00 +0100
+++ configure	2008-12-07 19:05:46 +0100
@@ -36843,7 +36843,7 @@
 
    for path in /usr/local/pgsql/lib /usr/pgsql/lib
    do
-      LIBS="$save_LIBS  -L$path -lpq"
+      LIBS="$save_LIBS  -L$path -lpq -lssl -lcrypto"
       cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -36884,7 +36884,7 @@
 	 test ! -s conftest.err
        } && test -s conftest$ac_exeext &&
        $as_test_x conftest$ac_exeext; then
-  ra_cv_lib_pq=" -L$path -lpq"
+  ra_cv_lib_pq=" -L$path -lpq -lssl -lcrypto"
                         break
 else
   echo "$as_me: failed program was:" >&5
