[Git][NTPsec/ntpsec][master] build util/tg2 on Linux

Hal Murray gitlab at mg.gitlab.com
Wed Mar 2 09:44:01 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
919b39fa by Hal Murray at 2016-03-02T01:43:15-08:00
build util/tg2 on Linux

- - - - -


2 changed files:

- pylib/configure.py
- util/wscript


Changes:

=====================================
pylib/configure.py
=====================================
--- a/pylib/configure.py
+++ b/pylib/configure.py
@@ -367,8 +367,10 @@ def cmd_configure(ctx):
 		ctx.env.HEADER_SYS_TIMEX_H = True
 
 	# Some systems don't have sys/audio.h eg OS X, OpenBSD...
-	if ctx.get_define("HAVE_SYS_AUDIO_H"):
-		ctx.env.HEADER_SYS_AUDIO_H = True
+	if ctx.get_define("HAVE_SYS_AUDIO_H") or \
+	   ctx.get_define("HAVE_SYS_SOUNDCARD_H") or \
+	   ctx.get_define("HAVE_MACHINE_SOUNDCARD_H"):
+		ctx.env.HAVE_AUDIO = True  # makes util/tg2
 
 	if ctx.options.refclocks:
 		from refclock import refclock_config


=====================================
util/wscript
=====================================
--- a/util/wscript
+++ b/util/wscript
@@ -6,7 +6,7 @@ def build(ctx):
 
 	util = ['bumpclock', 'hist', 'propdelay', 'sht']
 
-	if ctx.env.HEADER_SYS_AUDIO_H:
+	if ctx.env.HAVE_AUDIO:
 		util += ['tg2']
 
 	for name in util:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/919b39fae39d1b8bf10a2b3a64fd3199825c57ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160302/7fea4104/attachment.html>


More information about the vc mailing list