compilation with missing sysinfo fct
[psensor.git] / configure.ac
index 65ab621..12d201e 100644 (file)
@@ -29,6 +29,12 @@ AC_FUNC_MALLOC
 AC_FUNC_REALLOC
 AC_CHECK_FUNCS([gettimeofday memmove socket strdup strtol])
 
+SYSINFO_FCT=
+AC_CHECK_FUNC(sysinfo,
+             [SYSINFO_FCT='1' AC_DEFINE([HAVE_SYSINFO_FCT],[1],[Use sysinfo])],
+              [AC_MSG_WARN("sysinfo function not present")])
+AM_CONDITIONAL(SYSINFO_FCT, test -n "$SYSINFO_FCT")
+
 AM_GNU_GETTEXT_VERSION([0.16])
 AM_GNU_GETTEXT([external])