diff options
author | M. Sean Finney <seanius@users.sourceforge.net> | 2005-06-28 00:26:53 +0000 |
---|---|---|
committer | M. Sean Finney <seanius@users.sourceforge.net> | 2005-06-28 00:26:53 +0000 |
commit | d4c0948266f261525e12c58d58e0fc68987a9818 (patch) | |
tree | e7d8e6afe6c425a1e51446ace47b0fc4e99dcfd0 /configure.in | |
parent | f573447d1f6dbf25b58bbfea81226a2ae3736555 (diff) | |
download | monitoring-plugins-d4c0948266f261525e12c58d58e0fc68987a9818.tar.gz |
scanf parsing fix for check_swap from tracker id 1123292. now use floor(3)
to round down floating point numbers. requires -lm on many systems,
so support for testing for this was added to the configure.in and
automake template
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1194 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index df516c54..b209d19a 100644 --- a/configure.in +++ b/configure.in | |||
@@ -137,6 +137,11 @@ AC_CHECK_LIB(socket,socket,SOCKETLIBS="$SOCKETLIBS -lsocket") | |||
137 | AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") | 137 | AC_CHECK_LIB(resolv,main,SOCKETLIBS="$SOCKETLIBS -lresolv") |
138 | AC_SUBST(SOCKETLIBS) | 138 | AC_SUBST(SOCKETLIBS) |
139 | 139 | ||
140 | dnl | ||
141 | dnl check for math-related functions needing -lm | ||
142 | AC_CHECK_LIB(m,floor,MATHLIBS="-lm") | ||
143 | AC_SUBST(MATHLIBS) | ||
144 | |||
140 | dnl Check for PostgreSQL libraries | 145 | dnl Check for PostgreSQL libraries |
141 | _SAVEDLIBS="$LIBS" | 146 | _SAVEDLIBS="$LIBS" |
142 | _SAVEDCPPFLAGS="$CPPFLAGS" | 147 | _SAVEDCPPFLAGS="$CPPFLAGS" |
@@ -567,7 +572,7 @@ AC_TRY_COMPILE([#include <sys/time.h>], | |||
567 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) | 572 | AC_DEFINE(NEED_GETTIMEOFDAY,1,[Define if gettimeofday is needed]))) |
568 | 573 | ||
569 | dnl Checks for library functions. | 574 | dnl Checks for library functions. |
570 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul) | 575 | AC_CHECK_FUNCS(memmove select socket strdup strstr strtod strtol strtoul, floor) |
571 | 576 | ||
572 | AC_MSG_CHECKING(return type of socket size) | 577 | AC_MSG_CHECKING(return type of socket size) |
573 | AC_TRY_COMPILE([#include <stdlib.h> | 578 | AC_TRY_COMPILE([#include <stdlib.h> |