summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-04-10 08:17:20 +0200
committerYorhel <git@yorhel.nl>2013-04-10 08:17:20 +0200
commitd3eeaab91859e95b5096b936542f083d9867ba96 (patch)
tree9c29bfa4efc3723d31d72eb1c9b5d788f182e31f
parent0232ec4fa1d6cac0b80b807c73655044b1bbf4fc (diff)
configure: Check whether -lrt is needed for clock_gettime()
Required for glibc < 2.17.
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6671c02..59c9445 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,7 @@ AC_CHECK_PROG([have_pod2man],[pod2man],[yes],[no])
AM_CONDITIONAL([USE_POD2MAN], [test "x$have_pod2man" = "xyes"])
+AC_SEARCH_LIBS([clock_gettime],[rt])
AC_SEARCH_LIBS([inet_ntop], [nsl])
AC_SEARCH_LIBS([socket], [socket], [], [
AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"], [], [-lnsl])])