--- configure.orig	Sun Oct 21 15:46:58 2007
+++ configure	Sun Oct 21 15:47:18 2007
@@ -2902,7 +2902,7 @@
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcurl  $LIBS"
+LIBS="`$curl_config --libs`  $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
