Avoid errors when curl-config does not exist
authorPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 16:22:38 +0000 (17:22 +0100)
committerPaul Brook <paul@codesourcery.com>
Fri, 22 May 2009 16:22:38 +0000 (17:22 +0100)
Signed-off-by: Paul Brook <paul@codesourcery.com>
configure

index 6ab4d808bf218a08f56497a5d56c7db93d7600cd..4729c7fa35a1969d8761604d70519b0e9078502d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1073,7 +1073,7 @@ if test "$curl" = "yes" ; then
 #include <curl/curl.h>
 int main(void) { return curl_easy_init(); }
 EOF
-  curl_libs=`curl-config --libs`
+  curl_libs=`curl-config --libs 2>/dev/null`
  if $cc $ARCH_CFLAGS $curl_libs -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
     curl=yes
   fi