X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34bec08974b9dce7b46b0a58802e5ea3abdd4aea..72fdc4585e28cb7ad84d6bc48292b4bd233d5846:/wxPython/config.py diff --git a/wxPython/config.py b/wxPython/config.py index 5a00a2179f..15349bf3f3 100644 --- a/wxPython/config.py +++ b/wxPython/config.py @@ -552,6 +552,19 @@ def makeLibName(name): return [libname] +def findLib(name, libdirs): + name = makeLibName(name)[0] + if os.name == 'posix': + dirs = libdirs + ['/usr/lib', '/usr/local/lib'] + name = 'lib'+name + else: + dirs = libdirs[:] + for d in dirs: + p = os.path.join(d, name) + if glob.glob(p+'*') != []: + return True + return False + def adjustCFLAGS(cflags, defines, includes): '''Extract the raw -I, -D, and -U flags and put them into