SConstruct (7840:ed75cee5c793) | SConstruct (7865:d38c1f650a4e) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 690 unchanged lines hidden (view full) --- 699# added to the LIBS environment variable. 700if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'): 701 print 'Error: did not find needed zlib compression library '\ 702 'and/or zlib.h header file.' 703 print ' Please install zlib and try again.' 704 Exit(1) 705 706# Check for librt. | 1# -*- mode:python -*- 2 3# Copyright (c) 2011 Advanced Micro Devices, Inc. 4# Copyright (c) 2009 The Hewlett-Packard Development Company 5# Copyright (c) 2004-2005 The Regents of The University of Michigan 6# All rights reserved. 7# 8# Redistribution and use in source and binary forms, with or without --- 690 unchanged lines hidden (view full) --- 699# added to the LIBS environment variable. 700if not conf.CheckLibWithHeader('z', 'zlib.h', 'C++','zlibVersion();'): 701 print 'Error: did not find needed zlib compression library '\ 702 'and/or zlib.h header file.' 703 print ' Please install zlib and try again.' 704 Exit(1) 705 706# Check for librt. |
707have_posix_clock = conf.CheckLib(None, 'clock_nanosleep', 'time.h') or \ 708 conf.CheckLib('rt', 'clock_nanosleep', 'time.h') | 707have_posix_clock = \ 708 conf.CheckLibWithHeader(None, 'time.h', 'C', 709 'clock_nanosleep(0,0,NULL,NULL);') or \ 710 conf.CheckLibWithHeader('rt', 'time.h', 'C', 711 'clock_nanosleep(0,0,NULL,NULL);') |
709 710if not have_posix_clock: 711 print "Can't find library for POSIX clocks." 712 713# Check for <fenv.h> (C99 FP environment control) 714have_fenv = conf.CheckHeader('fenv.h', '<>') 715if not have_fenv: 716 print "Warning: Header file <fenv.h> not found." --- 305 unchanged lines hidden --- | 712 713if not have_posix_clock: 714 print "Can't find library for POSIX clocks." 715 716# Check for <fenv.h> (C99 FP environment control) 717have_fenv = conf.CheckHeader('fenv.h', '<>') 718if not have_fenv: 719 print "Warning: Header file <fenv.h> not found." --- 305 unchanged lines hidden --- |