subdir-objects
])
AM_SILENT_RULES([yes])
+LT_PREREQ(2.2)
+LT_INIT([disable-static])
IT_PROG_INTLTOOL([0.40.0])
AC_PROG_MKDIR_P
AC_PROG_SED
+# C Compiler
+AC_PROG_CC
+AC_PROG_CC_C99
+AC_PROG_CC_C_O
+AC_PROG_GCC_TRADITIONAL
+
AC_PATH_PROG([XSLTPROC], [xsltproc])
# Python
AM_PATH_PYTHON([2.7])
+PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}])
+
+# libatasmart
+PKG_CHECK_MODULES([LIBATASMART], [libatasmart >= 0.19])
save_LIBS="$LIBS"
+# lm-sensors
+AC_CHECK_HEADERS([sensors/sensors.h sensors/errors.h])
+
+LIBS=
+AC_CHECK_LIB(sensors, sensors_init, [], [AC_MSG_ERROR([*** sensors library not found])])
+SENSORS_LIBS="$LIBS"
+AC_SUBST(SENSORS_LIBS)
+
+LIBS="$save_LIBS"
+
# pkg-config
PKG_PROG_PKG_CONFIG
# This makes sure pkg.m4 is available.
)
AS_IF([test "x$with_systemd" != "xno"],
- [PKG_CHECK_MODULES(systemd, [libsystemd-daemon],
+ [PKG_CHECK_MODULES(systemd, [libsystemd],
[have_systemd=yes], [have_systemd=no])],
[have_systemd=no]
)