@@ -323,17 +323,17 @@ def detect_modules(self):
323323 # (See http://electricrain.com/greg/python/bsddb3/ for an interface to
324324 # BSD DB 3.x.)
325325
326- # Note: If a db.h file is found by configure, bsddb will be enabled
327- # automatically via Setup.config.in. It only needs to be enabled here
328- # if it is not automatically enabled there; check the generated
329- # Setup.config before enabling it here.
330-
331326 db_incs = find_file ('db_185.h' , inc_dirs , [])
332327 if (db_incs is not None and
333328 self .compiler .find_library_file (lib_dirs , 'db' ) ):
334329 exts .append ( Extension ('bsddb' , ['bsddbmodule.c' ],
335330 include_dirs = db_incs ,
336331 libraries = ['db' ] ) )
332+ else :
333+ db_incs = find_file ('db.h' , inc_dirs , [])
334+ if db_incs is not None :
335+ exts .append ( Extension ('bsddb' , ['bsddbmodule.c' ],
336+ include_dirs = db_incs ) )
337337
338338 # The mpz module interfaces to the GNU Multiple Precision library.
339339 # You need to ftp the GNU MP library.
@@ -347,7 +347,6 @@ def detect_modules(self):
347347 # FTP archive sites. One URL for it is:
348348 # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
349349
350- # Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
351350 if (self .compiler .find_library_file (lib_dirs , 'gmp' )):
352351 exts .append ( Extension ('mpz' , ['mpzmodule.c' ],
353352 libraries = ['gmp' ] ) )
0 commit comments