summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-05-06 17:02:11 +0200
committerLennart Poettering <lennart@poettering.net>2014-05-06 17:02:11 +0200
commite8af69739a629708d2c155ebcd4fa57b8fd5006a (patch)
tree70a5b7e27eca1850db1dba950fb82db5214213c8 /configure.ac
parent16c058ba014e210fd8f6833a56787815c1059e1f (diff)
timesyncd: read server settings from a configuration file
Also, allow compiling in a default server list via a configure command line item.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ead697b84c..318d77b302 100644
--- a/configure.ac
+++ b/configure.ac
@@ -827,6 +827,15 @@ if test "x$enable_timesyncd" != "xno"; then
fi
AM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
+AC_ARG_WITH(ntp-servers,
+ AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
+ [Space-separated list of default NTP servers]),
+ [NTP_SERVERS="$withval"],
+ [NTP_SERVERS="time1.google.com time2.google.com time3.google.com time4.google.com"])
+
+AC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
+AC_SUBST(NTP_SERVERS)
+
# ------------------------------------------------------------------------------
have_localed=no
AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
@@ -1159,6 +1168,7 @@ AC_MSG_RESULT([
hostnamed: ${have_hostnamed}
timedated: ${have_timedated}
timesyncd: ${have_timesyncd}
+ default NTP servers: ${NTP_SERVERS}
localed: ${have_localed}
networkd: ${have_networkd}
coredump: ${have_coredump}