summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mikkel Kamstrup Erlandsen2018-10-10 12:43:06 +0200
committerGravatar Nikias Bassen2018-11-29 00:37:25 +0100
commit96e4aabe0b9a46ea9da4955a10c774a8e58fe677 (patch)
treee16fd19b243ba0b3f789c1739f2f3719260df469
parenta1963ec3717e1e652de9d10311077a454d9bb8e9 (diff)
downloadusbmuxd-96e4aabe0b9a46ea9da4955a10c774a8e58fe677.tar.gz
usbmuxd-96e4aabe0b9a46ea9da4955a10c774a8e58fe677.tar.bz2
build: check if clock_gettime() requires -lrt on old GNU systems
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 46a725e..d0c8201 100644
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,9 @@ AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
+# Check if clock_gettime requires -lrt (old GNU systems)
+AC_SEARCH_LIBS([clock_gettime],[rt posix4])
+
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC