diff --git a/SConstruct b/SConstruct index 214aa4834f..45a0df6e96 100755 --- a/SConstruct +++ b/SConstruct @@ -633,6 +633,8 @@ have_posix_clock = \ 'clock_nanosleep(0,0,NULL,NULL);') or \ conf.CheckLibWithHeader('rt', 'time.h', 'C', 'clock_nanosleep(0,0,NULL,NULL);') +if not have_posix_clock: + warning("Can't find library for POSIX clocks.") have_posix_timers = \ conf.CheckLibWithHeader([None, 'rt'], [ 'time.h', 'signal.h' ], 'C', @@ -667,9 +669,6 @@ if backtrace_impls[-1] == "none": default_backtrace_impl = "none" warning("No suitable back trace implementation found.") -if not have_posix_clock: - warning("Can't find library for POSIX clocks.") - # Check for (C99 FP environment control) have_fenv = conf.CheckHeader('fenv.h', '<>') if not have_fenv: