--- boinc-5.2.14/configure.orig	2006-07-08 01:59:11.000000000 +0100
+++ boinc-5.2.14/configure	2006-07-08 01:59:16.000000000 +0100
@@ -21510,7 +21510,7 @@
       ## add libcurl et al. to the list of statically linked libs
       STATIC_LIB_LIST="${STATIC_LIB_LIST} curl idn crypto ssl krb5 k5crypto gssapi_krb5 com_err resolv"
       CPPFLAGS="${CPPFLAGS} ${LIBCURL_CPPFLAGS}"
-      CURL_LIB_PATHS=`echo $LIBCURL | sed 's/-l[^ ]*//g'`
+      CURL_LIB_PATHS=`echo $LIBCURL | sed 's/ \+-l[^ ]*//g'`
       LDFLAGS="$CURL_LIB_PATHS $LDFLAGS"
 
       if test "${enable_debug}" = yes; then
