blob: de14e2e24f5f982e732d94cb78fda0ba524d4689 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- SConstruct.orig Tue Feb 6 21:27:05 2007
+++ SConstruct Tue Feb 6 22:31:03 2007
@@ -91,9 +91,15 @@
conf_dir = 'build/sconf',
log_file = 'build/sconf/config.log')
+if os.environ.has_key('CC'):
+ env['CC'] = os.environ['CC']
+
if os.environ.has_key('CXX'):
env['CXX'] = os.environ['CXX']
+if os.environ.has_key('CCFLAGS'):
+ env['CCFLAGS'] = os.environ['CCFLAGS'].split()
+
if os.environ.has_key('CXXFLAGS'):
env['CXXFLAGS'] = os.environ['CXXFLAGS'].split()
@@ -145,11 +151,6 @@
if not conf.CheckHeader('unistd.h'):
print '\tHeader file unistd.h not found'
- Exit(1)
-
- if not conf.CheckLibWithHeader('pthread', 'pthread.h', 'c'):
- print '\tpthread library not found'
- print '\tNote: You might have the lib but not the headers'
Exit(1)
if not conf.CheckLibWithHeader('z', 'zlib.h', 'c'):
|