From 62522b0345af7a1cd0e614afc080c6714249b8ca Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 23 Apr 2015 20:18:20 +0800 Subject: [PATCH] configure.ac: check for libcurl and libxml2 if build libs3 Fixes: #11458 Signed-off-by: Kefu Chai --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index febb58e102bea..a8986bcb14eab 100644 --- a/configure.ac +++ b/configure.ac @@ -787,6 +787,12 @@ AC_ARG_WITH([rest-bench], [with_rest_bench=no]) AM_CONDITIONAL(WITH_REST_BENCH, [ test "$with_rest_bench" = "yes" ]) +# needs libcurl and libxml2 +if test "x$with_rest_bench" = xyes && test "x$with_system_libs3" = xno; then + AC_CHECK_LIB([curl], [curl_easy_init], [], AC_MSG_ERROR([libcurl not found])) + AC_CHECK_LIB([xml2], [xmlParseChunk], [], AC_MSG_ERROR([libxml2 not found])) +fi + # use libaio? AC_ARG_WITH([libaio], [AS_HELP_STRING([--without-libaio], [disable libaio use by journal])], -- 2.39.5