Minor SCons cleanup

This commit is contained in:
Jacob Leverich 2013-07-01 10:29:49 -07:00
parent da45ef0d79
commit 2d4d477a3f

View File

@ -5,7 +5,6 @@ import sys
env = Environment(ENV = os.environ) env = Environment(ENV = os.environ)
env['HAVE_POSIX_BARRIER'] = True env['HAVE_POSIX_BARRIER'] = True
env['HAVE_EVENT_PRECISE_TIMER'] = False
env.Append(CPPPATH = ['/usr/local/include', '/opt/local/include']) env.Append(CPPPATH = ['/usr/local/include', '/opt/local/include'])
env.Append(LIBPATH = ['/opt/local/lib']) env.Append(LIBPATH = ['/opt/local/lib'])
@ -27,8 +26,7 @@ else: print "found"
if not conf.CheckLibWithHeader("event", "event2/event.h", "C++"): if not conf.CheckLibWithHeader("event", "event2/event.h", "C++"):
print "libevent required" print "libevent required"
Exit(1) Exit(1)
if conf.CheckDeclaration("EVENT_BASE_FLAG_PRECISE_TIMER", '#include <event2/event.h>', "C++"): conf.CheckDeclaration("EVENT_BASE_FLAG_PRECISE_TIMER", '#include <event2/event.h>', "C++")
conf.env['HAVE_EVENT_PRECISE_TIMER'] = True
if not conf.CheckLibWithHeader("pthread", "pthread.h", "C++"): if not conf.CheckLibWithHeader("pthread", "pthread.h", "C++"):
print "pthread required" print "pthread required"
Exit(1) Exit(1)