summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-11 21:46:28 (GMT)
committerGitHub <noreply@github.com>2023-01-11 21:46:28 (GMT)
commit02a72f080dc89b037c304a85a0f96509de9ae688 (patch)
treec3a86320187d36542843d340c84a9f6e4972a47f /configure
parent07a87f74faf31cdd755ac7de6d44531139899d1b (diff)
downloadcpython-02a72f080dc89b037c304a85a0f96509de9ae688.zip
cpython-02a72f080dc89b037c304a85a0f96509de9ae688.tar.gz
cpython-02a72f080dc89b037c304a85a0f96509de9ae688.tar.bz2
gh-98636: Fix detecting gdbm_compat for _dbm module (#98643)
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 4841c1d..5b6750a 100755
--- a/configure
+++ b/configure
@@ -14710,6 +14710,7 @@ fi
{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;}
if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
+ { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;}
save_CFLAGS=$CFLAGS
save_CPPFLAGS=$CPPFLAGS
save_LDFLAGS=$LDFLAGS
@@ -14769,7 +14770,9 @@ $as_echo "$ac_cv_search_dbm_open" >&6; }
ac_res=$ac_cv_search_dbm_open
if test "$ac_res" != no; then :
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-
+ have_gdbm_compat=yes
+else
+ have_gdbm_compat=no
fi