X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=8c31356394d42db7ed07e15956c4fd23b6ac6633;hb=9d77e6ab0ca102b9d42072df4fd9d2378897a5ca;hp=6ce3fbda823a321cc796e9b5c589c5beb84ad471;hpb=24ab97d635e83e919877fed0763b7ddb24cbc3e1;p=psensor.git diff --git a/configure.ac b/configure.ac index 6ce3fbd..8c31356 100644 --- a/configure.ac +++ b/configure.ac @@ -40,9 +40,11 @@ PTHREAD_LIBS=-pthread AC_SUBST(PTHREAD_LIBS) # Checks sensors, required by psensor and psensor-server -AC_CHECK_LIB(sensors, sensors_init) +AC_CHECK_LIB(sensors, sensors_init, + [SENSORS_LIBS=-lsensors + AC_DEFINE([HAVE_LIBSENSORS],[1],[Use libsensors])]) AC_CHECK_HEADERS([sensors/sensors.h sensors/error.h]) -SENSORS_LIBS=-lsensors +AM_CONDITIONAL(SENSORS, test -n "$SENSORS_LIBS") AC_SUBST(SENSORS_LIBS) ############### psensor