From eb7874bc3a613e3da63852cc158eabf379a91ef0 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 29 Sep 2025 16:39:23 +0000 Subject: [PATCH] configure: Make lm-sensors an optional dependency Signed-off-by: Michael Tremer --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 831a7e7..03e291c 100644 --- a/configure.ac +++ b/configure.ac @@ -155,7 +155,7 @@ save_LIBS="$LIBS" AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h]) LIBS= -AC_CHECK_LIB(sensors, sensors_init, [], [AC_MSG_ERROR([*** sensors library not found])]) +AC_CHECK_LIB(sensors, sensors_init, [have_sensors=yes], [have_sensors=no]) SENSORS_LIBS="$LIBS" AC_SUBST(SENSORS_LIBS) @@ -212,4 +212,5 @@ AC_MSG_RESULT([ Generate man-pages: ${have_manpages} libatasmart: ${have_libatasmart} + sensors: ${have_sensors} ]) -- 2.47.3