--quiet instead of redirecting stdout to a file
[psensor.git] / configure.ac
index 897f40e..e8dc011 100644 (file)
@@ -43,6 +43,11 @@ AM_GCONF_SOURCE_2
 
 ############### common 
 
+# Checks pthread
+AC_CHECK_LIB(pthread, pthread_create)
+PTHREAD_LIBS=-pthread
+AC_SUBST(PTHREAD_LIBS)
+
 # Checks sensors, required by psensor and psensor-server
 AC_CHECK_LIB(sensors, sensors_init)
 AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h])