Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Fix Build for Gentoo
Browse files Browse the repository at this point in the history
Modify SConscript so that it recognizes the standard name for the
mozjs/spidermonkey lib on gentoo.
  • Loading branch information
Xylakant committed Apr 25, 2012
1 parent 9492fa3 commit 0516fad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions couchjs/c_src/SConscript
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ if not env.GetOption('clean'):
if not conf.CheckLibWithHeader('mozjs185-1.0', jsapi, 'c', autoadd=1): if not conf.CheckLibWithHeader('mozjs185-1.0', jsapi, 'c', autoadd=1):
if not conf.CheckLibWithHeader('mozjs', jsapi, 'c', autoadd=1): if not conf.CheckLibWithHeader('mozjs', jsapi, 'c', autoadd=1):
if not conf.CheckLibWithHeader('js', jsapi, 'c', autoadd=1): if not conf.CheckLibWithHeader('js', jsapi, 'c', autoadd=1):
print 'Could not find JS library.', \ if not conf.CheckLibWithHeader('mozjs185', jsapi, 'c', autoadd=1):
'Is Mozilla SpiderMonkey installed?' print 'Could not find JS library.', \
Exit(1) 'Is Mozilla SpiderMonkey installed?'
Exit(1)


## Detect the version of SpiderMonkey we're using ## Detect the version of SpiderMonkey we're using
jsheader = "#include <%s>" % jsapi jsheader = "#include <%s>" % jsapi
Expand Down

0 comments on commit 0516fad

Please sign in to comment.