Merge zizzer.eecs.umich.edu:/bk/newmem

into  ahchoo.blinky.homelinux.org:/home/gblack/m5/newmem-x86

--HG--
extra : convert_revision : c99372d62e4e6acdced977da8480f2379b6f00a1
This commit is contained in:
Gabe Black 2007-05-31 22:21:18 +00:00
commit fbcc35450d

View file

@ -94,13 +94,12 @@ if env.get('CXX'):
m4env['CXX'] = env['CXX']
# If we have gm4 use it
subp = subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, close_fds=True)
if subp.communicate()[0].find('GNU') >= 0:
if m4env.Detect('gm4'):
m4env['M4'] = 'gm4'
# Check that m4 is available
if not m4env.get('M4'):
import SCons.Tool.m4
if not SCons.Tool.m4.exists(m4env):
print "Error: Can't find version of M4 macro processor. " + \
"Please install M4 and try again."
Exit(1)