]> git.lyx.org Git - features.git/commitdiff
Scons: do not print warnings when checking boost libraries
authorBo Peng <bpeng@lyx.org>
Tue, 19 Dec 2006 15:48:40 +0000 (15:48 +0000)
committerBo Peng <bpeng@lyx.org>
Tue, 19 Dec 2006 15:48:40 +0000 (15:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16339 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_utils.py

index 168e4baf4fa72185d3825f7cf35ecda44e3d96ce..e01a92a88adbede45c594862334247d1a9908a88 100644 (file)
@@ -173,14 +173,6 @@ def checkBoostLibraries(conf, libs, lib_paths, inc_paths, versions, isDebug):
     lib_path = None
     inc_path = None
     for path in lib_paths:
-        # direct form: e.g. libboost_iostreams.a
-        # ignore isDebug
-        if False not in [os.path.isfile(os.path.join(path, 'libboost_%s.a' % lib)) for lib in libs]:
-            conf.Result('yes')
-            found_lib = True
-            lib_path = path
-            lib_names = libs
-            break
         for lib in libs:
             # get all the libs, then filter for the right library
             files = glob.glob(os.path.join(path, 'libboost_%s-*.a' % lib))
@@ -196,15 +188,9 @@ def checkBoostLibraries(conf, libs, lib_paths, inc_paths, versions, isDebug):
                     for ver in versions:
                         lib_files += filter(lambda x: re.search('libboost_%s-\w+-mt-([^dgy]+-)*%s.a' % (lib, ver), x), files)
                 if len(lib_files) == 0:
-                    if isDebug:
-                        print 'Failed to find the debug version of boost', ' or '.join(versions)
-                    else:
-                        print 'Failed to find the release version of boost', ' or '.join(versions)
                     # use alternative libraries
                     for ver in versions:
                         lib_files += filter(lambda x: re.search('libboost_%s-[\w-]+%s.a' % (lib, ver), x), files)
-                    if len(lib_files) > 0:
-                        print 'Use library %s' % lib_files[0]
                 if len(lib_files) > 0:
                     # get xxx-gcc-1_33_1 from /usr/local/lib/libboost_xxx-gcc-1_33_1.a
                     lib_names.append(lib_files[0].split(os.sep)[-1][3:-2])