Skip to content

Commit 10fea0b

Browse files
authored
Merge pull request #242 from CESNET/telemetry-lib-check
autoconf - telemetry library dependency
2 parents 7ee2138 + 762f872 commit 10fea0b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Here are the examples of various plugins usage:
7575

7676
### Requirements
7777
- libatomic
78+
- [telemetry](https://github.com/CESNET/telemetry) (mandatory) — can be installed from the [COPR repository](https://copr.fedorainfracloud.org/coprs/g/CESNET/NEMEA-stable/package/telemetry/) or built from source code
7879
- kernel version at least 3.19 when using raw sockets input plugin enabled by default (disable with `--without-raw` parameter for `./configure`)
7980
- [libpcap](http://www.tcpdump.org/) when compiling with pcap plugin (`--with-pcap` parameter)
8081
- netcope-common [COMBO cards](https://www.liberouter.org/technologies/cards/) when compiling with ndp plugin (`--with-ndp` parameter)

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,20 @@ AC_ARG_WITH([stem],
382382
[withstem="no"]
383383
)
384384

385+
# Check if the telemetry library is available
386+
AC_CHECK_LIB([telemetry], [main],
387+
[AC_MSG_RESULT([Found telemetry library.])],
388+
[AC_MSG_ERROR([The telemetry library is required but was not found. Try to install telemetry.])])
389+
390+
# Check if the appfs library is available
391+
AC_CHECK_LIB([appFs], [main],
392+
[AC_MSG_RESULT([Found appfs library.])],
393+
[AC_MSG_ERROR([The appfs library is required but was not found. Try to install telemetry])])
394+
395+
LIBS="-lappFs -ltelemetry $LIBS"
396+
RPM_REQUIRES+=" telemetry"
397+
RPM_BUILDREQ+=" telemetry"
398+
385399
AM_CONDITIONAL(WITH_STEM, test x${withstem} = xyes)
386400
if [[ -z "$WITH_STEM_TRUE" ]]; then
387401
AC_DEFINE([WITH_STEM], [1], [Define to 1 to use flexprobe testing interface])

0 commit comments

Comments
 (0)