dovecot-2.2: configure: Use -lrt for check_gettime() only if nee...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 28 17:02:30 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/ac63858cbe5f
changeset: 15493:ac63858cbe5f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 28 17:02:18 2012 +0200
description:
configure: Use -lrt for check_gettime() only if needed.

diffstat:

 configure.ac |  6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diffs (17 lines):

diff -r cd093d05037e -r ac63858cbe5f configure.ac
--- a/configure.ac	Wed Dec 19 23:34:21 2012 +0200
+++ b/configure.ac	Fri Dec 28 17:02:18 2012 +0200
@@ -415,12 +415,8 @@
 
 AC_CHECK_TYPES([struct sockpeercred])
 
-AC_CHECK_LIB(rt, clock_gettime, [
+AC_SEARCH_LIBS(clock_gettime, rt, [
   AC_DEFINE(HAVE_CLOCK_GETTIME,, Define if you have the clock_gettime function)
-  LIBS="$LIBS -lrt"
-], [
-  # OpenBSD
-  AC_CHECK_FUNCS(clock_gettime)
 ])
 
 dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included


More information about the dovecot-cvs mailing list