From cb13f0787d77c5e36f79ab18f492a52e0ec11123 Mon Sep 17 00:00:00 2001 From: Timotej S <6674623+underhood@users.noreply.github.com> Date: Mon, 27 Jun 2022 16:03:20 +0200 Subject: Removes Legacy JSON Cloud Protocol Support In Agent (#13111) * removes old protocol support (cloud removed support already) --- configure.ac | 83 ++++++++++++++++++++++-------------------------------------- 1 file changed, 30 insertions(+), 53 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9d97e562ec..f656c5a455 100644 --- a/configure.ac +++ b/configure.ac @@ -218,14 +218,6 @@ AC_ARG_ENABLE( [ enable_cloud="detect" ] ) -AC_ARG_WITH( - [new-cloud-protocol], - [AS_HELP_STRING([--with-new-cloud-protocol], - [Requires New Cloud Protocol support to be built])], - [new_cloud_protocol="$withval"], - [new_cloud_protocol="detect"] -) - if test "${enable_cloud}" = "no"; then AC_DEFINE([DISABLE_CLOUD], [1], [disable netdata cloud functionality]) fi @@ -768,16 +760,16 @@ AC_MSG_CHECKING([if Cloud functionality should be enabled]) AC_MSG_RESULT([${enable_cloud}]) if test "$enable_cloud" != "no"; then - AC_MSG_NOTICE([Checking if ACLK Next Generation can be built]) + AC_MSG_NOTICE([Checking if ACLK can be built]) can_enable_ng="yes" - AC_MSG_CHECKING([if git submodules present for ACLK Next Generation]) + AC_MSG_CHECKING([if git submodules present for ACLK]) if test -f "mqtt_websockets/src/mqtt_wss_client.c"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) can_enable_ng="no" fi - AC_MSG_CHECKING([if SSL available for ACLK Next Generation]) + AC_MSG_CHECKING([if SSL available for ACLK]) if test -n "${SSL_LIBS}"; then AC_MSG_RESULT([yes]) OPTIONAL_SSL_CFLAGS="${SSL_CFLAGS}" @@ -785,7 +777,7 @@ if test "$enable_cloud" != "no"; then else AC_MSG_RESULT([no]) fi - AC_MSG_CHECKING([if JSON-C available for ACLK Next Generation]) + AC_MSG_CHECKING([if JSON-C available for ACLK]) if test "$enable_jsonc" != "yes"; then AC_MSG_RESULT([no]) can_enable_ng="no" @@ -793,6 +785,28 @@ if test "$enable_cloud" != "no"; then AC_MSG_RESULT([yes]) fi + AC_MSG_CHECKING([if protobuf available for ACLK New Cloud Protocol]) + if test "${have_libprotobuf}" != "yes"; then + AC_MSG_RESULT([no]) + can_enable_ng="no" + else + AC_MSG_RESULT([yes]) + fi + AC_MSG_CHECKING([if protoc available for ACLK New Cloud Protocol]) + if test "${have_protoc}" != "yes"; then + AC_MSG_RESULT([no]) + can_enable_ng="no" + else + AC_MSG_RESULT([yes]) + fi + AC_MSG_CHECKING([if C++ compiler available for ACLK New Cloud Protocol]) + if test "${have_CXX_compiler}" != "yes"; then + AC_MSG_RESULT([no]) + can_enable_ng="no" + else + AC_MSG_RESULT([yes]) + fi + AC_MSG_CHECKING([ACLK Next Generation can be built]) AC_MSG_RESULT([${can_enable_ng}]) if test "$can_enable_ng" = "no" -a "$enable_cloud" = "yes"; then @@ -801,46 +815,10 @@ if test "$enable_cloud" != "no"; then if test "$can_enable_ng" = "yes"; then enable_aclk="yes" AC_DEFINE([ENABLE_ACLK], [1], [netdata ACLK]) - OPTIONAL_ACLK_CFLAGS="-I \$(abs_top_srcdir)/mqtt_websockets/src/include -I \$(abs_top_srcdir)/mqtt_websockets/c-rbuf/include -I \$(abs_top_srcdir)/mqtt_websockets/MQTT-C/include" - fi - - if test "$new_cloud_protocol" != "no"; then - can_build_new_cloud_protocol="yes" - AC_MSG_CHECKING([if protobuf available for New Cloud Protocol]) - if test "${have_libprotobuf}" != "yes"; then - AC_MSG_RESULT([no]) - can_build_new_cloud_protocol="no" - else - AC_MSG_RESULT([yes]) - fi - AC_MSG_CHECKING([if protoc available for New Cloud Protocol]) - if test "${have_protoc}" != "yes"; then - AC_MSG_RESULT([no]) - can_build_new_cloud_protocol="no" - else - AC_MSG_RESULT([yes]) - fi - AC_MSG_CHECKING([if C++ compiler available for New Cloud Protocol]) - if test "${have_CXX_compiler}" != "yes"; then - AC_MSG_RESULT([no]) - can_build_new_cloud_protocol="no" - else - AC_MSG_RESULT([yes]) - fi - - AC_MSG_CHECKING([ACLK Next Generation can support New Cloud protocol]) - AC_MSG_RESULT([${can_build_new_cloud_protocol}]) - if test "$new_cloud_protocol" = "yes" -a "$can_build_new_cloud_protocol" != "yes"; then - AC_MSG_ERROR([Requested new cloud protocol support but it can't be build]) - fi - if test "$can_build_new_cloud_protocol" = "yes"; then - new_cloud_protocol="yes" - AC_DEFINE([ENABLE_NEW_CLOUD_PROTOCOL], [1], [New protobuf based Netdata Cloud Protocol Support]) - OPTIONAL_ACLK_CFLAGS="${OPTIONAL_ACLK_CFLAGS} -I \$(abs_top_srcdir)/aclk/aclk-schemas" - OPTIONAL_PROTOBUF_CFLAGS="${PROTOBUF_CFLAGS}" - CXX11FLAG="-std=c++11" - OPTIONAL_PROTOBUF_LIBS="${PROTOBUF_LIBS}" - fi + OPTIONAL_ACLK_CFLAGS="-I \$(abs_top_srcdir)/mqtt_websockets/src/include -I \$(abs_top_srcdir)/mqtt_websockets/c-rbuf/include -I \$(abs_top_srcdir)/mqtt_websockets/MQTT-C/include -I \$(abs_top_srcdir)/aclk/aclk-schemas" + OPTIONAL_PROTOBUF_CFLAGS="${PROTOBUF_CFLAGS}" + CXX11FLAG="-std=c++11" + OPTIONAL_PROTOBUF_LIBS="${PROTOBUF_LIBS}" fi fi @@ -851,7 +829,6 @@ fi AC_SUBST([enable_cloud]) AC_SUBST([enable_aclk]) AM_CONDITIONAL([ENABLE_ACLK], [test "${enable_aclk}" = "yes"]) -AM_CONDITIONAL([ENABLE_NEW_CLOUD_PROTOCOL], [test "${can_build_new_cloud_protocol}" = "yes"]) # ----------------------------------------------------------------------------- # apps.plugin -- cgit v1.2.3