]> granicus.if.org Git - python/commitdiff
This is supposed to help configure better sort out the various libdb
authorSkip Montanaro <skip@pobox.com>
Tue, 21 Aug 2001 04:23:21 +0000 (04:23 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 21 Aug 2001 04:23:21 +0000 (04:23 +0000)
incarnations.  It's probably not quite sufficient, but should be better than
the status quo...

setup.py

index 0214b1d12eaa5543a111f9190be4e4c3408b3f3e..b60b35e04615f42e1e78ec7448aba5acd3d4d80e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -389,7 +389,13 @@ class PyBuildExt(build_ext):
         # BSD DB 3.x.)
 
         dblib = []
-        if self.compiler.find_library_file(lib_dirs, 'db'):
+        if self.compiler.find_library_file(lib_dirs, 'db-3.1'):
+            dblib = ['db-3.1']
+        elif self.compiler.find_library_file(lib_dirs, 'db2'):
+            dblib = ['db2']
+        elif self.compiler.find_library_file(lib_dirs, 'db1'):
+            dblib = ['db1']
+        elif self.compiler.find_library_file(lib_dirs, 'db'):
             dblib = ['db']
         
         db185_incs = find_file('db_185.h', inc_dirs,