chiark / gitweb /
timedatectl: add timesync-status and show-timesync commands
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 3 May 2018 09:07:43 +0000 (18:07 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
Closes #1589.

meson.build

index ef7071094254708de6672c4cf1fdb522d7e96f36..cf5db8b522a44c1a874fcd0f11b1fa6961ee43f3 100644 (file)
@@ -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