Skip to content

Commit 896c212

Browse files
committed
gh-98636: Fix detecting gdbm_compat for _dbm module
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.
1 parent 286549b commit 896c212

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ Tiago Gonçalves
640640
Chris Gonnerman
641641
Shelley Gooch
642642
David Goodger
643+
Michał Górny
643644
Elliot Gorokhovsky
644645
Hans de Graaff
645646
Tim Graham
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix a regression in detecting ``gdbm_compat`` library for the ``_gdbm``
2+
module build.

configure

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,12 @@ AC_CHECK_HEADERS([ndbm.h], [
41204120

41214121
AC_MSG_CHECKING([for ndbm presence and linker args])
41224122
AS_CASE([$ac_cv_search_dbm_open],
4123-
[*ndbm*|*gdbm_compat*], [
4123+
[*gdbm_compat*], [
4124+
dbm_ndbm="$ac_cv_search_dbm_open"
4125+
have_gdbm_compat=yes
4126+
have_ndbm=yes
4127+
],
4128+
[*ndbm*], [
41244129
dbm_ndbm="$ac_cv_search_dbm_open"
41254130
have_ndbm=yes
41264131
],

0 commit comments

Comments
 (0)