X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=configure.ac;h=e8dc011c04f6514fa2e3aeb406c0aaea8419fdb9;hb=545ca11c8d228885e6514d568027b27d622f895d;hp=80883328002a473e4b97b0a8a7d9c6c8b531b3a8;hpb=dea3babc4196a5f409838b758a9a3c0e5c18f720;p=psensor.git diff --git a/configure.ac b/configure.ac index 8088332..e8dc011 100644 --- a/configure.ac +++ b/configure.ac @@ -19,7 +19,6 @@ AC_PROG_RANLIB # Checks for header files. AC_PATH_X AC_CHECK_HEADERS([stdbool.h]) -AC_CHECK_HEADERS(pthread.h,, [AC_MSG_ERROR([pthread.h required])]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_SIZE_T @@ -45,7 +44,9 @@ AM_GCONF_SOURCE_2 ############### common # Checks pthread -AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"]) +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)