[ntpsec commit] Re-add HAVE_TICKADJ guard in util/ wscript removed in 08962d4a.

Amar Takhar amar at ntpsec.org
Fri Oct 2 12:40:54 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    e2c2ce204365878a2b73e2c07b2807bfb8f92792
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=e2c2ce204365878a2b73e2c07b2807bfb8f92792

Author:    Amar Takhar <verm at darkbeer.org>
Date:      Fri Oct  2 08:40:26 2015 -0400

Re-add HAVE_TICKADJ guard in util/wscript removed in 08962d4a.

Some systems do not have tickadj.

---

 util/wscript | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

diff --git a/util/wscript b/util/wscript
index d539712..22855c7 100644
--- a/util/wscript
+++ b/util/wscript
@@ -4,27 +4,28 @@ def build(ctx):
 	srcnode = ctx.srcnode.abspath()
 	bldnode = ctx.bldnode.abspath()
 
-	ctx(
-		target		= "tickadj",
-		features	= "c cprogram bld_include src_include",
-		source		= ["tickadj.c"],
-		includes	= [
-					"%s/tickadj/" % bldnode
-				],
-		use		= "ntp opts isc M RT",
-		install_path= "${PREFIX}/sbin/"
-	)
+	if ctx.get_define("HAVE_TICKADJ"):
+		ctx(
+			target		= "tickadj",
+			features	= "c cprogram bld_include src_include",
+			source		= ["tickadj.c"],
+			includes	= [
+						"%s/tickadj/" % bldnode
+					],
+			use		= "ntp opts isc M RT",
+			install_path= "${PREFIX}/sbin/"
+		)
 
-	ctx(
-		target		= "ntptime",
-		features	= "c cprogram bld_include src_include libisc_include",
-		source		= ["ntptime.c"],
-		includes	= [
-					"%s/ntptime/" % bldnode
-				],
-		use		= "ntp opts isc M RT PTHREAD",
-		install_path= "${PREFIX}/sbin/"
-	)
+		ctx(
+			target		= "ntptime",
+			features	= "c cprogram bld_include src_include libisc_include",
+			source		= ["ntptime.c"],
+			includes	= [
+						"%s/ntptime/" % bldnode
+					],
+			use		= "ntp opts isc M RT PTHREAD",
+			install_path= "${PREFIX}/sbin/"
+		)
 
 	for name in ['hist', 'jitter', 'pps-api', 'precision',
 	    	    	     'propdelay', 'sht', 'testrs6000', 'tg2']:



More information about the vc mailing list