obey the m5 style
--HG-- extra : convert_revision : ac0d55c651a2bb6823cbf5a31c6f57ec163730ab
This commit is contained in:
parent
83aa742d26
commit
6b6de8aaae
1 changed files with 5 additions and 3 deletions
|
@ -94,13 +94,15 @@ if env.get('CXX'):
|
|||
m4env['CXX'] = env['CXX']
|
||||
|
||||
# If we have gm4 use it
|
||||
if subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT, close_fds=True).communicate()[0].find('GNU') >= 0:
|
||||
subp = subprocess.Popen("gm4 --version", shell=True, stdout=subprocess.PIPE,
|
||||
stderr=subprocess.STDOUT, close_fds=True)
|
||||
if subp.communicate()[0].find('GNU') >= 0:
|
||||
m4env['M4'] = 'gm4'
|
||||
|
||||
# Check that m4 is available
|
||||
if not m4env.get('M4'):
|
||||
print "Error: Can't find version of M4 macro processor. Please install M4 and try again."
|
||||
print "Error: Can't find version of M4 macro processor. " + \
|
||||
"Please install M4 and try again."
|
||||
Exit(1)
|
||||
|
||||
m4env.Append(M4FLAGS='-DSRCDIR=%s' % Dir('.').path)
|
||||
|
|
Loading…
Reference in a new issue