Skip to content

Commit 15510e8

Browse files
committed
gh-98636: Fix detecting gdbm_compat for _dbm module
Fix the gdbm_compat library detection logic to actually check for -lgdbm_compat independently of the ndbm detection. This fixes the build failure with `--with-dbmliborder=gdbm`, and implicit fallback to ndbm with the default value.
1 parent f59c7f8 commit 15510e8

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

Misc/ACKS

+1
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
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

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+2-1
Original file line numberDiff line numberDiff line change
@@ -4118,8 +4118,9 @@ AS_VAR_IF([ac_cv_header_gdbm_dash_ndbm_h], [yes], [
41184118
AS_UNSET([ac_cv_header_gdbm_ndbm_h])
41194119

41204120
if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
4121+
AS_UNSET([ac_cv_search_dbm_open])
41214122
WITH_SAVE_ENV([
4122-
AC_SEARCH_LIBS([dbm_open], [gdbm_compat])
4123+
AC_SEARCH_LIBS([dbm_open], [gdbm_compat], [have_gdbm_compat=yes], [have_gdbm_compat=no])
41234124
])
41244125
fi
41254126

0 commit comments

Comments
 (0)