From dce6bf50cb716938ab0caf3efd2bf505dc7b091e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 3 May 2018 18:07:43 +0900 Subject: [PATCH] timedatectl: add timesync-status and show-timesync commands Closes #1589. --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index ef7071094..cf5db8b52 100644 --- a/meson.build +++ b/meson.build @@ -1405,6 +1405,13 @@ foreach term : ['utmp', m4_defines += have ? ['-D' + name] : [] endforeach +if get_option('timedated') or get_option('timesyncd') + conf.set10('ENABLE_TIMEDATECTL', true) + m4_defines += ['-DENABLE_TIMEDATECTL'] +else + conf.set10('ENABLE_TIMEDATECTL', false) +endif + want_tests = get_option('tests') install_tests = get_option('install-tests') slow_tests = get_option('slow-tests') @@ -2131,12 +2138,15 @@ endif # install_rpath : rootlibexecdir, # install : true, # install_dir : rootlibexecdir) +# endif # +# if conf.get('ENABLE_TIMEDATECTL') == 1 # exe = executable('timedatectl', # 'src/timedate/timedatectl.c', # include_directories : includes, # install_rpath : rootlibexecdir, # link_with : [libshared], +# dependencies : [libm], # install : true) # public_programs += [exe] # endif -- 2.30.2