summaryrefslogtreecommitdiff
path: root/engine/SCons/Conftest.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-16 05:58:16 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-16 05:58:16 +0100
commit60df8165e6be58369d76af4d38388c9846d82975 (patch)
tree827a72e604ad686e6817a40ff0dcaef405212276 /engine/SCons/Conftest.py
parent9948951ec4fcd3c29d7d7ba981de1d1fea275595 (diff)
parent6a570afd28bccdb118edde36488ba9834494d6c7 (diff)
Merge tag 'upstream/2.4.1'
Upstream version 2.4.1
Diffstat (limited to 'engine/SCons/Conftest.py')
-rw-r--r--engine/SCons/Conftest.py16
1 files changed, 16 insertions, 0 deletions
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
#