dovecot-1.2: configure: Use -lrt for clock_gettime() if necessary.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 26 21:12:22 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/adda2c5bc0d0
changeset: 9243:adda2c5bc0d0
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 26 14:12:15 2009 -0400
description:
configure: Use -lrt for clock_gettime() if necessary.
diffstat:
1 file changed, 9 insertions(+), 1 deletion(-)
configure.in | 10 +++++++++-
diffs (20 lines):
diff -r 354c1b47cfec -r adda2c5bc0d0 configure.in
--- a/configure.in Sun Jul 26 02:17:39 2009 -0400
+++ b/configure.in Sun Jul 26 14:12:15 2009 -0400
@@ -363,7 +363,15 @@ AC_CHECK_FUNCS(fcntl flock lockf inet_at
setrlimit setproctitle seteuid setreuid setegid setresgid \
strtoull strtoll strtouq strtoq \
setpriority quotactl getmntent kqueue kevent backtrace_symbols \
- walkcontext dirfd clearenv malloc_usable_size clock_gettime)
+ walkcontext dirfd clearenv malloc_usable_size)
+
+AC_CHECK_LIB(rt, clock_gettime, [
+ AC_DEFINE(HAVE_CLOCK_GETTIME,, Define if you have the clock_gettime function)
+ LIBS="-lrt"
+], [
+ # OpenBSD
+ AC_CHECK_FUNCS(clock_gettime)
+])
dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included
dnl Link instead of just compiling since there's something wrong with Tru64
More information about the dovecot-cvs
mailing list