]> git.ipfire.org Git - collecty.git/commitdiff
configure: Make lm-sensors an optional dependency
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 Sep 2025 16:39:23 +0000 (16:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 29 Sep 2025 16:39:23 +0000 (16:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
configure.ac

index 831a7e7b1d4c308dee569dc5fd4feecce3b8cca0..03e291c17190dad160964722375d44bfbe3cb6c1 100644 (file)
@@ -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}
 ])