ports/devel/scons/files/patch-engine_SCons_Tool_m4.py
John Marino 8ea8ccd407 devel/scons: Use GNU M4 over base m4
Scons issues "m4 -E" commands, but the version of m4 including in CURRENT
doesn't understand -E switch.  Use gm4 instead.

PR:		189691
Submitted by:	clutton0 (gmail)
Approved by:	maintainer (Gavin McDonald)
2014-07-27 18:12:39 +00:00

11 lines
463 B
Python

--- engine/SCons/Tool/m4.py.orig 2013-03-03 14:48:40.000000000 +0000
+++ engine/SCons/Tool/m4.py
@@ -49,7 +49,7 @@ def generate(env):
# file and run from there.
# The src_suffix setup is like so: file.c.m4 -> file.c,
# file.cpp.m4 -> file.cpp etc.
- env['M4'] = 'm4'
+ env['M4'] = 'gm4'
env['M4FLAGS'] = SCons.Util.CLVar('-E')
env['M4COM'] = 'cd ${SOURCE.rsrcdir} && $M4 $M4FLAGS < ${SOURCE.file} > ${TARGET.abspath}'