From 465db6c4fec5c1e491e83db3050aa1cb03c03c11 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Tue, 27 Jan 2015 17:04:33 -0600 Subject: [PATCH] Check whether a real librt is present and use it if necessary --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 230986785f..e3d9f78c06 100644 --- a/configure.ac +++ b/configure.ac @@ -202,6 +202,11 @@ if test "$with_prof" = "yes"; then test "$DEFAULT_LDFLAGS" = "yes" && LDFLAGS="$LDFLAGS -pg" fi +dnl Usually in libc, but not always(?) +if test "$unix" = "yes"; then + AC_SEARCH_LIBS(clock_gettime, rt,, AC_ERROR([clock_gettime() not available?])) +fi + SM_OPENGL SM_X11 GL_CFLAGS="$GL_CFLAGS $XCFLAGS"