SConstruct (3483:edede8473667) SConstruct (3494:5ee078c93ec8)
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

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

266if py_lib_path:
267 env.Append(LIBPATH = py_lib_path)
268 print 'Adding', py_lib_path, 'to LIBPATH for', py_version_name
269if not conf.CheckLib(py_version_name):
270 print "Error: can't find Python library", py_version_name
271 Exit(1)
272
273# On Solaris you need to use libsocket for socket ops
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

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

266if py_lib_path:
267 env.Append(LIBPATH = py_lib_path)
268 print 'Adding', py_lib_path, 'to LIBPATH for', py_version_name
269if not conf.CheckLib(py_version_name):
270 print "Error: can't find Python library", py_version_name
271 Exit(1)
272
273# On Solaris you need to use libsocket for socket ops
274if not conf.CheckLibWithHeader(None, 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
275 if not conf.CheckLibWithHeader('socket', 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
274if not conf.CheckLibWithHeader(None, 'sys/socket.h', 'C++', 'accept(0,0,0);'):
275 if not conf.CheckLibWithHeader('socket', 'sys/socket.h', 'C++', 'accept(0,0,0);'):
276 print "Can't find library with socket calls (e.g. accept())"
277 Exit(1)
278
279# Check for zlib. If the check passes, libz will be automatically
280# added to the LIBS environment variable.
281if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++'):
282 print 'Error: did not find needed zlib compression library '\
283 'and/or zlib.h header file.'

--- 292 unchanged lines hidden ---
276 print "Can't find library with socket calls (e.g. accept())"
277 Exit(1)
278
279# Check for zlib. If the check passes, libz will be automatically
280# added to the LIBS environment variable.
281if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++'):
282 print 'Error: did not find needed zlib compression library '\
283 'and/or zlib.h header file.'

--- 292 unchanged lines hidden ---