From 0516fad28fdae35218ceb0d0d48be086ebad8e95 Mon Sep 17 00:00:00 2001 From: Felix Gilcher Date: Tue, 24 Apr 2012 18:15:37 +0200 Subject: Fix Build for Gentoo Modify SConscript so that it recognizes the standard name for the mozjs/spidermonkey lib on gentoo. --- couchjs/c_src/SConscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript index 68ad5d3e..3f6a0cc7 100644 --- a/couchjs/c_src/SConscript +++ b/couchjs/c_src/SConscript @@ -70,9 +70,10 @@ if not env.GetOption('clean'): if not conf.CheckLibWithHeader('mozjs185-1.0', jsapi, 'c', autoadd=1): if not conf.CheckLibWithHeader('mozjs', jsapi, 'c', autoadd=1): if not conf.CheckLibWithHeader('js', jsapi, 'c', autoadd=1): - print 'Could not find JS library.', \ - 'Is Mozilla SpiderMonkey installed?' - Exit(1) + if not conf.CheckLibWithHeader('mozjs185', jsapi, 'c', autoadd=1): + print 'Could not find JS library.', \ + 'Is Mozilla SpiderMonkey installed?' + Exit(1) ## Detect the version of SpiderMonkey we're using jsheader = "#include <%s>" % jsapi -- cgit v1.2.3