Permalink
Browse files

Fix Build for Gentoo

Modify SConscript so that it recognizes the standard name for the
mozjs/spidermonkey lib on gentoo.
  • Loading branch information...
1 parent 9492fa3 commit 0516fad28fdae35218ceb0d0d48be086ebad8e95 @Xylakant Xylakant committed Apr 24, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 couchjs/c_src/SConscript
View
@@ -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

0 comments on commit 0516fad

Please sign in to comment.