Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9243:adda2c5bc0d0 HEAD
configure: Use -lrt for clock_gettime() if necessary.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 26 Jul 2009 14:12:15 -0400 |
parents | 354c1b47cfec |
children | 8f376b8ce81d |
files | configure.in |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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