mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-115765: Don't use deprecated AC_CHECK_TYPE macro in configure.ac (#115792)
Instead use AC_CHECK_TYPES.
This commit is contained in:
parent
7bc79371a6
commit
baae73d730
3 changed files with 25 additions and 20 deletions
25
configure.ac
25
configure.ac
|
|
@ -2910,12 +2910,10 @@ AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is
|
|||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_UID_T
|
||||
|
||||
AC_CHECK_TYPE([ssize_t],
|
||||
AC_DEFINE([HAVE_SSIZE_T], [1],
|
||||
[Define if your compiler provides ssize_t]), [], [])
|
||||
AC_CHECK_TYPE([__uint128_t],
|
||||
AC_DEFINE([HAVE_GCC_UINT128_T], [1],
|
||||
[Define if your compiler provides __uint128_t]), [], [])
|
||||
AC_CHECK_TYPES([ssize_t])
|
||||
AC_CHECK_TYPES([__uint128_t],
|
||||
[AC_DEFINE([HAVE_GCC_UINT128_T], [1],
|
||||
[Define if your compiler provides __uint128_t])])
|
||||
|
||||
# Sizes and alignments of various common basic types
|
||||
# ANSI C requires sizeof(char) == 1, so no need to check it
|
||||
|
|
@ -6153,11 +6151,7 @@ AS_VAR_IF([with_readline], [no], [
|
|||
])
|
||||
|
||||
# in readline as well as newer editline (April 2023)
|
||||
AC_CHECK_TYPE([rl_compdisp_func_t],
|
||||
[AC_DEFINE([HAVE_RL_COMPDISP_FUNC_T], [1],
|
||||
[Define if readline supports rl_compdisp_func_t])],
|
||||
[],
|
||||
[readline_includes])
|
||||
AC_CHECK_TYPES([rl_compdisp_func_t], [], [], [readline_includes])
|
||||
|
||||
m4_undefine([readline_includes])
|
||||
])dnl WITH_SAVE_ENV()
|
||||
|
|
@ -6555,12 +6549,9 @@ then
|
|||
LIBS="$LIBS -framework CoreFoundation"
|
||||
fi
|
||||
|
||||
AC_CHECK_TYPE(
|
||||
[socklen_t], [],
|
||||
[AC_DEFINE(
|
||||
[socklen_t], [int],
|
||||
[Define to `int' if <sys/socket.h> does not define.]
|
||||
)], [
|
||||
AC_CHECK_TYPES([socklen_t], [],
|
||||
[AC_DEFINE([socklen_t], [int],
|
||||
[Define to 'int' if <sys/socket.h> does not define.])], [
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue