From 8db177b652cdede2f509d6c96d1c99e875c2d284 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 20 Sep 2005 22:10:40 +0000 Subject: r10366: More scons fixes. Building et, asn1, lex and yacc files sort-of works now (This used to be commit 22f18a84242e5e68a2d57b6d7ff77c089ee7434a) --- source4/build/scons/pkgconfig.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 source4/build/scons/pkgconfig.py (limited to 'source4/build/scons/pkgconfig.py') diff --git a/source4/build/scons/pkgconfig.py b/source4/build/scons/pkgconfig.py new file mode 100644 index 0000000000..6a0c82fd35 --- /dev/null +++ b/source4/build/scons/pkgconfig.py @@ -0,0 +1,13 @@ +# Based on the examples from the scons wiki + +def CheckPKGConfig(context, version): + context.Message('Checking for pkg-config... ') + ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0] + context.Result(ret) + return ret + +def CheckPackage(context, name): + context.Message('Checking for %s... ' % name) + ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0] + context.Result(ret) + return ret -- cgit