summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDavid Gstir <david@sigma-star.at>2016-09-15 07:20:07 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2016-11-17 11:36:55 +0100
commitd3b66fbf88b07f7954ee5e7ceddab543bdd3a833 (patch)
tree47487e318174dffc118fde51b9525d5734466da2 /configure.ac
parent1b3546ce4efce4d1bc446e073ad6715258879088 (diff)
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 <david@sigma-star.at>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
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