Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=0e24752e9d6b2468d318745f01d910d3ee9427fb
commit 0e24752e9d6b2468d318745f01d910d3ee9427fb Author: James Buren <[email protected]> Date: Wed Oct 8 16:03:54 2014 -0500 scons: check for existence of libarchive and libcurl diff --git a/SConstruct b/SConstruct old mode 100644 new mode 100755 index eb3a0a0..bf1cf5c --- a/SConstruct +++ b/SConstruct @@ -11,8 +11,8 @@ def CheckPKGConfig(ctx, version): def CheckPKG(ctx, name): ctx.Message('Checking for %s... ' % name) rv = ctx.TryAction('pkg-config --exists \'%s\'' % name)[0] - ctx.Result(ret) - return ret + ctx.Result(rv) + return rv cfg = Configure( env, @@ -25,3 +25,13 @@ cfg = Configure( if not cfg.CheckPKGConfig('0.15.0'): print('pkg-config >= 0.15.0 not found.') Exit(1) + +if not cfg.CheckPKG('libarchive'): + print('libarchive not found.') + Exit(1) + +if not cfg.CheckPKG('libcurl'): + print('libcurl not found.') + Exit(1) + +env = cfg.Finish() _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
