configure.ac 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. #
  2. # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
  3. # SPDX-License-Identifier: GPL-3.0+
  4. #
  5. AC_PREREQ(2.60)
  6. define([VERSION_MAJOR], [1])
  7. define([VERSION_MINOR], [10])
  8. define([VERSION_FIX], [1])
  9. define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX)
  10. define([VERSION_SUFFIX], [_rolling])
  11. dnl Set to "1" for a first RPM release of a new version
  12. PACKAGE_RPM_RELEASE="0.0.$(echo VERSION_SUFFIX | sed s/^_//)"
  13. # We do not use m4_esyscmd_s to support older autoconf.
  14. define([VERSION_STRING], m4_esyscmd(git describe 2>/dev/null | sed 's/^v//' | tr -d '\n'))
  15. m4_ifval(VERSION_STRING, [], [define([VERSION_STRING], VERSION_NUMBER)])
  16. AC_INIT([netdata], VERSION_STRING[]VERSION_SUFFIX)
  17. AM_MAINTAINER_MODE([disable])
  18. if test x"$USE_MAINTAINER_MODE" = xyes; then
  19. AC_MSG_NOTICE(***************** MAINTAINER MODE *****************)
  20. PACKAGE_BUILT_DATE=$(date '+%d %b %Y')
  21. fi
  22. PACKAGE_RPM_VERSION="VERSION_NUMBER"
  23. AC_SUBST([PACKAGE_RPM_VERSION])
  24. AC_SUBST([PACKAGE_RPM_RELEASE])
  25. # -----------------------------------------------------------------------------
  26. # autoconf initialization
  27. AC_CONFIG_AUX_DIR([.])
  28. AC_CONFIG_HEADERS([config.h])
  29. AC_CONFIG_MACRO_DIR([m4])
  30. AC_CONFIG_SRCDIR([src/main.c])
  31. AM_INIT_AUTOMAKE([tar-pax])
  32. AC_CANONICAL_HOST
  33. AC_PROG_CC
  34. AC_PROG_INSTALL
  35. PKG_PROG_PKG_CONFIG
  36. AC_USE_SYSTEM_EXTENSIONS
  37. # -----------------------------------------------------------------------------
  38. # configurable options
  39. AC_ARG_ENABLE(
  40. [plugin-nfacct],
  41. [AS_HELP_STRING([--enable-plugin-nfacct], [enable nfacct plugin, requires running netdata as root @<:@default disabled@:>@])],
  42. ,
  43. [enable_plugin_nfacct="no"]
  44. )
  45. AC_ARG_ENABLE(
  46. [plugin-freeipmi],
  47. [AS_HELP_STRING([--enable-plugin-freeipmi], [enable freeipmi plugin @<:@default autodetect@:>@])],
  48. ,
  49. [enable_plugin_freeipmi="detect"]
  50. )
  51. AC_ARG_ENABLE(
  52. [pedantic],
  53. [AS_HELP_STRING([--enable-pedantic], [enable pedantic compiler warnings @<:@default disabled@:>@])],
  54. ,
  55. [enable_pedantic="no"]
  56. )
  57. AC_ARG_ENABLE(
  58. [accept4],
  59. [AS_HELP_STRING([--disable-accept4], [System does not have accept4 @<:@default autodetect@:>@])],
  60. ,
  61. [enable_accept4="detect"]
  62. )
  63. AC_ARG_WITH(
  64. [webdir],
  65. [AS_HELP_STRING([--with-webdir], [location of webdir @<:@PKGDATADIR/web@:>@])],
  66. [webdir="${withval}"],
  67. [webdir="\$(pkgdatadir)/web"]
  68. )
  69. AC_ARG_WITH(
  70. [libcap],
  71. [AS_HELP_STRING([--with-libcap], [build with libcap @<:@default autodetect@:>@])],
  72. ,
  73. [with_libcap="detect"]
  74. )
  75. AC_ARG_WITH(
  76. [zlib],
  77. [AS_HELP_STRING([--without-zlib], [build without zlib @<:@default enabled@:>@])],
  78. ,
  79. [with_zlib="yes"]
  80. )
  81. AC_ARG_WITH(
  82. [math],
  83. [AS_HELP_STRING([--without-math], [build without math @<:@default enabled@:>@])],
  84. ,
  85. [with_math="yes"]
  86. )
  87. AC_ARG_WITH(
  88. [user],
  89. [AS_HELP_STRING([--with-user], [use this user to drop privilege @<:@default nobody@:>@])],
  90. ,
  91. [with_user="nobody"]
  92. )
  93. AC_ARG_ENABLE(
  94. [x86-sse],
  95. [AS_HELP_STRING([--disable-x86-sse], [SSE/SS2 optimizations on x86 @<:@default enabled@:>@])],
  96. ,
  97. [enable_x86_sse="yes"]
  98. )
  99. AC_ARG_ENABLE(
  100. [lto],
  101. [AS_HELP_STRING([--disable-lto], [Link Time Optimizations @<:@default autodetect@:>@])],
  102. ,
  103. [enable_lto="detect"]
  104. )
  105. # -----------------------------------------------------------------------------
  106. # netdata required checks
  107. # fails on centos6
  108. #AX_CHECK_ENABLE_DEBUG()
  109. AX_GCC_FUNC_ATTRIBUTE([returns_nonnull])
  110. AX_GCC_FUNC_ATTRIBUTE([malloc])
  111. AX_GCC_FUNC_ATTRIBUTE([noreturn])
  112. AX_GCC_FUNC_ATTRIBUTE([noinline])
  113. AX_GCC_FUNC_ATTRIBUTE([format])
  114. AX_GCC_FUNC_ATTRIBUTE([warn_unused_result])
  115. AC_CHECK_TYPES([struct timespec, clockid_t], [], [], [[#include <time.h>]])
  116. AC_SEARCH_LIBS([clock_gettime], [rt posix4])
  117. AC_CHECK_FUNCS([clock_gettime])
  118. AC_CHECK_FUNCS([sched_setscheduler sched_get_priority_min sched_get_priority_max nice])
  119. AC_CHECK_FUNCS([recvmmsg])
  120. AC_TYPE_INT8_T
  121. AC_TYPE_INT16_T
  122. AC_TYPE_INT32_T
  123. AC_TYPE_INT64_T
  124. AC_TYPE_UINT8_T
  125. AC_TYPE_UINT16_T
  126. AC_TYPE_UINT32_T
  127. AC_TYPE_UINT64_T
  128. AC_C_INLINE
  129. AC_FUNC_STRERROR_R
  130. AC_C__GENERIC
  131. AC_C___ATOMIC
  132. # AC_C_STMT_EXPR
  133. AC_CHECK_SIZEOF([void *])
  134. AC_CANONICAL_HOST
  135. AC_HEADER_MAJOR
  136. AC_HEADER_RESOLV
  137. AC_CHECK_HEADERS_ONCE([sys/prctl.h])
  138. AC_CHECK_HEADERS_ONCE([sys/vfs.h])
  139. AC_CHECK_HEADERS_ONCE([sys/statfs.h])
  140. AC_CHECK_HEADERS_ONCE([sys/statvfs.h])
  141. AC_CHECK_HEADERS_ONCE([sys/mount.h])
  142. if test "${enable_accept4}" != "no"; then
  143. AC_CHECK_FUNCS_ONCE(accept4)
  144. fi
  145. # -----------------------------------------------------------------------------
  146. # operating system detection
  147. AC_MSG_CHECKING([operating system])
  148. case "$host_os" in
  149. freebsd*)
  150. build_target=freebsd
  151. CFLAGS="${CFLAGS} -I/usr/local/include"
  152. ;;
  153. darwin*)
  154. build_target=macos
  155. LDFLAGS="${LDFLAGS} -framework CoreFoundation -framework IOKit"
  156. ;;
  157. *)
  158. build_target=linux
  159. ;;
  160. esac
  161. AM_CONDITIONAL([FREEBSD], [test "${build_target}" = "freebsd"])
  162. AM_CONDITIONAL([MACOS], [test "${build_target}" = "macos"])
  163. AM_CONDITIONAL([LINUX], [test "${build_target}" = "linux"])
  164. AC_MSG_RESULT([${build_target}])
  165. # -----------------------------------------------------------------------------
  166. # pthreads
  167. ACX_PTHREAD(, [AC_MSG_ERROR([Cannot initialize pthread environment])])
  168. LIBS="${PTHREAD_LIBS} ${LIBS}"
  169. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  170. CC="${PTHREAD_CC}"
  171. # -----------------------------------------------------------------------------
  172. # libm
  173. AC_ARG_VAR([MATH_CFLAGS], [C compiler flags for math])
  174. AC_ARG_VAR([MATH_LIBS], [linker flags for math])
  175. if test -z "${MATH_LIBS}"; then
  176. AC_CHECK_LIB(
  177. [m],
  178. [sin],
  179. [MATH_LIBS="-lm"]
  180. )
  181. fi
  182. test "${with_math}" = "yes" -a -z "${MATH_LIBS}" && AC_MSG_ERROR([math required but not found])
  183. AC_MSG_CHECKING([if libm should be used])
  184. if test "${with_math}" != "no" -a ! -z "${MATH_LIBS}"; then
  185. with_math="yes"
  186. AC_DEFINE([STORAGE_WITH_MATH], [1], [math usability])
  187. OPTIONAL_MATH_CFLAGS="${MATH_CFLAGS}"
  188. OPTIONAL_MATH_LIBS="${MATH_LIBS}"
  189. else
  190. with_math="no"
  191. fi
  192. AC_MSG_RESULT([${with_math}])
  193. # -----------------------------------------------------------------------------
  194. # zlib
  195. PKG_CHECK_MODULES(
  196. [ZLIB],
  197. [zlib],
  198. [have_zlib=yes],
  199. [have_zlib=no]
  200. )
  201. test "${with_zlib}" = "yes" -a "${have_zlib}" != "yes" && AC_MSG_ERROR([zlib required but not found. Try installing 'zlib1g-dev' or 'zlib-devel'.])
  202. AC_MSG_CHECKING([if zlib should be used])
  203. if test "${with_zlib}" != "no" -a "${have_zlib}" = "yes"; then
  204. with_zlib="yes"
  205. AC_DEFINE([NETDATA_WITH_ZLIB], [1], [zlib usability])
  206. OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}"
  207. OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}"
  208. else
  209. with_zlib="no"
  210. fi
  211. AC_MSG_RESULT([${with_zlib}])
  212. # -----------------------------------------------------------------------------
  213. # libuuid
  214. PKG_CHECK_MODULES(
  215. [UUID],
  216. [uuid],
  217. [have_uuid=yes],
  218. [AC_MSG_ERROR([libuuid required but not found. Try installing 'uuid-dev' or 'libuuid-devel'.])]
  219. )
  220. AC_DEFINE([NETDATA_WITH_UUID], [1], [uuid usability])
  221. OPTIONAL_UUID_CLFAGS="${UUID_CFLAGS}"
  222. OPTIONAL_UUID_LIBS="${UUID_LIBS}"
  223. # -----------------------------------------------------------------------------
  224. # compiler options
  225. AC_ARG_VAR([SSE_CANDIDATE], [C compiler flags for SSE])
  226. AS_CASE([$host_cpu],
  227. [i?86], [SSE_CANDIDATE="yes"]
  228. )
  229. AC_SUBST([SSE_CANDIDATE])
  230. if test "${SSE_CANDIDATE}" = "yes" -a "${enable_x86_sse}" = "yes"; then
  231. opt="-msse2 -mfpmath=sse"
  232. AX_CHECK_COMPILE_FLAG(${opt}, [CFLAGS="${CFLAGS} ${opt}"], [])
  233. fi
  234. if test "${GCC}" = "yes"; then
  235. AC_DEFINE_UNQUOTED([likely(x)], [__builtin_expect(!!(x), 1)], [gcc branch optimization])
  236. AC_DEFINE_UNQUOTED([unlikely(x)], [__builtin_expect(!!(x), 0)], [gcc branch optimization])
  237. else
  238. AC_DEFINE_UNQUOTED([likely(x)], [(x)], [gcc branch optimization])
  239. AC_DEFINE_UNQUOTED([unlikely(x)], [(x)], [gcc branch optimization])
  240. fi
  241. if test "${enable_pedantic}" = "yes"; then
  242. enable_strict="yes"
  243. CFLAGS="${CFLAGS} -pedantic -Wall -Wextra -Wno-long-long"
  244. fi
  245. # -----------------------------------------------------------------------------
  246. # memory allocation library
  247. AC_MSG_CHECKING([for memory allocator])
  248. TS_CHECK_JEMALLOC
  249. if test "$has_jemalloc" = "1"; then
  250. AC_DEFINE([ENABLE_JEMALLOC], [1], [compile and link with jemalloc])
  251. AC_MSG_RESULT([jemalloc])
  252. else
  253. TS_CHECK_TCMALLOC
  254. if test "$has_tcmalloc" = "1"; then
  255. AC_DEFINE([ENABLE_TCMALLOC], [1], [compile and link with tcmalloc])
  256. AC_MSG_RESULT([tcmalloc])
  257. else
  258. AC_MSG_RESULT([system])
  259. AC_C_MALLOPT
  260. AC_C_MALLINFO
  261. fi
  262. fi
  263. # -----------------------------------------------------------------------------
  264. # libcap
  265. PKG_CHECK_MODULES(
  266. [LIBCAP],
  267. [libcap],
  268. [AC_CHECK_LIB([cap], [cap_get_proc, cap_set_proc],
  269. [AC_CHECK_HEADER(
  270. [sys/capability.h],
  271. [have_libcap=yes],
  272. [have_libcap=no]
  273. )],
  274. [have_libcap=no]
  275. )],
  276. [have_libcap=no]
  277. )
  278. test "${with_libcap}" = "yes" -a "${have_libcap}" != "yes" && AC_MSG_ERROR([libcap required but not found.])
  279. AC_MSG_CHECKING([if libcap should be used])
  280. if test "${with_libcap}" != "no" -a "${have_libcap}" = "yes"; then
  281. with_libcap="yes"
  282. AC_DEFINE([HAVE_CAPABILITY], [1], [libcap usability])
  283. OPTIONAL_LIBCAP_CLFAGS="${LIBCAP_CFLAGS}"
  284. OPTIONAL_LIBCAP_LIBS="${LIBCAP_LIBS}"
  285. else
  286. with_libcap="no"
  287. fi
  288. AC_MSG_RESULT([${with_libcap}])
  289. AM_CONDITIONAL([ENABLE_CAPABILITY], [test "${with_libcap}" = "yes"])
  290. # -----------------------------------------------------------------------------
  291. # apps.plugin
  292. AC_MSG_CHECKING([if apps.plugin should be enabled])
  293. if test "${build_target}" != "macos"; then
  294. enable_plugin_apps="yes"
  295. else
  296. enable_plugin_apps="no"
  297. fi
  298. AC_MSG_RESULT([${enable_plugin_apps}])
  299. AM_CONDITIONAL([ENABLE_PLUGIN_APPS], [test "${enable_plugin_apps}" = "yes"])
  300. # -----------------------------------------------------------------------------
  301. # freeipmi.plugin - libipmimonitoring
  302. PKG_CHECK_MODULES(
  303. [IPMIMONITORING],
  304. [libipmimonitoring],
  305. [AC_CHECK_LIB([ipmimonitoring], [
  306. ipmi_monitoring_sensor_readings_by_record_id,
  307. ipmi_monitoring_sensor_readings_by_sensor_type,
  308. ipmi_monitoring_sensor_read_sensor_number,
  309. ipmi_monitoring_sensor_read_sensor_name,
  310. ipmi_monitoring_sensor_read_sensor_state,
  311. ipmi_monitoring_sensor_read_sensor_units,
  312. ipmi_monitoring_sensor_iterator_next,
  313. ipmi_monitoring_ctx_sensor_config_file,
  314. ipmi_monitoring_ctx_sdr_cache_directory,
  315. ipmi_monitoring_ctx_errormsg,
  316. ipmi_monitoring_ctx_create
  317. ],
  318. [AC_CHECK_HEADER(
  319. [ipmi_monitoring.h],
  320. [AC_CHECK_HEADER(
  321. [ipmi_monitoring_bitmasks.h],
  322. [have_ipmimonitoring=yes],
  323. [have_ipmimonitoring=no]
  324. )],
  325. [have_ipmimonitoring=no]
  326. )],
  327. [have_ipmimonitoring=no]
  328. )],
  329. [have_ipmimonitoring=no]
  330. )
  331. test "${enable_plugin_freeipmi}" = "yes" -a "${have_ipmimonitoring}" != "yes" && \
  332. AC_MSG_ERROR([ipmimonitoring required but not found. Try installing 'libipmimonitoring-dev' or 'libipmimonitoring-devel'])
  333. AC_MSG_CHECKING([if freeipmi.plugin should be enabled])
  334. if test "${enable_plugin_freeipmi}" != "no" -a "${have_ipmimonitoring}" = "yes"; then
  335. enable_plugin_freeipmi="yes"
  336. AC_DEFINE([HAVE_FREEIPMI], [1], [ipmimonitoring usability])
  337. OPTIONAL_IPMIMONITORING_CLFAGS="${IPMIMONITORING_CFLAGS}"
  338. OPTIONAL_IPMIMONITORING_LIBS="${IPMIMONITORING_LIBS}"
  339. else
  340. enable_plugin_freeipmi="no"
  341. fi
  342. AC_MSG_RESULT([${enable_plugin_freeipmi}])
  343. AM_CONDITIONAL([ENABLE_PLUGIN_FREEIPMI], [test "${enable_plugin_freeipmi}" = "yes"])
  344. # -----------------------------------------------------------------------------
  345. # nfacct.plugin - libmnl, libnetfilter_acct
  346. AC_CHECK_HEADERS_ONCE([linux/netfilter/nfnetlink_conntrack.h])
  347. PKG_CHECK_MODULES(
  348. [NFACCT],
  349. [libnetfilter_acct],
  350. [have_libnetfilter_acct=yes],
  351. [have_libnetfilter_acct=no]
  352. )
  353. PKG_CHECK_MODULES(
  354. [LIBMNL],
  355. [libmnl],
  356. [have_libmnl=yes],
  357. [have_libmnl=no]
  358. )
  359. test "${enable_plugin_nfacct}" = "yes" -a "${have_libnetfilter_acct}" != "yes" && \
  360. AC_MSG_ERROR([netfilter_acct required but not found])
  361. test "${enable_plugin_nfacct}" = "yes" -a "${have_libmnl}" != "yes" && \
  362. AC_MSG_ERROR([libmnl required but not found. Try installing 'libmnl-dev' or 'libmnl-devel'])
  363. AC_MSG_CHECKING([if nfacct.plugin should be enabled])
  364. if test "${enable_plugin_nfacct}" != "no" -a "${have_libnetfilter_acct}" = "yes" -a "${have_libmnl}" = "yes"; then
  365. enable_plugin_nfacct="yes"
  366. AC_DEFINE([HAVE_LIBMNL], [1], [libmnl usability])
  367. AC_DEFINE([HAVE_LIBNETFILTER_ACCT], [1], [libnetfilter_acct usability])
  368. AC_DEFINE([INTERNAL_PLUGIN_NFACCT], [1], [nfacct plugin usability])
  369. OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}"
  370. OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}"
  371. else
  372. enable_plugin_nfacct="no"
  373. fi
  374. AC_MSG_RESULT([${enable_plugin_nfacct}])
  375. AM_CONDITIONAL([ENABLE_PLUGIN_NFACCT], [test "${enable_plugin_nfacct}" = "yes"])
  376. # -----------------------------------------------------------------------------
  377. # check for setns() - cgroup-network
  378. AC_CHECK_FUNC([setns])
  379. AC_MSG_CHECKING([if cgroup-network can be enabled])
  380. if test "$ac_cv_func_setns" = "yes" ; then
  381. have_setns="yes"
  382. AC_DEFINE([HAVE_SETNS], [1], [Define 1 if you have setns() function])
  383. else
  384. have_setns="no"
  385. fi
  386. AC_MSG_RESULT([${have_setns}])
  387. AM_CONDITIONAL([ENABLE_PLUGIN_CGROUP_NETWORK], [test "${have_setns}" = "yes"])
  388. # -----------------------------------------------------------------------------
  389. # Link-Time-Optimization
  390. if test "${enable_lto}" != "no"; then
  391. opt="-flto"
  392. AX_CHECK_COMPILE_FLAG(${opt}, [have_lto=yes], [have_lto=no])
  393. fi
  394. if test "${have_lto}" = "yes"; then
  395. oCFLAGS="${CFLAGS}"
  396. CFLAGS="${CFLAGS} -flto ${OPTIONAL_MATH_CLFAGS} ${OPTIONAL_NFACCT_CLFAGS} ${OPTIONAL_ZLIB_CLFAGS} ${OPTIONAL_UUID_CLFAGS} ${OPTIONAL_LIBCAP_CFLAGS} ${OPTIONAL_IPMIMONITORING_CFLAGS}"
  397. ac_cv_c_lto_cross_compile="${enable_lto}"
  398. test "${ac_cv_c_lto_cross_compile}" != "yes" && ac_cv_c_lto_cross_compile="no"
  399. AC_C_LTO
  400. CFLAGS="${oCFLAGS}"
  401. test "${ac_cv_c_lto}" != "yes" && have_lto="no"
  402. fi
  403. test "${enable_lto}" = "yes" -a "${have_lto}" != "yes" && \
  404. AC_MSG_ERROR([LTO is required but is not available.])
  405. AC_MSG_CHECKING([if LTO should be enabled])
  406. if test "${enable_lto}" != "no" -a "${have_lto}" = "yes"; then
  407. enable_lto="yes"
  408. CFLAGS="${CFLAGS} -flto"
  409. else
  410. enable_lto="no"
  411. fi
  412. AC_MSG_RESULT([${enable_lto}])
  413. # -----------------------------------------------------------------------------
  414. AC_DEFINE_UNQUOTED([NETDATA_USER], ["${with_user}"], [use this user to drop privileged])
  415. AC_SUBST([varlibdir], ["\$(localstatedir)/lib/netdata"])
  416. AC_SUBST([registrydir], ["\$(localstatedir)/lib/netdata/registry"])
  417. AC_SUBST([cachedir], ["\$(localstatedir)/cache/netdata"])
  418. AC_SUBST([chartsdir], ["\$(libexecdir)/netdata/charts.d"])
  419. AC_SUBST([nodedir], ["\$(libexecdir)/netdata/node.d"])
  420. AC_SUBST([pythondir], ["\$(libexecdir)/netdata/python.d"])
  421. AC_SUBST([configdir], ["\$(sysconfdir)/netdata"])
  422. AC_SUBST([logdir], ["\$(localstatedir)/log/netdata"])
  423. AC_SUBST([pluginsdir], ["\$(libexecdir)/netdata/plugins.d"])
  424. AC_SUBST([webdir])
  425. AC_SUBST([OPTIONAL_MATH_CLFAGS])
  426. AC_SUBST([OPTIONAL_MATH_LIBS])
  427. AC_SUBST([OPTIONAL_NFACCT_CLFAGS])
  428. AC_SUBST([OPTIONAL_NFACCT_LIBS])
  429. AC_SUBST([OPTIONAL_ZLIB_CLFAGS])
  430. AC_SUBST([OPTIONAL_ZLIB_LIBS])
  431. AC_SUBST([OPTIONAL_UUID_CLFAGS])
  432. AC_SUBST([OPTIONAL_UUID_LIBS])
  433. AC_SUBST([OPTIONAL_LIBCAP_CFLAGS])
  434. AC_SUBST([OPTIONAL_LIBCAP_LIBS])
  435. AC_SUBST([OPTIONAL_IPMIMONITORING_CFLAGS])
  436. AC_SUBST([OPTIONAL_IPMIMONITORING_LIBS])
  437. AC_CONFIG_FILES([
  438. Makefile
  439. charts.d/Makefile
  440. conf.d/Makefile
  441. netdata.spec
  442. python.d/Makefile
  443. node.d/Makefile
  444. plugins.d/Makefile
  445. src/Makefile
  446. system/Makefile
  447. web/Makefile
  448. diagrams/Makefile
  449. makeself/Makefile
  450. contrib/Makefile
  451. tests/Makefile
  452. ])
  453. AC_OUTPUT
  454. test "${with_math}" != "yes" && AC_MSG_WARN([You are building without math. math allows accurate calculations. It should be enabled.]) || :
  455. test "${with_zlib}" != "yes" && AC_MSG_WARN([You are building without zlib. zlib allows netdata to transfer a lot less data with web clients. It should be enabled.]) || :