- prepare cinfo on queue_send
[oweals/gnunet.git] / configure.ac
index 1c87569b11974df70546d1456f72e3819bf9b6bd..78f7be9ab8be606673ab0c5d2b4fe665fc91617e 100644 (file)
@@ -326,7 +326,14 @@ AC_LANG_POP(C)
 fi     # $build = $target
 
 # libcurl
-LIBCURL_CHECK_CONFIG(,7.21.3,,AC_MSG_ERROR([GNUnet requires libcurl >= 7.21.3]))
+LIBCURL_CHECK_CONFIG(,7.21.3,curl=1,curl=0)
+if test "$curl" = 1
+then
+       AM_CONDITIONAL(HAVE_LIBCURL, true)
+       AC_DEFINE([HAVE_LIBCURL],[1],[Have libcurl])
+else
+       AM_CONDITIONAL(HAVE_LIBCURL, false)
+fi
 # restore LIBS
 LIBS=$SAVE_LIBS
 
@@ -690,7 +697,7 @@ AC_FUNC_VPRINTF
 AC_HEADER_SYS_WAIT
 AC_TYPE_OFF_T
 AC_TYPE_UID_T
-AC_CHECK_FUNCS([atoll stat64 strnlen mremap setrlimit sysconf initgroups strndup gethostbyname2 getpeerucred getpeereid setresuid $funcstocheck getifaddrs freeifaddrs getresgid])
+AC_CHECK_FUNCS([atoll stat64 strnlen mremap setrlimit sysconf initgroups strndup gethostbyname2 getpeerucred getpeereid setresuid $funcstocheck getifaddrs freeifaddrs getresgid mallinfo])
 
 # restore LIBS
 LIBS=$SAVE_LIBS
@@ -1123,6 +1130,12 @@ then
   AC_MSG_NOTICE([NOTICE: sqlite not found.  sqLite support will not be compiled.])
 fi
 
+# libcurl
+if test "x$curl" = "x0"
+then
+  AC_MSG_NOTICE([NOTICE: libcurl not found.  http client support will not be compiled.])
+fi
+
 #gnutls
 if test x$gnutls != xtrue
 then