summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 0214b1d..b60b35e 100644
--- 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,