New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-45747: Detect gdbm/dbm dependencies in configure (GH-29467) #29467
Conversation
Signed-off-by: Christian Heimes <christian@python.org>
I left some comments about configure.ac (I haven't looked at the setup.py changes yet)
| AC_CHECK_LIB([ndbm], [dbm_open]) | ||
| LIBS="$LIBS_SAVE" | ||
| AC_CHECK_LIB([gdbm_compat], [dbm_open]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can fold these into:
| AC_CHECK_LIB([ndbm], [dbm_open]) | |
| LIBS="$LIBS_SAVE" | |
| AC_CHECK_LIB([gdbm_compat], [dbm_open]) | |
| AC_SEARCH_LIBS([dbm_open], [ndbm gdbm_compat]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AC_SEARCH_LIBS() does not create HAVE_LIBFOO entries.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's unfortunate.
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
LGTM. Is it worth it to document the USE_* defines in whatsnew?
It's an internal detailed of the build system and not user-facing. |
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue45747