diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c8a726a1a..e8f9dcd6cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -132,13 +132,13 @@ endif() set(USE_ELASTICSEARCH false) set(USE_CURL false) -find_package(CURL) +find_package(LibCURL) -if (CURL_FOUND) +if (LIBCURL_FOUND) set(USE_ELASTICSEARCH true) set(USE_CURL true) - include_directories(BEFORE ${CURL_INCLUDE_DIR}) - list(APPEND OPTLIBS ${CURL_LIBRARIES}) + include_directories(BEFORE ${LibCURL_INCLUDE_DIR}) + list(APPEND OPTLIBS ${LibCURL_LIBRARIES}) endif() if (ENABLE_PERFTOOLS_DEBUG) diff --git a/configure b/configure index 8e4aaa8425..c67c02f76d 100755 --- a/configure +++ b/configure @@ -61,6 +61,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]... --with-swig=PATH path to SWIG executable --with-dataseries=PATH path to DataSeries and Lintel libraries --with-xml2=PATH path to libxml2 installation (for DataSeries) + --with-curl=PATH path to libcurl install root (for ElasticSearch) Packaging Options (for developers): --binary-package toggle special logic for binary packaging @@ -234,6 +235,9 @@ while [ $# -ne 0 ]; do --with-xml2=*) append_cache_entry LibXML2_ROOT_DIR PATH $optarg ;; + --with-curl=*) + append_cache_entry LibCURL_ROOT_DIR PATH $optarg + ;; --binary-package) append_cache_entry BINARY_PACKAGING_MODE BOOL true ;; diff --git a/testing/btest/coverage/bare-mode-errors.test b/testing/btest/coverage/bare-mode-errors.test index 635726841b..894c9e67f4 100644 --- a/testing/btest/coverage/bare-mode-errors.test +++ b/testing/btest/coverage/bare-mode-errors.test @@ -10,5 +10,5 @@ # @TEST-EXEC: test -d $DIST/scripts # @TEST-EXEC: for script in `find $DIST/scripts/ -name \*\.bro -not -path '*/site/*'`; do echo $script; if echo "$script" | egrep -q 'communication/listen|controllee'; then rm -rf load_attempt .bgprocs; btest-bg-run load_attempt bro -b $script; btest-bg-wait -k 2; cat load_attempt/.stderr >>allerrors; else bro -b $script 2>>allerrors; fi done || exit 0 # @TEST-EXEC: cat allerrors | grep -v "received termination signal" | sort | uniq > unique_errors -# @TEST-EXEC: if [ $(grep -c CURL_INCLUDE_DIR-NOTFOUND $BUILD/CMakeCache.txt) -ne 0 ]; then cp unique_errors unique_errors_no_elasticsearch; fi -# @TEST-EXEC: if [ $(grep -c CURL_INCLUDE_DIR-NOTFOUND $BUILD/CMakeCache.txt) -ne 0 ]; then btest-diff unique_errors_no_elasticsearch; else btest-diff unique_errors; fi +# @TEST-EXEC: if [ $(grep -c LibCURL_INCLUDE_DIR-NOTFOUND $BUILD/CMakeCache.txt) -ne 0 ]; then cp unique_errors unique_errors_no_elasticsearch; fi +# @TEST-EXEC: if [ $(grep -c LibCURL_INCLUDE_DIR-NOTFOUND $BUILD/CMakeCache.txt) -ne 0 ]; then btest-diff unique_errors_no_elasticsearch; else btest-diff unique_errors; fi