Skip to content

Commit

Permalink
gh-98636: Fix detecting gdbm_compat for _dbm module
Browse files Browse the repository at this point in the history
Fix the gdbm_compat library detection logic to set have_gdbm_compat=yes,
as expected by `--with-dbmliborder=` handler.  This fixes the build
failure with `--with-dbmliborder=gdbm`, and implicit fallback to ndbm
with the default value.
  • Loading branch information
mgorny committed Oct 25, 2022
1 parent 286549b commit 896c212
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ Tiago Gonçalves
Chris Gonnerman
Shelley Gooch
David Goodger
Michał Górny
Elliot Gorokhovsky
Hans de Graaff
Tim Graham
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a regression in detecting ``gdbm_compat`` library for the ``_gdbm``
module build.
8 changes: 7 additions & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4120,7 +4120,12 @@ AC_CHECK_HEADERS([ndbm.h], [

AC_MSG_CHECKING([for ndbm presence and linker args])
AS_CASE([$ac_cv_search_dbm_open],
[*ndbm*|*gdbm_compat*], [
[*gdbm_compat*], [
dbm_ndbm="$ac_cv_search_dbm_open"
have_gdbm_compat=yes
have_ndbm=yes
],
[*ndbm*], [
dbm_ndbm="$ac_cv_search_dbm_open"
have_ndbm=yes
],
Expand Down

0 comments on commit 896c212

Please sign in to comment.