diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-02 11:31:38 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-11-02 11:55:30 +0300 |
commit | 64cbff9cb7b4090cf83fce74067347aa241c9c14 (patch) | |
tree | 08f54c1c401fcf1e8ef21569942910cc2531e6fc | |
parent | b4ba539ced6d1b6b1941bd824d5d43ad044e7c76 (diff) |
build: Fix AM_CONDITIONAL check for clock_gettime
It was always evaluating to false, so clock_gettime.c was always being
included into libcheck. This breaks building on Hurd and causes us to
always override clock_gettime() even when it is available.
https://bugzilla.gnome.org/show_bug.cgi?id=773813
-rw-r--r-- | m4/check-checks.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/check-checks.m4 b/m4/check-checks.m4 index 99aaa8ad7f..ea30853af6 100644 --- a/m4/check-checks.m4 +++ b/m4/check-checks.m4 @@ -95,7 +95,7 @@ AC_CHECK_LIB([rt], [timer_create, timer_settime, timer_delete]) AM_CONDITIONAL(HAVE_TIMER_CREATE_SETTIME_DELETE, test "x$ac_cv_lib_rt_timer_create__timer_settime__timer_delete" = "xyes") dnl Allow for checking HAVE_CLOCK_GETTIME in automake files -AM_CONDITIONAL(HAVE_CLOCK_GETTIME, test "x$HAVE_CLOCK_GETTIME" = "xyes") +AM_CONDITIONAL(HAVE_CLOCK_GETTIME, test "x$CLOCK_GETTIME_FOUND" = "xyes") dnl Create _stdint.h in the top-level directory AX_CREATE_STDINT_H |