From 4f08d2d5ad409cb51a8c3a8e538d7c962ebb1dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 3 Dec 2020 16:42:38 +0100 Subject: Fix sensors configure argument --- configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 30b2502b..253ff5fe 100644 --- a/configure.ac +++ b/configure.ac @@ -307,12 +307,12 @@ then ]) fi -AC_ARG_ENABLE(sensors, [AS_HELP_STRING([--with-sensors], [Compile with libsensors support for reading temperature data. Only requires libsensors headers at compile time, at runtime libsensors is loaded via dlopen.])],, enable_sensors="check") -if test "x$enable_sensors" = xyes; then +AC_ARG_WITH(sensors, [AS_HELP_STRING([--with-sensors], [Compile with libsensors support for reading temperature data. Only requires libsensors headers at compile time, at runtime libsensors is loaded via dlopen.])],, with_sensors="check") +if test "x$with_sensors" = xyes; then AC_CHECK_HEADERS([sensors/sensors.h], [], [missing_headers="$missing_headers $ac_header"]) -elif test "x$enable_sensors" = xcheck; then - enable_sensors=yes - AC_CHECK_HEADERS([sensors/sensors.h], [], [enable_sensors=no]) +elif test "x$with_sensors" = xcheck; then + with_sensors=yes + AC_CHECK_HEADERS([sensors/sensors.h], [], [with_sensors=no]) fi AM_CFLAGS="\ @@ -391,7 +391,7 @@ AC_MSG_RESULT([ (Linux) ancient vserver: $enable_ancient_vserver (Linux) affinity: $enable_linux_affinity (Linux) delay accounting: $enable_delayacct - (Linux) sensors: $enable_sensors + (Linux) sensors: $with_sensors unicode: $enable_unicode hwloc: $enable_hwloc setuid: $enable_setuid -- cgit v1.2.3