SConstruct (9071:64db8473f3ab) | SConstruct (9072:d8e5ca139d7c) |
---|---|
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 --- 566 unchanged lines hidden (view full) --- 575 576# Check for SWIG 577if not main.has_key('SWIG'): 578 print 'Error: SWIG utility not found.' 579 print ' Please install (see http://www.swig.org) and retry.' 580 Exit(1) 581 582# Check for appropriate SWIG version | 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 --- 566 unchanged lines hidden (view full) --- 575 576# Check for SWIG 577if not main.has_key('SWIG'): 578 print 'Error: SWIG utility not found.' 579 print ' Please install (see http://www.swig.org) and retry.' 580 Exit(1) 581 582# Check for appropriate SWIG version |
583swig_version = readCommand(('swig', '-version'), exception='').split() | 583swig_version = readCommand([main['SWIG'], '-version'], exception='').split() |
584# First 3 words should be "SWIG Version x.y.z" 585if len(swig_version) < 3 or \ 586 swig_version[0] != 'SWIG' or swig_version[1] != 'Version': 587 print 'Error determining SWIG version.' 588 Exit(1) 589 590min_swig_version = '1.3.34' 591if compareVersions(swig_version[2], min_swig_version) < 0: --- 472 unchanged lines hidden --- | 584# First 3 words should be "SWIG Version x.y.z" 585if len(swig_version) < 3 or \ 586 swig_version[0] != 'SWIG' or swig_version[1] != 'Version': 587 print 'Error determining SWIG version.' 588 Exit(1) 589 590min_swig_version = '1.3.34' 591if compareVersions(swig_version[2], min_swig_version) < 0: --- 472 unchanged lines hidden --- |