diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-12-25 12:02:26 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-12-25 12:02:26 -0500 |
commit | 9016d3fd77e079b210e322189952902d45bf7e8d (patch) | |
tree | 2870f72eb14c25be7c21e9770989058873ae044e /buildscripts | |
parent | 1c2950f9dae69aa3421feefada584032bdab8fa4 (diff) | |
download | mongo-9016d3fd77e079b210e322189952902d45bf7e8d.tar.gz |
no more ubuntu hacks
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/__init__.py | 3 | ||||
-rw-r--r-- | buildscripts/hacks_ubuntu.py | 54 |
2 files changed, 0 insertions, 57 deletions
diff --git a/buildscripts/__init__.py b/buildscripts/__init__.py index 3fbef4d84e2..da6f3cf1f17 100644 --- a/buildscripts/__init__.py +++ b/buildscripts/__init__.py @@ -4,7 +4,4 @@ import hacks_ubuntu import os; def findHacks( un ): - if un[0] == 'Linux' and (os.path.exists("/etc/debian_version") or - un[3].find("Ubuntu") >= 0): - return hacks_ubuntu return None diff --git a/buildscripts/hacks_ubuntu.py b/buildscripts/hacks_ubuntu.py deleted file mode 100644 index 3de1a6f0b7e..00000000000 --- a/buildscripts/hacks_ubuntu.py +++ /dev/null @@ -1,54 +0,0 @@ - -import os - -def insert( env , options ): - - # now that sm is in the source tree, don't need this - # if not foundxulrunner( env , options ): - # if os.path.exists( "usr/include/mozjs/" ): - # env.Append( CPPDEFINES=[ "MOZJS" ] ) - - return - -def foundxulrunner( env , options ): - best = None - - for x in os.listdir( "/usr/include" ): - if x.find( "xulrunner" ) != 0: - continue - if x == "xulrunner": - best = x - break - best = x - - - if best is None: - print( "warning: using ubuntu without xulrunner-dev. we recommend installing it" ) - return False - - incroot = "/usr/include/" + best + "/" - libroot = "/usr/lib" - if options["linux64"] and os.path.exists("/usr/lib64"): - libroot += "64"; - libroot += "/" + best - - - if not os.path.exists( libroot ): - print( "warning: found xulrunner include but not lib for: " + best ) - return False - - env.Prepend( LIBPATH=[ libroot ] ) - env.Prepend( RPATH=[ libroot ] ) - - env.Prepend( CPPPATH=[ incroot + "stable/" , - incroot + "unstable/" , - incroot ] ) - env.Prepend( CPPPATH=[ "/usr/include/nspr/" ] ) - - env.Append( CPPDEFINES=[ "XULRUNNER" , "OLDJS" ] ) - if best.find( "1.9.0" ) >= 0 or best.endswith("1.9"): - if best.endswith( "1.9.1.9" ): - pass - else: - env.Append( CPPDEFINES=[ "XULRUNNER190" ] ) - return True |