changeset 91:f5576d74ef5d

Add support for clock_gettime in the configure.ac file
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 16 Jul 2008 14:56:47 +0900
parents c2f0ff9a5774
children 2aeaf00dfbf3
files configure.ac
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Tue Jul 15 17:26:58 2008 +0900
+++ b/configure.ac	Wed Jul 16 14:56:47 2008 +0900
@@ -163,7 +163,8 @@
 # When this is not provided by host, we provide a replacement function in the daemon.
 AC_CHECK_FUNC([ntohll], [AC_DEFINE([HAVE_NTOHLL], [1], [Defined if the ntohll function or macro is defined])])
 
-
+# This is a POSIX function but sometimes in separate libraries
+AC_SEARCH_LIBS([clock_gettime], [rt posix4], , [AC_MSG_ERROR([This package needs clock_gettime.])])
 
 #######################
 # Checks for system services
"Welcome to our mercurial repository"