From 1787a7e1646563710313c698f4dd0d59d241aa62 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 18 Dec 2006 01:16:03 +0000 Subject: [PATCH] Use AC_LANG_SOURCE for the clock test. 2006-12-17 Matthias Clasen * configure.in: Use AC_LANG_SOURCE for the clock test. --- ChangeLog | 2 ++ configure.in | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0c0b89e..794e469 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-12-17 Matthias Clasen + * configure.in: Use AC_LANG_SOURCE for the clock test. + * glib/gthreadpool.h: * glib/gthreadpool.c (g_thread_pool_free): Don't use "wait" as parameter name. (#379207, Christian Biere) diff --git a/configure.in b/configure.in index 4aeed1f..94e7901 100644 --- a/configure.in +++ b/configure.in @@ -2000,15 +2000,16 @@ AC_CHECK_FUNCS(clock_gettime, [], [ ]) AC_CACHE_CHECK(for monotonic clocks, - glib_cv_monotonic_clock,AC_COMPILE_IFELSE([ + glib_cv_monotonic_clock,AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ #include #include - int main() { +int main() { #if !(defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK >= 0 && defined(CLOCK_MONOTONIC)) #error No monotonic clock #endif - return 0; - }],glib_cv_monotonic_clock=yes,glib_cv_monotonic_clock=no)) + return 0; +} +]])],glib_cv_monotonic_clock=yes,glib_cv_monotonic_clock=no)) if test "$glib_cv_monotonic_clock" = "yes"; then AC_DEFINE(HAVE_MONOTONIC_CLOCK,1,[Have a monotonic clock]) fi -- 2.7.4