[sheepdog] [PATCH stable-0.8 4/9] sheepfs: add check for libcurl in configure.ac

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Thu Mar 6 08:12:39 CET 2014


From: Robin Dong <sanbai at taobao.com>

Check header and library for libcurl in configure.ac

Signed-off-by: Robin Dong <sanbai at taobao.com>
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
 configure.ac |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 7602e57..f4b1750 100644
--- a/configure.ac
+++ b/configure.ac
@@ -333,6 +333,10 @@ if test "x${enable_sheepfs}" = xyes; then
 	AC_CHECK_HEADERS([fuse.h],,
 		AC_MSG_ERROR(fuse.h header missing),
 		[#define _FILE_OFFSET_BITS 64])
+	AC_CHECK_LIB([curl], [curl_easy_init],,
+		AC_MSG_ERROR(libcurl not found))
+	AC_CHECK_HEADERS([curl/curl.h],,
+		AC_MSG_ERROR(curl.h header missing))
 	AC_DEFINE_UNQUOTED([HAVE_SHEEPFS], 1, [have sheepfs])
 	PACKAGE_FEATURES="$PACKAGE_FEATURES sheepfs"
 	PKG_CHECK_EXISTS(fuse >= 2.8.0,
-- 
1.7.10.4




More information about the sheepdog mailing list