From d3b66fbf88b07f7954ee5e7ceddab543bdd3a833 Mon Sep 17 00:00:00 2001 From: David Gstir Date: Thu, 15 Sep 2016 07:20:07 +0200 Subject: Add -lrt for clock_gettime() in glibc < 2.17. Some tools use clock_gettime() which requires building with -lrt for versions of glibc before 2.17. Signed-off-by: David Gstir --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 393c2eb..9c8666c 100644 --- a/configure.ac +++ b/configure.ac @@ -12,6 +12,9 @@ AC_PROG_CC AC_PROG_INSTALL +AC_SEARCH_LIBS([clock_gettime],[rt posix4]) +AC_CHECK_FUNCS([clock_gettime]) + AC_ARG_ENABLE([tests], [AS_HELP_STRING([--disable-tests], [Compile test programs])], [case "${enableval}" in -- cgit v1.2.3