SConscript (4781:59a75bd0ddf4) SConscript (5274:7888bf966443)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 74 unchanged lines hidden (view full) ---

83ElfFile('libelf_shdr.c')
84ElfFile('libelf_xlate.c')
85
86ElfFile('libelf_convert.c')
87ElfFile('libelf_fsize.c')
88ElfFile('libelf_msize.c')
89
90m4env = Environment(ENV=os.environ)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 74 unchanged lines hidden (view full) ---

83ElfFile('libelf_shdr.c')
84ElfFile('libelf_xlate.c')
85
86ElfFile('libelf_convert.c')
87ElfFile('libelf_fsize.c')
88ElfFile('libelf_msize.c')
89
90m4env = Environment(ENV=os.environ)
91
91if env.get('CC'):
92 m4env['CC'] = env['CC']
93if env.get('CXX'):
94 m4env['CXX'] = env['CXX']
95
92if env.get('CC'):
93 m4env['CC'] = env['CC']
94if env.get('CXX'):
95 m4env['CXX'] = env['CXX']
96
97if env.get('OSX64bit'):
98 m4env.Append(CFLAGS='-arch x86_64')
99 m4env.Append(LINKFLAGS='-arch x86_64')
100
96# If we have gm4 use it
97if m4env.Detect('gm4'):
98 m4env['M4'] = 'gm4'
99
100# Check that m4 is available
101import SCons.Tool.m4
102if not SCons.Tool.m4.exists(m4env):
103 print "Error: Can't find version of M4 macro processor. " + \

--- 17 unchanged lines hidden ---
101# If we have gm4 use it
102if m4env.Detect('gm4'):
103 m4env['M4'] = 'gm4'
104
105# Check that m4 is available
106import SCons.Tool.m4
107if not SCons.Tool.m4.exists(m4env):
108 print "Error: Can't find version of M4 macro processor. " + \

--- 17 unchanged lines hidden ---