summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67709ba)
raw | patch | inline | side by side (parent: 67709ba)
author | octo <octo> | |
Fri, 21 Apr 2006 07:33:37 +0000 (07:33 +0000) | ||
committer | octo <octo> | |
Fri, 21 Apr 2006 07:33:37 +0000 (07:33 +0000) |
This is needed on Solaris, apparently..
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index f2573a3202cc43c74fb60934d5b1f58c8bcbc629..7100049e20a7d63cc18cd5affde4fe7dd9446463 100644 (file)
--- a/configure.in
+++ b/configure.in
AC_CHECK_FUNCS(strncasecmp strcasecmp)
AC_CHECK_FUNCS(openlog syslog closelog)
+nanosleep_needs_rt="no"
+AC_CHECK_FUNCS(nanosleep, [], AC_CHECK_LIB(rt, nanosleep, [nanosleep_needs_rt="yes"], AC_MSG_ERROR(cannot find nanosleep)))
+AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
+
# For cpu module
AC_CHECK_FUNCS(sysctlbyname, [have_sysctlbyname="yes"], [have_sysctlbyname="no"])
diff --git a/src/Makefile.am b/src/Makefile.am
index 025548a1e06595825baa800aaacca318cd43c218..e3cf843c086fc38ef011e0dd34a3e2fa2744978a 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
if BUILD_WITH_RRDTOOL
collectd_LDFLAGS += -lm -lrrd
endif
+if BUILD_WITH_LIBRT
+collectd_LDFLAGS += -lrt
+endif
if BUILD_WITH_LIBSOCKET
collectd_LDFLAGS += -lsocket
endif