You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.7 KiB

  1. From 893bfc98d3f33d02ce6d6a3a48fb02c964156fb5 Mon Sep 17 00:00:00 2001
  2. From: Markos Fountoulakis <markos.fountoulakis.senior@gmail.com>
  3. Date: Wed, 14 Aug 2019 11:55:50 +0300
  4. Subject: [PATCH] Stop configure.ac from linking against dbengine and https
  5. libraries when dbengine or https are disabled
  6. ---
  7. configure.ac | 28 +++++++++++++---------------
  8. 1 file changed, 13 insertions(+), 15 deletions(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index 56e484cc2c..8dbdcaa17f 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -280,9 +280,6 @@ AC_CHECK_LIB(
  14. [UV_LIBS="-luv"]
  15. )
  16. -OPTIONAL_UV_CFLAGS="${UV_CFLAGS}"
  17. -OPTIONAL_UV_LIBS="${UV_LIBS}"
  18. -
  19. # -----------------------------------------------------------------------------
  20. # lz4 Extremely Fast Compression algorithm
  21. @@ -293,9 +290,6 @@ AC_CHECK_LIB(
  22. [LZ4_LIBS="-llz4"]
  23. )
  24. -OPTIONAL_LZ4_CFLAGS="${LZ4_CFLAGS}"
  25. -OPTIONAL_LZ4_LIBS="${LZ4_LIBS}"
  26. -
  27. # -----------------------------------------------------------------------------
  28. # Judy General purpose dynamic array
  29. @@ -306,9 +300,6 @@ AC_CHECK_LIB(
  30. [JUDY_LIBS="-lJudy"]
  31. )
  32. -OPTIONAL_JUDY_CFLAGS="${JUDY_CFLAGS}"
  33. -OPTIONAL_JUDY_LIBS="${JUDY_LIBS}"
  34. -
  35. # -----------------------------------------------------------------------------
  36. # zlib
  37. @@ -356,9 +347,6 @@ AC_CHECK_LIB(
  38. [SSL_LIBS="-lcrypto -lssl"]
  39. )
  40. -OPTIONAL_SSL_CFLAGS="${SSL_CFLAGS}"
  41. -OPTIONAL_SSL_LIBS="${SSL_LIBS}"
  42. -
  43. # -----------------------------------------------------------------------------
  44. # JSON-C library
  45. @@ -391,6 +379,14 @@ AC_MSG_CHECKING([if netdata dbengine should be used])
  46. if test "${enable_dbengine}" != "no" -a "${UV_LIBS}" -a "${LZ4_LIBS}" -a "${JUDY_LIBS}" -a "${SSL_LIBS}"; then
  47. enable_dbengine="yes"
  48. AC_DEFINE([ENABLE_DBENGINE], [1], [netdata dbengine usability])
  49. + OPTIONAL_UV_CFLAGS="${UV_CFLAGS}"
  50. + OPTIONAL_UV_LIBS="${UV_LIBS}"
  51. + OPTIONAL_LZ4_CFLAGS="${LZ4_CFLAGS}"
  52. + OPTIONAL_LZ4_LIBS="${LZ4_LIBS}"
  53. + OPTIONAL_JUDY_CFLAGS="${JUDY_CFLAGS}"
  54. + OPTIONAL_JUDY_LIBS="${JUDY_LIBS}"
  55. + OPTIONAL_SSL_CFLAGS="${SSL_CFLAGS}"
  56. + OPTIONAL_SSL_LIBS="${SSL_LIBS}"
  57. else
  58. enable_dbengine="no"
  59. fi
  60. @@ -399,10 +395,12 @@ AM_CONDITIONAL([ENABLE_DBENGINE], [test "${enable_dbengine}" = "yes"])
  61. AC_MSG_CHECKING([if netdata https should be used])
  62. if test "${enable_https}" != "no" -a "${SSL_LIBS}"; then
  63. - enable_https="yes"
  64. - AC_DEFINE([ENABLE_HTTPS], [1], [netdata HTTPS usability])
  65. + enable_https="yes"
  66. + AC_DEFINE([ENABLE_HTTPS], [1], [netdata HTTPS usability])
  67. + OPTIONAL_SSL_CFLAGS="${SSL_CFLAGS}"
  68. + OPTIONAL_SSL_LIBS="${SSL_LIBS}"
  69. else
  70. - enable_https="no"
  71. + enable_https="no"
  72. fi
  73. AC_MSG_RESULT([${enable_https}])
  74. AM_CONDITIONAL([ENABLE_HTTPS], [test "${enable_https}" = "yes"])