SConscript (5274:7888bf966443) SConscript (5397:58e5b68f7095)
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

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

82ElfFile('libelf_phdr.c')
83ElfFile('libelf_shdr.c')
84ElfFile('libelf_xlate.c')
85
86ElfFile('libelf_convert.c')
87ElfFile('libelf_fsize.c')
88ElfFile('libelf_msize.c')
89
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

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

82ElfFile('libelf_phdr.c')
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)
90m4env = env.Copy()
91del m4env['CCFLAGS']
92del m4env['CPPPATH']
91
93
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
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 ---
94# If we have gm4 use it
95if m4env.Detect('gm4'):
96 m4env['M4'] = 'gm4'
97
98# Check that m4 is available
99import SCons.Tool.m4
100if not SCons.Tool.m4.exists(m4env):
101 print "Error: Can't find version of M4 macro processor. " + \

--- 17 unchanged lines hidden ---