Mercurial > dovecot > core-2.2
diff configure.in @ 9655:cef143e8719d 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 | 5714aba539f0 |
children | dc6d35b51b68 |
line wrap: on
line diff
--- a/configure.in Sun Jul 26 02:16:45 2009 -0400 +++ b/configure.in Sun Jul 26 14:12:15 2009 -0400 @@ -351,7 +351,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