Skip to content

Commit 0a0dfc3

Browse files
committed
configure.ac - add checks for telemetry and appfs libraries
- Added AC_CHECK_LIB for 'telemetry' and 'appfs' to verify library availability. - Ensured 'LIBS' includes '-lappFs -ltelemetry' for proper linking. - Updated RPM dependencies by appending 'telemetry' to RPM_REQUIRES and RPM_BUILDREQ.
1 parent 7ee2138 commit 0a0dfc3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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)