From: Jean-Philippe Orsini Date: Wed, 30 Nov 2011 01:16:42 +0000 (+0000) Subject: check sysinfo fct X-Git-Tag: v0.8.0.5~520 X-Git-Url: http://git.wpitchoune.net/gitweb/?a=commitdiff_plain;h=3c8d7e989948736e373cb28e9d29a858137dabae;hp=cc779b06c40204cd26c55211742bb73c3809a2d2;p=psensor.git check sysinfo fct --- diff --git a/config.h.in b/config.h.in index 14197cc..1e799c2 100644 --- a/config.h.in +++ b/config.h.in @@ -123,6 +123,9 @@ /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL +/* Define to 1 if you have the `sysinfo' function. */ +#undef HAVE_SYSINFO + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H diff --git a/configure b/configure index 4fdcda9..fc841b0 100755 --- a/configure +++ b/configure @@ -4818,7 +4818,7 @@ $as_echo "#define realloc rpl_realloc" >>confdefs.h fi -for ac_func in gettimeofday memmove socket strdup strtol +for ac_func in gettimeofday memmove socket strdup strtol sysinfo do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/configure.ac b/configure.ac index 65ab621..f25d92b 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ AC_TYPE_SSIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_REALLOC -AC_CHECK_FUNCS([gettimeofday memmove socket strdup strtol]) +AC_CHECK_FUNCS([gettimeofday memmove socket strdup strtol sysinfo]) AM_GNU_GETTEXT_VERSION([0.16]) AM_GNU_GETTEXT([external])