Changeset 76
- Timestamp:
- 09/08/06 14:24:43 (2 years ago)
- Files:
-
- trunk/osg-config.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/osg-config.in
r73 r76 71 71 parser.add_option("--libpath-prefix",default=def_libpathprefix, 72 72 help="Linker library path prefix to use. (%s)"%def_libpathprefix) 73 parser.add_option("--opt",action="store_true",help="Ignored for backwards compatibility.") 74 parser.add_option("--dbg",action="store_true",help="Ignored for backwards compatibility.") 73 75 74 76 (options, pos_args) = parser.parse_args() … … 83 85 84 86 # Try to find libname 85 # - Try given name and name with OSG prefix87 # - Try given name and name with OSG or OSGWindow prefix 86 88 libraries = [] 87 89 if len(pos_args): 88 90 for n in pos_args: 89 if lib_map.has_key(n): 90 libraries.append(lib_map[n]) 91 elif lib_map.has_key("OSG%s"%n): 92 libraries.append(lib_map["OSG%s"%n]) 93 else: 94 print "Error: Can not find library named: ", n 91 for name_alt in [n, "OSG"+n, "OSGWindow"+n, None]: 92 if not name_alt: 93 print "Error: Can not find library named: ", n 94 elif lib_map.has_key(name_alt): 95 libraries.append(lib_map[name_alt]) 96 break 97 95 98 96 99 # Make sure we have libraries
