[ANNOUNCE] xorg-server 1.3.99.0
Julien Cristau
jcristau at debian.org
Wed Aug 1 09:40:56 PDT 2007
Hi,
this patch fixes detection of a monotonic clock (AC_RUN_IFELSE wasn't
using -lrt, so the test program failed to build).
Cheers,
Julien
diff --git a/configure.ac b/configure.ac
index 17da31e..7adf6fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1069,12 +1069,14 @@ if ! test "x$have_clock_gettime" = xno; then
else
CLOCK_LIBS=""
fi
+ LIBS_SAVE="$LIBS"
+ LIBS="$CLOCK_LIBS"
AC_RUN_IFELSE([
#define _POSIX_C_SOURCE 199309L
#include <time.h>
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[[]]) {
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
@@ -1084,6 +1086,7 @@ int main(int argc, char *argv[]) {
}
], [MONOTONIC_CLOCK=yes], [MONOTONIC_CLOCK=no],
[MONOTONIC_CLOCK="cross compiling"])
+ LIBS="$LIBS_SAVE"
else
MONOTONIC_CLOCK=no
fi
More information about the xorg
mailing list