summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Gilcher <felix.gilcher@asquera.de>2012-04-24 18:15:37 +0200
committerFelix Gilcher <felix.gilcher@asquera.de>2012-04-25 11:16:43 +0200
commit0516fad28fdae35218ceb0d0d48be086ebad8e95 (patch)
treef44b3a090b79ea142a747782db6c97a5e0d023db
parent9492fa303fbc7c664b4b8b335e345f2d53d08b27 (diff)
Fix Build for Gentoo
Modify SConscript so that it recognizes the standard name for the mozjs/spidermonkey lib on gentoo.
-rw-r--r--couchjs/c_src/SConscript7
1 files 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