From 6a570afd28bccdb118edde36488ba9834494d6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 16 Nov 2015 05:58:13 +0100 Subject: Imported Upstream version 2.4.1 --- engine/SCons/Conftest.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'engine/SCons/Conftest.py') diff --git a/engine/SCons/Conftest.py b/engine/SCons/Conftest.py index e9702ff..87a3022 100644 --- a/engine/SCons/Conftest.py +++ b/engine/SCons/Conftest.py @@ -684,6 +684,22 @@ return 0; return ret +def CheckProg(context, prog_name): + """ + Configure check for a specific program. + + Check whether program prog_name exists in path. If it is found, + returns the path for it, otherwise returns None. + """ + context.Display("Checking whether %s program exists..." % prog_name) + path = context.env.WhereIs(prog_name) + if path: + context.Display(path + "\n") + else: + context.Display("no\n") + return path + + # # END OF PUBLIC FUNCTIONS # -- cgit v1.2.3