cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libcurl in Windows

From: Andres Garcia <fandom_at_retemail.es>
Date: Wed, 20 Apr 2005 15:24:34 +0200

Hi,

> > Dave Dribin post made me realize the problem is that CURL_STATICLIB is
> > not set when '--enable-shared=no' is used.
>
> Would you be able to write a patch for this?

I think this should do the trick:

diff -ru curl/configure.ac curl-new/configure.ac
--- curl/configure.ac    Tue Apr 19 07:23:08 2005
+++ curl-new/configure.ac    Wed Apr 20 07:44:10 2005
@@ -122,6 +122,13 @@
   *-*-mingw*)
     AC_DEFINE(BUILDING_LIBCURL, 1, [when building libcurl itself])
     AC_MSG_RESULT(yes)
+    AC_MSG_CHECKING([if we need CURL_STATICLIB])
+    if test "X$enable_shared" = "Xno"; then
+        AC_DEFINE(CURL_STATICLIB, 1, [when not building a shared library])
+        AC_MSG_RESULT(yes)
+    else
+        AC_MSG_RESULT(no)
+    fi
     ;;
   *)
     AC_MSG_RESULT(no)

Andres
Received on 2005-04-20