diff -ru curl-7.17.1/configure.ac curl-7.17.1-new/configure.ac --- curl-7.17.1/configure.ac 2007-10-27 00:25:18.000000000 +0200 +++ curl-7.17.1-new/configure.ac 2007-11-06 02:00:53.000000000 +0100 @@ -174,6 +174,7 @@ esac AC_MSG_RESULT($mimpure) AM_CONDITIONAL(MIMPURE, test x$mimpure = xyes) +AM_CONDITIONAL(STATIC, false) AC_MSG_CHECKING([if we need BUILDING_LIBCURL]) case $host in @@ -185,6 +186,7 @@ then AC_DEFINE(CURL_STATICLIB, 1, [when not building a shared library]) AC_MSG_RESULT(yes) + AM_CONDITIONAL(STATIC, true) else AC_MSG_RESULT(no) fi diff -ru curl-7.17.1/docs/examples/Makefile.am curl-7.17.1-new/docs/examples/Makefile.am --- curl-7.17.1/docs/examples/Makefile.am 2007-09-14 22:23:32.000000000 +0200 +++ curl-7.17.1-new/docs/examples/Makefile.am 2007-11-06 01:23:40.000000000 +0100 @@ -11,6 +11,10 @@ LIBDIR = $(top_builddir)/lib CPPFLAGS = -DCURL_NO_OLDIES +if STATIC +AM_CPPFLAGS = -DCURL_STATICLIB +endif + # Dependencies LDADD = $(LIBDIR)/libcurl.la